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

@forge/resolver

Package Overview
Dependencies
Maintainers
14
Versions
351
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forge/resolver - npm Package Compare versions

Comparing version 0.1.0-next.2 to 0.1.0-next.3

6

CHANGELOG.md
# @forge/resolver
## 0.1.0-next.3
### Patch Changes
- 0985fe6: Fix ResolverFunction type to include a Promise in the response + Fix getDefinitions type to not use wrong payload type
## 0.1.0-next.2

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

4

out/__test__/index.test.js

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

});
resolver.define('asyncFunction', async () => {
await new Promise((resolve) => setTimeout(resolve, 2000));
return new Promise((resolve) => resolve(backendState));
});
resolver.define('invalidReturn', () => {

@@ -36,0 +40,0 @@ return 'foo';

7

out/index.d.ts

@@ -21,3 +21,3 @@ interface InvokePayload {

}
declare type ResolverFunction = (request: Request) => Response | void;
declare type ResolverFunction = (request: Request) => Promise<Response | void> | Response | void;
export default class Resolver {

@@ -27,8 +27,5 @@ private functions;

define(functionKey: string, cb: ResolverFunction): this;
getDefinitions(): ({ call: { functionKey, payload: callPayload }, context }: InvokePayload, backendRuntimePayload?: {
[x: string]: any;
[x: number]: any;
} | undefined) => Promise<ReturnType<ResolverFunction>>;
getDefinitions(): ({ call: { functionKey, payload: callPayload }, context }: InvokePayload, backendRuntimePayload?: Record<string, any> | undefined) => Promise<ReturnType<ResolverFunction>>;
}
export {};
//# sourceMappingURL=index.d.ts.map
{
"name": "@forge/resolver",
"version": "0.1.0-next.2",
"version": "0.1.0-next.3",
"description": "Forge function resolver",

@@ -5,0 +5,0 @@ "author": "Atlassian",

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