@adviser/cement 0.2.17 → 0.2.19
Sign up to get free protection for your applications and to get access to all the features.
- package/{sys_abstraction-CmSCeK7b.d.cts → base-sys-abstraction-C9WW3w57.d.cts} +79 -2
- package/{sys_abstraction-CmSCeK7b.d.ts → base-sys-abstraction-C9WW3w57.d.ts} +79 -2
- package/{chunk-XJF7FQUN.js → chunk-2L33RPFJ.js} +3 -3
- package/{chunk-XJF7FQUN.js.map → chunk-2L33RPFJ.js.map} +1 -1
- package/chunk-AO7BGISE.js +353 -0
- package/chunk-AO7BGISE.js.map +1 -0
- package/{chunk-J2IM7FHM.js → chunk-I4NUGWZ6.js} +6 -1
- package/{chunk-O4F5AURC.js → chunk-JYUQZNDZ.js} +187 -179
- package/chunk-JYUQZNDZ.js.map +1 -0
- package/index-_GuS2IT4.d.cts +93 -0
- package/index-_GuS2IT4.d.ts +93 -0
- package/index.cjs +515 -183
- package/index.cjs.map +1 -1
- package/index.d.cts +32 -33
- package/index.d.ts +32 -33
- package/index.js +178 -174
- package/index.js.map +1 -1
- package/node/index.cjs +12 -10
- package/node/index.cjs.map +1 -1
- package/node/index.d.cts +1 -2
- package/node/index.d.ts +1 -2
- package/node/index.js +5 -5
- package/node/index.js.map +1 -1
- package/package.json +7 -3
- package/utils/index.cjs +98 -2
- package/utils/index.cjs.map +1 -1
- package/utils/index.d.cts +2 -36
- package/utils/index.d.ts +2 -36
- package/utils/index.js +21 -221
- package/utils/index.js.map +1 -1
- package/web/index.cjs +10 -8
- package/web/index.cjs.map +1 -1
- package/web/index.d.cts +1 -2
- package/web/index.d.ts +1 -2
- package/web/index.js +3 -3
- package/base_sys_abstraction-CJqRmTui.d.ts +0 -21
- package/base_sys_abstraction-nsNTl07w.d.cts +0 -21
- package/chunk-O4F5AURC.js.map +0 -1
- /package/{chunk-J2IM7FHM.js.map → chunk-I4NUGWZ6.js.map} +0 -0
package/index.d.cts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import { S as SysAbstraction } from './
|
2
|
-
export { B as BrowserEnvActions, D as Duration, e as Env, c as EnvActions, d as EnvFactoryOpts, g as EnvImpl, E as EnvMap, F as FileService, I as IDMode, N as NamedWritableStream, O as OnSetItem, R as RandomMode, a as String2TimeMode, b as SystemService, h as Time, T as TimeMode, i as TimeUnits, V as VoidFunc, f as envFactory } from './
|
3
|
-
|
1
|
+
import { S as SysAbstraction } from './base-sys-abstraction-C9WW3w57.cjs';
|
2
|
+
export { r as BaseSysAbstraction, o as BaseSysAbstractionParams, B as BrowserEnvActions, C as ConstTime, D as Duration, e as Env, c as EnvActions, d as EnvFactoryOpts, g as EnvImpl, E as EnvMap, p as ExitHandler, q as ExitService, F as FileService, I as IDMode, n as IdService, N as NamedWritableStream, O as OnSetItem, R as RandomMode, m as RandomService, k as StepTime, a as String2TimeMode, j as SysTime, b as SystemService, h as Time, l as TimeFactory, T as TimeMode, i as TimeUnits, V as VoidFunc, s as WrapperSysAbstraction, W as WrapperSysAbstractionParams, f as envFactory } from './base-sys-abstraction-C9WW3w57.cjs';
|
3
|
+
export { i as utils } from './index-_GuS2IT4.cjs';
|
4
|
+
import 'vitest';
|
4
5
|
|
5
6
|
declare abstract class Result<T, E = Error> {
|
6
7
|
static Ok<T>(t: T): Result<T, Error>;
|
@@ -35,49 +36,56 @@ type WithoutResult<T> = T extends Result<infer U> ? U : T;
|
|
35
36
|
|
36
37
|
type NullOrUndef = null | undefined;
|
37
38
|
declare function isURL(value: unknown): value is URL;
|
39
|
+
declare class MutableURL extends URL {
|
40
|
+
private readonly _sysURL;
|
41
|
+
private _protocol;
|
42
|
+
private _pathname;
|
43
|
+
private _hasHostpart;
|
44
|
+
readonly hash: string;
|
45
|
+
constructor(urlStr: string);
|
46
|
+
clone(): MutableURL;
|
47
|
+
get hostname(): string;
|
48
|
+
set hostname(h: string);
|
49
|
+
set pathname(p: string);
|
50
|
+
get pathname(): string;
|
51
|
+
get protocol(): string;
|
52
|
+
set protocol(p: string);
|
53
|
+
get searchParams(): URLSearchParams;
|
54
|
+
toString(): string;
|
55
|
+
}
|
38
56
|
declare class BuildURI {
|
39
|
-
_url:
|
57
|
+
_url: MutableURL;
|
40
58
|
private constructor();
|
41
59
|
static is(value: unknown): value is BuildURI;
|
42
60
|
static from(strURLUri?: CoerceURI, defaultProtocol?: string): BuildURI;
|
43
61
|
hostname(h: string): this;
|
44
|
-
password(p: string): this;
|
45
|
-
port(p: string): this;
|
46
|
-
username(u: string): this;
|
47
|
-
search(s: string): this;
|
48
62
|
protocol(p: string): this;
|
49
63
|
pathname(p: string): this;
|
50
|
-
hash(h: string): this;
|
51
|
-
host(h: string): this;
|
52
64
|
delParam(key: string): this;
|
53
65
|
defParam(key: string, str: string): this;
|
54
66
|
setParam(key: string, str: string): this;
|
55
67
|
toString(): string;
|
68
|
+
toJSON(): string;
|
56
69
|
URI(): URI;
|
57
70
|
}
|
58
|
-
type CoerceURI = string |
|
71
|
+
type CoerceURI = string | URI | MutableURL | BuildURI | NullOrUndef;
|
59
72
|
declare class URI {
|
60
73
|
static merge(into: CoerceURI, from: CoerceURI, defaultProtocol?: string): URI;
|
61
74
|
static is(value: unknown): value is URI;
|
62
75
|
static from(strURLUri?: CoerceURI, defaultProtocol?: string): URI;
|
63
|
-
readonly _url:
|
76
|
+
readonly _url: MutableURL;
|
64
77
|
private constructor();
|
65
78
|
build(): BuildURI;
|
66
79
|
get hostname(): string;
|
67
|
-
get password(): string;
|
68
|
-
get port(): string;
|
69
|
-
get username(): string;
|
70
|
-
get search(): string;
|
71
80
|
get protocol(): string;
|
72
81
|
get pathname(): string;
|
73
|
-
get hash(): string;
|
74
|
-
get host(): string;
|
75
82
|
get getParams(): Iterable<[string, string]>;
|
76
83
|
hasParam(key: string): boolean;
|
77
84
|
getParam(key: string): string | undefined;
|
78
85
|
clone(): URI;
|
79
86
|
asURL(): URL;
|
80
87
|
toString(): string;
|
88
|
+
toJSON(): string;
|
81
89
|
}
|
82
90
|
|
83
91
|
declare enum Level {
|
@@ -109,6 +117,7 @@ interface LoggerInterface<R> {
|
|
109
117
|
Module(key: string): R;
|
110
118
|
EnableLevel(level: Level, ...modules: string[]): R;
|
111
119
|
DisableLevel(level: Level, ...modules: string[]): R;
|
120
|
+
Attributes(): Record<string, unknown>;
|
112
121
|
SetDebug(...modules: (string | string[])[]): R;
|
113
122
|
SetExposeStack(enable?: boolean): R;
|
114
123
|
Ref(key: string, action: {
|
@@ -188,6 +197,7 @@ declare class LoggerImpl implements Logger {
|
|
188
197
|
readonly _logWriter: LogWriterStream;
|
189
198
|
readonly _levelHandler: LevelHandler;
|
190
199
|
constructor(params?: LoggerImplParams);
|
200
|
+
Attributes(): Record<string, unknown>;
|
191
201
|
SetExposeStack(enable?: boolean): Logger;
|
192
202
|
EnableLevel(level: Level, ...modules: string[]): Logger;
|
193
203
|
DisableLevel(level: Level, ...modules: string[]): Logger;
|
@@ -229,7 +239,7 @@ declare class Future<T> {
|
|
229
239
|
reject(reason: unknown): void;
|
230
240
|
}
|
231
241
|
|
232
|
-
declare class
|
242
|
+
declare class LogWriteStream implements WritableStreamDefaultWriter<Uint8Array> {
|
233
243
|
private readonly _bufferArr;
|
234
244
|
constructor(bufferArr: Uint8Array[]);
|
235
245
|
readonly _resolveClosed: Future<undefined>;
|
@@ -241,26 +251,15 @@ declare class LogWriterCollector implements WritableStreamDefaultWriter$1<Uint8A
|
|
241
251
|
releaseLock(): void;
|
242
252
|
write(chunk?: Uint8Array): Promise<void>;
|
243
253
|
}
|
244
|
-
declare class FanoutWriter implements WritableStreamDefaultWriter$1<Uint8Array> {
|
245
|
-
readonly _writers: WritableStreamDefaultWriter$1<Uint8Array>[];
|
246
|
-
readonly ready: Promise<undefined>;
|
247
|
-
readonly closed: Promise<undefined>;
|
248
|
-
readonly desiredSize: number | null;
|
249
|
-
constructor(writers: WritableStreamDefaultWriter$1<Uint8Array>[]);
|
250
|
-
abort(reason?: any): Promise<void>;
|
251
|
-
close(): Promise<void>;
|
252
|
-
releaseLock(): void;
|
253
|
-
write(chunk?: Uint8Array | undefined): Promise<void>;
|
254
|
-
}
|
255
254
|
declare class LogCollector implements WritableStream<Uint8Array> {
|
256
255
|
readonly locked: boolean;
|
257
256
|
private _writer?;
|
258
257
|
private readonly _pass?;
|
259
258
|
private readonly _bufferArr;
|
260
|
-
constructor(pass?: WritableStreamDefaultWriter
|
259
|
+
constructor(pass?: WritableStreamDefaultWriter<Uint8Array>);
|
261
260
|
abort(reason?: Uint8Array): Promise<void>;
|
262
261
|
close(): Promise<void>;
|
263
|
-
getWriter(): WritableStreamDefaultWriter
|
262
|
+
getWriter(): WritableStreamDefaultWriter<Uint8Array>;
|
264
263
|
Logs(): any[];
|
265
264
|
}
|
266
265
|
|
@@ -425,4 +424,4 @@ interface CryptoRuntime {
|
|
425
424
|
}
|
426
425
|
declare function toCryptoRuntime(cryptoOpts?: Partial<CryptoRuntime>): CryptoRuntime;
|
427
426
|
|
428
|
-
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 CoerceURI, type CryptoRuntime,
|
427
|
+
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 CoerceURI, type CryptoRuntime, type FnSerialized, Future, IsLogger, Keyed, KeyedResolvOnce, KeyedResolvSeq, type Lengthed, Level, type LevelHandler, LevelHandlerImpl, LogCollector, type LogSerializable, LogValue, LogWriteStream, LogWriterStream, type Logger, LoggerImpl, type LoggerImplParams, type LoggerInterface, MockLogger, type MockLoggerReturn, MutableURL, None, Option, ResolveOnce, ResolveSeq, Result, ResultError, ResultOK, type Runtime, type Serialized, type SizeOrLength, type Sized, Some, SysAbstraction, URI, type WithLogger, type WithoutOption, type WithoutResult, asyncLogValue, isURL, logValue, removeSelfRef, runtimeFn, toCryptoRuntime };
|
package/index.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import { S as SysAbstraction } from './
|
2
|
-
export { B as BrowserEnvActions, D as Duration, e as Env, c as EnvActions, d as EnvFactoryOpts, g as EnvImpl, E as EnvMap, F as FileService, I as IDMode, N as NamedWritableStream, O as OnSetItem, R as RandomMode, a as String2TimeMode, b as SystemService, h as Time, T as TimeMode, i as TimeUnits, V as VoidFunc, f as envFactory } from './
|
3
|
-
|
1
|
+
import { S as SysAbstraction } from './base-sys-abstraction-C9WW3w57.js';
|
2
|
+
export { r as BaseSysAbstraction, o as BaseSysAbstractionParams, B as BrowserEnvActions, C as ConstTime, D as Duration, e as Env, c as EnvActions, d as EnvFactoryOpts, g as EnvImpl, E as EnvMap, p as ExitHandler, q as ExitService, F as FileService, I as IDMode, n as IdService, N as NamedWritableStream, O as OnSetItem, R as RandomMode, m as RandomService, k as StepTime, a as String2TimeMode, j as SysTime, b as SystemService, h as Time, l as TimeFactory, T as TimeMode, i as TimeUnits, V as VoidFunc, s as WrapperSysAbstraction, W as WrapperSysAbstractionParams, f as envFactory } from './base-sys-abstraction-C9WW3w57.js';
|
3
|
+
export { i as utils } from './index-_GuS2IT4.js';
|
4
|
+
import 'vitest';
|
4
5
|
|
5
6
|
declare abstract class Result<T, E = Error> {
|
6
7
|
static Ok<T>(t: T): Result<T, Error>;
|
@@ -35,49 +36,56 @@ type WithoutResult<T> = T extends Result<infer U> ? U : T;
|
|
35
36
|
|
36
37
|
type NullOrUndef = null | undefined;
|
37
38
|
declare function isURL(value: unknown): value is URL;
|
39
|
+
declare class MutableURL extends URL {
|
40
|
+
private readonly _sysURL;
|
41
|
+
private _protocol;
|
42
|
+
private _pathname;
|
43
|
+
private _hasHostpart;
|
44
|
+
readonly hash: string;
|
45
|
+
constructor(urlStr: string);
|
46
|
+
clone(): MutableURL;
|
47
|
+
get hostname(): string;
|
48
|
+
set hostname(h: string);
|
49
|
+
set pathname(p: string);
|
50
|
+
get pathname(): string;
|
51
|
+
get protocol(): string;
|
52
|
+
set protocol(p: string);
|
53
|
+
get searchParams(): URLSearchParams;
|
54
|
+
toString(): string;
|
55
|
+
}
|
38
56
|
declare class BuildURI {
|
39
|
-
_url:
|
57
|
+
_url: MutableURL;
|
40
58
|
private constructor();
|
41
59
|
static is(value: unknown): value is BuildURI;
|
42
60
|
static from(strURLUri?: CoerceURI, defaultProtocol?: string): BuildURI;
|
43
61
|
hostname(h: string): this;
|
44
|
-
password(p: string): this;
|
45
|
-
port(p: string): this;
|
46
|
-
username(u: string): this;
|
47
|
-
search(s: string): this;
|
48
62
|
protocol(p: string): this;
|
49
63
|
pathname(p: string): this;
|
50
|
-
hash(h: string): this;
|
51
|
-
host(h: string): this;
|
52
64
|
delParam(key: string): this;
|
53
65
|
defParam(key: string, str: string): this;
|
54
66
|
setParam(key: string, str: string): this;
|
55
67
|
toString(): string;
|
68
|
+
toJSON(): string;
|
56
69
|
URI(): URI;
|
57
70
|
}
|
58
|
-
type CoerceURI = string |
|
71
|
+
type CoerceURI = string | URI | MutableURL | BuildURI | NullOrUndef;
|
59
72
|
declare class URI {
|
60
73
|
static merge(into: CoerceURI, from: CoerceURI, defaultProtocol?: string): URI;
|
61
74
|
static is(value: unknown): value is URI;
|
62
75
|
static from(strURLUri?: CoerceURI, defaultProtocol?: string): URI;
|
63
|
-
readonly _url:
|
76
|
+
readonly _url: MutableURL;
|
64
77
|
private constructor();
|
65
78
|
build(): BuildURI;
|
66
79
|
get hostname(): string;
|
67
|
-
get password(): string;
|
68
|
-
get port(): string;
|
69
|
-
get username(): string;
|
70
|
-
get search(): string;
|
71
80
|
get protocol(): string;
|
72
81
|
get pathname(): string;
|
73
|
-
get hash(): string;
|
74
|
-
get host(): string;
|
75
82
|
get getParams(): Iterable<[string, string]>;
|
76
83
|
hasParam(key: string): boolean;
|
77
84
|
getParam(key: string): string | undefined;
|
78
85
|
clone(): URI;
|
79
86
|
asURL(): URL;
|
80
87
|
toString(): string;
|
88
|
+
toJSON(): string;
|
81
89
|
}
|
82
90
|
|
83
91
|
declare enum Level {
|
@@ -109,6 +117,7 @@ interface LoggerInterface<R> {
|
|
109
117
|
Module(key: string): R;
|
110
118
|
EnableLevel(level: Level, ...modules: string[]): R;
|
111
119
|
DisableLevel(level: Level, ...modules: string[]): R;
|
120
|
+
Attributes(): Record<string, unknown>;
|
112
121
|
SetDebug(...modules: (string | string[])[]): R;
|
113
122
|
SetExposeStack(enable?: boolean): R;
|
114
123
|
Ref(key: string, action: {
|
@@ -188,6 +197,7 @@ declare class LoggerImpl implements Logger {
|
|
188
197
|
readonly _logWriter: LogWriterStream;
|
189
198
|
readonly _levelHandler: LevelHandler;
|
190
199
|
constructor(params?: LoggerImplParams);
|
200
|
+
Attributes(): Record<string, unknown>;
|
191
201
|
SetExposeStack(enable?: boolean): Logger;
|
192
202
|
EnableLevel(level: Level, ...modules: string[]): Logger;
|
193
203
|
DisableLevel(level: Level, ...modules: string[]): Logger;
|
@@ -229,7 +239,7 @@ declare class Future<T> {
|
|
229
239
|
reject(reason: unknown): void;
|
230
240
|
}
|
231
241
|
|
232
|
-
declare class
|
242
|
+
declare class LogWriteStream implements WritableStreamDefaultWriter<Uint8Array> {
|
233
243
|
private readonly _bufferArr;
|
234
244
|
constructor(bufferArr: Uint8Array[]);
|
235
245
|
readonly _resolveClosed: Future<undefined>;
|
@@ -241,26 +251,15 @@ declare class LogWriterCollector implements WritableStreamDefaultWriter$1<Uint8A
|
|
241
251
|
releaseLock(): void;
|
242
252
|
write(chunk?: Uint8Array): Promise<void>;
|
243
253
|
}
|
244
|
-
declare class FanoutWriter implements WritableStreamDefaultWriter$1<Uint8Array> {
|
245
|
-
readonly _writers: WritableStreamDefaultWriter$1<Uint8Array>[];
|
246
|
-
readonly ready: Promise<undefined>;
|
247
|
-
readonly closed: Promise<undefined>;
|
248
|
-
readonly desiredSize: number | null;
|
249
|
-
constructor(writers: WritableStreamDefaultWriter$1<Uint8Array>[]);
|
250
|
-
abort(reason?: any): Promise<void>;
|
251
|
-
close(): Promise<void>;
|
252
|
-
releaseLock(): void;
|
253
|
-
write(chunk?: Uint8Array | undefined): Promise<void>;
|
254
|
-
}
|
255
254
|
declare class LogCollector implements WritableStream<Uint8Array> {
|
256
255
|
readonly locked: boolean;
|
257
256
|
private _writer?;
|
258
257
|
private readonly _pass?;
|
259
258
|
private readonly _bufferArr;
|
260
|
-
constructor(pass?: WritableStreamDefaultWriter
|
259
|
+
constructor(pass?: WritableStreamDefaultWriter<Uint8Array>);
|
261
260
|
abort(reason?: Uint8Array): Promise<void>;
|
262
261
|
close(): Promise<void>;
|
263
|
-
getWriter(): WritableStreamDefaultWriter
|
262
|
+
getWriter(): WritableStreamDefaultWriter<Uint8Array>;
|
264
263
|
Logs(): any[];
|
265
264
|
}
|
266
265
|
|
@@ -425,4 +424,4 @@ interface CryptoRuntime {
|
|
425
424
|
}
|
426
425
|
declare function toCryptoRuntime(cryptoOpts?: Partial<CryptoRuntime>): CryptoRuntime;
|
427
426
|
|
428
|
-
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 CoerceURI, type CryptoRuntime,
|
427
|
+
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 CoerceURI, type CryptoRuntime, type FnSerialized, Future, IsLogger, Keyed, KeyedResolvOnce, KeyedResolvSeq, type Lengthed, Level, type LevelHandler, LevelHandlerImpl, LogCollector, type LogSerializable, LogValue, LogWriteStream, LogWriterStream, type Logger, LoggerImpl, type LoggerImplParams, type LoggerInterface, MockLogger, type MockLoggerReturn, MutableURL, None, Option, ResolveOnce, ResolveSeq, Result, ResultError, ResultOK, type Runtime, type Serialized, type SizeOrLength, type Sized, Some, SysAbstraction, URI, type WithLogger, type WithoutOption, type WithoutResult, asyncLogValue, isURL, logValue, removeSelfRef, runtimeFn, toCryptoRuntime };
|