@mak-98/xml-dirvi-app 0.0.0-stage → 0.11.0-beta.3
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/LICENSE +674 -0
- package/dist/domain/xml-tree.d.ts +271 -0
- package/dist/domain/xml-tree.d.ts.map +1 -0
- package/dist/domain/xml-tree.js +112 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/infrastructure/get-xml-entries.d.ts +19 -0
- package/dist/infrastructure/get-xml-entries.d.ts.map +1 -0
- package/dist/infrastructure/get-xml-entries.js +44 -0
- package/dist/infrastructure/load-node-xml-app-api.d.ts +10 -0
- package/dist/infrastructure/load-node-xml-app-api.d.ts.map +1 -0
- package/dist/infrastructure/load-node-xml-app-api.js +110 -0
- package/dist/infrastructure/load-node-xml-document.d.ts +6 -0
- package/dist/infrastructure/load-node-xml-document.d.ts.map +1 -0
- package/dist/infrastructure/load-node-xml-document.js +9 -0
- package/dist/infrastructure/parse-xml-document.d.ts +9 -0
- package/dist/infrastructure/parse-xml-document.d.ts.map +1 -0
- package/dist/infrastructure/parse-xml-document.js +26 -0
- package/dist/xml-dirvi-app.d.ts +6 -0
- package/dist/xml-dirvi-app.d.ts.map +1 -0
- package/dist/xml-dirvi-app.js +15 -0
- package/package.json +34 -3
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xml-dirvi-app.d.ts","sourceRoot":"","sources":["../src/xml-dirvi-app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,SAY1B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { loadNodeXmlAppApi } from './infrastructure/load-node-xml-app-api.js';
|
|
2
|
+
/**
|
|
3
|
+
* A dirvi app that exposes a POSIX filesystem as a navigable tree.
|
|
4
|
+
*/
|
|
5
|
+
export const xmlAppPlugin = {
|
|
6
|
+
createAppApiApplicator: (input) => {
|
|
7
|
+
if (input === undefined) {
|
|
8
|
+
throw new Error('xml-app: No file path to XML file given.');
|
|
9
|
+
}
|
|
10
|
+
const appApi = loadNodeXmlAppApi(input);
|
|
11
|
+
return (appApiConsumer) => {
|
|
12
|
+
return appApiConsumer(appApi);
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mak-98/xml-dirvi-app",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.11.0-beta.3",
|
|
4
|
+
"description": "XML file app for dirvi.",
|
|
5
|
+
"license": "GPL-3.0-or-later",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=22"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@rgrove/parse-xml": "^5.0.0",
|
|
23
|
+
"dirvi-apis": "0.11.0-beta.2",
|
|
24
|
+
"dirvi-lib": "0.11.0-beta.2",
|
|
25
|
+
"env-paths": "^4.0.0",
|
|
26
|
+
"zod": "^4.4.3"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/node": "^22.0.0",
|
|
30
|
+
"typescript": "^5.0.0"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc",
|
|
34
|
+
"typecheck": "tsc --noEmit",
|
|
35
|
+
"format": "prettier src --write"
|
|
36
|
+
}
|
|
6
37
|
}
|
package/README.md
DELETED