@adviser/cement 0.2.28 → 0.2.30
Sign up to get free protection for your applications and to get access to all the features.
- package/{base-sys-abstraction-C9WW3w57.d.cts → base-sys-abstraction-BkEiLHl0.d.ts} +8 -4
- package/{base-sys-abstraction-C9WW3w57.d.ts → base-sys-abstraction-Qj7pkY1N.d.cts} +8 -4
- package/{chunk-OXD3YZZ7.js → chunk-7KFVMTOS.js} +3 -47
- package/chunk-7KFVMTOS.js.map +1 -0
- package/{chunk-P5RXA4C4.js → chunk-GES3MUGV.js} +24 -27
- package/{chunk-LCPYQVWT.js.map → chunk-GES3MUGV.js.map} +1 -1
- package/{chunk-YDIUMYIE.js → chunk-Q65HLCNL.js} +8 -7
- package/chunk-Q65HLCNL.js.map +1 -0
- package/{chunk-DPIL5UIL.js → chunk-WMMUXBDX.js} +6 -2
- package/chunk-WMMUXBDX.js.map +1 -0
- package/{index-Dhb2fQiw.d.cts → index-Q3phXzYr.d.cts} +2 -21
- package/{index-CcsGcehs.d.ts → index-tIGZMHTc.d.ts} +2 -21
- package/index.cjs +288 -7345
- package/index.cjs.map +1 -1
- package/index.d.cts +74 -12
- package/index.d.ts +74 -12
- package/index.js +239 -7266
- package/index.js.map +1 -1
- package/node/index.cjs +220 -39
- package/node/index.cjs.map +1 -1
- package/node/index.d.cts +22 -4
- package/node/index.d.ts +22 -4
- package/node/index.js +201 -25
- package/node/index.js.map +1 -1
- package/package.json +34 -23
- package/src/LICENSE +201 -0
- package/src/README.md +39 -0
- package/src/base-sys-abstraction.ts +242 -0
- package/src/bin2text.ts +47 -0
- package/src/crypto.ts +125 -0
- package/src/file-service.ts +24 -0
- package/src/future.ts +27 -0
- package/src/index.ts +23 -0
- package/src/jsr.json +22 -0
- package/src/log-level-impl.ts +87 -0
- package/src/log-writer-impl.ts +58 -0
- package/src/logger-impl.ts +498 -0
- package/src/logger.ts +208 -0
- package/src/node/deno-file-service.ts +92 -0
- package/src/node/deno-sys-abstraction.ts +133 -0
- package/src/node/index.ts +4 -0
- package/src/node/mock-file-service.ts +45 -0
- package/src/node/node-file-service.ts +91 -0
- package/src/node/node-sys-abstraction.ts +121 -0
- package/src/option.ts +60 -0
- package/src/refcounted.ts +23 -0
- package/src/resolve-once.ts +179 -0
- package/src/result.ts +165 -0
- package/src/runtime.ts +36 -0
- package/src/sys-abstraction.ts +53 -0
- package/src/sys-env.ts +216 -0
- package/src/test/log-write-stream.ts +95 -0
- package/src/test/mock-logger.ts +40 -0
- package/src/time.ts +20 -0
- package/src/tracer.ts +222 -0
- package/src/txt-en-decoder.ts +21 -0
- package/src/uri.ts +421 -0
- package/src/utils/console-write-stream.ts +72 -0
- package/src/utils/fanout-write-stream.ts +32 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/rebuffer.ts +75 -0
- package/src/utils/stream-map.ts +67 -0
- package/src/utils/stream2string.ts +47 -0
- package/src/utils/string2stream.ts +14 -0
- package/src/version.ts +3 -0
- package/src/web/index.ts +1 -0
- package/src/web/web-sys-abstraction.ts +80 -0
- package/ts/base-sys-abstraction.d.ts +84 -0
- package/ts/base-sys-abstraction.d.ts.map +1 -0
- package/ts/base-sys-abstraction.js +178 -0
- package/ts/base-sys-abstraction.js.map +1 -0
- package/ts/base-sys-abstraction.test.d.ts +2 -0
- package/ts/base-sys-abstraction.test.d.ts.map +1 -0
- package/ts/base-sys-abstraction.test.js +82 -0
- package/ts/base-sys-abstraction.test.js.map +1 -0
- package/ts/bin2text.d.ts +3 -0
- package/ts/bin2text.d.ts.map +1 -0
- package/ts/bin2text.js +43 -0
- package/ts/bin2text.js.map +1 -0
- package/ts/bin2text.test.d.ts +2 -0
- package/ts/bin2text.test.d.ts.map +1 -0
- package/ts/bin2text.test.js +51 -0
- package/ts/bin2text.test.js.map +1 -0
- package/ts/crypto.d.ts +76 -0
- package/ts/crypto.d.ts.map +1 -0
- package/ts/crypto.js +22 -0
- package/ts/crypto.js.map +1 -0
- package/ts/crypto.test.d.ts +2 -0
- package/ts/crypto.test.d.ts.map +1 -0
- package/ts/crypto.test.js +14 -0
- package/ts/crypto.test.js.map +1 -0
- package/ts/file-service.d.ts +17 -0
- package/ts/file-service.d.ts.map +1 -0
- package/ts/file-service.js +2 -0
- package/ts/file-service.js.map +1 -0
- package/ts/future.d.ts +8 -0
- package/ts/future.d.ts.map +1 -0
- package/ts/future.js +38 -0
- package/ts/future.js.map +1 -0
- package/ts/future.test.d.ts +2 -0
- package/ts/future.test.d.ts.map +1 -0
- package/ts/future.test.js +28 -0
- package/ts/future.test.js.map +1 -0
- package/ts/index.d.ts +24 -0
- package/ts/index.d.ts.map +1 -0
- package/ts/index.js +24 -0
- package/ts/index.js.map +1 -0
- package/ts/log-level-impl.d.ts +14 -0
- package/ts/log-level-impl.d.ts.map +1 -0
- package/ts/log-level-impl.js +72 -0
- package/ts/log-level-impl.js.map +1 -0
- package/ts/log-writer-impl.d.ts +10 -0
- package/ts/log-writer-impl.d.ts.map +1 -0
- package/ts/log-writer-impl.js +45 -0
- package/ts/log-writer-impl.js.map +1 -0
- package/ts/logger-impl.d.ts +71 -0
- package/ts/logger-impl.d.ts.map +1 -0
- package/ts/logger-impl.js +412 -0
- package/ts/logger-impl.js.map +1 -0
- package/ts/logger.d.ts +84 -0
- package/ts/logger.d.ts.map +1 -0
- package/ts/logger.js +114 -0
- package/ts/logger.js.map +1 -0
- package/ts/logger.test.d.ts +2 -0
- package/ts/logger.test.d.ts.map +1 -0
- package/ts/logger.test.js +1023 -0
- package/ts/logger.test.js.map +1 -0
- package/ts/node/deno-file-service.d.ts +17 -0
- package/ts/node/deno-file-service.d.ts.map +1 -0
- package/ts/node/deno-file-service.js +65 -0
- package/ts/node/deno-file-service.js.map +1 -0
- package/ts/node/deno-sys-abstraction.d.ts +22 -0
- package/ts/node/deno-sys-abstraction.d.ts.map +1 -0
- package/ts/node/deno-sys-abstraction.js +101 -0
- package/ts/node/deno-sys-abstraction.js.map +1 -0
- package/ts/node/index.d.ts +5 -0
- package/ts/node/index.d.ts.map +1 -0
- package/ts/node/index.js +5 -0
- package/ts/node/index.js.map +1 -0
- package/ts/node/mock-file-service.d.ts +11 -0
- package/ts/node/mock-file-service.d.ts.map +1 -0
- package/ts/node/mock-file-service.js +34 -0
- package/ts/node/mock-file-service.js.map +1 -0
- package/ts/node/mock-file-service.test.d.ts +2 -0
- package/ts/node/mock-file-service.test.d.ts.map +1 -0
- package/ts/node/mock-file-service.test.js +31 -0
- package/ts/node/mock-file-service.test.js.map +1 -0
- package/ts/node/node-file-service.d.ts +16 -0
- package/ts/node/node-file-service.d.ts.map +1 -0
- package/ts/node/node-file-service.js +71 -0
- package/ts/node/node-file-service.js.map +1 -0
- package/ts/node/node-sys-abstraction.d.ts +22 -0
- package/ts/node/node-sys-abstraction.d.ts.map +1 -0
- package/ts/node/node-sys-abstraction.js +99 -0
- package/ts/node/node-sys-abstraction.js.map +1 -0
- package/ts/node/node-sys-abstraction.test.d.ts +2 -0
- package/ts/node/node-sys-abstraction.test.d.ts.map +1 -0
- package/ts/node/node-sys-abstraction.test.js +83 -0
- package/ts/node/node-sys-abstraction.test.js.map +1 -0
- package/ts/option.d.ts +25 -0
- package/ts/option.d.ts.map +1 -0
- package/ts/option.js +47 -0
- package/ts/option.js.map +1 -0
- package/ts/refcounted.d.ts +2 -0
- package/ts/refcounted.d.ts.map +1 -0
- package/ts/refcounted.js +19 -0
- package/ts/refcounted.js.map +1 -0
- package/ts/refcounted.test.d.ts +2 -0
- package/ts/refcounted.test.d.ts.map +1 -0
- package/ts/refcounted.test.js +39 -0
- package/ts/refcounted.test.js.map +1 -0
- package/ts/resolve-once.d.ts +46 -0
- package/ts/resolve-once.d.ts.map +1 -0
- package/ts/resolve-once.js +152 -0
- package/ts/resolve-once.js.map +1 -0
- package/ts/resolve-once.test.d.ts +2 -0
- package/ts/resolve-once.test.d.ts.map +1 -0
- package/ts/resolve-once.test.js +283 -0
- package/ts/resolve-once.test.js.map +1 -0
- package/ts/result.d.ts +34 -0
- package/ts/result.d.ts.map +1 -0
- package/ts/result.js +85 -0
- package/ts/result.js.map +1 -0
- package/ts/result.test.d.ts +2 -0
- package/ts/result.test.d.ts.map +1 -0
- package/ts/result.test.js +79 -0
- package/ts/result.test.js.map +1 -0
- package/ts/runtime.d.ts +8 -0
- package/ts/runtime.d.ts.map +1 -0
- package/ts/runtime.js +26 -0
- package/ts/runtime.js.map +1 -0
- package/ts/sys-abstraction.d.ts +36 -0
- package/ts/sys-abstraction.d.ts.map +1 -0
- package/ts/sys-abstraction.js +31 -0
- package/ts/sys-abstraction.js.map +1 -0
- package/ts/sys-env.d.ts +48 -0
- package/ts/sys-env.d.ts.map +1 -0
- package/ts/sys-env.js +176 -0
- package/ts/sys-env.js.map +1 -0
- package/ts/sys-env.test.d.ts +2 -0
- package/ts/sys-env.test.d.ts.map +1 -0
- package/ts/sys-env.test.js +51 -0
- package/ts/sys-env.test.js.map +1 -0
- package/ts/test/log-write-stream.d.ts +27 -0
- package/ts/test/log-write-stream.d.ts.map +1 -0
- package/ts/test/log-write-stream.js +74 -0
- package/ts/test/log-write-stream.js.map +1 -0
- package/ts/test/mock-logger.d.ts +14 -0
- package/ts/test/mock-logger.d.ts.map +1 -0
- package/ts/test/mock-logger.js +29 -0
- package/ts/test/mock-logger.js.map +1 -0
- package/ts/test/mock-logger.test.d.ts +2 -0
- package/ts/test/mock-logger.test.d.ts.map +1 -0
- package/ts/test/mock-logger.test.js +63 -0
- package/ts/test/mock-logger.test.js.map +1 -0
- package/ts/test/test-exit-handler.d.ts +2 -0
- package/ts/test/test-exit-handler.d.ts.map +1 -0
- package/ts/test/test-exit-handler.js +57 -0
- package/ts/test/test-exit-handler.js.map +1 -0
- package/ts/time.d.ts +13 -0
- package/ts/time.d.ts.map +1 -0
- package/ts/time.js +14 -0
- package/ts/time.js.map +1 -0
- package/ts/tracer.d.ts +59 -0
- package/ts/tracer.d.ts.map +1 -0
- package/ts/tracer.js +148 -0
- package/ts/tracer.js.map +1 -0
- package/ts/tracer.test.d.ts +2 -0
- package/ts/tracer.test.d.ts.map +1 -0
- package/ts/tracer.test.js +311 -0
- package/ts/tracer.test.js.map +1 -0
- package/ts/txt-en-decoder.d.ts +10 -0
- package/ts/txt-en-decoder.d.ts.map +1 -0
- package/ts/txt-en-decoder.js +15 -0
- package/ts/txt-en-decoder.js.map +1 -0
- package/ts/uri.d.ts +67 -0
- package/ts/uri.d.ts.map +1 -0
- package/ts/uri.js +283 -0
- package/ts/uri.js.map +1 -0
- package/ts/uri.test.d.ts +2 -0
- package/ts/uri.test.d.ts.map +1 -0
- package/ts/uri.test.js +119 -0
- package/ts/uri.test.js.map +1 -0
- package/ts/utils/console-write-stream.d.ts +21 -0
- package/ts/utils/console-write-stream.d.ts.map +1 -0
- package/ts/utils/console-write-stream.js +62 -0
- package/ts/utils/console-write-stream.js.map +1 -0
- package/ts/utils/fanout-write-stream.d.ts +12 -0
- package/ts/utils/fanout-write-stream.d.ts.map +1 -0
- package/ts/utils/fanout-write-stream.js +24 -0
- package/ts/utils/fanout-write-stream.js.map +1 -0
- package/ts/utils/index.d.ts +7 -0
- package/ts/utils/index.d.ts.map +1 -0
- package/ts/utils/index.js +7 -0
- package/ts/utils/index.js.map +1 -0
- package/ts/utils/rebuffer.d.ts +3 -0
- package/ts/utils/rebuffer.d.ts.map +1 -0
- package/ts/utils/rebuffer.js +60 -0
- package/ts/utils/rebuffer.js.map +1 -0
- package/ts/utils/rebuffer.test.d.ts +2 -0
- package/ts/utils/rebuffer.test.d.ts.map +1 -0
- package/ts/utils/rebuffer.test.js +77 -0
- package/ts/utils/rebuffer.test.js.map +1 -0
- package/ts/utils/stream-map.d.ts +9 -0
- package/ts/utils/stream-map.d.ts.map +1 -0
- package/ts/utils/stream-map.js +62 -0
- package/ts/utils/stream-map.js.map +1 -0
- package/ts/utils/stream-map.test.d.ts +2 -0
- package/ts/utils/stream-map.test.d.ts.map +1 -0
- package/ts/utils/stream-map.test.js +87 -0
- package/ts/utils/stream-map.test.js.map +1 -0
- package/ts/utils/stream-test-helper.d.ts +17 -0
- package/ts/utils/stream-test-helper.d.ts.map +1 -0
- package/ts/utils/stream-test-helper.js +37 -0
- package/ts/utils/stream-test-helper.js.map +1 -0
- package/ts/utils/stream2string.d.ts +3 -0
- package/ts/utils/stream2string.d.ts.map +1 -0
- package/ts/utils/stream2string.js +48 -0
- package/ts/utils/stream2string.js.map +1 -0
- package/ts/utils/stream2string.test.d.ts +2 -0
- package/ts/utils/stream2string.test.d.ts.map +1 -0
- package/ts/utils/stream2string.test.js +29 -0
- package/ts/utils/stream2string.test.js.map +1 -0
- package/ts/utils/string2stream.d.ts +4 -0
- package/ts/utils/string2stream.d.ts.map +1 -0
- package/ts/utils/string2stream.js +13 -0
- package/ts/utils/string2stream.js.map +1 -0
- package/ts/utils/string2stream.test.d.ts +2 -0
- package/ts/utils/string2stream.test.d.ts.map +1 -0
- package/ts/utils/string2stream.test.js +6 -0
- package/ts/utils/string2stream.test.js.map +1 -0
- package/ts/version.d.ts +2 -0
- package/ts/version.d.ts.map +1 -0
- package/ts/version.js +4 -0
- package/ts/version.js.map +1 -0
- package/ts/web/index.d.ts +2 -0
- package/ts/web/index.d.ts.map +1 -0
- package/ts/web/index.js +2 -0
- package/ts/web/index.js.map +1 -0
- package/ts/web/web-sys-abstraction.d.ts +4 -0
- package/ts/web/web-sys-abstraction.d.ts.map +1 -0
- package/ts/web/web-sys-abstraction.js +64 -0
- package/ts/web/web-sys-abstraction.js.map +1 -0
- package/utils/index.cjs +0 -42
- package/utils/index.cjs.map +1 -1
- package/utils/index.d.cts +1 -2
- package/utils/index.d.ts +1 -2
- package/utils/index.js +2 -7
- package/web/index.cjs +25 -7
- package/web/index.cjs.map +1 -1
- package/web/index.d.cts +2 -1
- package/web/index.d.ts +2 -1
- package/web/index.js +3 -3
- package/chunk-DPIL5UIL.js.map +0 -1
- package/chunk-LCPYQVWT.js +0 -21
- package/chunk-OXD3YZZ7.js.map +0 -1
- package/chunk-P5RXA4C4.js.map +0 -1
- package/chunk-YDIUMYIE.js.map +0 -1
@@ -0,0 +1 @@
|
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WAAW;YACX,QAAQ;YACR,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,4EAA4E;YAC5E,4EAA4E;YAC5E,gEAAgE;YAChE,KAAK;YACL,SAAS;YACT,WAAW;YACX,OAAO;YACP,UAAU;YACV,OAAO;YACP,8EAA8E;YAC9E,8EAA8E;YAC9E,kEAAkE;YAClE,OAAO;YACP,SAAS;YACT,SAAS;YACT,SAAS;YACT,YAAY;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { FileService, NamedWritableStream } from "../file-service.js";
|
2
|
+
import { TxtEnDecoder } from "../txt-en-decoder.js";
|
3
|
+
export declare class DenoFileService implements FileService {
|
4
|
+
readonly baseDir: string;
|
5
|
+
readonly txtEnde: TxtEnDecoder;
|
6
|
+
constructor(baseDir?: string, txtEnde?: TxtEnDecoder);
|
7
|
+
readFileString(fname: string): Promise<string>;
|
8
|
+
dirname(fname: string): string;
|
9
|
+
basename(fname: string): string;
|
10
|
+
join(...paths: string[]): string;
|
11
|
+
relative(from: string, to?: string): string;
|
12
|
+
abs(fname: string): string;
|
13
|
+
isAbsolute(fname: string): boolean;
|
14
|
+
writeFileString(fname: string, content: string, ende?: TxtEnDecoder): Promise<void>;
|
15
|
+
create(fname: string): Promise<NamedWritableStream>;
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=deno-file-service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deno-file-service.d.ts","sourceRoot":"","sources":["../../../src/node/deno-file-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,YAAY,EAA0B,MAAM,sBAAsB,CAAC;AAU5E,qBAAa,eAAgB,YAAW,WAAW;IACjD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;gBACnB,OAAO,GAAE,MAAmB,EAAE,OAAO,GAAE,YAAuC;IAcpF,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIpD,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAG9B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAI/B,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;IAIhC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;IAU3C,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAS1B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAI5B,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,eAA2B,GAAG,OAAO,CAAC,IAAI,CAAC;IAO/F,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAkB1D"}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { Utf8EnDecoderSingleton } from "../txt-en-decoder.js";
|
2
|
+
import * as path from "node:path";
|
3
|
+
const Deno = globalThis.Deno;
|
4
|
+
export class DenoFileService {
|
5
|
+
constructor(baseDir = Deno.cwd(), txtEnde = Utf8EnDecoderSingleton()) {
|
6
|
+
this.baseDir = this.abs(baseDir);
|
7
|
+
this.txtEnde = txtEnde;
|
8
|
+
}
|
9
|
+
async readFileString(fname) {
|
10
|
+
return this.txtEnde.decode(await Deno.readFile(fname));
|
11
|
+
}
|
12
|
+
dirname(fname) {
|
13
|
+
return path.dirname(fname);
|
14
|
+
}
|
15
|
+
basename(fname) {
|
16
|
+
return path.basename(fname);
|
17
|
+
}
|
18
|
+
join(...paths) {
|
19
|
+
return path.join(...paths);
|
20
|
+
}
|
21
|
+
relative(from, to) {
|
22
|
+
if (to === undefined) {
|
23
|
+
to = from;
|
24
|
+
from = Deno.cwd();
|
25
|
+
}
|
26
|
+
const ret = path.relative(from, to);
|
27
|
+
return ret;
|
28
|
+
}
|
29
|
+
abs(fname) {
|
30
|
+
if (path.isAbsolute(fname)) {
|
31
|
+
return fname;
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
const cwd = Deno.cwd();
|
35
|
+
return path.resolve(cwd, fname);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
isAbsolute(fname) {
|
39
|
+
return path.isAbsolute(fname);
|
40
|
+
}
|
41
|
+
async writeFileString(fname, content, ende = Utf8EnDecoderSingleton()) {
|
42
|
+
const o = await this.create(fname);
|
43
|
+
const wr = o.stream.getWriter();
|
44
|
+
await wr.write(ende.encode(content));
|
45
|
+
await wr.close();
|
46
|
+
}
|
47
|
+
async create(fname) {
|
48
|
+
let oName = fname;
|
49
|
+
if (!path.isAbsolute(fname)) {
|
50
|
+
oName = this.abs(fname);
|
51
|
+
}
|
52
|
+
const base = path.dirname(oName);
|
53
|
+
await Deno.mkdir(base, { recursive: true });
|
54
|
+
const out = await Deno.open(oName, {
|
55
|
+
write: true,
|
56
|
+
create: true,
|
57
|
+
truncate: true,
|
58
|
+
});
|
59
|
+
return {
|
60
|
+
name: oName,
|
61
|
+
stream: out,
|
62
|
+
};
|
63
|
+
}
|
64
|
+
}
|
65
|
+
//# sourceMappingURL=deno-file-service.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deno-file-service.js","sourceRoot":"","sources":["../../../src/node/deno-file-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,MAAM,IAAI,GAAI,UAA2C,CAAC,IAKzD,CAAC;AAEF,MAAM,OAAO,eAAe;IAG1B,YAAY,UAAkB,IAAI,CAAC,GAAG,EAAE,EAAE,UAAwB,sBAAsB,EAAE;QACxF,IAAI,CAAC,OAAO,GAAG,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I,GAAG,sBAAsB,EAAE;QACnF,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnC,MAAM,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QAChC,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;QACrC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAAa;QACxB,IAAI,KAAK,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACjC,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACjC,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,IAAI;YACZ,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC;QACH,OAAO;YACL,IAAI,EAAE,KAAK;YACX,MAAM,EAAE,GAAG;SACZ,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { SysAbstraction, SystemService, VoidFunc } from "../sys-abstraction.js";
|
2
|
+
import { ExitHandler, ExitService, WrapperSysAbstractionParams } from "../base-sys-abstraction.js";
|
3
|
+
import { Env } from "../sys-env.js";
|
4
|
+
export declare class DenoExitServiceImpl implements ExitService {
|
5
|
+
constructor();
|
6
|
+
_exitHandlers: ExitHandler[];
|
7
|
+
injectExitHandlers(hdls: ExitHandler[]): void;
|
8
|
+
invoked: boolean;
|
9
|
+
readonly _handleExit: () => Promise<void>;
|
10
|
+
exit(code: number): void;
|
11
|
+
}
|
12
|
+
export declare class DenoSystemService implements SystemService {
|
13
|
+
static readonly _exitHandlers: ExitHandler[];
|
14
|
+
readonly _exitService: ExitService;
|
15
|
+
constructor();
|
16
|
+
Env(): Env;
|
17
|
+
Args(): string[];
|
18
|
+
OnExit(hdl: VoidFunc): VoidFunc;
|
19
|
+
Exit(code: number): void;
|
20
|
+
}
|
21
|
+
export declare function DenoSysAbstraction(param?: WrapperSysAbstractionParams): SysAbstraction;
|
22
|
+
//# sourceMappingURL=deno-sys-abstraction.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deno-sys-abstraction.d.ts","sourceRoot":"","sources":["../../../src/node/deno-sys-abstraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAEL,WAAW,EACX,WAAW,EAEX,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,GAAG,EAAc,MAAM,eAAe,CAAC;AAUhD,qBAAa,mBAAoB,YAAW,WAAW;;IAiCrD,aAAa,EAAE,WAAW,EAAE,CAAM;IAClC,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI;IAI7C,OAAO,UAAS;IAChB,QAAQ,CAAC,WAAW,QAAa,OAAO,CAAC,IAAI,CAAC,CAkB5C;IAEF,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAYzB;AAED,qBAAa,iBAAkB,YAAW,aAAa;IACrD,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,WAAW,EAAE,CAAM;IAClD,QAAQ,CAAC,YAAY,EAAE,WAAW,CAA6B;;IAK/D,GAAG,IAAI,GAAG;IAIV,IAAI,IAAI,MAAM,EAAE;IAIhB,MAAM,CAAC,GAAG,EAAE,QAAQ,GAAG,QAAQ;IAW/B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAGzB;AAGD,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,cAAc,CAStF"}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
import { BaseSysAbstraction, WrapperSysAbstraction, } from "../base-sys-abstraction.js";
|
2
|
+
import { envFactory } from "../sys-env.js";
|
3
|
+
import { Utf8EnDecoderSingleton } from "../txt-en-decoder.js";
|
4
|
+
import * as process from "node:process";
|
5
|
+
import { DenoFileService } from "./deno-file-service.js";
|
6
|
+
const Deno = globalThis.Deno;
|
7
|
+
export class DenoExitServiceImpl {
|
8
|
+
constructor() {
|
9
|
+
this._exitHandlers = [];
|
10
|
+
this.invoked = false;
|
11
|
+
this._handleExit = async () => {
|
12
|
+
if (this.invoked) {
|
13
|
+
return;
|
14
|
+
}
|
15
|
+
this.invoked = true;
|
16
|
+
for (const h of this._exitHandlers) {
|
17
|
+
try {
|
18
|
+
const ret = h.hdl();
|
19
|
+
if (typeof ret.then === "function") {
|
20
|
+
await ret;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
finally {
|
24
|
+
}
|
25
|
+
}
|
26
|
+
};
|
27
|
+
globalThis.addEventListener("unhandledrejection", (e) => {
|
28
|
+
e.preventDefault();
|
29
|
+
this.exit(19);
|
30
|
+
});
|
31
|
+
globalThis.addEventListener("error", () => {
|
32
|
+
this.exit(19);
|
33
|
+
});
|
34
|
+
globalThis.addEventListener("uncaughtException", () => {
|
35
|
+
this.exit(19);
|
36
|
+
});
|
37
|
+
globalThis.addEventListener("unload", () => {
|
38
|
+
this.exit(0);
|
39
|
+
});
|
40
|
+
Deno.addSignalListener("SIGQUIT", () => {
|
41
|
+
this.exit(3);
|
42
|
+
});
|
43
|
+
Deno.addSignalListener("SIGINT", () => {
|
44
|
+
this.exit(2);
|
45
|
+
});
|
46
|
+
Deno.addSignalListener("SIGTERM", () => {
|
47
|
+
this.exit(9);
|
48
|
+
});
|
49
|
+
}
|
50
|
+
injectExitHandlers(hdls) {
|
51
|
+
this._exitHandlers = hdls;
|
52
|
+
}
|
53
|
+
exit(code) {
|
54
|
+
this._handleExit()
|
55
|
+
.then(() => {
|
56
|
+
Deno.exit(code);
|
57
|
+
})
|
58
|
+
.catch((err) => {
|
59
|
+
console.error("ExitService: failed to handle exit", err);
|
60
|
+
Deno.exit(code);
|
61
|
+
});
|
62
|
+
}
|
63
|
+
}
|
64
|
+
export class DenoSystemService {
|
65
|
+
constructor() {
|
66
|
+
this._exitService = new DenoExitServiceImpl();
|
67
|
+
this._exitService.injectExitHandlers(DenoSystemService._exitHandlers);
|
68
|
+
}
|
69
|
+
Env() {
|
70
|
+
return envFactory();
|
71
|
+
}
|
72
|
+
Args() {
|
73
|
+
return process.argv;
|
74
|
+
}
|
75
|
+
OnExit(hdl) {
|
76
|
+
const id = crypto.randomUUID();
|
77
|
+
DenoSystemService._exitHandlers.push({ hdl, id });
|
78
|
+
return () => {
|
79
|
+
const idx = DenoSystemService._exitHandlers.findIndex((h) => h.id === id);
|
80
|
+
if (idx >= 0) {
|
81
|
+
DenoSystemService._exitHandlers.splice(idx, 1);
|
82
|
+
}
|
83
|
+
};
|
84
|
+
}
|
85
|
+
Exit(code) {
|
86
|
+
this._exitService.exit(code);
|
87
|
+
}
|
88
|
+
}
|
89
|
+
DenoSystemService._exitHandlers = [];
|
90
|
+
let my = undefined;
|
91
|
+
export function DenoSysAbstraction(param) {
|
92
|
+
if (!my) {
|
93
|
+
my = new BaseSysAbstraction({
|
94
|
+
TxtEnDecoder: (param === null || param === void 0 ? void 0 : param.TxtEnDecoder) || Utf8EnDecoderSingleton(),
|
95
|
+
FileSystem: new DenoFileService(),
|
96
|
+
SystemService: new DenoSystemService(),
|
97
|
+
});
|
98
|
+
}
|
99
|
+
return new WrapperSysAbstraction(my, param);
|
100
|
+
}
|
101
|
+
//# sourceMappingURL=deno-sys-abstraction.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deno-sys-ab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["../../../src/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC"}
|
package/ts/node/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { NamedWritableStream } from "../file-service.js";
|
2
|
+
import { NodeFileService } from "./node-file-service.js";
|
3
|
+
export interface FileCollector {
|
4
|
+
readonly name: string;
|
5
|
+
content: string;
|
6
|
+
}
|
7
|
+
export declare class MockFileService extends NodeFileService {
|
8
|
+
readonly files: Record<string, FileCollector>;
|
9
|
+
create(fname: string): Promise<NamedWritableStream>;
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=mock-file-service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mock-file-service.d.ts","sourceRoot":"","sources":["../../../src/node/mock-file-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,eAAgB,SAAQ,eAAe;IAClD,QAAQ,CAAC,KAAK,EAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAMtC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;CA6BnE"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { NodeFileService } from "./node-file-service.js";
|
2
|
+
export class MockFileService extends NodeFileService {
|
3
|
+
constructor() {
|
4
|
+
super(...arguments);
|
5
|
+
this.files = {};
|
6
|
+
}
|
7
|
+
async create(fname) {
|
8
|
+
let oName = fname;
|
9
|
+
if (!this.isAbsolute(fname)) {
|
10
|
+
oName = await this.abs(fname);
|
11
|
+
}
|
12
|
+
const fc = {
|
13
|
+
name: oName,
|
14
|
+
content: "",
|
15
|
+
};
|
16
|
+
this.files[oName] = fc;
|
17
|
+
this.files[fname] = fc;
|
18
|
+
const decoder = new TextDecoder();
|
19
|
+
return {
|
20
|
+
name: oName,
|
21
|
+
stream: new WritableStream({
|
22
|
+
write(chunk) {
|
23
|
+
fc.content = fc.content + decoder.decode(chunk);
|
24
|
+
},
|
25
|
+
close() {
|
26
|
+
},
|
27
|
+
abort() {
|
28
|
+
throw new Error("not implemented");
|
29
|
+
},
|
30
|
+
}),
|
31
|
+
};
|
32
|
+
}
|
33
|
+
}
|
34
|
+
//# sourceMappingURL=mock-file-service.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mock-file-service.js","sourceRoot":"","sources":["../../../src/node/mock-file-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAOzD,MAAM,OAAO,eAAgB,SAAQ,eAAe;IAApD;;QACW,UAAK,GAAG,EAAmC,CAAC;IAmCvD,CAAC;IA7BU,KAAK,CAAC,MAAM,CAAC,KAAa;QACjC,IAAI,KAAK,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,KAAK,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;QAED,MAAM,EAAE,GAAG;YACT,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QACvB,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAElC,OAAO;YACL,IAAI,EAAE,KAAK;YACX,MAAM,EAAE,IAAI,cAAc,CAAa;gBACrC,KAAK,CAAC,KAAK;oBACT,EAAE,CAAC,OAAO,GAAG,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAClD,CAAC;gBACD,KAAK;gBAEL,CAAC;gBACD,KAAK;oBACH,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;gBACrC,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mock-file-service.test.d.ts","sourceRoot":"","sources":["../../../src/node/mock-file-service.test.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { runtimeFn } from "@adviser/cement";
|
2
|
+
describe("MockFileService", () => {
|
3
|
+
if (runtimeFn().isNodeIsh || runtimeFn().isDeno) {
|
4
|
+
let MFS;
|
5
|
+
beforeAll(async () => {
|
6
|
+
const { MockFileService } = await import("./mock-file-service.js");
|
7
|
+
MFS = new MockFileService();
|
8
|
+
});
|
9
|
+
it("writeFileString", async () => {
|
10
|
+
const f = MFS;
|
11
|
+
const absFname = f.abs("test");
|
12
|
+
await f.writeFileString("test", "hello");
|
13
|
+
expect(f.files).toEqual({
|
14
|
+
[absFname]: {
|
15
|
+
content: "hello",
|
16
|
+
name: absFname,
|
17
|
+
},
|
18
|
+
test: {
|
19
|
+
name: absFname,
|
20
|
+
content: "hello",
|
21
|
+
},
|
22
|
+
});
|
23
|
+
});
|
24
|
+
}
|
25
|
+
else {
|
26
|
+
it.skip("nothing in browser", () => {
|
27
|
+
expect(1).toEqual(1);
|
28
|
+
});
|
29
|
+
}
|
30
|
+
});
|
31
|
+
//# sourceMappingURL=mock-file-service.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mock-file-service.test.js","sourceRoot":"","sources":["../../../src/node/mock-file-service.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,SAAS,EAAE,CAAC,SAAS,IAAI,SAAS,EAAE,CAAC,MAAM,EAAE,CAAC;QAChD,IAAI,GAAoB,CAAC;QACzB,SAAS,CAAC,KAAK,IAAI,EAAE;YACnB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC;YACnE,GAAG,GAAG,IAAI,eAAe,EAAE,CAAC;QAC9B,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,iBAAiB,EAAE,KAAK,IAAI,EAAE;YAC/B,MAAM,CAAC,GAAG,GAAG,CAAC;YACd,MAAM,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YAC/B,MAAM,CAAC,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YACzC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;gBACtB,CAAC,QAAQ,CAAC,EAAE;oBACV,OAAO,EAAE,OAAO;oBAChB,IAAI,EAAE,QAAQ;iBACf;gBACD,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,OAAO;iBACjB;aACF,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,EAAE,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,EAAE;YACjC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { FileService, NamedWritableStream } from "../file-service.js";
|
2
|
+
import { TxtEnDecoder } from "../txt-en-decoder.js";
|
3
|
+
export declare class NodeFileService implements FileService {
|
4
|
+
readonly baseDir: string;
|
5
|
+
constructor(baseDir?: string);
|
6
|
+
readFileString(fname: string): Promise<string>;
|
7
|
+
dirname(fname: string): string;
|
8
|
+
basename(fname: string): string;
|
9
|
+
join(...paths: string[]): string;
|
10
|
+
relative(from: string, to?: string): string;
|
11
|
+
abs(fname: string): string;
|
12
|
+
isAbsolute(fname: string): boolean;
|
13
|
+
writeFileString(fname: string, content: string, ende?: TxtEnDecoder): Promise<void>;
|
14
|
+
create(fname: string): Promise<NamedWritableStream>;
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=node-file-service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"node-file-service.d.ts","sourceRoot":"","sources":["../../../src/node/node-file-service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,YAAY,EAA0B,MAAM,sBAAsB,CAAC;AAE5E,qBAAa,eAAgB,YAAW,WAAW;IACjD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;gBACb,OAAO,GAAE,MAAsB;IAa3C,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI9C,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAG9B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAI/B,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;IAIhC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;IAU3C,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAS1B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAI5B,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,YAAuC,GAAG,OAAO,CAAC,IAAI,CAAC;IAO7G,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAwB1D"}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import path from "node:path";
|
2
|
+
import fs from "node:fs";
|
3
|
+
import process from "node:process";
|
4
|
+
import { Utf8EnDecoderSingleton } from "../txt-en-decoder.js";
|
5
|
+
export class NodeFileService {
|
6
|
+
constructor(baseDir = process.cwd()) {
|
7
|
+
this.baseDir = this.abs(baseDir);
|
8
|
+
}
|
9
|
+
readFileString(fname) {
|
10
|
+
return fs.promises.readFile(fname, { encoding: "utf-8" });
|
11
|
+
}
|
12
|
+
dirname(fname) {
|
13
|
+
return path.dirname(fname);
|
14
|
+
}
|
15
|
+
basename(fname) {
|
16
|
+
return path.basename(fname);
|
17
|
+
}
|
18
|
+
join(...paths) {
|
19
|
+
return path.join(...paths);
|
20
|
+
}
|
21
|
+
relative(from, to) {
|
22
|
+
if (to === undefined) {
|
23
|
+
to = from;
|
24
|
+
from = process.cwd();
|
25
|
+
}
|
26
|
+
const ret = path.relative(from, to);
|
27
|
+
return ret;
|
28
|
+
}
|
29
|
+
abs(fname) {
|
30
|
+
if (path.isAbsolute(fname)) {
|
31
|
+
return fname;
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
const cwd = process.cwd();
|
35
|
+
return path.resolve(cwd, fname);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
isAbsolute(fname) {
|
39
|
+
return path.isAbsolute(fname);
|
40
|
+
}
|
41
|
+
async writeFileString(fname, content, ende = Utf8EnDecoderSingleton()) {
|
42
|
+
const o = await this.create(fname);
|
43
|
+
const wr = o.stream.getWriter();
|
44
|
+
await wr.write(ende.encode(content));
|
45
|
+
await wr.close();
|
46
|
+
}
|
47
|
+
async create(fname) {
|
48
|
+
let oName = fname;
|
49
|
+
if (!path.isAbsolute(fname)) {
|
50
|
+
oName = this.abs(fname);
|
51
|
+
}
|
52
|
+
const base = path.dirname(oName);
|
53
|
+
await fs.promises.mkdir(base, { recursive: true });
|
54
|
+
const out = fs.createWriteStream(oName);
|
55
|
+
return {
|
56
|
+
name: oName,
|
57
|
+
stream: new WritableStream({
|
58
|
+
write(chunk) {
|
59
|
+
out.write(chunk);
|
60
|
+
},
|
61
|
+
close() {
|
62
|
+
out.close();
|
63
|
+
},
|
64
|
+
abort() {
|
65
|
+
throw new Error("not implemented");
|
66
|
+
},
|
67
|
+
}),
|
68
|
+
};
|
69
|
+
}
|
70
|
+
}
|
71
|
+
//# sourceMappingURL=node-file-service.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"node-file-service.js","sourceRoot":"","sources":["../../../src/node/node-file-service.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAgB,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE5E,MAAM,OAAO,eAAe;IAE1B,YAAY,UAAkB,OAAO,CAAC,GAAG,EAAE;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAWD,cAAc,CAAC,KAAa;QAC1B,OAAO,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO,CAAC,KAAa;QACnB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IACD,QAAQ,CAAC,KAAa;QACpB,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAED,IAAI,CAAC,GAAG,KAAe;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC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QAC1B,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACjC,MAAM,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACnD,MAAM,GAAG,GAAG,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACxC,OAAO;YACL,IAAI,EAAE,KAAK;YACX,MAAM,EAAE,IAAI,cAAc,CAAa;gBACrC,KAAK,CAAC,KAAK;oBACT,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACnB,CAAC;gBACD,KAAK;oBACH,GAAG,CAAC,KAAK,EAAE,CAAC;gBACd,CAAC;gBACD,KAAK;oBACH,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;gBACrC,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { SysAbstraction, SystemService, VoidFunc } from "../sys-abstraction.js";
|
2
|
+
import { ExitHandler, ExitService, WrapperSysAbstractionParams } from "../base-sys-abstraction.js";
|
3
|
+
import { Env } from "../sys-env.js";
|
4
|
+
export declare class NodeExitServiceImpl implements ExitService {
|
5
|
+
constructor();
|
6
|
+
_exitHandlers: ExitHandler[];
|
7
|
+
injectExitHandlers(hdls: ExitHandler[]): void;
|
8
|
+
invoked: boolean;
|
9
|
+
readonly _handleExit: () => Promise<void>;
|
10
|
+
exit(code: number): void;
|
11
|
+
}
|
12
|
+
export declare class NodeSystemService implements SystemService {
|
13
|
+
static readonly _exitHandlers: ExitHandler[];
|
14
|
+
readonly _exitService: ExitService;
|
15
|
+
constructor();
|
16
|
+
Env(): Env;
|
17
|
+
Args(): string[];
|
18
|
+
OnExit(hdl: VoidFunc): VoidFunc;
|
19
|
+
Exit(code: number): void;
|
20
|
+
}
|
21
|
+
export declare function NodeSysAbstraction(param?: WrapperSysAbstractionParams): SysAbstraction;
|
22
|
+
//# sourceMappingURL=node-sys-abstraction.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"node-sys-abstraction.d.ts","sourceRoot":"","sources":["../../../src/node/node-sys-abstraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAEL,WAAW,EACX,WAAW,EAEX,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,GAAG,EAAc,MAAM,eAAe,CAAC;AAIhD,qBAAa,mBAAoB,YAAW,WAAW;;IA0BrD,aAAa,EAAE,WAAW,EAAE,CAAM;IAClC,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI;IAI7C,OAAO,UAAS;IAChB,QAAQ,CAAC,WAAW,QAAa,OAAO,CAAC,IAAI,CAAC,CAkB5C;IAEF,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAYzB;AAED,qBAAa,iBAAkB,YAAW,aAAa;IACrD,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,WAAW,EAAE,CAAM;IAClD,QAAQ,CAAC,YAAY,EAAE,WAAW,CAA6B;;IAK/D,GAAG,IAAI,GAAG;IAIV,IAAI,IAAI,MAAM,EAAE;IAIhB,MAAM,CAAC,GAAG,EAAE,QAAQ,GAAG,QAAQ;IAW/B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAGzB;AAGD,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,cAAc,CAStF"}
|