@forge/bridge
Advanced tools
Comparing version 2.1.2 to 2.1.3-next.0
# @forge/bridge | ||
## 2.1.3-next.0 | ||
### Patch Changes | ||
- 7c11b22: Improve error message for when the Custom UI bridge is not available | ||
## 2.1.2 | ||
@@ -4,0 +10,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getCallBridge = void 0; | ||
const errors_1 = require("./errors"); | ||
function isBridgeAvailable(bridge) { | ||
return !!(bridge === null || bridge === void 0 ? void 0 : bridge.callBridge); | ||
} | ||
exports.getCallBridge = () => { | ||
if (!isBridgeAvailable(window.__bridge)) { | ||
throw new errors_1.BridgeAPIError(` | ||
Unable to establish a connection with the Custom UI bridge. | ||
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. | ||
`); | ||
} | ||
return window.__bridge.callBridge; | ||
}; |
{ | ||
"name": "@forge/bridge", | ||
"version": "2.1.2", | ||
"version": "2.1.3-next.0", | ||
"description": "Forge bridge API for custom UI apps", | ||
@@ -19,5 +19,5 @@ "author": "Atlassian", | ||
"history": "4.10.1", | ||
"jest-date-mock": "^1.0.8", | ||
"isomorphic-fetch": "^3.0.0" | ||
"isomorphic-fetch": "^3.0.0", | ||
"jest-date-mock": "^1.0.8" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21954
297
2