fetch-har 8.1.5 → 9.0.0
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/dist/index.js +4 -4
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
-
exports
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
var data_urls_1 = require("@readme/data-urls");
|
|
15
15
|
var readable_stream_1 = require("readable-stream");
|
|
16
16
|
if (!globalThis.Blob) {
|
|
@@ -179,7 +179,7 @@ function fetchHAR(har, opts) {
|
|
|
179
179
|
* they won't know what the boundary to split on it.
|
|
180
180
|
*/
|
|
181
181
|
if (headers.has('Content-Type')) {
|
|
182
|
-
headers
|
|
182
|
+
headers.delete('Content-Type');
|
|
183
183
|
}
|
|
184
184
|
var form_1 = new FormData();
|
|
185
185
|
if (!isFormData(form_1)) {
|
|
@@ -216,7 +216,7 @@ function fetchHAR(har, opts) {
|
|
|
216
216
|
// that the FormData API can use it.
|
|
217
217
|
if (isBuffer(fileContents)) {
|
|
218
218
|
form_1.append(param.name, new File([fileContents], param.fileName, {
|
|
219
|
-
type: param.contentType || null
|
|
219
|
+
type: param.contentType || null,
|
|
220
220
|
}), param.fileName);
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
@@ -364,4 +364,4 @@ function fetchHAR(har, opts) {
|
|
|
364
364
|
options.headers = headers;
|
|
365
365
|
return fetch(requestURL, options);
|
|
366
366
|
}
|
|
367
|
-
exports
|
|
367
|
+
exports.default = fetchHAR;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fetch-har",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Make a fetch request from a HAR definition",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=16"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@jsdevtools/host-environment": "^2.1.2",
|
|
42
42
|
"@jsdevtools/karma-config": "^3.1.7",
|
|
43
|
-
"@readme/eslint-config": "^10.
|
|
43
|
+
"@readme/eslint-config": "^10.5.3",
|
|
44
44
|
"@types/chai": "^4.3.1",
|
|
45
|
-
"@types/express": "^4.17.
|
|
45
|
+
"@types/express": "^4.17.17",
|
|
46
46
|
"@types/mocha": "^10.0.0",
|
|
47
47
|
"@types/multer": "^1.4.7",
|
|
48
|
-
"@types/node": "^
|
|
48
|
+
"@types/node": "^20.2.5",
|
|
49
49
|
"@types/readable-stream": "^2.3.15",
|
|
50
50
|
"chai": "^4.3.4",
|
|
51
51
|
"datauri": "^4.1.0",
|
|
52
|
-
"eslint": "^8.
|
|
52
|
+
"eslint": "^8.41.0",
|
|
53
53
|
"express": "^4.18.1",
|
|
54
54
|
"fetch-mock": "^9.11.0",
|
|
55
55
|
"form-data": "^4.0.0",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"nock": "^13.3.0",
|
|
63
63
|
"node-fetch": "^2.6.0",
|
|
64
64
|
"nyc": "^15.1.0",
|
|
65
|
-
"prettier": "^2.8.
|
|
65
|
+
"prettier": "^2.8.7",
|
|
66
66
|
"temp-dir": "^2.0.0",
|
|
67
67
|
"ts-loader": "^8.4.0",
|
|
68
68
|
"ts-node": "^10.7.0",
|
|
69
|
-
"typescript": "^
|
|
70
|
-
"undici": "^5.
|
|
69
|
+
"typescript": "^5.0.4",
|
|
70
|
+
"undici": "^5.22.1",
|
|
71
71
|
"webpack": "^4.46.0"
|
|
72
72
|
},
|
|
73
73
|
"browserslist": [
|