@forge/api
Advanced tools
Comparing version 0.1.2 to 0.1.3
import { RequestInit, Response } from 'node-fetch'; | ||
export declare type APIResponse = Pick<Response, 'json' | 'text' | 'ok' | 'status' | 'statusText'>; | ||
export declare type APIResponse = Pick<Response, 'json' | 'text' | 'arrayBuffer' | 'ok' | 'status' | 'statusText'>; | ||
export declare type FetchMethod = (url: string, init?: RequestInit) => Promise<APIResponse>; | ||
@@ -14,3 +14,9 @@ export interface FetchMethods { | ||
declare const API: ForgeAPI; | ||
declare const asUser: () => FetchMethods; | ||
declare const asApp: () => FetchMethods; | ||
declare const fetch: FetchMethod; | ||
declare const requestJira: FetchMethod; | ||
declare const requestConfluence: FetchMethod; | ||
export default API; | ||
export { asUser, asApp, fetch, requestJira, requestConfluence }; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const API = global.api; | ||
const asUser = API.asUser; | ||
exports.asUser = asUser; | ||
const asApp = API.asApp; | ||
exports.asApp = asApp; | ||
const fetch = API.fetch; | ||
exports.fetch = fetch; | ||
const requestJira = API.requestJira; | ||
exports.requestJira = requestJira; | ||
const requestConfluence = API.requestConfluence; | ||
exports.requestConfluence = requestConfluence; | ||
exports.default = API; |
{ | ||
"name": "@forge/api", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Forge API methods", | ||
@@ -5,0 +5,0 @@ "author": "Atlassian", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3455
34
1