fetch-har 8.1.3 → 8.1.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 +53 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +11 -11
- package/src/index.ts +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
1
|
+
## <small>8.1.4 (2023-01-03)</small>
|
|
2
|
+
|
|
3
|
+
* chore(deps-dev): bump @readme/eslint-config from 10.1.0 to 10.1.1 (#331) ([75de615](https://github.com/readmeio/fetch-har/commit/75de615)), closes [#331](https://github.com/readmeio/fetch-har/issues/331)
|
|
4
|
+
* chore(deps-dev): bump @readme/eslint-config from 10.1.1 to 10.2.0 (#345) ([b791ce3](https://github.com/readmeio/fetch-har/commit/b791ce3)), closes [#345](https://github.com/readmeio/fetch-har/issues/345)
|
|
5
|
+
* chore(deps-dev): bump @readme/eslint-config from 9.0.0 to 10.1.0 (#312) ([27b53b8](https://github.com/readmeio/fetch-har/commit/27b53b8)), closes [#312](https://github.com/readmeio/fetch-har/issues/312)
|
|
6
|
+
* chore(deps-dev): bump @types/chai from 4.3.1 to 4.3.3 (#313) ([cfc65d0](https://github.com/readmeio/fetch-har/commit/cfc65d0)), closes [#313](https://github.com/readmeio/fetch-har/issues/313)
|
|
7
|
+
* chore(deps-dev): bump @types/express from 4.17.13 to 4.17.14 (#323) ([1fec46d](https://github.com/readmeio/fetch-har/commit/1fec46d)), closes [#323](https://github.com/readmeio/fetch-har/issues/323)
|
|
8
|
+
* chore(deps-dev): bump @types/mocha from 10.0.0 to 10.0.1 (#344) ([75d4db7](https://github.com/readmeio/fetch-har/commit/75d4db7)), closes [#344](https://github.com/readmeio/fetch-har/issues/344)
|
|
9
|
+
* chore(deps-dev): bump @types/mocha from 9.1.1 to 10.0.0 (#326) ([36c4b00](https://github.com/readmeio/fetch-har/commit/36c4b00)), closes [#326](https://github.com/readmeio/fetch-har/issues/326)
|
|
10
|
+
* chore(deps-dev): bump @types/node from 18.11.8 to 18.11.10 (#349) ([6479fbf](https://github.com/readmeio/fetch-har/commit/6479fbf)), closes [#349](https://github.com/readmeio/fetch-har/issues/349)
|
|
11
|
+
* chore(deps-dev): bump @types/node from 18.6.1 to 18.6.3 (#309) ([4cce975](https://github.com/readmeio/fetch-har/commit/4cce975)), closes [#309](https://github.com/readmeio/fetch-har/issues/309)
|
|
12
|
+
* chore(deps-dev): bump @types/node from 18.6.3 to 18.7.14 (#315) ([69679ac](https://github.com/readmeio/fetch-har/commit/69679ac)), closes [#315](https://github.com/readmeio/fetch-har/issues/315)
|
|
13
|
+
* chore(deps-dev): bump @types/node from 18.7.14 to 18.7.23 (#324) ([8c0c037](https://github.com/readmeio/fetch-har/commit/8c0c037)), closes [#324](https://github.com/readmeio/fetch-har/issues/324)
|
|
14
|
+
* chore(deps-dev): bump @types/node from 18.7.23 to 18.8.0 (#330) ([0174e1d](https://github.com/readmeio/fetch-har/commit/0174e1d)), closes [#330](https://github.com/readmeio/fetch-har/issues/330)
|
|
15
|
+
* chore(deps-dev): bump @types/node from 18.8.0 to 18.11.8 (#335) ([5a602b3](https://github.com/readmeio/fetch-har/commit/5a602b3)), closes [#335](https://github.com/readmeio/fetch-har/issues/335)
|
|
16
|
+
* chore(deps-dev): bump chai from 4.3.6 to 4.3.7 (#348) ([b427f19](https://github.com/readmeio/fetch-har/commit/b427f19)), closes [#348](https://github.com/readmeio/fetch-har/issues/348)
|
|
17
|
+
* chore(deps-dev): bump eslint from 8.20.0 to 8.23.0 (#318) ([5d6293b](https://github.com/readmeio/fetch-har/commit/5d6293b)), closes [#318](https://github.com/readmeio/fetch-har/issues/318)
|
|
18
|
+
* chore(deps-dev): bump eslint from 8.23.0 to 8.24.0 (#325) ([033eeec](https://github.com/readmeio/fetch-har/commit/033eeec)), closes [#325](https://github.com/readmeio/fetch-har/issues/325)
|
|
19
|
+
* chore(deps-dev): bump eslint from 8.24.0 to 8.26.0 (#339) ([8806ab8](https://github.com/readmeio/fetch-har/commit/8806ab8)), closes [#339](https://github.com/readmeio/fetch-har/issues/339)
|
|
20
|
+
* chore(deps-dev): bump eslint from 8.26.0 to 8.28.0 (#350) ([3440e1c](https://github.com/readmeio/fetch-har/commit/3440e1c)), closes [#350](https://github.com/readmeio/fetch-har/issues/350)
|
|
21
|
+
* chore(deps-dev): bump express from 4.18.1 to 4.18.2 (#338) ([acdc8ac](https://github.com/readmeio/fetch-har/commit/acdc8ac)), closes [#338](https://github.com/readmeio/fetch-har/issues/338)
|
|
22
|
+
* chore(deps-dev): bump mocha from 10.0.0 to 10.1.0 (#336) ([9e91790](https://github.com/readmeio/fetch-har/commit/9e91790)), closes [#336](https://github.com/readmeio/fetch-har/issues/336)
|
|
23
|
+
* chore(deps-dev): bump prettier from 2.7.1 to 2.8.0 (#347) ([22ce3c9](https://github.com/readmeio/fetch-har/commit/22ce3c9)), closes [#347](https://github.com/readmeio/fetch-har/issues/347)
|
|
24
|
+
* chore(deps-dev): bump typescript from 4.7.4 to 4.8.2 (#316) ([a5819c1](https://github.com/readmeio/fetch-har/commit/a5819c1)), closes [#316](https://github.com/readmeio/fetch-har/issues/316)
|
|
25
|
+
* chore(deps-dev): bump typescript from 4.8.2 to 4.8.4 (#327) ([2e1fdf1](https://github.com/readmeio/fetch-har/commit/2e1fdf1)), closes [#327](https://github.com/readmeio/fetch-har/issues/327)
|
|
26
|
+
* chore(deps-dev): bump typescript from 4.8.4 to 4.9.3 (#346) ([afa6122](https://github.com/readmeio/fetch-har/commit/afa6122)), closes [#346](https://github.com/readmeio/fetch-har/issues/346)
|
|
27
|
+
* chore(deps-dev): bump undici from 5.10.0 to 5.11.0 (#332) ([a020b27](https://github.com/readmeio/fetch-har/commit/a020b27)), closes [#332](https://github.com/readmeio/fetch-har/issues/332)
|
|
28
|
+
* chore(deps-dev): bump undici from 5.11.0 to 5.12.0 (#337) ([e4e3daf](https://github.com/readmeio/fetch-har/commit/e4e3daf)), closes [#337](https://github.com/readmeio/fetch-har/issues/337)
|
|
29
|
+
* chore(deps-dev): bump undici from 5.12.0 to 5.13.0 (#351) ([2f1da07](https://github.com/readmeio/fetch-har/commit/2f1da07)), closes [#351](https://github.com/readmeio/fetch-har/issues/351)
|
|
30
|
+
* chore(deps-dev): bump undici from 5.8.0 to 5.8.2 (#310) ([09a5241](https://github.com/readmeio/fetch-har/commit/09a5241)), closes [#310](https://github.com/readmeio/fetch-har/issues/310)
|
|
31
|
+
* chore(deps-dev): bump undici from 5.8.2 to 5.10.0 (#314) ([ad16183](https://github.com/readmeio/fetch-har/commit/ad16183)), closes [#314](https://github.com/readmeio/fetch-har/issues/314)
|
|
32
|
+
* chore(deps): bump @types/har-format from 1.2.8 to 1.2.9 (#322) ([4746a42](https://github.com/readmeio/fetch-har/commit/4746a42)), closes [#322](https://github.com/readmeio/fetch-har/issues/322)
|
|
33
|
+
* chore(deps): bump @types/har-format from 1.2.9 to 1.2.10 (#352) ([df4506a](https://github.com/readmeio/fetch-har/commit/df4506a)), closes [#352](https://github.com/readmeio/fetch-har/issues/352)
|
|
34
|
+
* chore(deps): bump actions/cache from 3.0.10 to 3.0.11 (#334) ([b4b9a7c](https://github.com/readmeio/fetch-har/commit/b4b9a7c)), closes [#334](https://github.com/readmeio/fetch-har/issues/334)
|
|
35
|
+
* chore(deps): bump actions/cache from 3.0.5 to 3.0.8 (#311) ([011f9d4](https://github.com/readmeio/fetch-har/commit/011f9d4)), closes [#311](https://github.com/readmeio/fetch-har/issues/311)
|
|
36
|
+
* chore(deps): bump actions/cache from 3.0.8 to 3.0.9 (#320) ([441c2a6](https://github.com/readmeio/fetch-har/commit/441c2a6)), closes [#320](https://github.com/readmeio/fetch-har/issues/320)
|
|
37
|
+
* chore(deps): bump actions/cache from 3.0.9 to 3.0.10 (#329) ([0d9bc07](https://github.com/readmeio/fetch-har/commit/0d9bc07)), closes [#329](https://github.com/readmeio/fetch-har/issues/329)
|
|
38
|
+
* chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 (#353) ([b987538](https://github.com/readmeio/fetch-har/commit/b987538)), closes [#353](https://github.com/readmeio/fetch-har/issues/353)
|
|
39
|
+
* chore(deps): bump engine.io and socket.io (#343) ([5e0451a](https://github.com/readmeio/fetch-har/commit/5e0451a)), closes [#343](https://github.com/readmeio/fetch-har/issues/343)
|
|
40
|
+
* chore(deps): bump formdata-node from 4.3.3 to 4.4.1 (#319) ([31ab620](https://github.com/readmeio/fetch-har/commit/31ab620)), closes [#319](https://github.com/readmeio/fetch-har/issues/319)
|
|
41
|
+
* chore(deps): bump loader-utils from 1.4.0 to 1.4.1 (#340) ([e90b650](https://github.com/readmeio/fetch-har/commit/e90b650)), closes [#340](https://github.com/readmeio/fetch-har/issues/340)
|
|
42
|
+
* chore(deps): bump loader-utils from 1.4.1 to 1.4.2 (#342) ([ca2e6d2](https://github.com/readmeio/fetch-har/commit/ca2e6d2)), closes [#342](https://github.com/readmeio/fetch-har/issues/342)
|
|
43
|
+
* chore(deps): bump socket.io-parser from 4.0.4 to 4.0.5 (#341) ([97cbd5b](https://github.com/readmeio/fetch-har/commit/97cbd5b)), closes [#341](https://github.com/readmeio/fetch-har/issues/341)
|
|
44
|
+
* chore(deps): bumping deps ([6636acd](https://github.com/readmeio/fetch-har/commit/6636acd))
|
|
45
|
+
* ci: formdata-node is esm only now so we cant use it ([b9b0b47](https://github.com/readmeio/fetch-har/commit/b9b0b47))
|
|
46
|
+
* ci: running unit tests on node 19 (#333) ([6f936da](https://github.com/readmeio/fetch-har/commit/6f936da)), closes [#333](https://github.com/readmeio/fetch-har/issues/333)
|
|
47
|
+
* ci: simplifying ci dep caching ([78a5f34](https://github.com/readmeio/fetch-har/commit/78a5f34))
|
|
48
|
+
* ci: stop testing on node 19 until it hits LTS ([864a10b](https://github.com/readmeio/fetch-har/commit/864a10b))
|
|
49
|
+
* ci: temp-dir is esm-only now ([15e96a0](https://github.com/readmeio/fetch-har/commit/15e96a0))
|
|
50
|
+
* ci: timing out browser tests at 5mins ([c53c161](https://github.com/readmeio/fetch-har/commit/c53c161))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
1
54
|
## <small>8.1.3 (2022-07-29)</small>
|
|
2
55
|
|
|
3
56
|
* chore: clenaing up some lengthy test comments ([7f797af](https://github.com/readmeio/fetch-har/commit/7f797af))
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { Har } from 'har-format';
|
|
3
|
-
export
|
|
3
|
+
export interface FetchHAROptions {
|
|
4
4
|
userAgent?: string;
|
|
5
5
|
files?: Record<string, Blob | Buffer>;
|
|
6
6
|
multipartEncoder?: any;
|
|
7
7
|
init?: RequestInit;
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
9
|
export default function fetchHAR(har: Har, opts?: FetchHAROptions): Promise<Response>;
|
package/dist/index.js
CHANGED
|
@@ -11,8 +11,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
exports.__esModule = true;
|
|
14
|
-
var readable_stream_1 = require("readable-stream");
|
|
15
14
|
var data_urls_1 = require("@readme/data-urls");
|
|
15
|
+
var readable_stream_1 = require("readable-stream");
|
|
16
16
|
if (!globalThis.Blob) {
|
|
17
17
|
try {
|
|
18
18
|
// eslint-disable-next-line @typescript-eslint/no-var-requires, import/no-extraneous-dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fetch-har",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.4",
|
|
4
4
|
"description": "Make a fetch request from a HAR definition",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -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": "^
|
|
43
|
+
"@readme/eslint-config": "^10.3.2",
|
|
44
44
|
"@types/chai": "^4.3.1",
|
|
45
|
-
"@types/express": "^4.17.
|
|
46
|
-
"@types/mocha": "^
|
|
45
|
+
"@types/express": "^4.17.15",
|
|
46
|
+
"@types/mocha": "^10.0.0",
|
|
47
47
|
"@types/multer": "^1.4.7",
|
|
48
|
-
"@types/node": "^18.
|
|
49
|
-
"@types/readable-stream": "^2.3.
|
|
48
|
+
"@types/node": "^18.11.18",
|
|
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.31.0",
|
|
53
53
|
"express": "^4.18.1",
|
|
54
54
|
"fetch-mock": "^9.11.0",
|
|
55
55
|
"form-data": "^4.0.0",
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
"formdata-node": "^4.3.2",
|
|
58
58
|
"har-examples": "^3.1.1",
|
|
59
59
|
"isomorphic-fetch": "^3.0.0",
|
|
60
|
-
"mocha": "^10.
|
|
60
|
+
"mocha": "^10.2.0",
|
|
61
61
|
"multer": "^1.4.5-lts.1",
|
|
62
62
|
"nock": "^13.2.4",
|
|
63
63
|
"node-fetch": "^2.6.0",
|
|
64
64
|
"nyc": "^15.1.0",
|
|
65
|
-
"prettier": "^2.
|
|
65
|
+
"prettier": "^2.8.1",
|
|
66
66
|
"temp-dir": "^2.0.0",
|
|
67
67
|
"ts-loader": "^8.4.0",
|
|
68
68
|
"ts-node": "^10.7.0",
|
|
69
|
-
"typescript": "^4.
|
|
70
|
-
"undici": "^5.
|
|
69
|
+
"typescript": "^4.9.4",
|
|
70
|
+
"undici": "^5.14.0",
|
|
71
71
|
"webpack": "^4.46.0"
|
|
72
72
|
},
|
|
73
73
|
"browserslist": [
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { Har } from 'har-format';
|
|
2
1
|
import type { DataURL as npmDataURL } from '@readme/data-urls';
|
|
3
|
-
import {
|
|
2
|
+
import type { Har } from 'har-format';
|
|
3
|
+
|
|
4
4
|
import { parse as parseDataUrl } from '@readme/data-urls';
|
|
5
|
+
import { Readable } from 'readable-stream';
|
|
5
6
|
|
|
6
7
|
if (!globalThis.Blob) {
|
|
7
8
|
try {
|
|
@@ -36,12 +37,12 @@ if (!globalThis.FormData) {
|
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
export
|
|
40
|
+
export interface FetchHAROptions {
|
|
40
41
|
userAgent?: string;
|
|
41
42
|
files?: Record<string, Blob | Buffer>;
|
|
42
43
|
multipartEncoder?: any; // form-data-encoder
|
|
43
44
|
init?: RequestInit;
|
|
44
|
-
}
|
|
45
|
+
}
|
|
45
46
|
|
|
46
47
|
type DataURL = npmDataURL & {
|
|
47
48
|
// `parse-data-url` doesn't explicitly support `name` in data URLs but if it's there it'll be
|