@forge/bundler 4.6.8-next.1 → 4.6.8-next.3
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 +14 -0
- package/out/config/node.d.ts.map +1 -1
- package/out/config/node.js +6 -0
- package/out/stubs/http-impl.d.ts.map +1 -1
- package/out/stubs/http-impl.js +39 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @forge/bundler
|
|
2
2
|
|
|
3
|
+
## 4.6.8-next.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 490911c: Pass response headers from HTTP polyfill
|
|
8
|
+
|
|
9
|
+
## 4.6.8-next.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 79d5311: Allow omitting extensions in ESM imports on Node runtime
|
|
14
|
+
- @forge/cli-shared@3.11.2-next.2
|
|
15
|
+
- @forge/lint@3.3.2-next.2
|
|
16
|
+
|
|
3
17
|
## 4.6.8-next.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/out/config/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/config/node.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EAIpB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AAYvD,eAAO,MAAM,yBAAyB,gBACvB,mBAAmB,EAAE,UAC1B,aAAa,KACpB,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/config/node.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EAIpB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AAYvD,eAAO,MAAM,yBAAyB,gBACvB,mBAAmB,EAAE,UAC1B,aAAa,KACpB,mBA6DF,CAAC"}
|
package/out/config/node.js
CHANGED
|
@@ -33,6 +33,12 @@ const getNodeRuntimeBuildConfig = (entrypoints, config) => {
|
|
|
33
33
|
raw: true
|
|
34
34
|
}));
|
|
35
35
|
webpackConfig.name = exports.NODE_WEBPACK_CONFIG_NAME;
|
|
36
|
+
webpackConfig.module.rules.push({
|
|
37
|
+
test: /\.m?js$/,
|
|
38
|
+
resolve: {
|
|
39
|
+
fullySpecified: false
|
|
40
|
+
}
|
|
41
|
+
});
|
|
36
42
|
return webpackConfig;
|
|
37
43
|
};
|
|
38
44
|
exports.getNodeRuntimeBuildConfig = getNodeRuntimeBuildConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-impl.d.ts","sourceRoot":"","sources":["../../src/stubs/http-impl.ts"],"names":[],"mappings":";;;AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"http-impl.d.ts","sourceRoot":"","sources":["../../src/stubs/http-impl.ts"],"names":[],"mappings":";;;AAMA,OAAO,EAAuB,eAAe,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAY,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAe,YAAY,EAAS,MAAM,YAAY,CAAC;AAiE9D,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;CACH;AAMD,eAAO,MAAM,gBAAgB,YAAa,cAAc,GAAG,MAAM,GAAG,GAAG,8BAChC,CAAC;AAExC,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,OAAO,CAAC,OAAO,CAAW;IAC1B,OAAO,CAAC,gBAAgB,CAAmB;gBAE/B,OAAO,EAAE,cAAc,GAAG,MAAM,GAAG,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI;IAatF,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAM/C,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO;IAQhE,OAAO,CAAC,KAAK;IAsBN,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI;IAe3F,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM;IAUjD,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,GAAG,GAAG,GAAG,MAAM;IAiBvE,MAAM,CAAC,uBAAuB,CAC5B,OAAO,EAAE,cAAc,GAAG,MAAM,GAAG,GAAG,EACtC,gBAAgB,EAAE,gBAAgB,GACjC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,YAAY,CAAA;KAAE;IAuBtC,KAAK;CAGN;AAID,qBAAa,KAAK;gBACJ,OAAO,EAAE,YAAY;CAOlC"}
|
package/out/stubs/http-impl.js
CHANGED
|
@@ -3,12 +3,51 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Agent = exports.Request = exports.isRequestOptions = void 0;
|
|
4
4
|
const readable_stream_1 = require("readable-stream");
|
|
5
5
|
const api_1 = require("@forge/api");
|
|
6
|
+
const HEADERS_DISCARD_DUPLICATES = new Set([
|
|
7
|
+
'age',
|
|
8
|
+
'authorization',
|
|
9
|
+
'content-length',
|
|
10
|
+
'content-type',
|
|
11
|
+
'etag',
|
|
12
|
+
'expires',
|
|
13
|
+
'from',
|
|
14
|
+
'host',
|
|
15
|
+
'if-modified-since',
|
|
16
|
+
'if-unmodified-since',
|
|
17
|
+
'last-modified',
|
|
18
|
+
'location',
|
|
19
|
+
'max-forwards',
|
|
20
|
+
'proxy-authorization',
|
|
21
|
+
'referer',
|
|
22
|
+
'retry-after',
|
|
23
|
+
'server',
|
|
24
|
+
'user-agent'
|
|
25
|
+
]);
|
|
6
26
|
class Response extends readable_stream_1.Readable {
|
|
7
27
|
constructor(content, response) {
|
|
8
28
|
super();
|
|
9
29
|
this.statusCode = response.status;
|
|
10
30
|
this.statusMessage = response.statusText;
|
|
11
31
|
this.headers = {};
|
|
32
|
+
this.headersDistinct = {};
|
|
33
|
+
const rawHeaders = response.headers.raw();
|
|
34
|
+
for (const [name, values] of Object.entries(rawHeaders)) {
|
|
35
|
+
let value;
|
|
36
|
+
if (HEADERS_DISCARD_DUPLICATES.has(name)) {
|
|
37
|
+
value = values[0];
|
|
38
|
+
}
|
|
39
|
+
else if (name === 'set-cookie') {
|
|
40
|
+
value = values;
|
|
41
|
+
}
|
|
42
|
+
else if (name === 'cookie') {
|
|
43
|
+
value = values.join('; ');
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
value = values.join(', ');
|
|
47
|
+
}
|
|
48
|
+
this.headers[name] = value;
|
|
49
|
+
this.headersDistinct[name] = values;
|
|
50
|
+
}
|
|
12
51
|
this._read = () => { };
|
|
13
52
|
this.push(Buffer.from(content));
|
|
14
53
|
this.push(null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bundler",
|
|
3
|
-
"version": "4.6.8-next.
|
|
3
|
+
"version": "4.6.8-next.3",
|
|
4
4
|
"description": "Default bundler for Forge apps",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@babel/preset-typescript": "^7.16.7",
|
|
21
21
|
"@forge/api": "2.15.2",
|
|
22
22
|
"@forge/babel-plugin-transform-ui": "1.1.2",
|
|
23
|
-
"@forge/cli-shared": "3.11.2-next.
|
|
24
|
-
"@forge/lint": "3.3.2-next.
|
|
23
|
+
"@forge/cli-shared": "3.11.2-next.2",
|
|
24
|
+
"@forge/lint": "3.3.2-next.2",
|
|
25
25
|
"@forge/runtime": "4.3.3",
|
|
26
26
|
"@forge/util": "1.2.3",
|
|
27
27
|
"assert": "^1.1.1",
|