@thi.ng/egf 0.6.204 → 0.6.207
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 +2 -2
- package/api.js +2 -2
- package/package.json +14 -13
- package/parser.js +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 214 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -130,7 +130,7 @@ For Node.js REPL:
|
|
|
130
130
|
const egf = await import("@thi.ng/egf");
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 2.
|
|
133
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 2.62 KB
|
|
134
134
|
|
|
135
135
|
## Dependencies
|
|
136
136
|
|
package/api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isNode } from "@thi.ng/checks/is-node";
|
|
2
|
-
import {
|
|
2
|
+
import { unsupportedOp } from "@thi.ng/errors/unsupported";
|
|
3
3
|
const IS_NODE = isNode();
|
|
4
|
-
const NODE_ONLY = () =>
|
|
4
|
+
const NODE_ONLY = () => unsupportedOp("only available in NodeJS");
|
|
5
5
|
export {
|
|
6
6
|
IS_NODE,
|
|
7
7
|
NODE_ONLY
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/egf",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.207",
|
|
4
4
|
"description": "Extensible Graph Format",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/thi-ng/umbrella.git"
|
|
11
|
+
"url": "git+https://github.com/thi-ng/umbrella.git",
|
|
12
|
+
"directory": "packages/egf"
|
|
12
13
|
},
|
|
13
14
|
"homepage": "https://thi.ng/egf",
|
|
14
15
|
"funding": [
|
|
@@ -40,18 +41,18 @@
|
|
|
40
41
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/checks": "^3.8.
|
|
45
|
-
"@thi.ng/dot": "^2.1.
|
|
46
|
-
"@thi.ng/errors": "^2.6.
|
|
47
|
-
"@thi.ng/logger": "^3.2.
|
|
48
|
-
"@thi.ng/prefixes": "^2.3.
|
|
49
|
-
"@thi.ng/strings": "^3.9.
|
|
50
|
-
"@thi.ng/transducers-binary": "^2.1.
|
|
51
|
-
"@thi.ng/trie": "^2.0.
|
|
44
|
+
"@thi.ng/api": "^8.12.15",
|
|
45
|
+
"@thi.ng/checks": "^3.8.5",
|
|
46
|
+
"@thi.ng/dot": "^2.1.128",
|
|
47
|
+
"@thi.ng/errors": "^2.6.4",
|
|
48
|
+
"@thi.ng/logger": "^3.2.14",
|
|
49
|
+
"@thi.ng/prefixes": "^2.3.66",
|
|
50
|
+
"@thi.ng/strings": "^3.9.36",
|
|
51
|
+
"@thi.ng/transducers-binary": "^2.1.197",
|
|
52
|
+
"@thi.ng/trie": "^2.0.14"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
|
-
"@thi.ng/equiv": "^2.1.
|
|
55
|
+
"@thi.ng/equiv": "^2.1.105",
|
|
55
56
|
"@types/node": "^24.10.9",
|
|
56
57
|
"esbuild": "^0.27.2",
|
|
57
58
|
"typedoc": "^0.28.16",
|
|
@@ -111,5 +112,5 @@
|
|
|
111
112
|
"status": "alpha",
|
|
112
113
|
"year": 2020
|
|
113
114
|
},
|
|
114
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "8f50352caab9ec7757d645c0afa605dfb5427abe\n"
|
|
115
116
|
}
|
package/parser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { illegalState } from "@thi.ng/errors/illegal-state";
|
|
2
|
-
import {
|
|
2
|
+
import { unsupportedOp } from "@thi.ng/errors/unsupported";
|
|
3
3
|
import { NULL_LOGGER } from "@thi.ng/logger/null";
|
|
4
4
|
import * as $prefixes from "@thi.ng/prefixes";
|
|
5
5
|
import { unescape } from "@thi.ng/strings/escape";
|
|
@@ -77,7 +77,7 @@ const __parsePrefix = (line, ctx) => {
|
|
|
77
77
|
};
|
|
78
78
|
const __parseTag = (tag, body, ctx) => {
|
|
79
79
|
const parser = ctx.tags[tag] || ctx.defaultTag;
|
|
80
|
-
return parser ? parser(tag, body, ctx) :
|
|
80
|
+
return parser ? parser(tag, body, ctx) : unsupportedOp(`missing parser for tag: ${tag}`);
|
|
81
81
|
};
|
|
82
82
|
const __parseProp = (node, ctx, line, lines, i) => {
|
|
83
83
|
const idx0 = line[0] === " " ? 1 : 4;
|