@forge/api 7.0.0-next.3 → 7.0.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/out/webTrigger.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/out/webTrigger.js
CHANGED
|
@@ -39,10 +39,10 @@ const proxyGetWebTriggerURL = (0, runtime_1.wrapInMetrics)('api.getWebTriggerUrl
|
|
|
39
39
|
const proxyDeleteWebTriggerURL = (0, runtime_1.wrapInMetrics)('api.deleteWebTriggerUrl', async (webTriggerUrl) => {
|
|
40
40
|
const webTriggerUrlIdRegexGroupMatch = /\/x1\/([^\/\?\#]+)/;
|
|
41
41
|
const matches = webTriggerUrl.match(webTriggerUrlIdRegexGroupMatch);
|
|
42
|
-
if (!matches || matches.length <
|
|
42
|
+
if (!matches || matches.length < 2) {
|
|
43
43
|
throw new Error('Internal error occurred: Failed to parse web trigger URL for ID');
|
|
44
44
|
}
|
|
45
|
-
const id = matches[
|
|
45
|
+
const id = matches[1];
|
|
46
46
|
const response = await (0, fetch_1.__requestAtlassianAsApp)('/graphql', {
|
|
47
47
|
method: 'POST',
|
|
48
48
|
headers: { 'Content-Type': 'application/json' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/api",
|
|
3
|
-
"version": "7.0.0-next.
|
|
3
|
+
"version": "7.0.0-next.4",
|
|
4
4
|
"description": "Forge API methods",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@forge/auth": "0.0.9",
|
|
29
29
|
"@forge/egress": "2.3.1",
|
|
30
30
|
"@forge/i18n": "0.0.7",
|
|
31
|
-
"@forge/manifest": "^12.0.0-next.
|
|
31
|
+
"@forge/manifest": "^12.0.0-next.5",
|
|
32
32
|
"@forge/storage": "2.0.3",
|
|
33
33
|
"headers-utils": "^3.0.2"
|
|
34
34
|
},
|