@mak-98/posix-fs-dirvi-app 0.11.0-beta.1 → 0.11.0-beta.2

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.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export { posixAppPlugin as default } from './posix-fs-dirvi-app.js';
2
2
  export { posixAppPlugin } from './posix-fs-dirvi-app.js';
3
- export type { PosixAppOpenInput } from './posix-fs-dirvi-app.js';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { PosixEntry, PosixName } from '../domain/posix-tree.js';
2
2
  import { UnixAbsolutePath } from '../domain/unix-path.js';
3
- import type { AppApi } from 'dirvi-lib';
3
+ import type { AppApi } from 'dirvi-apis';
4
4
  /**
5
5
  * Creates the AppApi for the POSIX app.
6
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"load-node-posix-app-api.d.ts","sourceRoot":"","sources":["../../src/infrastructure/load-node-posix-app-api.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,UAAU,EAEV,SAAS,EAQV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAwExC;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE,gBAAgB,CAAC,CA2CjD"}
1
+ {"version":3,"file":"load-node-posix-app-api.d.ts","sourceRoot":"","sources":["../../src/infrastructure/load-node-posix-app-api.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,UAAU,EAEV,SAAS,EAQV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAwEzC;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE,gBAAgB,CAAC,CA2CjD"}
@@ -1,9 +1,6 @@
1
1
  import type { AppPlugin } from 'dirvi-apis/plugin';
2
- export type PosixAppOpenInput = {
3
- readonly directory?: string;
4
- };
5
2
  /**
6
3
  * A dirvi app that exposes a POSIX filesystem as a navigable tree.
7
4
  */
8
- export declare const posixAppPlugin: AppPlugin<PosixAppOpenInput>;
5
+ export declare const posixAppPlugin: AppPlugin;
9
6
  //# sourceMappingURL=posix-fs-dirvi-app.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"posix-fs-dirvi-app.d.ts","sourceRoot":"","sources":["../src/posix-fs-dirvi-app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,CAAC,iBAAiB,CAYvD,CAAC"}
1
+ {"version":3,"file":"posix-fs-dirvi-app.d.ts","sourceRoot":"","sources":["../src/posix-fs-dirvi-app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,SAQ5B,CAAC"}
@@ -3,13 +3,10 @@ import { loadNodePosixAppApi } from './infrastructure/load-node-posix-app-api.js
3
3
  * A dirvi app that exposes a POSIX filesystem as a navigable tree.
4
4
  */
5
5
  export const posixAppPlugin = {
6
- id: 'posix',
7
- open({ directory }) {
8
- const appApi = loadNodePosixAppApi(directory);
9
- return {
10
- withAppApi(renderer) {
11
- return renderer.render(appApi);
12
- },
6
+ createAppApiApplicator: (input) => {
7
+ const appApi = loadNodePosixAppApi(input);
8
+ return (appApiConsumer) => {
9
+ return appApiConsumer(appApi);
13
10
  };
14
11
  },
15
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mak-98/posix-fs-dirvi-app",
3
- "version": "0.11.0-beta.1",
3
+ "version": "0.11.0-beta.2",
4
4
  "description": "POSIX filesystem app for dirvi.",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "type": "module",