New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@forge/api

Package Overview
Dependencies
Maintainers
2
Versions
382
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forge/api - npm Package Compare versions

Comparing version 2.9.0 to 2.9.1-next.0

6

CHANGELOG.md
# @forge/api
## 2.9.1-next.0
### Patch Changes
- 7a4fa35: Support internet egress calls in the new runtime
## 2.9.0

@@ -4,0 +10,0 @@

11

out/api/fetch.js

@@ -8,2 +8,3 @@ "use strict";

const polyfill_response_1 = require("./polyfill-response");
const egress_1 = require("@forge/egress");
const createProxyFetch = (provider, remote) => {

@@ -24,5 +25,13 @@ return (url, options) => {

};
const wrapExternalEgress = (url, options) => {
const allowedEgress = global.allowedEgress;
const egressFilteringService = new egress_1.EgressFilteringService(allowedEgress);
if (!egressFilteringService.isValidUrl(url)) {
throw new Error(`URL not included in the external fetch backend permissions: ${url}. Visit go.atlassian.com/forge-egress for more information.`);
}
return (0, node_fetch_1.default)(url, options);
};
function getNodeRuntimeAPI() {
return {
fetch: throwNotImplementedError,
fetch: (0, _1.wrapWithRouteUnwrapper)(wrapExternalEgress),
requestJira: throwNotImplementedError,

@@ -29,0 +38,0 @@ requestConfluence: throwNotImplementedError,

3

package.json
{
"name": "@forge/api",
"version": "2.9.0",
"version": "2.9.1-next.0",
"description": "Forge API methods",

@@ -19,2 +19,3 @@ "author": "Atlassian",

"@forge/auth": "^0.0.1",
"@forge/egress": "^1.1.1",
"@forge/storage": "^1.3.1",

@@ -21,0 +22,0 @@ "@types/node-fetch": "^2.5.7",

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