@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 +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/infrastructure/load-node-posix-app-api.d.ts +1 -1
- package/dist/infrastructure/load-node-posix-app-api.d.ts.map +1 -1
- package/dist/posix-fs-dirvi-app.d.ts +1 -4
- package/dist/posix-fs-dirvi-app.d.ts.map +1 -1
- package/dist/posix-fs-dirvi-app.js +4 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -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
|
|
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 +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,
|
|
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
|
|
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
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
};
|