@adviser/cement 0.0.0-jsr-t1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +201 -0
- package/README.md +39 -0
- package/base-sys-abstraction-BkEiLHl0.d.ts +193 -0
- package/base-sys-abstraction-Qj7pkY1N.d.cts +193 -0
- package/chunk-7KFVMTOS.js +311 -0
- package/chunk-7KFVMTOS.js.map +1 -0
- package/chunk-GES3MUGV.js +92 -0
- package/chunk-GES3MUGV.js.map +1 -0
- package/chunk-Q65HLCNL.js +601 -0
- package/chunk-Q65HLCNL.js.map +1 -0
- package/chunk-WMMUXBDX.js +87 -0
- package/chunk-WMMUXBDX.js.map +1 -0
- package/index-Q3phXzYr.d.cts +75 -0
- package/index-tIGZMHTc.d.ts +75 -0
- package/index.cjs +2593 -0
- package/index.cjs.map +1 -0
- package/index.d.cts +532 -0
- package/index.d.ts +532 -0
- package/index.js +1533 -0
- package/index.js.map +1 -0
- package/node/index.cjs +924 -0
- package/node/index.cjs.map +1 -0
- package/node/index.d.cts +65 -0
- package/node/index.d.ts +65 -0
- package/node/index.js +398 -0
- package/node/index.js.map +1 -0
- package/package.json +81 -0
- package/src/base-sys-abstraction.test.ts +95 -0
- package/src/base-sys-abstraction.ts +242 -0
- package/src/bin2text.test.ts +59 -0
- package/src/bin2text.ts +47 -0
- package/src/crypto.test.ts +15 -0
- package/src/crypto.ts +125 -0
- package/src/file-service.ts +24 -0
- package/src/future.test.ts +32 -0
- package/src/future.ts +27 -0
- package/src/index.ts +22 -0
- package/src/jsr.json +20 -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.test.ts +1132 -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/resolve-once.test.ts +321 -0
- package/src/resolve-once.ts +179 -0
- package/src/result.test.ts +102 -0
- package/src/result.ts +165 -0
- package/src/runtime.ts +36 -0
- package/src/sys-abstraction.ts +53 -0
- package/src/sys-env.test.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.test.ts +314 -0
- package/src/tracer.ts +222 -0
- package/src/txt-en-decoder.ts +21 -0
- package/src/uri.test.ts +155 -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/LICENSE +201 -0
- package/ts/README.md +39 -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 +23 -0
- package/ts/index.d.ts.map +1 -0
- package/ts/index.js +23 -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 +87 -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/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/txt-en-decoder-CZYJUju2.d.cts +11 -0
- package/txt-en-decoder-CZYJUju2.d.ts +11 -0
- package/utils/index.cjs +341 -0
- package/utils/index.cjs.map +1 -0
- package/utils/index.d.cts +2 -0
- package/utils/index.d.ts +2 -0
- package/utils/index.js +32 -0
- package/utils/index.js.map +1 -0
- package/web/index.cjs +593 -0
- package/web/index.cjs.map +1 -0
- package/web/index.d.cts +6 -0
- package/web/index.d.ts +6 -0
- package/web/index.js +9 -0
- package/web/index.js.map +1 -0
@@ -0,0 +1,87 @@
|
|
1
|
+
import {
|
2
|
+
BaseSysAbstraction,
|
3
|
+
WrapperSysAbstraction,
|
4
|
+
envFactory
|
5
|
+
} from "./chunk-Q65HLCNL.js";
|
6
|
+
import {
|
7
|
+
Utf8EnDecoderSingleton
|
8
|
+
} from "./chunk-GES3MUGV.js";
|
9
|
+
|
10
|
+
// src/web/web-sys-abstraction.ts
|
11
|
+
var WebFileService = class {
|
12
|
+
get baseDir() {
|
13
|
+
throw new Error("basedir-Method not implemented.");
|
14
|
+
}
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
16
|
+
create(fname) {
|
17
|
+
throw new Error("create-Method not implemented.");
|
18
|
+
}
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
20
|
+
readFileString(fname) {
|
21
|
+
throw new Error("readFileString-Method not implemented.");
|
22
|
+
}
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
24
|
+
writeFileString(fname, content) {
|
25
|
+
throw new Error("writeFileString-Method not implemented.");
|
26
|
+
}
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
28
|
+
abs(fname) {
|
29
|
+
throw new Error("abs-Method not implemented.");
|
30
|
+
}
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
32
|
+
join(...paths) {
|
33
|
+
throw new Error("join-Method not implemented.");
|
34
|
+
}
|
35
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
36
|
+
relative(from, to) {
|
37
|
+
throw new Error("relative-Method not implemented.");
|
38
|
+
}
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
40
|
+
dirname(fname) {
|
41
|
+
throw new Error("dirname-Method not implemented.");
|
42
|
+
}
|
43
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
44
|
+
basename(fname) {
|
45
|
+
throw new Error("basename-Method not implemented.");
|
46
|
+
}
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
48
|
+
nodeImport(fname) {
|
49
|
+
throw new Error("nodeImport-Method not implemented.");
|
50
|
+
}
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
52
|
+
isAbsolute(fname) {
|
53
|
+
throw new Error("isAbsolute-Method not implemented.");
|
54
|
+
}
|
55
|
+
};
|
56
|
+
var WebSystemService = class {
|
57
|
+
Env() {
|
58
|
+
return envFactory();
|
59
|
+
}
|
60
|
+
Args() {
|
61
|
+
throw new Error("Args-Method not implemented.");
|
62
|
+
}
|
63
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
64
|
+
OnExit(hdl) {
|
65
|
+
throw new Error("OnExit-Method not implemented.");
|
66
|
+
}
|
67
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
68
|
+
Exit(code) {
|
69
|
+
throw new Error("Exit-Method not implemented.");
|
70
|
+
}
|
71
|
+
};
|
72
|
+
var my = void 0;
|
73
|
+
function WebSysAbstraction(param) {
|
74
|
+
if (!my) {
|
75
|
+
my = new BaseSysAbstraction({
|
76
|
+
TxtEnDecoder: (param == null ? void 0 : param.TxtEnDecoder) || Utf8EnDecoderSingleton(),
|
77
|
+
FileSystem: new WebFileService(),
|
78
|
+
SystemService: new WebSystemService()
|
79
|
+
});
|
80
|
+
}
|
81
|
+
return new WrapperSysAbstraction(my, param);
|
82
|
+
}
|
83
|
+
|
84
|
+
export {
|
85
|
+
WebSysAbstraction
|
86
|
+
};
|
87
|
+
//# sourceMappingURL=chunk-WMMUXBDX.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/web/web-sys-abstraction.ts"],"sourcesContent":["import { BaseSysAbstraction, WrapperSysAbstraction, WrapperSysAbstractionParams } from \"../base-sys-abstraction.js\";\nimport { FileService, NamedWritableStream } from \"../file-service.js\";\nimport { SysAbstraction, SystemService, VoidFunc } from \"../sys-abstraction.js\";\nimport { Env, envFactory } from \"../sys-env.js\";\nimport { Utf8EnDecoderSingleton } from \"../txt-en-decoder.js\";\n\nclass WebFileService implements FileService {\n get baseDir(): string {\n throw new Error(\"basedir-Method not implemented.\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n create(fname: string): Promise<NamedWritableStream> {\n throw new Error(\"create-Method not implemented.\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n readFileString(fname: string): Promise<string> {\n throw new Error(\"readFileString-Method not implemented.\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n writeFileString(fname: string, content: string): Promise<void> {\n throw new Error(\"writeFileString-Method not implemented.\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abs(fname: string): string {\n throw new Error(\"abs-Method not implemented.\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n join(...paths: string[]): string {\n throw new Error(\"join-Method not implemented.\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n relative(from: string, to?: string | undefined): string {\n throw new Error(\"relative-Method not implemented.\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n dirname(fname: string): string {\n throw new Error(\"dirname-Method not implemented.\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n basename(fname: string): string {\n throw new Error(\"basename-Method not implemented.\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n nodeImport(fname: string): string {\n throw new Error(\"nodeImport-Method not implemented.\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n isAbsolute(fname: string): boolean {\n throw new Error(\"isAbsolute-Method not implemented.\");\n }\n}\n\nclass WebSystemService implements SystemService {\n Env(): Env {\n return envFactory();\n }\n Args(): string[] {\n throw new Error(\"Args-Method not implemented.\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n OnExit(hdl: VoidFunc): VoidFunc {\n throw new Error(\"OnExit-Method not implemented.\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n Exit(code: number): void {\n throw new Error(\"Exit-Method not implemented.\");\n }\n}\n\nlet my: BaseSysAbstraction | undefined = undefined;\nexport function WebSysAbstraction(param?: WrapperSysAbstractionParams): SysAbstraction {\n if (!my) {\n my = new BaseSysAbstraction({\n TxtEnDecoder: param?.TxtEnDecoder || Utf8EnDecoderSingleton(),\n FileSystem: new WebFileService(),\n SystemService: new WebSystemService(),\n });\n }\n return new WrapperSysAbstraction(my, param);\n}\n"],"mappings":";;;;;;;;;;AAMA,IAAM,iBAAN,MAA4C;AAAA,EAC1C,IAAI,UAAkB;AACpB,UAAM,IAAI,MAAM,iCAAiC;AAAA,EACnD;AAAA;AAAA,EAEA,OAAO,OAA6C;AAClD,UAAM,IAAI,MAAM,gCAAgC;AAAA,EAClD;AAAA;AAAA,EAEA,eAAe,OAAgC;AAC7C,UAAM,IAAI,MAAM,wCAAwC;AAAA,EAC1D;AAAA;AAAA,EAEA,gBAAgB,OAAe,SAAgC;AAC7D,UAAM,IAAI,MAAM,yCAAyC;AAAA,EAC3D;AAAA;AAAA,EAEA,IAAI,OAAuB;AACzB,UAAM,IAAI,MAAM,6BAA6B;AAAA,EAC/C;AAAA;AAAA,EAEA,QAAQ,OAAyB;AAC/B,UAAM,IAAI,MAAM,8BAA8B;AAAA,EAChD;AAAA;AAAA,EAEA,SAAS,MAAc,IAAiC;AACtD,UAAM,IAAI,MAAM,kCAAkC;AAAA,EACpD;AAAA;AAAA,EAEA,QAAQ,OAAuB;AAC7B,UAAM,IAAI,MAAM,iCAAiC;AAAA,EACnD;AAAA;AAAA,EAEA,SAAS,OAAuB;AAC9B,UAAM,IAAI,MAAM,kCAAkC;AAAA,EACpD;AAAA;AAAA,EAEA,WAAW,OAAuB;AAChC,UAAM,IAAI,MAAM,oCAAoC;AAAA,EACtD;AAAA;AAAA,EAEA,WAAW,OAAwB;AACjC,UAAM,IAAI,MAAM,oCAAoC;AAAA,EACtD;AACF;AAEA,IAAM,mBAAN,MAAgD;AAAA,EAC9C,MAAW;AACT,WAAO,WAAW;AAAA,EACpB;AAAA,EACA,OAAiB;AACf,UAAM,IAAI,MAAM,8BAA8B;AAAA,EAChD;AAAA;AAAA,EAEA,OAAO,KAAyB;AAC9B,UAAM,IAAI,MAAM,gCAAgC;AAAA,EAClD;AAAA;AAAA,EAEA,KAAK,MAAoB;AACvB,UAAM,IAAI,MAAM,8BAA8B;AAAA,EAChD;AACF;AAEA,IAAI,KAAqC;AAClC,SAAS,kBAAkB,OAAqD;AACrF,MAAI,CAAC,IAAI;AACP,SAAK,IAAI,mBAAmB;AAAA,MAC1B,eAAc,+BAAO,iBAAgB,uBAAuB;AAAA,MAC5D,YAAY,IAAI,eAAe;AAAA,MAC/B,eAAe,IAAI,iBAAiB;AAAA,IACtC,CAAC;AAAA,EACH;AACA,SAAO,IAAI,sBAAsB,IAAI,KAAK;AAC5C;","names":[]}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import { T as TxtEnDecoder } from './txt-en-decoder-CZYJUju2.cjs';
|
2
|
+
|
3
|
+
declare function rebufferArray(a: Uint8Array[], chunkSize: number): Promise<Uint8Array[]>;
|
4
|
+
declare function rebuffer(a: ReadableStream<Uint8Array>, chunkSize: number): ReadableStream<Uint8Array>;
|
5
|
+
|
6
|
+
interface StreamMap<T, U> {
|
7
|
+
Map(s: T, idx: number): U | Promise<U>;
|
8
|
+
readonly Close?: () => void;
|
9
|
+
}
|
10
|
+
declare function streamMap<T, U>(s: ReadableStream<T>, sm: StreamMap<T, U>): ReadableStream<U>;
|
11
|
+
declare function devnull<T>(a: ReadableStream<T>): Promise<number>;
|
12
|
+
declare function array2stream<T>(a: T[]): ReadableStream<T>;
|
13
|
+
declare function stream2array<T>(a: ReadableStream<T>): Promise<T[]>;
|
14
|
+
|
15
|
+
declare function stream2string(stream?: ReadableStream<Uint8Array> | null, maxSize?: number): Promise<string>;
|
16
|
+
declare function stream2uint8array(stream?: ReadableStream<Uint8Array> | null): Promise<Uint8Array>;
|
17
|
+
|
18
|
+
declare function string2stream(str: string, ende?: TxtEnDecoder): ReadableStream<Uint8Array>;
|
19
|
+
declare function uint8array2stream(str: Uint8Array): ReadableStream<Uint8Array>;
|
20
|
+
|
21
|
+
declare class ConsoleWriterStreamDefaultWriter implements WritableStreamDefaultWriter<Uint8Array> {
|
22
|
+
private stream;
|
23
|
+
readonly desiredSize: number | null;
|
24
|
+
readonly decoder: TextDecoder;
|
25
|
+
closed: Promise<undefined>;
|
26
|
+
ready: Promise<undefined>;
|
27
|
+
readonly _stream: ConsoleWriterStream;
|
28
|
+
constructor(stream: ConsoleWriterStream);
|
29
|
+
abort(reason?: any): Promise<void>;
|
30
|
+
close(): Promise<void>;
|
31
|
+
releaseLock(): void;
|
32
|
+
write(chunk?: Uint8Array | undefined): Promise<void>;
|
33
|
+
}
|
34
|
+
declare class ConsoleWriterStream implements WritableStream<Uint8Array> {
|
35
|
+
locked: boolean;
|
36
|
+
_writer?: WritableStreamDefaultWriter<Uint8Array>;
|
37
|
+
abort(reason?: any): Promise<void>;
|
38
|
+
close(): Promise<void>;
|
39
|
+
getWriter(): WritableStreamDefaultWriter<Uint8Array>;
|
40
|
+
}
|
41
|
+
|
42
|
+
declare class FanoutWriteStream implements WritableStreamDefaultWriter<Uint8Array> {
|
43
|
+
readonly _writers: WritableStreamDefaultWriter<Uint8Array>[];
|
44
|
+
readonly ready: Promise<undefined>;
|
45
|
+
readonly closed: Promise<undefined>;
|
46
|
+
readonly desiredSize: number | null;
|
47
|
+
constructor(writers: WritableStreamDefaultWriter<Uint8Array>[]);
|
48
|
+
abort(reason?: any): Promise<void>;
|
49
|
+
close(): Promise<void>;
|
50
|
+
releaseLock(): void;
|
51
|
+
write(chunk?: Uint8Array | undefined): Promise<void>;
|
52
|
+
}
|
53
|
+
|
54
|
+
type index_ConsoleWriterStream = ConsoleWriterStream;
|
55
|
+
declare const index_ConsoleWriterStream: typeof ConsoleWriterStream;
|
56
|
+
type index_ConsoleWriterStreamDefaultWriter = ConsoleWriterStreamDefaultWriter;
|
57
|
+
declare const index_ConsoleWriterStreamDefaultWriter: typeof ConsoleWriterStreamDefaultWriter;
|
58
|
+
type index_FanoutWriteStream = FanoutWriteStream;
|
59
|
+
declare const index_FanoutWriteStream: typeof FanoutWriteStream;
|
60
|
+
type index_StreamMap<T, U> = StreamMap<T, U>;
|
61
|
+
declare const index_array2stream: typeof array2stream;
|
62
|
+
declare const index_devnull: typeof devnull;
|
63
|
+
declare const index_rebuffer: typeof rebuffer;
|
64
|
+
declare const index_rebufferArray: typeof rebufferArray;
|
65
|
+
declare const index_stream2array: typeof stream2array;
|
66
|
+
declare const index_stream2string: typeof stream2string;
|
67
|
+
declare const index_stream2uint8array: typeof stream2uint8array;
|
68
|
+
declare const index_streamMap: typeof streamMap;
|
69
|
+
declare const index_string2stream: typeof string2stream;
|
70
|
+
declare const index_uint8array2stream: typeof uint8array2stream;
|
71
|
+
declare namespace index {
|
72
|
+
export { index_ConsoleWriterStream as ConsoleWriterStream, index_ConsoleWriterStreamDefaultWriter as ConsoleWriterStreamDefaultWriter, index_FanoutWriteStream as FanoutWriteStream, type index_StreamMap as StreamMap, index_array2stream as array2stream, index_devnull as devnull, index_rebuffer as rebuffer, index_rebufferArray as rebufferArray, index_stream2array as stream2array, index_stream2string as stream2string, index_stream2uint8array as stream2uint8array, index_streamMap as streamMap, index_string2stream as string2stream, index_uint8array2stream as uint8array2stream };
|
73
|
+
}
|
74
|
+
|
75
|
+
export { ConsoleWriterStreamDefaultWriter as C, FanoutWriteStream as F, type StreamMap as S, rebuffer as a, array2stream as b, stream2array as c, devnull as d, stream2string as e, stream2uint8array as f, string2stream as g, ConsoleWriterStream as h, index as i, rebufferArray as r, streamMap as s, uint8array2stream as u };
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import { T as TxtEnDecoder } from './txt-en-decoder-CZYJUju2.js';
|
2
|
+
|
3
|
+
declare function rebufferArray(a: Uint8Array[], chunkSize: number): Promise<Uint8Array[]>;
|
4
|
+
declare function rebuffer(a: ReadableStream<Uint8Array>, chunkSize: number): ReadableStream<Uint8Array>;
|
5
|
+
|
6
|
+
interface StreamMap<T, U> {
|
7
|
+
Map(s: T, idx: number): U | Promise<U>;
|
8
|
+
readonly Close?: () => void;
|
9
|
+
}
|
10
|
+
declare function streamMap<T, U>(s: ReadableStream<T>, sm: StreamMap<T, U>): ReadableStream<U>;
|
11
|
+
declare function devnull<T>(a: ReadableStream<T>): Promise<number>;
|
12
|
+
declare function array2stream<T>(a: T[]): ReadableStream<T>;
|
13
|
+
declare function stream2array<T>(a: ReadableStream<T>): Promise<T[]>;
|
14
|
+
|
15
|
+
declare function stream2string(stream?: ReadableStream<Uint8Array> | null, maxSize?: number): Promise<string>;
|
16
|
+
declare function stream2uint8array(stream?: ReadableStream<Uint8Array> | null): Promise<Uint8Array>;
|
17
|
+
|
18
|
+
declare function string2stream(str: string, ende?: TxtEnDecoder): ReadableStream<Uint8Array>;
|
19
|
+
declare function uint8array2stream(str: Uint8Array): ReadableStream<Uint8Array>;
|
20
|
+
|
21
|
+
declare class ConsoleWriterStreamDefaultWriter implements WritableStreamDefaultWriter<Uint8Array> {
|
22
|
+
private stream;
|
23
|
+
readonly desiredSize: number | null;
|
24
|
+
readonly decoder: TextDecoder;
|
25
|
+
closed: Promise<undefined>;
|
26
|
+
ready: Promise<undefined>;
|
27
|
+
readonly _stream: ConsoleWriterStream;
|
28
|
+
constructor(stream: ConsoleWriterStream);
|
29
|
+
abort(reason?: any): Promise<void>;
|
30
|
+
close(): Promise<void>;
|
31
|
+
releaseLock(): void;
|
32
|
+
write(chunk?: Uint8Array | undefined): Promise<void>;
|
33
|
+
}
|
34
|
+
declare class ConsoleWriterStream implements WritableStream<Uint8Array> {
|
35
|
+
locked: boolean;
|
36
|
+
_writer?: WritableStreamDefaultWriter<Uint8Array>;
|
37
|
+
abort(reason?: any): Promise<void>;
|
38
|
+
close(): Promise<void>;
|
39
|
+
getWriter(): WritableStreamDefaultWriter<Uint8Array>;
|
40
|
+
}
|
41
|
+
|
42
|
+
declare class FanoutWriteStream implements WritableStreamDefaultWriter<Uint8Array> {
|
43
|
+
readonly _writers: WritableStreamDefaultWriter<Uint8Array>[];
|
44
|
+
readonly ready: Promise<undefined>;
|
45
|
+
readonly closed: Promise<undefined>;
|
46
|
+
readonly desiredSize: number | null;
|
47
|
+
constructor(writers: WritableStreamDefaultWriter<Uint8Array>[]);
|
48
|
+
abort(reason?: any): Promise<void>;
|
49
|
+
close(): Promise<void>;
|
50
|
+
releaseLock(): void;
|
51
|
+
write(chunk?: Uint8Array | undefined): Promise<void>;
|
52
|
+
}
|
53
|
+
|
54
|
+
type index_ConsoleWriterStream = ConsoleWriterStream;
|
55
|
+
declare const index_ConsoleWriterStream: typeof ConsoleWriterStream;
|
56
|
+
type index_ConsoleWriterStreamDefaultWriter = ConsoleWriterStreamDefaultWriter;
|
57
|
+
declare const index_ConsoleWriterStreamDefaultWriter: typeof ConsoleWriterStreamDefaultWriter;
|
58
|
+
type index_FanoutWriteStream = FanoutWriteStream;
|
59
|
+
declare const index_FanoutWriteStream: typeof FanoutWriteStream;
|
60
|
+
type index_StreamMap<T, U> = StreamMap<T, U>;
|
61
|
+
declare const index_array2stream: typeof array2stream;
|
62
|
+
declare const index_devnull: typeof devnull;
|
63
|
+
declare const index_rebuffer: typeof rebuffer;
|
64
|
+
declare const index_rebufferArray: typeof rebufferArray;
|
65
|
+
declare const index_stream2array: typeof stream2array;
|
66
|
+
declare const index_stream2string: typeof stream2string;
|
67
|
+
declare const index_stream2uint8array: typeof stream2uint8array;
|
68
|
+
declare const index_streamMap: typeof streamMap;
|
69
|
+
declare const index_string2stream: typeof string2stream;
|
70
|
+
declare const index_uint8array2stream: typeof uint8array2stream;
|
71
|
+
declare namespace index {
|
72
|
+
export { index_ConsoleWriterStream as ConsoleWriterStream, index_ConsoleWriterStreamDefaultWriter as ConsoleWriterStreamDefaultWriter, index_FanoutWriteStream as FanoutWriteStream, type index_StreamMap as StreamMap, index_array2stream as array2stream, index_devnull as devnull, index_rebuffer as rebuffer, index_rebufferArray as rebufferArray, index_stream2array as stream2array, index_stream2string as stream2string, index_stream2uint8array as stream2uint8array, index_streamMap as streamMap, index_string2stream as string2stream, index_uint8array2stream as uint8array2stream };
|
73
|
+
}
|
74
|
+
|
75
|
+
export { ConsoleWriterStreamDefaultWriter as C, FanoutWriteStream as F, type StreamMap as S, rebuffer as a, array2stream as b, stream2array as c, devnull as d, stream2string as e, stream2uint8array as f, string2stream as g, ConsoleWriterStream as h, index as i, rebufferArray as r, streamMap as s, uint8array2stream as u };
|