@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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @forge/api
2
2
 
3
+ ## 7.0.0-next.4
4
+
5
+ ### Minor Changes
6
+
7
+ - 69e97f1:
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [ea28254]
12
+ - @forge/manifest@12.0.0-next.5
13
+
3
14
  ## 7.0.0-next.3
4
15
 
5
16
  ### Major Changes
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 < 1) {
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[0];
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",
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.3",
31
+ "@forge/manifest": "^12.0.0-next.5",
32
32
  "@forge/storage": "2.0.3",
33
33
  "headers-utils": "^3.0.2"
34
34
  },