@adviser/cement 0.3.1 → 0.3.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.
Files changed (138) hide show
  1. package/base-sys-abstraction-CR_Z-Ceg.d.ts +84 -0
  2. package/base-sys-abstraction-DWtPI7Kg.d.cts +84 -0
  3. package/cf/index.cjs +936 -0
  4. package/cf/index.cjs.map +1 -0
  5. package/cf/index.d.cts +27 -0
  6. package/cf/index.d.ts +27 -0
  7. package/cf/index.js +12 -0
  8. package/cf/index.js.map +1 -0
  9. package/{chunk-3RHIVQAA.js → chunk-A7OPSHUV.js} +6 -94
  10. package/chunk-A7OPSHUV.js.map +1 -0
  11. package/chunk-HFP74WLI.js +96 -0
  12. package/chunk-HFP74WLI.js.map +1 -0
  13. package/chunk-P6LDM7PY.js +1189 -0
  14. package/chunk-P6LDM7PY.js.map +1 -0
  15. package/chunk-PRCFKZR7.js +1742 -0
  16. package/chunk-PRCFKZR7.js.map +1 -0
  17. package/deno/index.cjs +947 -0
  18. package/deno/index.cjs.map +1 -0
  19. package/deno/index.d.cts +59 -0
  20. package/deno/index.d.ts +59 -0
  21. package/deno/index.js +16 -0
  22. package/deno/index.js.map +1 -0
  23. package/index-BfZxTAe_.d.cts +318 -0
  24. package/index-CfSl8Gmj.d.ts +318 -0
  25. package/index.cjs +400 -143
  26. package/index.cjs.map +1 -1
  27. package/index.d.cts +7 -317
  28. package/index.d.ts +7 -317
  29. package/index.js +34 -1729
  30. package/index.js.map +1 -1
  31. package/node/index.cjs +272 -217
  32. package/node/index.cjs.map +1 -1
  33. package/node/index.d.cts +16 -21
  34. package/node/index.d.ts +16 -21
  35. package/node/index.js +8 -352
  36. package/node/index.js.map +1 -1
  37. package/package.json +18 -11
  38. package/src/cf/cf-sys-abstraction.ts +86 -0
  39. package/src/cf/index.ts +1 -0
  40. package/src/{node → deno}/deno-file-service.ts +2 -2
  41. package/src/{node → deno}/deno-sys-abstraction.ts +64 -7
  42. package/src/deno/index.ts +2 -0
  43. package/src/index.ts +1 -2
  44. package/src/jsr.json +1 -1
  45. package/src/logger-impl.ts +2 -2
  46. package/src/logger.ts +10 -3
  47. package/src/node/index.ts +0 -1
  48. package/src/node/node-sys-abstraction.ts +45 -1
  49. package/src/runtime.ts +13 -3
  50. package/src/sys-env.ts +19 -113
  51. package/src/test/index.ts +2 -0
  52. package/src/web/web-sys-abstraction.ts +42 -2
  53. package/sys-abstraction-GNnBj2sz.d.cts +102 -0
  54. package/sys-abstraction-GNnBj2sz.d.ts +102 -0
  55. package/test/index.cjs +2688 -0
  56. package/test/index.cjs.map +1 -0
  57. package/test/index.d.cts +3 -0
  58. package/test/index.d.ts +3 -0
  59. package/test/index.js +14 -0
  60. package/test/index.js.map +1 -0
  61. package/ts/base-sys-abstraction.test.js +8 -2
  62. package/ts/base-sys-abstraction.test.js.map +1 -1
  63. package/ts/cf/cf-sys-abstraction.d.ts +25 -0
  64. package/ts/cf/cf-sys-abstraction.d.ts.map +1 -0
  65. package/ts/cf/cf-sys-abstraction.js +80 -0
  66. package/ts/cf/cf-sys-abstraction.js.map +1 -0
  67. package/ts/cf/index.d.ts +2 -0
  68. package/ts/cf/index.d.ts.map +1 -0
  69. package/ts/cf/index.js +2 -0
  70. package/ts/cf/index.js.map +1 -0
  71. package/ts/crypto.test.js +1 -1
  72. package/ts/crypto.test.js.map +1 -1
  73. package/ts/{node → deno}/deno-file-service.d.ts.map +1 -1
  74. package/ts/{node → deno}/deno-file-service.js +1 -1
  75. package/ts/{node → deno}/deno-file-service.js.map +1 -1
  76. package/ts/deno/deno-sys-abstraction.d.ts +43 -0
  77. package/ts/deno/deno-sys-abstraction.d.ts.map +1 -0
  78. package/ts/{node → deno}/deno-sys-abstraction.js +46 -2
  79. package/ts/deno/deno-sys-abstraction.js.map +1 -0
  80. package/ts/deno/index.d.ts +3 -0
  81. package/ts/deno/index.d.ts.map +1 -0
  82. package/ts/deno/index.js +3 -0
  83. package/ts/deno/index.js.map +1 -0
  84. package/ts/index.d.ts +1 -2
  85. package/ts/index.d.ts.map +1 -1
  86. package/ts/index.js +1 -2
  87. package/ts/index.js.map +1 -1
  88. package/ts/logger-impl.js +2 -2
  89. package/ts/logger-impl.js.map +1 -1
  90. package/ts/logger.d.ts.map +1 -1
  91. package/ts/logger.js +9 -3
  92. package/ts/logger.js.map +1 -1
  93. package/ts/logger.test.js +9 -9
  94. package/ts/logger.test.js.map +1 -1
  95. package/ts/node/index.d.ts +0 -1
  96. package/ts/node/index.d.ts.map +1 -1
  97. package/ts/node/index.js +0 -1
  98. package/ts/node/index.js.map +1 -1
  99. package/ts/node/node-sys-abstraction.d.ts +14 -1
  100. package/ts/node/node-sys-abstraction.d.ts.map +1 -1
  101. package/ts/node/node-sys-abstraction.js +43 -0
  102. package/ts/node/node-sys-abstraction.js.map +1 -1
  103. package/ts/runtime.d.ts +1 -0
  104. package/ts/runtime.d.ts.map +1 -1
  105. package/ts/runtime.js +10 -3
  106. package/ts/runtime.js.map +1 -1
  107. package/ts/sys-env.d.ts +0 -11
  108. package/ts/sys-env.d.ts.map +1 -1
  109. package/ts/sys-env.js +19 -104
  110. package/ts/sys-env.js.map +1 -1
  111. package/ts/sys-env.test.js +16 -3
  112. package/ts/sys-env.test.js.map +1 -1
  113. package/ts/test/index.d.ts +3 -0
  114. package/ts/test/index.d.ts.map +1 -0
  115. package/ts/test/index.js +3 -0
  116. package/ts/test/index.js.map +1 -0
  117. package/ts/test/test-exit-handler.js +1 -1
  118. package/ts/web/web-sys-abstraction.d.ts +27 -0
  119. package/ts/web/web-sys-abstraction.d.ts.map +1 -1
  120. package/ts/web/web-sys-abstraction.js +35 -1
  121. package/ts/web/web-sys-abstraction.js.map +1 -1
  122. package/utils/index.js +6 -4
  123. package/web/index.cjs +396 -67
  124. package/web/index.cjs.map +1 -1
  125. package/web/index.d.cts +28 -2
  126. package/web/index.d.ts +28 -2
  127. package/web/index.js +5 -2
  128. package/base-sys-abstraction-BPFyK8XL.d.ts +0 -195
  129. package/base-sys-abstraction-KYXfUGd6.d.cts +0 -195
  130. package/chunk-3RHIVQAA.js.map +0 -1
  131. package/chunk-PSPOGR2I.js +0 -627
  132. package/chunk-PSPOGR2I.js.map +0 -1
  133. package/chunk-STUPETPE.js +0 -87
  134. package/chunk-STUPETPE.js.map +0 -1
  135. package/ts/node/deno-sys-abstraction.d.ts +0 -22
  136. package/ts/node/deno-sys-abstraction.d.ts.map +0 -1
  137. package/ts/node/deno-sys-abstraction.js.map +0 -1
  138. /package/ts/{node → deno}/deno-file-service.d.ts +0 -0
package/index.d.cts CHANGED
@@ -1,279 +1,12 @@
1
- import { S as SysAbstraction, T as Time } from './base-sys-abstraction-KYXfUGd6.cjs';
2
- export { t as BaseSysAbstraction, p as BaseSysAbstractionParams, B as BrowserEnvActions, C as ConstTime, D as Duration, f as Env, d as EnvActions, g as EnvFactoryFn, e as EnvFactoryOpts, i as EnvImpl, E as EnvMap, q as ExitHandler, s as ExitService, F as FileService, I as IDMode, o as IdService, N as NamedWritableStream, O as OnSetItem, R as RandomMode, n as RandomService, l as StepTime, b as String2TimeMode, k as SysTime, c as SystemService, m as TimeFactory, a as TimeMode, j as TimeUnits, V as VoidFunc, u as WrapperSysAbstraction, W as WrapperSysAbstractionParams, h as envFactory, r as registerEnvAction } from './base-sys-abstraction-KYXfUGd6.cjs';
1
+ import { d as SysAbstraction, T as Time } from './sys-abstraction-GNnBj2sz.cjs';
2
+ export { D as Duration, c as Env, E as EnvActions, h as EnvFactoryFn, b as EnvFactoryOpts, a as EnvImpl, g as EnvMap, F as FileService, I as IDMode, N as NamedWritableStream, O as OnSetItem, R as RandomMode, f as String2TimeMode, S as SystemService, e as TimeMode, j as TimeUnits, V as VoidFunc, i as envFactory, r as registerEnvAction } from './sys-abstraction-GNnBj2sz.cjs';
3
+ import { L as LogFormatter, a as LogSerializable, b as LevelHandler, c as Logger, d as Level, R as Result, F as FnSerialized, H as HttpType, C as CoerceURI, W as WithLogger, A as AsError, O as Option, e as Future } from './index-BfZxTAe_.cjs';
4
+ export { G as BuildURI, B as HostURIObject, I as IsLogger, K as KeysParam, k as Lengthed, p as LogCollector, f as LogValue, h as LogValueArg, i as LogValueState, o as LogWriteStream, n as LoggerInterface, q as MockLogger, M as MockLoggerReturn, x as MsgFn, E as MutableURL, N as None, P as PathURIObject, s as ResultError, r as ResultOK, S as Serialized, m as SizeOrLength, j as Sized, v as Some, Q as URI, U as URIInterface, z as URIObject, w as WithoutOption, t as WithoutResult, g as asyncLogValue, u as exception2Result, J as hasHostPartProtocols, D as isURL, y as key, l as logValue } from './index-BfZxTAe_.cjs';
3
5
  import { T as TxtEnDecoder } from './txt-en-decoder-CZYJUju2.cjs';
4
6
  export { U as Utf8EnDecoder, a as Utf8EnDecoderSingleton } from './txt-en-decoder-CZYJUju2.cjs';
7
+ export { c as BaseSysAbstraction, B as BaseSysAbstractionParams, C as ConstTime, a as ExitHandler, E as ExitService, I as IdService, R as RandomService, b as StepTime, S as SysTime, T as TimeFactory, d as WrapperSysAbstraction, W as WrapperSysAbstractionParams } from './base-sys-abstraction-DWtPI7Kg.cjs';
5
8
  export { i as utils } from './index-Q3phXzYr.cjs';
6
9
 
7
- declare abstract class Option<T> {
8
- static Some<T>(t: T): Option<T>;
9
- static None<T>(): Option<T>;
10
- static Is<T>(t: unknown): t is Option<T>;
11
- static From<T>(t?: T): Option<T>;
12
- IsNone(): boolean;
13
- IsSome(): boolean;
14
- Unwrap(): T;
15
- abstract is_none(): boolean;
16
- abstract is_some(): boolean;
17
- abstract unwrap(): T;
18
- }
19
- declare class Some<T> extends Option<T> {
20
- private _t;
21
- constructor(_t: T);
22
- is_none(): boolean;
23
- is_some(): boolean;
24
- unwrap(): T;
25
- }
26
- declare class None<T> extends Option<T> {
27
- is_none(): boolean;
28
- is_some(): boolean;
29
- unwrap(): T;
30
- }
31
- type WithoutOption<T> = T extends Option<infer U> ? U : T;
32
-
33
- declare abstract class Result<T, E = Error> {
34
- static Ok<T = void>(t: T): Result<T, Error>;
35
- static Err<T, E extends Error = Error>(t: E | string | Result<unknown, E>): Result<T, E>;
36
- static Is<T>(t: unknown): t is Result<T>;
37
- isOk(): boolean;
38
- isErr(): boolean;
39
- Ok(): T;
40
- Err(): E;
41
- abstract is_ok(): boolean;
42
- abstract is_err(): boolean;
43
- abstract unwrap(): T;
44
- abstract unwrap_err(): E;
45
- }
46
- declare class ResultOK<T> extends Result<T, Error> {
47
- private _t;
48
- constructor(t: T);
49
- is_ok(): boolean;
50
- is_err(): boolean;
51
- unwrap_err(): Error;
52
- unwrap(): T;
53
- }
54
- declare class ResultError<T extends Error> extends Result<never, T> {
55
- private _error;
56
- constructor(t: T);
57
- is_ok(): boolean;
58
- is_err(): boolean;
59
- unwrap(): never;
60
- unwrap_err(): T;
61
- }
62
- type WithoutResult<T> = T extends Result<infer U> ? U : T;
63
- type WithResult<T> = T extends Promise<infer U> ? Promise<Result<U>> : Result<T>;
64
- declare function exception2Result<FN extends () => Promise<T> | T, T>(fn: FN): WithResult<ReturnType<FN>>;
65
-
66
- type StripCommand = string | RegExp;
67
-
68
- type NullOrUndef = null | undefined;
69
- type OneKey<K extends string, V = string> = Record<K, V>;
70
- type MsgFn = (...keys: string[]) => string;
71
- declare class _REQUIRED {
72
- readonly val = "REQUIRED";
73
- }
74
- declare class _OPTIONAL {
75
- readonly val = "OPTIONAL";
76
- }
77
- interface _key {
78
- readonly REQUIRED: _REQUIRED;
79
- readonly OPTIONAL: _OPTIONAL;
80
- }
81
- declare const key: _key;
82
- type KeysParam = (string | MsgFn | Record<string, _REQUIRED | _OPTIONAL | unknown>)[];
83
- interface URIInterface<R extends URIInterface<R>> {
84
- readonly getParams: Iterable<[string, string]>;
85
- hasParam(key: string): boolean;
86
- getParam<T extends string | undefined>(key: string | OneKey<string>, def?: T): T extends string ? string : string | undefined;
87
- getParamResult(key: string, msgFn?: (key: string) => string): Result<string>;
88
- getParamsResult(...keys: KeysParam): Result<Record<string, string>>;
89
- clone(): R;
90
- asURL(): URL;
91
- toString(): string;
92
- toJSON(): string;
93
- asObj(...strips: StripCommand[]): Partial<HostURIObject | PathURIObject>;
94
- }
95
- interface URIObject {
96
- readonly style: "host" | "path";
97
- readonly protocol: string;
98
- readonly pathname: string;
99
- readonly searchParams: Record<string, string>;
100
- }
101
- interface PathURIObject extends URIObject {
102
- readonly style: "path";
103
- }
104
- interface HostURIObject extends URIObject {
105
- readonly style: "host";
106
- readonly hostname: string;
107
- readonly port: string;
108
- }
109
- declare function isURL(value: unknown): value is URL;
110
- declare class MutableURL extends URL {
111
- private readonly _sysURL;
112
- private _protocol;
113
- private _pathname;
114
- private _hasHostpart;
115
- readonly hash: string;
116
- constructor(urlStr: string);
117
- clone(): MutableURL;
118
- get host(): string;
119
- get port(): string;
120
- set port(p: string);
121
- get hostname(): string;
122
- set hostname(h: string);
123
- set pathname(p: string);
124
- get pathname(): string;
125
- get protocol(): string;
126
- set protocol(p: string);
127
- get searchParams(): URLSearchParams;
128
- toString(): string;
129
- }
130
- declare class BuildURI implements URIInterface<BuildURI> {
131
- _url: MutableURL;
132
- private constructor();
133
- static is(value: unknown): value is BuildURI;
134
- static from(strURLUri?: CoerceURI, defaultProtocol?: string): BuildURI;
135
- port(p: string): BuildURI;
136
- hostname(h: string): BuildURI;
137
- protocol(p: string): BuildURI;
138
- pathname(p: string): BuildURI;
139
- resolve(p: CoerceURI): BuildURI;
140
- appendRelative(p: CoerceURI): BuildURI;
141
- cleanParams(): BuildURI;
142
- delParam(key: string): BuildURI;
143
- defParam(key: string, str: string): BuildURI;
144
- setParam(key: string, str: string): BuildURI;
145
- hasParam(key: string): boolean;
146
- get getParams(): Iterable<[string, string]>;
147
- getParam<T extends string | undefined>(key: string | OneKey<string>, def?: T): T extends string ? string : string | undefined;
148
- getParamResult(key: string, msgFn?: (key: string) => string): Result<string>;
149
- getParamsResult(...keys: KeysParam): Result<Record<string, string>>;
150
- toString(): string;
151
- toJSON(): string;
152
- asURL(): URL;
153
- asObj(...strips: StripCommand[]): Partial<HostURIObject | PathURIObject>;
154
- clone(): BuildURI;
155
- URI(): URI;
156
- }
157
- type CoerceURI = string | URI | MutableURL | URL | BuildURI | NullOrUndef;
158
- declare const hasHostPartProtocols: Set<string>;
159
- declare class URI implements URIInterface<URI> {
160
- static protocolHasHostpart(protocol: string): () => void;
161
- static merge(into: CoerceURI, from: CoerceURI, defaultProtocol?: string): URI;
162
- static is(value: unknown): value is URI;
163
- static from(strURLUri?: CoerceURI, defaultProtocol?: string): URI;
164
- static fromResult(strURLUri?: CoerceURI, defaultProtocol?: string): Result<URI>;
165
- readonly _url: MutableURL;
166
- private constructor();
167
- build(): BuildURI;
168
- get hostname(): string;
169
- get port(): string;
170
- get host(): string;
171
- get protocol(): string;
172
- get pathname(): string;
173
- get getParams(): Iterable<[string, string]>;
174
- hasParam(key: string): boolean;
175
- getParam<T extends string | undefined>(key: string | OneKey<string>, def?: T): T extends string ? string : string | undefined;
176
- getParamResult(key: string, msgFn?: (key: string) => string): Result<string>;
177
- getParamsResult(...keys: KeysParam): Result<Record<string, string>>;
178
- clone(): URI;
179
- asURL(): URL;
180
- toString(): string;
181
- toJSON(): string;
182
- asObj(...strips: StripCommand[]): Partial<HostURIObject | PathURIObject>;
183
- }
184
-
185
- declare enum Level {
186
- WARN = "warn",
187
- DEBUG = "debug",
188
- INFO = "info",
189
- ERROR = "error"
190
- }
191
- type Serialized = string | number | boolean;
192
- type FnSerialized = () => Serialized | Serialized[];
193
- declare class LogValue {
194
- readonly fn: FnSerialized;
195
- constructor(fn: FnSerialized);
196
- value(): Serialized | Serialized[];
197
- toJSON(): Serialized | Serialized[];
198
- }
199
- type LogSerializable = Record<string, LogValue | Promise<LogValue>>;
200
- declare function asyncLogValue(val: () => Promise<Serialized>): Promise<LogValue>;
201
- type LogValueArg = LogValue | Serialized | Serialized[] | FnSerialized | undefined | null;
202
- interface LogValueState {
203
- readonly state?: Set<unknown>;
204
- readonly ignoreAttr: Option<RegExp>;
205
- }
206
- declare function logValue(val: LogValueArg, ctx: LogValueState): LogValue;
207
- interface Sized {
208
- size: number;
209
- }
210
- interface Lengthed {
211
- length: number;
212
- }
213
- type SizeOrLength = Sized | Lengthed;
214
- interface LogFormatter {
215
- format(attr: LogSerializable): Uint8Array;
216
- }
217
- interface LevelHandler {
218
- enableLevel(level: Level, ...modules: string[]): void;
219
- disableLevel(level: Level, ...modules: string[]): void;
220
- setExposeStack(enable?: boolean): void;
221
- setIgnoreAttr(re?: RegExp): void;
222
- ignoreAttr: Option<RegExp>;
223
- isStackExposed: boolean;
224
- setDebug(...modules: (string | string[])[]): void;
225
- isEnabled(ilevel: unknown, module: unknown): boolean;
226
- }
227
- type HttpType = Response | Result<Response> | Request | Result<Request>;
228
- interface LoggerInterface<R> {
229
- readonly levelHandler: LevelHandler;
230
- TxtEnDe(): TxtEnDecoder;
231
- Module(key: string): R;
232
- EnableLevel(level: Level, ...modules: string[]): R;
233
- DisableLevel(level: Level, ...modules: string[]): R;
234
- Attributes(): Record<string, unknown>;
235
- SetDebug(...modules: (string | string[])[]): R;
236
- SetIgnoreAttribute(re?: RegExp): R;
237
- SetExposeStack(enable?: boolean): R;
238
- SetFormatter(fmt: LogFormatter): R;
239
- Ref(key: string, action: {
240
- toString: () => string;
241
- } | FnSerialized): R;
242
- Result<T>(key: string, res: Result<T>): R;
243
- Url(url: CoerceURI, key?: string): R;
244
- Len(value: unknown, key?: string): R;
245
- Hash(value: unknown, key?: string): R;
246
- Str<T extends string | Record<string, string>>(key: T, value?: T extends string ? string : undefined): R;
247
- Uint64<T extends string | Record<string, number>>(key: T, value?: T extends string ? number : undefined): R;
248
- Int<T extends string | Record<string, number>>(key: T, value?: T extends string ? number : undefined): R;
249
- Bool<T extends string | Record<string, unknown>>(key: T, value?: T extends string ? unknown : undefined): R;
250
- Any<T extends string | Record<string, unknown>>(key: T, value?: T extends string ? unknown : undefined): R;
251
- Http(...mix: (HttpType | string)[]): R;
252
- Pair(x: Record<string, unknown>): R;
253
- Error(): R;
254
- Warn(): R;
255
- Debug(): R;
256
- Log(): R;
257
- WithLevel(level: Level): R;
258
- Err(err: unknown | Result<unknown> | Error): R;
259
- Info(): R;
260
- Timestamp(): R;
261
- Dur(key: string, nsec: number): R;
262
- }
263
- declare function IsLogger(obj: unknown): obj is Logger;
264
- interface WithLogger extends LoggerInterface<WithLogger> {
265
- Logger(): Logger;
266
- }
267
- interface AsError {
268
- AsError(): Error;
269
- ResultError<T>(): Result<T>;
270
- }
271
- interface Logger extends LoggerInterface<Logger> {
272
- With(): WithLogger;
273
- Msg(...args: string[]): AsError;
274
- Flush(): Promise<void>;
275
- }
276
-
277
10
  declare class LogWriterStream {
278
11
  readonly _out: WritableStream<Uint8Array>;
279
12
  readonly _toFlush: (() => Promise<void>)[];
@@ -353,50 +86,6 @@ declare class LoggerImpl implements Logger {
353
86
  Msg(...args: string[]): AsError;
354
87
  }
355
88
 
356
- declare class Future<T> {
357
- #private;
358
- constructor();
359
- asPromise(): Promise<T>;
360
- resolve(value: T): void;
361
- reject(reason: unknown): void;
362
- }
363
-
364
- declare class LogWriteStream implements WritableStreamDefaultWriter<Uint8Array> {
365
- private readonly _bufferArr;
366
- constructor(bufferArr: Uint8Array[]);
367
- readonly _resolveClosed: Future<undefined>;
368
- readonly closed: Promise<undefined>;
369
- readonly desiredSize: number | null;
370
- readonly ready: Promise<undefined>;
371
- abort(reason?: any): Promise<void>;
372
- close(): Promise<void>;
373
- releaseLock(): void;
374
- write(chunk?: Uint8Array): Promise<void>;
375
- }
376
- declare class LogCollector implements WritableStream<Uint8Array> {
377
- readonly locked: boolean;
378
- private _writer?;
379
- private readonly _pass?;
380
- private readonly _bufferArr;
381
- private readonly _txtEnDe;
382
- constructor(pass?: WritableStreamDefaultWriter<Uint8Array>, txtEnDe?: TxtEnDecoder);
383
- abort(reason?: Uint8Array): Promise<void>;
384
- close(): Promise<void>;
385
- getWriter(): WritableStreamDefaultWriter<Uint8Array>;
386
- Logs(notJsonLine?: boolean): any[];
387
- }
388
-
389
- interface MockLoggerReturn {
390
- readonly logger: Logger;
391
- readonly logCollector: LogCollector;
392
- }
393
- declare function MockLogger(params?: {
394
- readonly sys?: SysAbstraction;
395
- readonly pass?: WritableStreamDefaultWriter<Uint8Array>;
396
- moduleName?: string | string[];
397
- readonly disableDebug?: boolean;
398
- }): MockLoggerReturn;
399
-
400
89
  declare class LevelHandlerImpl implements LevelHandler {
401
90
  readonly _globalLevels: Set<Level>;
402
91
  readonly _modules: Map<string, Set<Level>>;
@@ -518,6 +207,7 @@ interface Runtime {
518
207
  isBrowser: boolean;
519
208
  isDeno: boolean;
520
209
  isReactNative: boolean;
210
+ isCFWorker: boolean;
521
211
  }
522
212
  declare function runtimeFn(): Runtime;
523
213
 
@@ -630,4 +320,4 @@ declare class HttpHeader {
630
320
  Merge(other?: HttpHeader): HttpHeader;
631
321
  }
632
322
 
633
- export { type AsError, BuildURI, type CTAesKeyAlgorithm, type CTAlgorithm, type CTAlgorithmIdentifier, type CTArrayBufferView, type CTBufferSource, type CTCryptoKey, type CTEcKeyImportParams, type CTHmacImportParams, type CTJsonWebKey, type CTKeyFormat, type CTKeyType, type CTKeyUsage, type CTNamedCurve, type CTRsaHashedImportParams, type CleanCtx, type CoerceURI, type CryptoRuntime, type FnSerialized, Future, HeadersImpl, type HostURIObject, HttpHeader, type HttpType, type Invokaction, IsLogger, JSONFormatter, Keyed, KeyedResolvOnce, KeyedResolvSeq, type KeysParam, type Lengthed, Level, type LevelHandler, LevelHandlerImpl, LevelHandlerSingleton, LogCollector, type LogFormatter, type LogSerializable, LogValue, type LogValueArg, type LogValueState, LogWriteStream, type Logger, LoggerImpl, type LoggerImplParams, type LoggerInterface, Metric, type MetricMap, Metrics, MockLogger, type MockLoggerReturn, type MsgFn, MutableURL, None, Option, type PathURIObject, ResolveOnce, ResolveSeq, Result, ResultError, ResultOK, type Runtime, type Serialized, type SizeOrLength, type Sized, Some, SysAbstraction, Time, type TraceCtx, type TraceCtxParam, TraceNode, type TraceNodeMap, TxtEnDecoder, URI, type URIInterface, type URIObject, VERSION, type WithLogger, type WithoutOption, type WithoutResult, YAMLFormatter, asyncLogValue, bin2string, bin2text, exception2Result, hasHostPartProtocols, isURL, key, logValue, runtimeFn, toCryptoRuntime };
323
+ export { AsError, type CTAesKeyAlgorithm, type CTAlgorithm, type CTAlgorithmIdentifier, type CTArrayBufferView, type CTBufferSource, type CTCryptoKey, type CTEcKeyImportParams, type CTHmacImportParams, type CTJsonWebKey, type CTKeyFormat, type CTKeyType, type CTKeyUsage, type CTNamedCurve, type CTRsaHashedImportParams, type CleanCtx, CoerceURI, type CryptoRuntime, FnSerialized, Future, HeadersImpl, HttpHeader, HttpType, type Invokaction, JSONFormatter, Keyed, KeyedResolvOnce, KeyedResolvSeq, Level, LevelHandler, LevelHandlerImpl, LevelHandlerSingleton, LogFormatter, LogSerializable, Logger, LoggerImpl, type LoggerImplParams, Metric, type MetricMap, Metrics, Option, ResolveOnce, ResolveSeq, Result, type Runtime, SysAbstraction, Time, type TraceCtx, type TraceCtxParam, TraceNode, type TraceNodeMap, TxtEnDecoder, VERSION, WithLogger, YAMLFormatter, bin2string, bin2text, runtimeFn, toCryptoRuntime };