@forge/bridge 2.1.2 → 2.1.3-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/out/bridge.d.ts.map +1 -1
- package/out/bridge.js +10 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/out/bridge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../src/bridge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../src/bridge.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,QAAO,MAAM,CAAC,UAAU,CAAC,CAAC,YAAY,CAS/D,CAAC"}
|
package/out/bridge.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCallBridge = void 0;
|
|
4
|
+
const errors_1 = require("./errors");
|
|
5
|
+
function isBridgeAvailable(bridge) {
|
|
6
|
+
return !!(bridge === null || bridge === void 0 ? void 0 : bridge.callBridge);
|
|
7
|
+
}
|
|
4
8
|
exports.getCallBridge = () => {
|
|
9
|
+
if (!isBridgeAvailable(window.__bridge)) {
|
|
10
|
+
throw new errors_1.BridgeAPIError(`
|
|
11
|
+
Unable to establish a connection with the Custom UI bridge.
|
|
12
|
+
If you are trying to run your app locally, Forge apps only work in the context of Atlassian products. Refer to https://go.atlassian.com/forge-tunneling-with-custom-ui for how to tunnel when using a local development server.
|
|
13
|
+
`);
|
|
14
|
+
}
|
|
5
15
|
return window.__bridge.callBridge;
|
|
6
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bridge",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3-next.0",
|
|
4
4
|
"description": "Forge bridge API for custom UI apps",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"history": "4.10.1",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"isomorphic-fetch": "^3.0.0",
|
|
20
|
+
"jest-date-mock": "^1.0.8"
|
|
21
21
|
}
|
|
22
22
|
}
|