@lowlighter/xml 5.4.8 → 5.4.10
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/_types.ts +12 -0
- package/deno.jsonc +11 -10
- package/deno.lock +12 -47
- package/mod.mjs +1 -1
- package/package.json +1 -1
- package/parse.mjs +1 -1
- package/parse.ts +3 -6
- package/stringify.ts +2 -5
- package/wasm_xml_parser/wasm_xml_parser.js +1 -1
package/_types.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Imports
|
|
2
|
+
import type { Nullable } from "@libs/typing"
|
|
3
|
+
|
|
1
4
|
/** XML text node. */
|
|
2
5
|
export type xml_text = {
|
|
3
6
|
/** Parent node. */
|
|
@@ -35,3 +38,12 @@ export type xml_document = xml_node & {
|
|
|
35
38
|
/** XML instructions. */
|
|
36
39
|
["#instructions"]?: { [key: string]: xml_node | Array<xml_node> }
|
|
37
40
|
}
|
|
41
|
+
|
|
42
|
+
/** Synchronous reader. */
|
|
43
|
+
export type ReaderSync = { readSync(buffer: Uint8Array): Nullable<number> }
|
|
44
|
+
|
|
45
|
+
/** A laxer type for what can be stringified. We won’t ever create this, but we’ll accept it. */
|
|
46
|
+
export type stringifyable = Partial<Omit<xml_document, "@version" | "@standalone"> & { "@version": string; "@standalone": string }>
|
|
47
|
+
|
|
48
|
+
// Exports
|
|
49
|
+
export type { Nullable }
|
package/deno.jsonc
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"icon": "📃",
|
|
3
3
|
"name": "@libs/xml",
|
|
4
|
-
"version": "5.4.
|
|
4
|
+
"version": "5.4.10",
|
|
5
5
|
"description": "XML parser/stringifier with no dependencies.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"xml",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"./stringify": "./stringify.ts"
|
|
34
34
|
},
|
|
35
35
|
"imports": {
|
|
36
|
-
"@std/fs/expand-glob": "jsr:@std/fs@0.229.
|
|
37
|
-
"@std/fs/exists": "jsr:@std/fs@0.229.
|
|
38
|
-
"@std/path/from-file-url": "jsr:@std/path@0.225.
|
|
36
|
+
"@std/fs/expand-glob": "jsr:@std/fs@0.229.3/expand-glob",
|
|
37
|
+
"@std/fs/exists": "jsr:@std/fs@0.229.3/exists",
|
|
38
|
+
"@std/path/from-file-url": "jsr:@std/path@0.225.2/from-file-url",
|
|
39
39
|
"@libs/typing": "jsr:@libs/typing@2",
|
|
40
|
-
"@libs/testing": "jsr:@libs/testing@
|
|
40
|
+
"@libs/testing": "jsr:@libs/testing@2"
|
|
41
41
|
},
|
|
42
42
|
"test:permissions": {
|
|
43
43
|
"read": true,
|
|
@@ -57,12 +57,13 @@
|
|
|
57
57
|
"tasks": {
|
|
58
58
|
"build": "deno run --allow-read --allow-net --allow-env --allow-write --allow-run jsr:@libs/bundle/wasm/cli/build --auto-install --banner='https://github.com/lowlighter/libs' wasm_xml_parser",
|
|
59
59
|
"test": "deno test --allow-read --allow-env=CI --allow-write=bench --allow-run=deno,node,bun,npx --no-prompt --coverage --clean --trace-leaks --doc",
|
|
60
|
-
"dev": "deno fmt && deno task test --filter='/^\\[deno\\]/' && deno coverage --exclude=.js --detailed && deno lint
|
|
61
|
-
"dev:future": "DENO_FUTURE=1 && deno task dev",
|
|
62
|
-
"coverage": "deno task test --filter='/^\\[deno\\]/' --quiet && deno coverage --exclude=.js",
|
|
60
|
+
"dev": "deno fmt && deno task test --filter='/^\\[deno\\]/' && deno coverage --exclude=.js --detailed && deno task lint",
|
|
63
61
|
"bench": "deno bench --allow-read --allow-write=bench",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
62
|
+
"test:deno": "deno fmt --check && deno task test --filter='/^\\[deno\\]/' --quiet && deno coverage --exclude=.js && deno lint",
|
|
63
|
+
"test:deno-future": "DENO_FUTURE=1 && deno task test:deno",
|
|
64
|
+
"test:others": "deno fmt --check && deno task test --filter='/^\\[node|bun \\]/' --quiet && deno coverage --exclude=.js && deno lint",
|
|
65
|
+
"coverage:html": "deno fmt --check && deno task test --filter='/^\\[deno\\]/' --quiet && deno coverage --exclude=.js && deno lint",
|
|
66
|
+
"lint": "deno fmt --check && deno lint && deno doc --lint mod.ts && deno publish --dry-run --quiet --allow-dirty"
|
|
66
67
|
},
|
|
67
68
|
"lint": {
|
|
68
69
|
"rules": {
|
package/deno.lock
CHANGED
|
@@ -2,64 +2,29 @@
|
|
|
2
2
|
"version": "3",
|
|
3
3
|
"packages": {
|
|
4
4
|
"specifiers": {
|
|
5
|
-
"jsr:@libs/
|
|
6
|
-
"jsr:@
|
|
7
|
-
"jsr:@std/
|
|
8
|
-
"jsr:@std/expect@0.224.0": "jsr:@std/expect@0.224.0",
|
|
9
|
-
"jsr:@std/fmt@^0.224.0": "jsr:@std/fmt@0.224.0",
|
|
10
|
-
"jsr:@std/fs@0.229.1": "jsr:@std/fs@0.229.1",
|
|
11
|
-
"jsr:@std/internal@^0.224.0": "jsr:@std/internal@0.224.0",
|
|
12
|
-
"jsr:@std/path@0.225.1": "jsr:@std/path@0.225.1",
|
|
13
|
-
"npm:@types/node": "npm:@types/node@18.16.19"
|
|
5
|
+
"jsr:@libs/typing@2": "jsr:@libs/typing@2.3.0",
|
|
6
|
+
"jsr:@std/fs@0.229.3": "jsr:@std/fs@0.229.3",
|
|
7
|
+
"jsr:@std/path@0.225.2": "jsr:@std/path@0.225.2"
|
|
14
8
|
},
|
|
15
9
|
"jsr": {
|
|
16
|
-
"@libs/
|
|
17
|
-
"integrity": "
|
|
18
|
-
"dependencies": [
|
|
19
|
-
"jsr:@std/expect@0.224.0"
|
|
20
|
-
]
|
|
10
|
+
"@libs/typing@2.3.0": {
|
|
11
|
+
"integrity": "8a03098b2d63763bc3b45b58f6e847d9c085405db83330c588aecb6b670587d0"
|
|
21
12
|
},
|
|
22
|
-
"@
|
|
23
|
-
"integrity": "
|
|
13
|
+
"@std/fs@0.229.3": {
|
|
14
|
+
"integrity": "783bca21f24da92e04c3893c9e79653227ab016c48e96b3078377ebd5222e6eb"
|
|
24
15
|
},
|
|
25
|
-
"@std/
|
|
26
|
-
"integrity": "
|
|
27
|
-
},
|
|
28
|
-
"@std/expect@0.224.0": {
|
|
29
|
-
"integrity": "54bc071f7edcbd7bb4531f913e466e5ec3642f401dc3771fe5975f0693f25969",
|
|
30
|
-
"dependencies": [
|
|
31
|
-
"jsr:@std/assert@^0.224.0",
|
|
32
|
-
"jsr:@std/fmt@^0.224.0",
|
|
33
|
-
"jsr:@std/internal@^0.224.0"
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"@std/fmt@0.224.0": {
|
|
37
|
-
"integrity": "e20e9a2312a8b5393272c26191c0a68eda8d2c4b08b046bad1673148f1d69851"
|
|
38
|
-
},
|
|
39
|
-
"@std/fs@0.229.1": {
|
|
40
|
-
"integrity": "38d3fb31f0ca0a8c1118e039939188f32e291a3f7f17dc0868fec22024bdfadd"
|
|
41
|
-
},
|
|
42
|
-
"@std/internal@0.224.0": {
|
|
43
|
-
"integrity": "afc50644f9cdf4495eeb80523a8f6d27226b4b36c45c7c195dfccad4b8509291"
|
|
44
|
-
},
|
|
45
|
-
"@std/path@0.225.1": {
|
|
46
|
-
"integrity": "8c3220635a73730eb51fe43de9e10b79e2724a5bb8638b9355d35ae012fd9429"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"npm": {
|
|
50
|
-
"@types/node@18.16.19": {
|
|
51
|
-
"integrity": "sha512-IXl7o+R9iti9eBW4Wg2hx1xQDig183jj7YLn8F7udNceyfkbn1ZxmzZXuak20gR40D7pIkIY1kYGx5VIGbaHKA==",
|
|
52
|
-
"dependencies": {}
|
|
16
|
+
"@std/path@0.225.2": {
|
|
17
|
+
"integrity": "0f2db41d36b50ef048dcb0399aac720a5348638dd3cb5bf80685bf2a745aa506"
|
|
53
18
|
}
|
|
54
19
|
}
|
|
55
20
|
},
|
|
56
21
|
"remote": {},
|
|
57
22
|
"workspace": {
|
|
58
23
|
"dependencies": [
|
|
59
|
-
"jsr:@libs/testing@
|
|
24
|
+
"jsr:@libs/testing@2",
|
|
60
25
|
"jsr:@libs/typing@2",
|
|
61
|
-
"jsr:@std/fs@0.229.
|
|
62
|
-
"jsr:@std/path@0.225.
|
|
26
|
+
"jsr:@std/fs@0.229.3",
|
|
27
|
+
"jsr:@std/path@0.225.2"
|
|
63
28
|
]
|
|
64
29
|
}
|
|
65
30
|
}
|