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

@forge/bridge

Package Overview
Dependencies
Maintainers
8
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 1.2.0-next.0 to 1.2.0-next.1

out/utils/index.d.ts

6

CHANGELOG.md
# @forge/bridge
## 1.2.0-next.1
### Patch Changes
- 001a027: Rate limit invoke calls
## 1.2.0-next.0

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

4

out/invoke/invoke.d.ts

@@ -1,3 +0,3 @@

import { InvokePayload, InvokeResponse } from '../types';
export declare const invoke: <T = InvokeResponse>(functionKey: string, payload?: InvokePayload | undefined) => Promise<T>;
import { InvokePayload } from '../types';
export declare const invoke: <T>(functionKey: string, payload?: InvokePayload | undefined) => Promise<T>;
//# sourceMappingURL=invoke.d.ts.map

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

var errors_1 = require("../errors");
var utils_1 = require("../utils");
var callBridge = bridge_1.getCallBridge();

@@ -15,3 +16,3 @@ var validatePayload = function (payload) {

};
exports.invoke = function (functionKey, payload) {
var _invoke = function (functionKey, payload) {
if (typeof functionKey !== 'string') {

@@ -23,1 +24,2 @@ throw new errors_1.BridgeAPIError('functionKey must be a string!');

};
exports.invoke = utils_1.withRateLimiter(_invoke, 20, 2000, 'Resolver calls are rate limited at 20req/2s');
{
"name": "@forge/bridge",
"version": "1.2.0-next.0",
"version": "1.2.0-next.1",
"description": "Forge bridge API for custom UI apps",

@@ -13,3 +13,6 @@ "author": "Atlassian",

"compile": "tsc -b -v"
},
"devDependencies": {
"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