@forge/api
Advanced tools
Comparing version 0.0.0-experimental-d06c35b to 0.0.0-experimental-d3a39c9
# @forge/api | ||
## 0.0.0-experimental-d06c35b | ||
## 0.0.0-experimental-d3a39c9 | ||
### Minor Changes | ||
- 906222c: Add new resolvers | ||
## 2.2.0 | ||
### Minor Changes | ||
- 5dcb9bd: Routes can be passed to api.fetch. Routes can be partially-constructed using other Routes. | ||
@@ -8,0 +14,0 @@ |
interface WebTriggerAPI { | ||
getUrl: (webTriggerModuleKey: string) => Promise<string>; | ||
getApiUrl: (webTriggerModuleKey: string) => Promise<string>; | ||
} | ||
@@ -4,0 +5,0 @@ export declare const webTrigger: WebTriggerAPI; |
@@ -7,3 +7,7 @@ "use strict"; | ||
return global.api.webTrigger.getUrl(webTriggerModuleKey); | ||
}, | ||
getApiUrl: async (webTriggerModuleKey) => { | ||
const url = await exports.webTrigger.getUrl(webTriggerModuleKey); | ||
return url.replace('/x1', '/api'); | ||
} | ||
}; |
{ | ||
"name": "@forge/api", | ||
"version": "0.0.0-experimental-d06c35b", | ||
"version": "0.0.0-experimental-d3a39c9", | ||
"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
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
41387
527