@glion/annotate-delimiters 0.15.3 → 0.19.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 +14 -9
- package/dist/index.js.map +1 -1
- package/package.json +16 -16
package/dist/index.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { delimiters } from "@glion/util-query";
|
|
2
|
+
//#region src/index.ts
|
|
2
3
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
* Unified plugin that derives delimiters from MSH-1/MSH-2
|
|
5
|
+
* and stores them on `file.data.delimiters`.
|
|
6
|
+
*
|
|
7
|
+
* Run this early in the pipeline so downstream plugins
|
|
8
|
+
* can read `file.data.delimiters` without re-deriving.
|
|
9
|
+
*/
|
|
10
|
+
const hl7v2AnnotateDelimiters = () => (tree, file) => {
|
|
11
|
+
file.data.delimiters = delimiters(tree);
|
|
12
|
+
return tree;
|
|
12
13
|
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { hl7v2AnnotateDelimiters };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { Root } from \"@glion/ast\";\nimport { delimiters } from \"@glion/util-query\";\nimport type { Plugin } from \"unified\";\nimport type { VFile } from \"vfile\";\n\n/**\n * Unified plugin that derives delimiters from MSH-1/MSH-2\n * and stores them on `file.data.delimiters`.\n *\n * Run this early in the pipeline so downstream plugins\n * can read `file.data.delimiters` without re-deriving.\n */\nexport const hl7v2AnnotateDelimiters: Plugin<[], Root, Root> =\n () => (tree: Root, file: VFile) => {\n file.data.delimiters = delimiters(tree);\n return tree;\n };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { Root } from \"@glion/ast\";\nimport { delimiters } from \"@glion/util-query\";\nimport type { Plugin } from \"unified\";\nimport type { VFile } from \"vfile\";\n\n/**\n * Unified plugin that derives delimiters from MSH-1/MSH-2\n * and stores them on `file.data.delimiters`.\n *\n * Run this early in the pipeline so downstream plugins\n * can read `file.data.delimiters` without re-deriving.\n */\nexport const hl7v2AnnotateDelimiters: Plugin<[], Root, Root> =\n () => (tree: Root, file: VFile) => {\n file.data.delimiters = delimiters(tree);\n return tree;\n };\n"],"mappings":";;;;;;;;;AAYA,MAAa,iCACJ,MAAY,SAAgB;AACjC,MAAK,KAAK,aAAa,WAAW,KAAK;AACvC,QAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glion/annotate-delimiters",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Unified plugin to annotate file.data with HL7v2 delimiters derived from MSH-1/MSH-2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,30 +19,30 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@glion/util-query": "0.
|
|
22
|
+
"@glion/util-query": "0.19.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@types/node": "
|
|
26
|
-
"@vitest/coverage-v8": "4.1.
|
|
25
|
+
"@types/node": "25.6.0",
|
|
26
|
+
"@vitest/coverage-v8": "4.1.11",
|
|
27
27
|
"publint": "0.3.18",
|
|
28
|
-
"
|
|
29
|
-
"typescript": "
|
|
28
|
+
"tsdown": "0.21.10",
|
|
29
|
+
"typescript": "6.0.3",
|
|
30
30
|
"unified": "^11.0.5",
|
|
31
31
|
"vfile": "^6.0.3",
|
|
32
|
-
"vitest": "4.1.
|
|
33
|
-
"@glion/ast": "0.
|
|
34
|
-
"@glion/builder": "0.
|
|
35
|
-
"@glion/check-readme": "0.
|
|
36
|
-
"@glion/testing": "0.
|
|
37
|
-
"@glion/tsconfig": "0.
|
|
38
|
-
"@glion/utils": "0.
|
|
32
|
+
"vitest": "4.1.11",
|
|
33
|
+
"@glion/ast": "0.19.0",
|
|
34
|
+
"@glion/builder": "0.19.0",
|
|
35
|
+
"@glion/check-readme": "0.18.0",
|
|
36
|
+
"@glion/testing": "0.18.0",
|
|
37
|
+
"@glion/tsconfig": "0.18.0",
|
|
38
|
+
"@glion/utils": "0.19.0"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
|
-
"node": ">=
|
|
41
|
+
"node": ">=22"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
|
-
"build": "
|
|
45
|
-
"check-types": "tsc --noEmit",
|
|
44
|
+
"build": "tsdown && tsc --emitDeclarationOnly",
|
|
45
|
+
"check-types": "tsc --noEmit && tsc --noEmit -p tests/tsconfig.json",
|
|
46
46
|
"check:readme": "glion-check-readme",
|
|
47
47
|
"test": "vitest run",
|
|
48
48
|
"test:watch": "vitest watch",
|