@forge/cli 12.22.0 → 12.23.0-next.7-experimental-44b7a12
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 +142 -0
- package/npm-shrinkwrap.json +65 -65
- package/out/autocomplete/autocomplete-config.json +3 -0
- package/out/command-line/command.d.ts +5 -2
- package/out/command-line/command.d.ts.map +1 -1
- package/out/command-line/command.js +24 -5
- package/out/command-line/command.js.map +1 -1
- package/out/command-line/controller/build-controller.d.ts +1 -1
- package/out/command-line/controller/build-controller.d.ts.map +1 -1
- package/out/command-line/controller/build-controller.js +2 -2
- package/out/command-line/controller/build-controller.js.map +1 -1
- package/out/command-line/controller/default-environment-controller.d.ts +2 -2
- package/out/command-line/controller/default-environment-controller.d.ts.map +1 -1
- package/out/command-line/controller/default-environment-controller.js +5 -5
- package/out/command-line/controller/default-environment-controller.js.map +1 -1
- package/out/command-line/controller/install-controller.d.ts.map +1 -1
- package/out/command-line/controller/install-controller.js +9 -6
- package/out/command-line/controller/install-controller.js.map +1 -1
- package/out/command-line/controller/module-controller.d.ts +1 -0
- package/out/command-line/controller/module-controller.d.ts.map +1 -1
- package/out/command-line/controller/module-controller.js +36 -21
- package/out/command-line/controller/module-controller.js.map +1 -1
- package/out/command-line/controller/tunnel-controller.d.ts +1 -0
- package/out/command-line/controller/tunnel-controller.d.ts.map +1 -1
- package/out/command-line/controller/tunnel-controller.js +18 -1
- package/out/command-line/controller/tunnel-controller.js.map +1 -1
- package/out/command-line/register-build-commands.d.ts +1 -0
- package/out/command-line/register-build-commands.d.ts.map +1 -1
- package/out/command-line/register-build-commands.js +2 -2
- package/out/command-line/register-build-commands.js.map +1 -1
- package/out/command-line/register-tunnel-commands.d.ts.map +1 -1
- package/out/command-line/register-tunnel-commands.js +1 -0
- package/out/command-line/register-tunnel-commands.js.map +1 -1
- package/out/command-line/view/install-view.d.ts +2 -0
- package/out/command-line/view/install-view.d.ts.map +1 -1
- package/out/command-line/view/install-view.js +6 -0
- package/out/command-line/view/install-view.js.map +1 -1
- package/out/command-line/view/module-view.d.ts +2 -2
- package/out/command-line/view/module-view.d.ts.map +1 -1
- package/out/command-line/view/module-view.js +1 -1
- package/out/command-line/view/module-view.js.map +1 -1
- package/out/installations/graphql-client.d.ts +4 -2
- package/out/installations/graphql-client.d.ts.map +1 -1
- package/out/installations/graphql-client.js +30 -1
- package/out/installations/graphql-client.js.map +1 -1
- package/out/installations/install-app-site.d.ts +9 -2
- package/out/installations/install-app-site.d.ts.map +1 -1
- package/out/installations/install-app-site.js.map +1 -1
- package/out/module-add/dependencies-merger.d.ts +2 -1
- package/out/module-add/dependencies-merger.d.ts.map +1 -1
- package/out/module-add/dependencies-merger.js +20 -6
- package/out/module-add/dependencies-merger.js.map +1 -1
- package/out/service/build-service.d.ts +1 -1
- package/out/service/build-service.d.ts.map +1 -1
- package/out/service/build-service.js +2 -2
- package/out/service/build-service.js.map +1 -1
- package/out/service/module-file-service.d.ts +1 -0
- package/out/service/module-file-service.d.ts.map +1 -1
- package/out/service/module-file-service.js +5 -3
- package/out/service/module-file-service.js.map +1 -1
- package/out/service/tunnel-service.d.ts +3 -0
- package/out/service/tunnel-service.d.ts.map +1 -1
- package/out/service/tunnel-service.js +7 -1
- package/out/service/tunnel-service.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,147 @@
|
|
|
1
1
|
# @forge/cli
|
|
2
2
|
|
|
3
|
+
## 12.23.0-next.7-experimental-44b7a12
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6aeecd7: The tunnel debugger now binds to localhost (127.0.0.1) by default instead of all network interfaces (0.0.0.0). If you need to attach a debugger from another host, use the new `--debugHost` option on `forge tunnel` to specify the IP address to bind to.
|
|
8
|
+
- 55c1371: bump cheerio to ^1.2.0 to pull in a patched undici (>=7.19.0, resolving to a fixed release) and remediate CVE-2026-1525
|
|
9
|
+
NodeJS requirement bumped from 20.0.0 to >=20.18.1
|
|
10
|
+
- 2a1ec30: Adding warning when site has over 100 apps installed
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 561f8f4: Remove "storage" module from "@forge/api"
|
|
15
|
+
- ab1dcaa: Update JSM to be its own product
|
|
16
|
+
- bb903a8: Update requireAppId check
|
|
17
|
+
- 5b67e61: Patch fixes for module Add
|
|
18
|
+
- 73f3e6e: Adding new --app-id-override flag to build list
|
|
19
|
+
- Updated dependencies [c3b96b3]
|
|
20
|
+
- Updated dependencies [2a03b88]
|
|
21
|
+
- Updated dependencies [814b8fe]
|
|
22
|
+
- Updated dependencies [561f8f4]
|
|
23
|
+
- Updated dependencies [6aeecd7]
|
|
24
|
+
- Updated dependencies [ab1dcaa]
|
|
25
|
+
- Updated dependencies [bb903a8]
|
|
26
|
+
- Updated dependencies [c1acc55]
|
|
27
|
+
- Updated dependencies [8ac7dd3]
|
|
28
|
+
- Updated dependencies [6adb226]
|
|
29
|
+
- Updated dependencies [5b67e61]
|
|
30
|
+
- Updated dependencies [55c1371]
|
|
31
|
+
- Updated dependencies [1a461c3]
|
|
32
|
+
- Updated dependencies [2a1ec30]
|
|
33
|
+
- @forge/cli-shared@8.25.0-next.5-experimental-44b7a12
|
|
34
|
+
- @forge/manifest@12.10.0-next.1-experimental-44b7a12
|
|
35
|
+
- @forge/bundler@6.2.2-next.7-experimental-44b7a12
|
|
36
|
+
- @forge/tunnel@6.5.0-next.7-experimental-44b7a12
|
|
37
|
+
- @forge/runtime@6.2.0-next.0-experimental-44b7a12
|
|
38
|
+
- @forge/lint@5.20.0-next.7-experimental-44b7a12
|
|
39
|
+
|
|
40
|
+
## 12.23.0-next.7
|
|
41
|
+
|
|
42
|
+
### Minor Changes
|
|
43
|
+
|
|
44
|
+
- 2a1ec30: Adding warning when site has over 100 apps installed
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- Updated dependencies [2a1ec30]
|
|
49
|
+
- @forge/cli-shared@8.25.0-next.5
|
|
50
|
+
- @forge/bundler@6.2.2-next.7
|
|
51
|
+
- @forge/lint@5.20.0-next.7
|
|
52
|
+
- @forge/tunnel@6.5.0-next.7
|
|
53
|
+
|
|
54
|
+
## 12.23.0-next.6
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- Updated dependencies [2a03b88]
|
|
59
|
+
- @forge/cli-shared@8.25.0-next.4
|
|
60
|
+
- @forge/bundler@6.2.2-next.6
|
|
61
|
+
- @forge/lint@5.20.0-next.6
|
|
62
|
+
- @forge/tunnel@6.5.0-next.6
|
|
63
|
+
|
|
64
|
+
## 12.23.0-next.5
|
|
65
|
+
|
|
66
|
+
### Minor Changes
|
|
67
|
+
|
|
68
|
+
- 6aeecd7: The tunnel debugger now binds to localhost (127.0.0.1) by default instead of all network interfaces (0.0.0.0). If you need to attach a debugger from another host, use the new `--debugHost` option on `forge tunnel` to specify the IP address to bind to.
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- Updated dependencies [6aeecd7]
|
|
73
|
+
- @forge/tunnel@6.5.0-next.5
|
|
74
|
+
- @forge/cli-shared@8.25.0-next.3
|
|
75
|
+
- @forge/runtime@6.2.0-next.0
|
|
76
|
+
- @forge/bundler@6.2.2-next.5
|
|
77
|
+
- @forge/lint@5.20.0-next.5
|
|
78
|
+
|
|
79
|
+
## 12.23.0-next.4
|
|
80
|
+
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- @forge/lint@5.20.0-next.4
|
|
84
|
+
- @forge/tunnel@6.4.2-next.4
|
|
85
|
+
- @forge/bundler@6.2.2-next.4
|
|
86
|
+
|
|
87
|
+
## 12.23.0-next.3
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- @forge/lint@5.20.0-next.3
|
|
92
|
+
- @forge/tunnel@6.4.2-next.3
|
|
93
|
+
- @forge/bundler@6.2.2-next.3
|
|
94
|
+
|
|
95
|
+
## 12.23.0-next.2
|
|
96
|
+
|
|
97
|
+
### Patch Changes
|
|
98
|
+
|
|
99
|
+
- ab1dcaa: Update JSM to be its own product
|
|
100
|
+
- Updated dependencies [ab1dcaa]
|
|
101
|
+
- @forge/cli-shared@8.24.1-next.2
|
|
102
|
+
- @forge/bundler@6.2.2-next.2
|
|
103
|
+
- @forge/lint@5.20.0-next.2
|
|
104
|
+
- @forge/tunnel@6.4.2-next.2
|
|
105
|
+
|
|
106
|
+
## 12.23.0-next.1
|
|
107
|
+
|
|
108
|
+
### Patch Changes
|
|
109
|
+
|
|
110
|
+
- Updated dependencies [8ac7dd3]
|
|
111
|
+
- @forge/manifest@12.10.0-next.1
|
|
112
|
+
- @forge/bundler@6.2.2-next.1
|
|
113
|
+
- @forge/cli-shared@8.24.1-next.1
|
|
114
|
+
- @forge/lint@5.20.0-next.1
|
|
115
|
+
- @forge/tunnel@6.4.2-next.1
|
|
116
|
+
|
|
117
|
+
## 12.23.0-next.0
|
|
118
|
+
|
|
119
|
+
### Minor Changes
|
|
120
|
+
|
|
121
|
+
- 55c1371: bump cheerio to ^1.2.0 to pull in a patched undici (>=7.19.0, resolving to a fixed release) and remediate CVE-2026-1525
|
|
122
|
+
NodeJS requirement bumped from 20.0.0 to >=20.18.1
|
|
123
|
+
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- 561f8f4: Remove "storage" module from "@forge/api"
|
|
127
|
+
- bb903a8: Update requireAppId check
|
|
128
|
+
- 5b67e61: Patch fixes for module Add
|
|
129
|
+
- 73f3e6e: Adding new --app-id-override flag to build list
|
|
130
|
+
- Updated dependencies [c3b96b3]
|
|
131
|
+
- Updated dependencies [814b8fe]
|
|
132
|
+
- Updated dependencies [561f8f4]
|
|
133
|
+
- Updated dependencies [bb903a8]
|
|
134
|
+
- Updated dependencies [c1acc55]
|
|
135
|
+
- Updated dependencies [6adb226]
|
|
136
|
+
- Updated dependencies [5b67e61]
|
|
137
|
+
- Updated dependencies [55c1371]
|
|
138
|
+
- Updated dependencies [1a461c3]
|
|
139
|
+
- @forge/cli-shared@8.24.1-next.0
|
|
140
|
+
- @forge/manifest@12.9.1-next.0
|
|
141
|
+
- @forge/bundler@6.2.2-next.0
|
|
142
|
+
- @forge/lint@5.20.0-next.0
|
|
143
|
+
- @forge/tunnel@6.4.2-next.0
|
|
144
|
+
|
|
3
145
|
## 12.22.0
|
|
4
146
|
|
|
5
147
|
### Minor Changes
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.23.0-next.7-experimental-44b7a12",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@forge/cli",
|
|
9
|
-
"version": "12.
|
|
9
|
+
"version": "12.23.0-next.7-experimental-44b7a12",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@forge/bundler": "6.2.
|
|
14
|
-
"@forge/cli-shared": "8.
|
|
13
|
+
"@forge/bundler": "6.2.2-next.7-experimental-44b7a12",
|
|
14
|
+
"@forge/cli-shared": "8.25.0-next.5-experimental-44b7a12",
|
|
15
15
|
"@forge/egress": "2.3.2",
|
|
16
16
|
"@forge/i18n": "0.0.7",
|
|
17
|
-
"@forge/lint": "5.
|
|
18
|
-
"@forge/manifest": "12.
|
|
19
|
-
"@forge/runtime": "6.
|
|
20
|
-
"@forge/tunnel": "6.
|
|
17
|
+
"@forge/lint": "5.20.0-next.7-experimental-44b7a12",
|
|
18
|
+
"@forge/manifest": "12.10.0-next.1-experimental-44b7a12",
|
|
19
|
+
"@forge/runtime": "6.2.0-next.0-experimental-44b7a12",
|
|
20
|
+
"@forge/tunnel": "6.5.0-next.7-experimental-44b7a12",
|
|
21
21
|
"@forge/util": "2.0.1",
|
|
22
22
|
"@sentry/node": "7.106.0",
|
|
23
23
|
"ajv": "^8.18.0",
|
|
24
24
|
"archiver": "^7.0.1",
|
|
25
25
|
"case": "^1.6.3",
|
|
26
26
|
"chalk": "^4.1.2",
|
|
27
|
-
"cheerio": "^1.
|
|
27
|
+
"cheerio": "^1.2.0",
|
|
28
28
|
"cli-table3": "^0.6.5",
|
|
29
29
|
"command-exists": "^1.2.9",
|
|
30
30
|
"commander": "^14.0.3",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"yaml": "^2.3.4"
|
|
87
87
|
},
|
|
88
88
|
"engines": {
|
|
89
|
-
"node": ">=20.
|
|
89
|
+
"node": ">=20.18.1"
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"node_modules/@ampproject/remapping": {
|
|
@@ -550,9 +550,9 @@
|
|
|
550
550
|
}
|
|
551
551
|
},
|
|
552
552
|
"node_modules/@forge/bundler": {
|
|
553
|
-
"version": "6.2.
|
|
554
|
-
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-6.2.
|
|
555
|
-
"integrity": "sha512-
|
|
553
|
+
"version": "6.2.2-next.7-experimental-44b7a12",
|
|
554
|
+
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-6.2.2-next.7-experimental-44b7a12.tgz",
|
|
555
|
+
"integrity": "sha512-T4xFk2CBBxzihi3C05MvzSpgMYJ3p7SAefvEWXJ+rCxBucLuiSjAlg0OLPHcgutVX9VzEZTSoI4+DcCqcbvc+w==",
|
|
556
556
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
557
557
|
"dependencies": {
|
|
558
558
|
"@babel/core": "^7.24.0",
|
|
@@ -564,12 +564,12 @@
|
|
|
564
564
|
"@babel/plugin-transform-react-jsx": "^7.23.4",
|
|
565
565
|
"@babel/traverse": "^7.24.0",
|
|
566
566
|
"@babel/types": "^7.24.0",
|
|
567
|
-
"@forge/cli-shared": "8.
|
|
567
|
+
"@forge/cli-shared": "8.25.0-next.5-experimental-44b7a12",
|
|
568
568
|
"@forge/i18n": "0.0.7",
|
|
569
|
-
"@forge/lint": "5.
|
|
570
|
-
"@forge/manifest": "12.
|
|
569
|
+
"@forge/lint": "5.20.0-next.7-experimental-44b7a12",
|
|
570
|
+
"@forge/manifest": "12.10.0-next.1-experimental-44b7a12",
|
|
571
571
|
"babel-loader": "^8.3.0",
|
|
572
|
-
"cheerio": "^1.
|
|
572
|
+
"cheerio": "^1.2.0",
|
|
573
573
|
"cross-spawn": "^7.0.6",
|
|
574
574
|
"fs-extra": "^11.2.0",
|
|
575
575
|
"html-webpack-plugin": "^5.6.3",
|
|
@@ -587,13 +587,13 @@
|
|
|
587
587
|
}
|
|
588
588
|
},
|
|
589
589
|
"node_modules/@forge/cli-shared": {
|
|
590
|
-
"version": "8.
|
|
591
|
-
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-8.
|
|
592
|
-
"integrity": "sha512-
|
|
590
|
+
"version": "8.25.0-next.5-experimental-44b7a12",
|
|
591
|
+
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-8.25.0-next.5-experimental-44b7a12.tgz",
|
|
592
|
+
"integrity": "sha512-vt1UecyeRXq9CCBYkui7hdxnM/2razWZsdwvp+3CC4QnUfT2SXIqT5uOPc05nxsHjln0lhTAur7jFoOxYUuoUQ==",
|
|
593
593
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
594
594
|
"dependencies": {
|
|
595
595
|
"@forge/i18n": "0.0.7",
|
|
596
|
-
"@forge/manifest": "12.
|
|
596
|
+
"@forge/manifest": "12.10.0-next.1-experimental-44b7a12",
|
|
597
597
|
"@forge/util": "2.0.1",
|
|
598
598
|
"@sentry/node": "7.106.0",
|
|
599
599
|
"@vercel/detect-agent": "^1.2.3",
|
|
@@ -601,7 +601,7 @@
|
|
|
601
601
|
"array.prototype.flatmap": "^1.3.3",
|
|
602
602
|
"case": "^1.6.3",
|
|
603
603
|
"chalk": "^4.1.2",
|
|
604
|
-
"cheerio": "^1.
|
|
604
|
+
"cheerio": "^1.2.0",
|
|
605
605
|
"cli-table3": "^0.6.5",
|
|
606
606
|
"conf": "^10.2.0",
|
|
607
607
|
"cross-spawn": "^7.0.6",
|
|
@@ -628,15 +628,15 @@
|
|
|
628
628
|
}
|
|
629
629
|
},
|
|
630
630
|
"node_modules/@forge/csp": {
|
|
631
|
-
"version": "5.
|
|
632
|
-
"resolved": "https://registry.npmjs.org/@forge/csp/-/csp-5.
|
|
633
|
-
"integrity": "sha512-
|
|
631
|
+
"version": "5.9.0-next.2-experimental-44b7a12",
|
|
632
|
+
"resolved": "https://registry.npmjs.org/@forge/csp/-/csp-5.9.0-next.2-experimental-44b7a12.tgz",
|
|
633
|
+
"integrity": "sha512-t+wQ2p+FSwW2+YCewumWQaOXaEaRee9w3hGa3ZvS3xheefpG43QtOCNjxXbDWZryZCGeY82QCXcHiqi0zqWV7g==",
|
|
634
634
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
635
635
|
"dependencies": {
|
|
636
636
|
"content-security-policy-parser": "^0.6.0"
|
|
637
637
|
},
|
|
638
638
|
"peerDependencies": {
|
|
639
|
-
"cheerio": "^1.
|
|
639
|
+
"cheerio": "^1.2.0"
|
|
640
640
|
},
|
|
641
641
|
"peerDependenciesMeta": {
|
|
642
642
|
"cheerio": {
|
|
@@ -660,16 +660,16 @@
|
|
|
660
660
|
}
|
|
661
661
|
},
|
|
662
662
|
"node_modules/@forge/lint": {
|
|
663
|
-
"version": "5.
|
|
664
|
-
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-5.
|
|
665
|
-
"integrity": "sha512-
|
|
663
|
+
"version": "5.20.0-next.7-experimental-44b7a12",
|
|
664
|
+
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-5.20.0-next.7-experimental-44b7a12.tgz",
|
|
665
|
+
"integrity": "sha512-H3DozyJFv/ahEFe+909+xDxjNoaRKJCPvQAnlAC236UX7Suq/lHBLsikYuepu9CwI8wKE8kW+Wfag8A1oZMOLw==",
|
|
666
666
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
667
667
|
"dependencies": {
|
|
668
668
|
"@atlassian/atlassian-openapi": "^1.0.6",
|
|
669
|
-
"@forge/cli-shared": "8.
|
|
670
|
-
"@forge/csp": "5.
|
|
669
|
+
"@forge/cli-shared": "8.25.0-next.5-experimental-44b7a12",
|
|
670
|
+
"@forge/csp": "5.9.0-next.2-experimental-44b7a12",
|
|
671
671
|
"@forge/egress": "2.3.2",
|
|
672
|
-
"@forge/manifest": "12.
|
|
672
|
+
"@forge/manifest": "12.10.0-next.1-experimental-44b7a12",
|
|
673
673
|
"@typescript-eslint/typescript-estree": "^5.62.0",
|
|
674
674
|
"array.prototype.flatmap": "^1.3.3",
|
|
675
675
|
"cross-spawn": "^7.0.6",
|
|
@@ -677,16 +677,16 @@
|
|
|
677
677
|
}
|
|
678
678
|
},
|
|
679
679
|
"node_modules/@forge/manifest": {
|
|
680
|
-
"version": "12.
|
|
681
|
-
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-12.
|
|
682
|
-
"integrity": "sha512-
|
|
680
|
+
"version": "12.10.0-next.1-experimental-44b7a12",
|
|
681
|
+
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-12.10.0-next.1-experimental-44b7a12.tgz",
|
|
682
|
+
"integrity": "sha512-4qGLGkRORM5zcC18bItV9mEgdZ6V1OFMi0I/XJ51TadLCeQUEJNVGaxGxYjtjWDGEJ7PMGmBPT6DCvWS6JMjpA==",
|
|
683
683
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
684
684
|
"dependencies": {
|
|
685
685
|
"@forge/i18n": "0.0.7",
|
|
686
686
|
"@sentry/node": "7.106.0",
|
|
687
687
|
"ajv": "^8.18.0",
|
|
688
688
|
"ajv-formats": "2.1.1",
|
|
689
|
-
"cheerio": "^1.
|
|
689
|
+
"cheerio": "^1.2.0",
|
|
690
690
|
"glob": "^13.0.0",
|
|
691
691
|
"lodash": "^4.17.21",
|
|
692
692
|
"mime-types": "^2.1.35",
|
|
@@ -694,23 +694,23 @@
|
|
|
694
694
|
}
|
|
695
695
|
},
|
|
696
696
|
"node_modules/@forge/runtime": {
|
|
697
|
-
"version": "6.
|
|
698
|
-
"resolved": "https://registry.npmjs.org/@forge/runtime/-/runtime-6.
|
|
699
|
-
"integrity": "sha512-
|
|
697
|
+
"version": "6.2.0-next.0-experimental-44b7a12",
|
|
698
|
+
"resolved": "https://registry.npmjs.org/@forge/runtime/-/runtime-6.2.0-next.0-experimental-44b7a12.tgz",
|
|
699
|
+
"integrity": "sha512-6K+SivbGtUAvRDNyKoGX0A3Svw9lSH1z4WhSSiP9LFikQvYf/g6azCfERA5bT20W52trkTnvq+hsNJhBHqaCKQ==",
|
|
700
700
|
"license": "SEE LICENSE IN LICENSE.txt"
|
|
701
701
|
},
|
|
702
702
|
"node_modules/@forge/tunnel": {
|
|
703
|
-
"version": "6.
|
|
704
|
-
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-6.
|
|
705
|
-
"integrity": "sha512-
|
|
703
|
+
"version": "6.5.0-next.7-experimental-44b7a12",
|
|
704
|
+
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-6.5.0-next.7-experimental-44b7a12.tgz",
|
|
705
|
+
"integrity": "sha512-UH2GvcylsuIsdY+WRq6POmkJQeKWrGCfb/JNNFLVlFdFFNKjwAafT+QHPGr0WOYR2z/MoTA56QbunBdsTcdzqQ==",
|
|
706
706
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
707
707
|
"dependencies": {
|
|
708
|
-
"@forge/bundler": "6.2.
|
|
709
|
-
"@forge/cli-shared": "8.
|
|
710
|
-
"@forge/csp": "5.
|
|
711
|
-
"@forge/runtime": "6.
|
|
708
|
+
"@forge/bundler": "6.2.2-next.7-experimental-44b7a12",
|
|
709
|
+
"@forge/cli-shared": "8.25.0-next.5-experimental-44b7a12",
|
|
710
|
+
"@forge/csp": "5.9.0-next.2-experimental-44b7a12",
|
|
711
|
+
"@forge/runtime": "6.2.0-next.0-experimental-44b7a12",
|
|
712
712
|
"@forge/util": "^2.0.1",
|
|
713
|
-
"cheerio": "^1.
|
|
713
|
+
"cheerio": "^1.2.0",
|
|
714
714
|
"chokidar": "^3.6.0",
|
|
715
715
|
"cloudflared": "^0.7.0",
|
|
716
716
|
"docker-compose": "^1.3.0",
|
|
@@ -2558,24 +2558,24 @@
|
|
|
2558
2558
|
"integrity": "sha1-kAlISfCTfy7twkJdDSip5fDLrZ4= sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA=="
|
|
2559
2559
|
},
|
|
2560
2560
|
"node_modules/cheerio": {
|
|
2561
|
-
"version": "1.
|
|
2562
|
-
"resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.
|
|
2563
|
-
"integrity": "sha1-
|
|
2561
|
+
"version": "1.2.0",
|
|
2562
|
+
"resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.2.0.tgz",
|
|
2563
|
+
"integrity": "sha1-8jt3fEkCHq10ddzzOQ01Naf4ltY= sha512-WDrybc/gKFpTYQutKIK6UvfcuxijIZfMfXaYm8NMsPQxSYvf+13fXUJ4rztGGbJcBQ/GF55gvrZ0Bc0bj/mqvg==",
|
|
2564
2564
|
"dependencies": {
|
|
2565
2565
|
"cheerio-select": "^2.1.0",
|
|
2566
2566
|
"dom-serializer": "^2.0.0",
|
|
2567
2567
|
"domhandler": "^5.0.3",
|
|
2568
2568
|
"domutils": "^3.2.2",
|
|
2569
|
-
"encoding-sniffer": "^0.2.
|
|
2570
|
-
"htmlparser2": "^10.
|
|
2569
|
+
"encoding-sniffer": "^0.2.1",
|
|
2570
|
+
"htmlparser2": "^10.1.0",
|
|
2571
2571
|
"parse5": "^7.3.0",
|
|
2572
2572
|
"parse5-htmlparser2-tree-adapter": "^7.1.0",
|
|
2573
2573
|
"parse5-parser-stream": "^7.1.2",
|
|
2574
|
-
"undici": "^7.
|
|
2574
|
+
"undici": "^7.19.0",
|
|
2575
2575
|
"whatwg-mimetype": "^4.0.0"
|
|
2576
2576
|
},
|
|
2577
2577
|
"engines": {
|
|
2578
|
-
"node": ">=18.
|
|
2578
|
+
"node": ">=20.18.1"
|
|
2579
2579
|
},
|
|
2580
2580
|
"funding": {
|
|
2581
2581
|
"url": "https://github.com/cheeriojs/cheerio?sponsor=1"
|
|
@@ -4793,9 +4793,9 @@
|
|
|
4793
4793
|
}
|
|
4794
4794
|
},
|
|
4795
4795
|
"node_modules/htmlparser2": {
|
|
4796
|
-
"version": "10.
|
|
4797
|
-
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.
|
|
4798
|
-
"integrity": "sha1
|
|
4796
|
+
"version": "10.1.0",
|
|
4797
|
+
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.1.0.tgz",
|
|
4798
|
+
"integrity": "sha1-/j8uEsc7bkYtThA5XbnBEZ5NauQ= sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==",
|
|
4799
4799
|
"funding": [
|
|
4800
4800
|
"https://github.com/fb55/htmlparser2?sponsor=1",
|
|
4801
4801
|
{
|
|
@@ -4806,14 +4806,14 @@
|
|
|
4806
4806
|
"dependencies": {
|
|
4807
4807
|
"domelementtype": "^2.3.0",
|
|
4808
4808
|
"domhandler": "^5.0.3",
|
|
4809
|
-
"domutils": "^3.2.
|
|
4810
|
-
"entities": "^
|
|
4809
|
+
"domutils": "^3.2.2",
|
|
4810
|
+
"entities": "^7.0.1"
|
|
4811
4811
|
}
|
|
4812
4812
|
},
|
|
4813
4813
|
"node_modules/htmlparser2/node_modules/entities": {
|
|
4814
|
-
"version": "
|
|
4815
|
-
"resolved": "https://registry.npmjs.org/entities/-/entities-
|
|
4816
|
-
"integrity": "sha1-
|
|
4814
|
+
"version": "7.0.1",
|
|
4815
|
+
"resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz",
|
|
4816
|
+
"integrity": "sha1-JuioiInbY0F9y5oeeaPxvJK1l2s= sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==",
|
|
4817
4817
|
"engines": {
|
|
4818
4818
|
"node": ">=0.12"
|
|
4819
4819
|
},
|
|
@@ -8255,9 +8255,9 @@
|
|
|
8255
8255
|
}
|
|
8256
8256
|
},
|
|
8257
8257
|
"node_modules/undici": {
|
|
8258
|
-
"version": "7.
|
|
8259
|
-
"resolved": "https://registry.npmjs.org/undici/-/undici-7.
|
|
8260
|
-
"integrity": "sha1
|
|
8258
|
+
"version": "7.27.2",
|
|
8259
|
+
"resolved": "https://registry.npmjs.org/undici/-/undici-7.27.2.tgz",
|
|
8260
|
+
"integrity": "sha1-+PrpaO5oN3z8YXE9nNFSdzcWgE8= sha512-uZsKNuzQxDMUY6M3pIMvy5tvlGmtq8XJ2oLAkfRKGNu+1VQAIvLy2xIVG5ATZl5wDXl/tddByAWCizRbOme+TA==",
|
|
8261
8261
|
"engines": {
|
|
8262
8262
|
"node": ">=20.18.1"
|
|
8263
8263
|
}
|
|
@@ -77,13 +77,16 @@ export declare class Command<Args extends AnyArgs = [], Opts extends AnyOpts = D
|
|
|
77
77
|
precondition<More extends AnyOpts>(fn: PreconditionCallback<Args, Opts, More>): Command<Args, Opts & More>;
|
|
78
78
|
requireManifestFile(): Command<Args, Opts>;
|
|
79
79
|
requireAppId(): Command<Args, Opts>;
|
|
80
|
+
requireAppId(allowOverride: true): Command<Args, Opts & {
|
|
81
|
+
appIdOverride: string | undefined;
|
|
82
|
+
}>;
|
|
80
83
|
nonInteractiveOption(...args: string[]): Command<Args, Opts & {
|
|
81
84
|
nonInteractive?: boolean;
|
|
82
85
|
}>;
|
|
83
86
|
action(fn: (...args: ActionArgs<Args, Opts>) => ActionResult): Command<Args, Opts>;
|
|
84
87
|
parse(argv: string[]): Promise<void>;
|
|
85
88
|
private getExecutedForgeCommand;
|
|
86
|
-
environmentOption(): Command<Args, Opts & {
|
|
89
|
+
environmentOption(requireEnvironmentWithAppIdOverride?: boolean): Command<Args, Opts & {
|
|
87
90
|
environment: string;
|
|
88
91
|
}>;
|
|
89
92
|
contextOption(): Command<Args, Opts & {
|
|
@@ -127,6 +130,6 @@ export declare function validateContext({ supportedProductsService, site, produc
|
|
|
127
130
|
product?: SupportedProduct;
|
|
128
131
|
};
|
|
129
132
|
export declare function validateShardContext(shard?: string): string | undefined;
|
|
130
|
-
export declare function environmentPrecondition<T>(key: keyof T, environmentController: DefaultEnvironmentController): (...args: any) => Promise<T>;
|
|
133
|
+
export declare function environmentPrecondition<T>(key: keyof T, environmentController: DefaultEnvironmentController, requireEnvironmentWithAppIdOverride?: boolean): (...args: any) => Promise<T>;
|
|
131
134
|
export {};
|
|
132
135
|
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/command-line/command.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,cAAc,EAAU,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/command-line/command.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,cAAc,EAAU,MAAM,WAAW,CAAC;AAG9D,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAEL,MAAM,EAEN,UAAU,EAEV,gBAAgB,EAGhB,kBAAkB,EAClB,cAAc,EAEd,gBAAgB,EAChB,wBAAwB,EAGzB,MAAM,mBAAmB,CAAC;AAI3B,O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AC,EAAE,GAAG,CAAC;IAAC,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAAE,CAsB7C;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAUvE;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,GAAG,EAAE,MAAM,CAAC,EACZ,qBAAqB,EAAE,4BAA4B,EACnD,mCAAmC,UAAQ,GAC1C,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC,CAsB9B"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.environmentPrecondition = exports.validateShardContext = exports.validateContext = exports.getAutocompleteConfig = exports.Command = exports.WrapperError = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const commander_1 = tslib_1.__importStar(require("commander"));
|
|
6
|
+
const ari_1 = require("@forge/util/packages/ari");
|
|
6
7
|
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
7
8
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
8
9
|
const environment_1 = require("./environment");
|
|
@@ -163,7 +164,18 @@ class Command {
|
|
|
163
164
|
requireManifestFile() {
|
|
164
165
|
return this.precondition(this.preCommandController.verifyManifestExists());
|
|
165
166
|
}
|
|
166
|
-
requireAppId() {
|
|
167
|
+
requireAppId(allowOverride = false) {
|
|
168
|
+
if (allowOverride) {
|
|
169
|
+
const option = new commander_1.Option('--app-id-override <appId>', cli_shared_1.Text.appIdOverride.desription).argParser((value) => ari_1.EcosystemAppAri.create({ appId: value }).toString());
|
|
170
|
+
this.cmd.addOption(option);
|
|
171
|
+
return this.precondition(async (...args) => {
|
|
172
|
+
const { appIdOverride } = last(args);
|
|
173
|
+
if (!appIdOverride) {
|
|
174
|
+
return this.preCommandController.verifyManifestExistsWithAppConfig()();
|
|
175
|
+
}
|
|
176
|
+
return { appId: appIdOverride };
|
|
177
|
+
});
|
|
178
|
+
}
|
|
167
179
|
return this.precondition(this.preCommandController.verifyManifestExistsWithAppConfig());
|
|
168
180
|
}
|
|
169
181
|
nonInteractiveOption(...args) {
|
|
@@ -206,8 +218,8 @@ class Command {
|
|
|
206
218
|
}
|
|
207
219
|
return '';
|
|
208
220
|
}
|
|
209
|
-
environmentOption() {
|
|
210
|
-
return this.option('-e, --environment [environment]', cli_shared_1.Text.env.option).precondition(environmentPrecondition('environment', this.defaultEnvironmentController));
|
|
221
|
+
environmentOption(requireEnvironmentWithAppIdOverride = false) {
|
|
222
|
+
return this.option('-e, --environment [environment]', cli_shared_1.Text.env.option).precondition(environmentPrecondition('environment', this.defaultEnvironmentController, requireEnvironmentWithAppIdOverride));
|
|
211
223
|
}
|
|
212
224
|
contextOption() {
|
|
213
225
|
const supportedProductsService = this.supportedProductsService;
|
|
@@ -495,12 +507,19 @@ function validateShardContext(shard) {
|
|
|
495
507
|
return undefined;
|
|
496
508
|
}
|
|
497
509
|
exports.validateShardContext = validateShardContext;
|
|
498
|
-
function environmentPrecondition(key, environmentController) {
|
|
510
|
+
function environmentPrecondition(key, environmentController, requireEnvironmentWithAppIdOverride = false) {
|
|
499
511
|
return async (...args) => {
|
|
500
512
|
const lastArgs = last(args);
|
|
501
513
|
const environmentArg = lastArgs[key];
|
|
502
514
|
const nonInteractive = lastArgs.nonInteractive ?? false;
|
|
503
|
-
const
|
|
515
|
+
const appId = lastArgs.appId || lastArgs.appIdOverride;
|
|
516
|
+
if (!environmentArg && lastArgs.appIdOverride) {
|
|
517
|
+
if (requireEnvironmentWithAppIdOverride) {
|
|
518
|
+
throw new cli_shared_1.ValidationError(cli_shared_1.Text.appIdOverride.environmentRequired);
|
|
519
|
+
}
|
|
520
|
+
return {};
|
|
521
|
+
}
|
|
522
|
+
const environment = environmentArg || (await environmentController.run(nonInteractive, appId));
|
|
504
523
|
return { [key]: (0, environment_1.checkEnvironmentOption)(environment) };
|
|
505
524
|
};
|
|
506
525
|
}
|