@forge/bridge
Advanced tools
Comparing version 0.0.0-experimental-906222c to 0.0.0-experimental-d3a39c9
# @forge/bridge | ||
## 0.0.0-experimental-906222c | ||
## 0.0.0-experimental-d3a39c9 | ||
@@ -5,0 +5,0 @@ ### Major Changes |
import { InvokePayload } from '../types'; | ||
export declare const invoke: <T>(functionKey: string, payload?: InvokePayload | undefined) => Promise<T>; | ||
export declare const resolver: { | ||
get: (fullPath: string, options: RequestInit) => Promise<Response>; | ||
post: (fullPath: string, options: RequestInit) => Promise<Response>; | ||
put: (fullPath: string, options: RequestInit) => Promise<Response>; | ||
patch: (fullPath: string, options: RequestInit) => Promise<Response>; | ||
delete: (fullPath: string, options: RequestInit) => Promise<Response>; | ||
get: (fullPath: string, options?: RequestInit | undefined) => Promise<Response>; | ||
post: (fullPath: string, options?: RequestInit | undefined) => Promise<Response>; | ||
put: (fullPath: string, options?: RequestInit | undefined) => Promise<Response>; | ||
patch: (fullPath: string, options?: RequestInit | undefined) => Promise<Response>; | ||
delete: (fullPath: string, options?: RequestInit | undefined) => Promise<Response>; | ||
}; | ||
//# sourceMappingURL=invoke.d.ts.map |
@@ -26,3 +26,3 @@ "use strict"; | ||
var query = {}; | ||
var items = qs.split('&'); | ||
var items = qs ? qs.split('&') : []; | ||
items.forEach(function (item) { | ||
@@ -44,4 +44,4 @@ var _a = item.split('='), key = _a[0], value = _a[1]; | ||
__meta: { | ||
headers: options.headers, | ||
body: options.body, | ||
headers: options === null || options === void 0 ? void 0 : options.headers, | ||
body: options === null || options === void 0 ? void 0 : options.body, | ||
query: query, | ||
@@ -48,0 +48,0 @@ method: method |
{ | ||
"name": "@forge/bridge", | ||
"version": "0.0.0-experimental-906222c", | ||
"version": "0.0.0-experimental-d3a39c9", | ||
"description": "Forge bridge API for custom UI apps", | ||
@@ -5,0 +5,0 @@ "author": "Atlassian", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25044
2