mhtml-stream 1.0.3 → 1.0.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/README.md +4 -0
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -17,6 +17,10 @@ Usage
|
|
|
17
17
|
import { parseMhtml } from "mhtml-stream";
|
|
18
18
|
|
|
19
19
|
for await (const { headers, content } of parseMhtml(...)) {
|
|
20
|
+
// ... : an async iterable of ArrayBuffers. This is very similar to the
|
|
21
|
+
// interface of a ReadableStream, but is a little more platform agnostic
|
|
22
|
+
// given that node handles streams significantly differently.
|
|
23
|
+
|
|
20
24
|
// headers : a key-value object with the header information
|
|
21
25
|
|
|
22
26
|
// content : a Uint8Array of the raw data, if you want as a string, `new
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhtml-stream",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Zero dependency stream MHTML parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mhtml",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"type": "module",
|
|
25
25
|
"scripts": {
|
|
26
|
-
"fmt": "prettier --cache --write 'src/*.ts' '*.json' bundle.mjs",
|
|
26
|
+
"fmt": "pnpify prettier --cache --write 'src/*.ts' '*.json' bundle.mjs",
|
|
27
27
|
"lint:tsc": "pnpify tsc",
|
|
28
28
|
"lint:es": "pnpify eslint --cache 'src/*.ts'",
|
|
29
29
|
"lint:doc": "pnpify typedoc --emit none",
|
|
@@ -37,27 +37,27 @@
|
|
|
37
37
|
"base64-js": "^1.5.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@babel/core": "^7.22.
|
|
41
|
-
"@babel/preset-env": "^7.22.
|
|
40
|
+
"@babel/core": "^7.22.9",
|
|
41
|
+
"@babel/preset-env": "^7.22.9",
|
|
42
42
|
"@babel/preset-typescript": "^7.22.5",
|
|
43
43
|
"@types/base64-js": "^1.3.0",
|
|
44
|
-
"@types/jest": "^29.5.
|
|
45
|
-
"@types/node": "^20.
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
47
|
-
"@typescript-eslint/parser": "^
|
|
44
|
+
"@types/jest": "^29.5.3",
|
|
45
|
+
"@types/node": "^20.4.2",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
|
47
|
+
"@typescript-eslint/parser": "^6.1.0",
|
|
48
48
|
"@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.15",
|
|
49
|
-
"@yarnpkg/pnpify": "^4.0.0-rc.
|
|
50
|
-
"babel-jest": "^29.
|
|
49
|
+
"@yarnpkg/pnpify": "^4.0.0-rc.48",
|
|
50
|
+
"babel-jest": "^29.6.1",
|
|
51
51
|
"chalk": "5.3.0",
|
|
52
|
-
"esbuild": "^0.18.
|
|
53
|
-
"eslint": "^8.
|
|
52
|
+
"esbuild": "^0.18.14",
|
|
53
|
+
"eslint": "^8.45.0",
|
|
54
54
|
"eslint-config-prettier": "^8.8.0",
|
|
55
|
-
"eslint-plugin-jest": "^27.2.
|
|
55
|
+
"eslint-plugin-jest": "^27.2.3",
|
|
56
56
|
"eslint-plugin-spellcheck": "^0.0.20",
|
|
57
57
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
58
|
-
"jest": "^29.
|
|
59
|
-
"prettier": "^
|
|
60
|
-
"prettier-plugin-organize-imports": "^3.2.
|
|
58
|
+
"jest": "^29.6.1",
|
|
59
|
+
"prettier": "^3.0.0",
|
|
60
|
+
"prettier-plugin-organize-imports": "^3.2.3",
|
|
61
61
|
"typedoc": "^0.24.8",
|
|
62
62
|
"typescript": "5.1.6"
|
|
63
63
|
},
|