Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@forge/bridge

Package Overview
Dependencies
Maintainers
2
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forge/bridge - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3-next.0

6

CHANGELOG.md
# @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;
};

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc