@forge/bundler 6.0.1-next.9 → 6.1.0-experimental-b2e5f99
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 +61 -0
- package/out/wrapper-provider.d.ts.map +1 -1
- package/out/wrapper-provider.js +2 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# @forge/bundler
|
|
2
2
|
|
|
3
|
+
## 6.1.0-experimental-b2e5f99
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [05d33ea]
|
|
8
|
+
- @forge/cli-shared@8.1.0-experimental-b2e5f99
|
|
9
|
+
- @forge/lint@5.9.1-experimental-b2e5f99
|
|
10
|
+
|
|
11
|
+
## 6.1.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- effab31: Bumped cheerio from 0.22 to 1.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 195411c: patch dependencies
|
|
20
|
+
- Updated dependencies [effab31]
|
|
21
|
+
- Updated dependencies [5d07fbf]
|
|
22
|
+
- Updated dependencies [4b15e26]
|
|
23
|
+
- Updated dependencies [634d7b9]
|
|
24
|
+
- Updated dependencies [620aea7]
|
|
25
|
+
- Updated dependencies [25a3da2]
|
|
26
|
+
- Updated dependencies [b9574d4]
|
|
27
|
+
- Updated dependencies [c3810aa]
|
|
28
|
+
- Updated dependencies [195411c]
|
|
29
|
+
- Updated dependencies [d97a252]
|
|
30
|
+
- Updated dependencies [46daa27]
|
|
31
|
+
- Updated dependencies [1479d2d]
|
|
32
|
+
- Updated dependencies [ca7e661]
|
|
33
|
+
- Updated dependencies [5ab2c49]
|
|
34
|
+
- Updated dependencies [609f68b]
|
|
35
|
+
- @forge/cli-shared@8.1.0
|
|
36
|
+
- @forge/manifest@10.1.0
|
|
37
|
+
- @forge/lint@5.9.1
|
|
38
|
+
- @forge/i18n@0.0.7
|
|
39
|
+
- @forge/util@1.4.10
|
|
40
|
+
|
|
41
|
+
## 6.1.0-next.11
|
|
42
|
+
|
|
43
|
+
### Minor Changes
|
|
44
|
+
|
|
45
|
+
- effab31: Bumped cheerio from 0.22 to 1.1
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [effab31]
|
|
50
|
+
- Updated dependencies [609f68b]
|
|
51
|
+
- @forge/cli-shared@8.1.0-next.9
|
|
52
|
+
- @forge/manifest@10.1.0-next.9
|
|
53
|
+
- @forge/lint@5.9.1-next.11
|
|
54
|
+
|
|
55
|
+
## 6.0.1-next.10
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- Updated dependencies [46daa27]
|
|
60
|
+
- @forge/manifest@10.1.0-next.8
|
|
61
|
+
- @forge/cli-shared@8.1.0-next.8
|
|
62
|
+
- @forge/lint@5.9.1-next.10
|
|
63
|
+
|
|
3
64
|
## 6.0.1-next.9
|
|
4
65
|
|
|
5
66
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapper-provider.d.ts","sourceRoot":"","sources":["../src/wrapper-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wrapper-provider.d.ts","sourceRoot":"","sources":["../src/wrapper-provider.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,SAAS,EAGT,cAAc,EACf,MAAM,mBAAmB,CAAC;AAW3B,qBAAa,yBAA0B,SAAQ,SAAS;;CAIvD;AAED,qBAAa,mBAAoB,SAAQ,SAAS;gBACpC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;CAGhD;AAED,qBAAa,yBAA0B,SAAQ,SAAS;gBAC1C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS;CAG3D;AAED,oBAAY,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,qBAAqB,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;IAChD,oBAAoB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAAC;CAC5D;AAOD,qBAAa,oBAAqB,YAAW,eAAe;IAExD,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,WAAW;gBADX,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,MAAM;YAExB,cAAc;IAatB,qBAAqB,IAAI,OAAO,CAAC,aAAa,CAAC;IAI/C,oBAAoB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;CAGjE;AAED,qBAAa,sBAAuB,YAAW,eAAe;IAKhD,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc;IAJ7D,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,MAAM,CAA4B;IAC1C,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEM,cAAc,EAAE,cAAc;YAI/C,sBAAsB;IAgBpC,OAAO,CAAC,cAAc,CAoCpB;IAEI,qBAAqB,IAAI,OAAO,CAAC,aAAa,CAAC;IAO/C,oBAAoB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;CAQjE;AAED,eAAO,MAAM,kBAAkB;sBAIX,gBAAgB;oBAClB,cAAc;mDAS/B,CAAC"}
|
package/out/wrapper-provider.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getWrapperProvider = exports.NetworkWrapperProvider = exports.LocalWrapperProvider = exports.ParseWrapperCDNIndexError = exports.WrapperNetworkError = exports.LocalWrapperNotFoundError = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
6
|
-
const cheerio_1 =
|
|
6
|
+
const cheerio_1 = require("cheerio");
|
|
7
7
|
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
|
|
8
8
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
9
9
|
var RuntimeCDN;
|
|
@@ -74,7 +74,7 @@ class NetworkWrapperProvider {
|
|
|
74
74
|
this.cdnUrl = (0, cli_shared_1.getEnvironmentConfig)(RuntimeCDN);
|
|
75
75
|
}
|
|
76
76
|
async getScriptPathFromIndex(htmlContent, requestId, scriptType) {
|
|
77
|
-
const html = cheerio_1.
|
|
77
|
+
const html = (0, cheerio_1.load)(htmlContent, { xml: { xmlMode: false } });
|
|
78
78
|
const scriptPath = html('script')
|
|
79
79
|
?.get()
|
|
80
80
|
?.find((asset) => asset.attribs['src']?.includes(scriptType))?.attribs['src'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bundler",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0-experimental-b2e5f99",
|
|
4
4
|
"description": "Default bundler for Forge apps",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"@babel/plugin-transform-numeric-separator": "^7.23.4",
|
|
19
19
|
"@babel/plugin-transform-optional-chaining": "^7.23.4",
|
|
20
20
|
"@babel/plugin-transform-react-jsx": "^7.23.4",
|
|
21
|
-
"@forge/cli-shared": "8.1.0-
|
|
22
|
-
"@forge/i18n": "0.0.7
|
|
23
|
-
"@forge/lint": "5.9.1-
|
|
24
|
-
"@forge/manifest": "10.
|
|
25
|
-
"@forge/util": "1.4.10
|
|
21
|
+
"@forge/cli-shared": "8.1.0-experimental-b2e5f99",
|
|
22
|
+
"@forge/i18n": "0.0.7",
|
|
23
|
+
"@forge/lint": "5.9.1-experimental-b2e5f99",
|
|
24
|
+
"@forge/manifest": "10.1.0",
|
|
25
|
+
"@forge/util": "1.4.10",
|
|
26
26
|
"babel-loader": "^8.3.0",
|
|
27
|
-
"cheerio": "^
|
|
27
|
+
"cheerio": "^1.1.0",
|
|
28
28
|
"cross-spawn": "^7.0.6",
|
|
29
29
|
"fs-extra": "^11.2.0",
|
|
30
30
|
"html-webpack-plugin": "^5.6.3",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@atlassian/xen-test-util": "^4.2.0",
|
|
41
|
-
"@forge/runtime": "6.0.1
|
|
41
|
+
"@forge/runtime": "6.0.1",
|
|
42
42
|
"@types/cross-spawn": "^6.0.6",
|
|
43
43
|
"@types/fs-extra": "^11.0.4",
|
|
44
44
|
"@types/jest": "^29.5.14",
|