@forge/resolver
Advanced tools
Comparing version 0.0.0-experimental-788b6d9 to 0.0.0-experimental-8caa8a2
106
CHANGELOG.md
# @forge/resolver | ||
## 0.0.0-experimental-788b6d9 | ||
## 0.0.0-experimental-8caa8a2 | ||
### Minor Changes | ||
- db162fc: Add license information to context object | ||
## 1.1.0-next.0 | ||
### Minor Changes | ||
- db162fc: Add license information to context object | ||
## 1.0.1 | ||
### Patch Changes | ||
- @forge/api@0.0.0-experimental-788b6d9 | ||
- @forge/api@1.0.1 | ||
## 1.0.1-next.0 | ||
### Patch Changes | ||
- @forge/api@1.0.1-next.0 | ||
## 1.0.0 | ||
### Major Changes | ||
- 1daf2c5: Forge packages to 1.0.0 for upcoming platform GA 🎉 | ||
### Patch Changes | ||
- Updated dependencies [1daf2c5] | ||
- @forge/api@1.0.0 | ||
## 1.0.0-next.0 | ||
### Major Changes | ||
- 1daf2c5: Forge is now generally available 🎉 | ||
### Patch Changes | ||
- Updated dependencies [1daf2c5] | ||
- @forge/api@1.0.0-next.0 | ||
## 0.2.3 | ||
### Patch Changes | ||
- 1473fbf: Add string to response payload | ||
- Updated dependencies [843a703] | ||
- @forge/api@0.7.0 | ||
## 0.2.3-next.1 | ||
### Patch Changes | ||
- 1473fbf: Add string to response payload | ||
## 0.2.3-next.0 | ||
### Patch Changes | ||
- Updated dependencies [843a703] | ||
- @forge/api@0.7.0-next.0 | ||
## 0.2.2 | ||
### Patch Changes | ||
- b41cc4c: Fix exported content | ||
- 5b666a5: Fix published content | ||
- 41dcd69: Moved CSP logic to its own package and bridge script to cli-shared | ||
- Updated dependencies [b41cc4c] | ||
- Updated dependencies [5b666a5] | ||
- Updated dependencies [6f786cf] | ||
- @forge/api@0.6.1 | ||
## 0.2.2-next.3 | ||
### Patch Changes | ||
- 41dcd69: Moved CSP logic to its own package and bridge script to cli-shared | ||
## 0.2.2-next.2 | ||
### Patch Changes | ||
- 5b666a5: Fix published content | ||
- Updated dependencies [5b666a5] | ||
- @forge/api@0.6.1-next.2 | ||
## 0.2.2-next.1 | ||
### Patch Changes | ||
- b41cc4c: Fix exported content | ||
- Updated dependencies [b41cc4c] | ||
- @forge/api@0.6.1-next.1 | ||
## 0.2.2-next.0 | ||
### Patch Changes | ||
- Updated dependencies [6f786cf] | ||
- @forge/api@0.6.1-next.0 | ||
## 0.2.1 | ||
@@ -10,0 +112,0 @@ |
@@ -18,6 +18,7 @@ interface InvokePayload { | ||
} | ||
interface Response { | ||
interface ResponseObject { | ||
[key: string]: any; | ||
} | ||
declare type ResolverFunction = (request: Request) => Promise<Response | void> | Response | void; | ||
declare type Response = ResponseObject | string | void; | ||
declare type ResolverFunction = (request: Request) => Promise<Response> | Response; | ||
declare type DefinitionsHandler = ({ call: { functionKey, payload: callPayload }, context }: InvokePayload, backendRuntimePayload?: Request['payload']) => Promise<ReturnType<ResolverFunction>>; | ||
@@ -24,0 +25,0 @@ export default class Resolver { |
@@ -55,3 +55,3 @@ "use strict"; | ||
payload: callPayload || {}, | ||
context: Object.assign({ accountId: (_a = backendRuntimePayload === null || backendRuntimePayload === void 0 ? void 0 : backendRuntimePayload.principal) === null || _a === void 0 ? void 0 : _a.accountId }, context) | ||
context: Object.assign({ accountId: (_a = backendRuntimePayload === null || backendRuntimePayload === void 0 ? void 0 : backendRuntimePayload.principal) === null || _a === void 0 ? void 0 : _a.accountId, license: backendRuntimePayload === null || backendRuntimePayload === void 0 ? void 0 : backendRuntimePayload.license }, context) | ||
}); | ||
@@ -58,0 +58,0 @@ if (typeof result === 'object') { |
{ | ||
"name": "@forge/resolver", | ||
"version": "0.0.0-experimental-788b6d9", | ||
"version": "0.0.0-experimental-8caa8a2", | ||
"description": "Forge function resolver", | ||
@@ -9,3 +9,2 @@ "author": "Atlassian", | ||
"types": "out/index.d.ts", | ||
"files": ["out"], | ||
"scripts": { | ||
@@ -20,4 +19,4 @@ "build": "yarn run clean && yarn run compile", | ||
"dependencies": { | ||
"@forge/api": "0.0.0-experimental-788b6d9" | ||
"@forge/api": "1.0.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
9205
6
98
+ Added@forge/api@1.0.1(transitive)
+ Added@forge/storage@1.7.1(transitive)
- Removed@forge/api@0.0.0-experimental-788b6d9(transitive)
Updated@forge/api@1.0.1