@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.
@@ -0,0 +1,6 @@
1
+ import type { AppPlugin } from 'dirvi-apis/plugin';
2
+ /**
3
+ * A dirvi app that exposes a POSIX filesystem as a navigable tree.
4
+ */
5
+ export declare const xmlAppPlugin: AppPlugin;
6
+ //# sourceMappingURL=xml-dirvi-app.d.ts.map
@@ -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.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
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
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.