npm package diff
Package: @forge/bridge
Versions: 4.0.0 - 4.0.1-next.0
File: package/out/view/createHistory.js
Index: package/out/view/createHistory.js
===================================================================
--- package/out/view/createHistory.js
+++ package/out/view/createHistory.js
@@ -1,14 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createHistory = void 0;
-const tslib_1 = require("tslib");
const bridge_1 = require("../bridge");
const callBridge = (0, bridge_1.getCallBridge)();
-const createHistory = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
- const history = yield callBridge('createHistory');
+const createHistory = async () => {
+ const history = await callBridge('createHistory');
history.listen((location) => {
history.location = location;
});
return history;
-});
+};
exports.createHistory = createHistory;