@adviser/cement 0.3.19 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base-sys-abstraction-DgTynXGV.d.cts +95 -0
- package/base-sys-abstraction-h0dB3nZ5.d.ts +95 -0
- package/cf/index.cjs +232 -283
- package/cf/index.cjs.map +1 -1
- package/cf/index.d.cts +10 -8
- package/cf/index.d.ts +10 -8
- package/cf/index.js +6 -41
- package/cf/index.js.map +1 -1
- package/{chunk-GDTTUMIL.js → chunk-6F3ACVHD.js} +62 -22
- package/chunk-6F3ACVHD.js.map +1 -0
- package/{chunk-PHS255C5.js → chunk-FOALXQST.js} +1 -68
- package/chunk-FOALXQST.js.map +1 -0
- package/{chunk-23MCJYE6.js → chunk-X3IV2RYT.js} +422 -602
- package/chunk-X3IV2RYT.js.map +1 -0
- package/chunk-YKGCONBX.js +677 -0
- package/chunk-YKGCONBX.js.map +1 -0
- package/{chunk-55W4AK2Z.js → chunk-YVACAIUX.js} +5 -5
- package/deno/index.cjs +257 -241
- package/deno/index.cjs.map +1 -1
- package/deno/index.d.cts +3 -5
- package/deno/index.d.ts +3 -5
- package/deno/index.js +14 -16
- package/deno/index.js.map +1 -1
- package/{index-D1j1fPYg.d.ts → index-N0bkrgSt.d.ts} +15 -3
- package/{index-Cp1NspHH.d.cts → index-TtYD7HhB.d.cts} +15 -3
- package/index.cjs +1851 -1709
- package/index.cjs.map +1 -1
- package/index.d.cts +9 -8
- package/index.d.ts +9 -8
- package/index.js +21 -16
- package/index.js.map +1 -1
- package/metafile-cjs.json +1 -1
- package/metafile-esm.json +1 -1
- package/node/index.cjs +499 -474
- package/node/index.cjs.map +1 -1
- package/node/index.d.cts +3 -5
- package/node/index.d.ts +3 -5
- package/node/index.js +14 -16
- package/node/index.js.map +1 -1
- package/package.json +6 -6
- package/src/base-sys-abstraction.ts +106 -116
- package/src/cf/cf-basic-sys-abstraction.ts +79 -0
- package/src/cf/index.ts +1 -1
- package/src/cf-test-main.ts +10 -1
- package/src/deno/deno-basic-sys-abstraction.ts +39 -0
- package/src/deno/deno-file-service.ts +1 -1
- package/src/deno/deno-sys-abstraction.ts +19 -22
- package/src/jsr.json +1 -1
- package/src/log-writer-impl.ts +6 -0
- package/src/logger-impl.ts +17 -19
- package/src/node/node-basic-sys-abstraction.ts +59 -0
- package/src/node/node-sys-abstraction.ts +19 -22
- package/src/sys-abstraction.ts +12 -6
- package/src/test/mock-logger.ts +2 -2
- package/src/txt-en-decoder.ts +3 -3
- package/src/uri.ts +71 -0
- package/src/web/index.ts +1 -1
- package/src/web/web-basic-sys-abstraction.ts +105 -0
- package/{sys-abstraction-B0x6IE7r.d.ts → sys-abstraction-CeAxxg9H.d.ts} +11 -7
- package/{sys-abstraction-BTs3Vzy4.d.cts → sys-abstraction-DDAwGTnk.d.cts} +11 -7
- package/test/index.cjs +1534 -1419
- package/test/index.cjs.map +1 -1
- package/test/index.d.cts +2 -2
- package/test/index.d.ts +2 -2
- package/test/index.js +4 -5
- package/ts/smoke/smoke.js +7 -8
- package/ts/smoke/smoke.js.map +1 -1
- package/ts/src/base-basic-sys-abstraction.test.d.ts +2 -0
- package/ts/src/base-basic-sys-abstraction.test.d.ts.map +1 -0
- package/ts/src/{base-sys-abstraction.test.js → base-basic-sys-abstraction.test.js} +9 -9
- package/ts/src/base-basic-sys-abstraction.test.js.map +1 -0
- package/ts/src/base-sys-abstraction.d.ts +33 -21
- package/ts/src/base-sys-abstraction.d.ts.map +1 -1
- package/ts/src/base-sys-abstraction.js +54 -67
- package/ts/src/base-sys-abstraction.js.map +1 -1
- package/ts/src/cf/cf-basic-sys-abstraction.d.ts +14 -0
- package/ts/src/cf/cf-basic-sys-abstraction.d.ts.map +1 -0
- package/ts/src/cf/cf-basic-sys-abstraction.js +67 -0
- package/ts/src/cf/cf-basic-sys-abstraction.js.map +1 -0
- package/ts/src/cf/index.d.ts +1 -1
- package/ts/src/cf/index.d.ts.map +1 -1
- package/ts/src/cf/index.js +1 -1
- package/ts/src/cf/index.js.map +1 -1
- package/ts/src/cf-test-main.d.ts.map +1 -1
- package/ts/src/cf-test-main.js +7 -1
- package/ts/src/cf-test-main.js.map +1 -1
- package/ts/src/deno/deno-basic-sys-abstraction.d.ts +14 -0
- package/ts/src/deno/deno-basic-sys-abstraction.d.ts.map +1 -0
- package/ts/src/deno/deno-basic-sys-abstraction.js +35 -0
- package/ts/src/deno/deno-basic-sys-abstraction.js.map +1 -0
- package/ts/src/deno/deno-file-service.d.ts +1 -1
- package/ts/src/deno/deno-file-service.d.ts.map +1 -1
- package/ts/src/deno/deno-sys-abstraction.d.ts +3 -6
- package/ts/src/deno/deno-sys-abstraction.d.ts.map +1 -1
- package/ts/src/deno/deno-sys-abstraction.js +13 -17
- package/ts/src/deno/deno-sys-abstraction.js.map +1 -1
- package/ts/src/log-writer-impl.d.ts +1 -0
- package/ts/src/log-writer-impl.d.ts.map +1 -1
- package/ts/src/log-writer-impl.js +1 -0
- package/ts/src/log-writer-impl.js.map +1 -1
- package/ts/src/logger-impl.d.ts +3 -3
- package/ts/src/logger-impl.d.ts.map +1 -1
- package/ts/src/logger-impl.js +3 -18
- package/ts/src/logger-impl.js.map +1 -1
- package/ts/src/logger.test.js +3 -4
- package/ts/src/logger.test.js.map +1 -1
- package/ts/src/node/node-basic-sys-abstraction.d.ts +25 -0
- package/ts/src/node/node-basic-sys-abstraction.d.ts.map +1 -0
- package/ts/src/node/node-basic-sys-abstraction.js +44 -0
- package/ts/src/node/node-basic-sys-abstraction.js.map +1 -0
- package/ts/src/node/node-sys-abstraction.d.ts +3 -6
- package/ts/src/node/node-sys-abstraction.d.ts.map +1 -1
- package/ts/src/node/node-sys-abstraction.js +13 -17
- package/ts/src/node/node-sys-abstraction.js.map +1 -1
- package/ts/src/node/node-sys-abstraction.test.js +1 -1
- package/ts/src/node/node-sys-abstraction.test.js.map +1 -1
- package/ts/src/resolve-once.test.js +1 -1
- package/ts/src/sys-abstraction.d.ts +10 -6
- package/ts/src/sys-abstraction.d.ts.map +1 -1
- package/ts/src/test/mock-logger.d.ts +2 -2
- package/ts/src/test/mock-logger.d.ts.map +1 -1
- package/ts/src/test/mock-logger.js.map +1 -1
- package/ts/src/tracer.test.js +5 -8
- package/ts/src/tracer.test.js.map +1 -1
- package/ts/src/txt-en-decoder.d.ts.map +1 -1
- package/ts/src/txt-en-decoder.js +3 -3
- package/ts/src/txt-en-decoder.js.map +1 -1
- package/ts/src/uri.d.ts +12 -0
- package/ts/src/uri.d.ts.map +1 -1
- package/ts/src/uri.js +55 -0
- package/ts/src/uri.js.map +1 -1
- package/ts/src/uri.test.js +48 -0
- package/ts/src/uri.test.js.map +1 -1
- package/ts/src/web/index.d.ts +1 -1
- package/ts/src/web/index.d.ts.map +1 -1
- package/ts/src/web/index.js +1 -1
- package/ts/src/web/index.js.map +1 -1
- package/ts/src/web/web-basic-sys-abstraction.d.ts +4 -0
- package/ts/src/web/web-basic-sys-abstraction.d.ts.map +1 -0
- package/ts/src/web/web-basic-sys-abstraction.js +45 -0
- package/ts/src/web/web-basic-sys-abstraction.js.map +1 -0
- package/ts/vitest.workspace.d.ts +1 -1
- package/utils/index.cjs +132 -3
- package/utils/index.cjs.map +1 -1
- package/utils/index.js +5 -5
- package/web/index.cjs +277 -281
- package/web/index.cjs.map +1 -1
- package/web/index.d.cts +4 -17
- package/web/index.d.ts +4 -17
- package/web/index.js +4 -7
- package/base-sys-abstraction-BnBZ6zd0.d.ts +0 -84
- package/base-sys-abstraction-DAZ8tx5F.d.cts +0 -84
- package/chunk-23MCJYE6.js.map +0 -1
- package/chunk-GDTTUMIL.js.map +0 -1
- package/chunk-H6MLKWIZ.js +0 -88
- package/chunk-H6MLKWIZ.js.map +0 -1
- package/chunk-LXTKPZ6M.js +0 -255
- package/chunk-LXTKPZ6M.js.map +0 -1
- package/chunk-PHS255C5.js.map +0 -1
- package/src/cf/cf-sys-abstraction.ts +0 -34
- package/src/web/web-sys-abstraction.ts +0 -80
- package/ts/src/base-sys-abstraction.test.d.ts +0 -2
- package/ts/src/base-sys-abstraction.test.d.ts.map +0 -1
- package/ts/src/base-sys-abstraction.test.js.map +0 -1
- package/ts/src/cf/cf-sys-abstraction.d.ts +0 -11
- package/ts/src/cf/cf-sys-abstraction.d.ts.map +0 -1
- package/ts/src/cf/cf-sys-abstraction.js +0 -30
- package/ts/src/cf/cf-sys-abstraction.js.map +0 -1
- package/ts/src/web/web-sys-abstraction.d.ts +0 -18
- package/ts/src/web/web-sys-abstraction.d.ts.map +0 -1
- package/ts/src/web/web-sys-abstraction.js +0 -64
- package/ts/src/web/web-sys-abstraction.js.map +0 -1
- /package/{chunk-55W4AK2Z.js.map → chunk-YVACAIUX.js.map} +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
import { R as Result, K as KeysParam, T as TxtEnDecoder } from './get-params-result-4xHM5s4_.js';
|
2
2
|
import { S as StripCommand } from './stripper-BpBUUZ9p.js';
|
3
|
-
import {
|
3
|
+
import { B as BasicSysAbstraction } from './sys-abstraction-CeAxxg9H.js';
|
4
4
|
|
5
5
|
declare abstract class Option<T> {
|
6
6
|
static Some<T>(t: T): Option<T>;
|
@@ -36,12 +36,22 @@ interface URIInterface<R extends URIInterface<R>> {
|
|
36
36
|
getParam<T extends string | undefined>(key: string | OneKey<string>, def?: T): T extends string ? string : string | undefined;
|
37
37
|
getParamResult(key: string, msgFn?: (key: string) => string): Result<string>;
|
38
38
|
getParamsResult(...keys: KeysParam): Result<Record<string, string>>;
|
39
|
+
match(other: CoerceURI): MatchResult;
|
39
40
|
clone(): R;
|
40
41
|
asURL(): URL;
|
41
42
|
toString(): string;
|
42
43
|
toJSON(): string;
|
43
44
|
asObj(...strips: StripCommand[]): Partial<HostURIObject | PathURIObject>;
|
44
45
|
}
|
46
|
+
interface MatchResult {
|
47
|
+
readonly score: number;
|
48
|
+
readonly protocol: boolean;
|
49
|
+
readonly hostname: boolean;
|
50
|
+
readonly port: boolean;
|
51
|
+
readonly pathname: boolean;
|
52
|
+
readonly pathParts: string[];
|
53
|
+
readonly params: Record<string, string>;
|
54
|
+
}
|
45
55
|
interface URIObject {
|
46
56
|
readonly style: "host" | "path";
|
47
57
|
readonly protocol: string;
|
@@ -82,6 +92,7 @@ declare class BuildURI implements URIInterface<BuildURI> {
|
|
82
92
|
private constructor();
|
83
93
|
static is(value: unknown): value is BuildURI;
|
84
94
|
static from(strURLUri?: CoerceURI, defaultProtocol?: string): BuildURI;
|
95
|
+
match(other: CoerceURI): MatchResult;
|
85
96
|
port(p: string): BuildURI;
|
86
97
|
hostname(h: string): BuildURI;
|
87
98
|
protocol(p: string): BuildURI;
|
@@ -109,6 +120,7 @@ declare function isCoerceURI(value: unknown): value is CoerceURI;
|
|
109
120
|
declare const hasHostPartProtocols: Set<string>;
|
110
121
|
declare class URI implements URIInterface<URI> {
|
111
122
|
static protocolHasHostpart(protocol: string): () => void;
|
123
|
+
match(other: CoerceURI): MatchResult;
|
112
124
|
static merge(into: CoerceURI, from: CoerceURI, defaultProtocol?: string): URI;
|
113
125
|
static is(value: unknown): value is URI;
|
114
126
|
static from(strURLUri?: CoerceURI, defaultProtocol?: string): URI;
|
@@ -264,10 +276,10 @@ interface MockLoggerReturn {
|
|
264
276
|
readonly logCollector: LogCollector;
|
265
277
|
}
|
266
278
|
declare function MockLogger(params?: {
|
267
|
-
readonly sys?:
|
279
|
+
readonly sys?: BasicSysAbstraction;
|
268
280
|
readonly pass?: WritableStreamDefaultWriter<Uint8Array>;
|
269
281
|
moduleName?: string | string[];
|
270
282
|
readonly disableDebug?: boolean;
|
271
283
|
}): MockLoggerReturn;
|
272
284
|
|
273
|
-
export { type AsError as A, BuildURI as B, type CoerceURI as C, type FnSerialized as F, type HttpType as H, IsLogger as I, type LogFormatter as L, type MockLoggerReturn as M, None as N, Option as O, type PathURIObject as P, type Serialized as S, type URIInterface as U, type WithLogger as W, type LogSerializable as a, type LevelHandler as b, type Logger as c, Level as d, Future as e, LogValue as f, asyncLogValue as g, type LogValueArg as h, type LogValueState as i, type Sized as j, type Lengthed as k, logValue as l, type SizeOrLength as m, type LoggerInterface as n, LogWriteStream as o, LogCollector as p, MockLogger as q, Some as r, type WithoutOption as s, type
|
285
|
+
export { type AsError as A, BuildURI as B, type CoerceURI as C, URI as D, type FnSerialized as F, type HttpType as H, IsLogger as I, type LogFormatter as L, type MockLoggerReturn as M, None as N, Option as O, type PathURIObject as P, type Serialized as S, type URIInterface as U, type WithLogger as W, type LogSerializable as a, type LevelHandler as b, type Logger as c, Level as d, Future as e, LogValue as f, asyncLogValue as g, type LogValueArg as h, type LogValueState as i, type Sized as j, type Lengthed as k, logValue as l, type SizeOrLength as m, type LoggerInterface as n, LogWriteStream as o, LogCollector as p, MockLogger as q, Some as r, type WithoutOption as s, type MatchResult as t, type URIObject as u, type HostURIObject as v, isURL as w, MutableURL as x, isCoerceURI as y, hasHostPartProtocols as z };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { R as Result, K as KeysParam, T as TxtEnDecoder } from './get-params-result-4xHM5s4_.cjs';
|
2
2
|
import { S as StripCommand } from './stripper-BpBUUZ9p.cjs';
|
3
|
-
import {
|
3
|
+
import { B as BasicSysAbstraction } from './sys-abstraction-DDAwGTnk.cjs';
|
4
4
|
|
5
5
|
declare abstract class Option<T> {
|
6
6
|
static Some<T>(t: T): Option<T>;
|
@@ -36,12 +36,22 @@ interface URIInterface<R extends URIInterface<R>> {
|
|
36
36
|
getParam<T extends string | undefined>(key: string | OneKey<string>, def?: T): T extends string ? string : string | undefined;
|
37
37
|
getParamResult(key: string, msgFn?: (key: string) => string): Result<string>;
|
38
38
|
getParamsResult(...keys: KeysParam): Result<Record<string, string>>;
|
39
|
+
match(other: CoerceURI): MatchResult;
|
39
40
|
clone(): R;
|
40
41
|
asURL(): URL;
|
41
42
|
toString(): string;
|
42
43
|
toJSON(): string;
|
43
44
|
asObj(...strips: StripCommand[]): Partial<HostURIObject | PathURIObject>;
|
44
45
|
}
|
46
|
+
interface MatchResult {
|
47
|
+
readonly score: number;
|
48
|
+
readonly protocol: boolean;
|
49
|
+
readonly hostname: boolean;
|
50
|
+
readonly port: boolean;
|
51
|
+
readonly pathname: boolean;
|
52
|
+
readonly pathParts: string[];
|
53
|
+
readonly params: Record<string, string>;
|
54
|
+
}
|
45
55
|
interface URIObject {
|
46
56
|
readonly style: "host" | "path";
|
47
57
|
readonly protocol: string;
|
@@ -82,6 +92,7 @@ declare class BuildURI implements URIInterface<BuildURI> {
|
|
82
92
|
private constructor();
|
83
93
|
static is(value: unknown): value is BuildURI;
|
84
94
|
static from(strURLUri?: CoerceURI, defaultProtocol?: string): BuildURI;
|
95
|
+
match(other: CoerceURI): MatchResult;
|
85
96
|
port(p: string): BuildURI;
|
86
97
|
hostname(h: string): BuildURI;
|
87
98
|
protocol(p: string): BuildURI;
|
@@ -109,6 +120,7 @@ declare function isCoerceURI(value: unknown): value is CoerceURI;
|
|
109
120
|
declare const hasHostPartProtocols: Set<string>;
|
110
121
|
declare class URI implements URIInterface<URI> {
|
111
122
|
static protocolHasHostpart(protocol: string): () => void;
|
123
|
+
match(other: CoerceURI): MatchResult;
|
112
124
|
static merge(into: CoerceURI, from: CoerceURI, defaultProtocol?: string): URI;
|
113
125
|
static is(value: unknown): value is URI;
|
114
126
|
static from(strURLUri?: CoerceURI, defaultProtocol?: string): URI;
|
@@ -264,10 +276,10 @@ interface MockLoggerReturn {
|
|
264
276
|
readonly logCollector: LogCollector;
|
265
277
|
}
|
266
278
|
declare function MockLogger(params?: {
|
267
|
-
readonly sys?:
|
279
|
+
readonly sys?: BasicSysAbstraction;
|
268
280
|
readonly pass?: WritableStreamDefaultWriter<Uint8Array>;
|
269
281
|
moduleName?: string | string[];
|
270
282
|
readonly disableDebug?: boolean;
|
271
283
|
}): MockLoggerReturn;
|
272
284
|
|
273
|
-
export { type AsError as A, BuildURI as B, type CoerceURI as C, type FnSerialized as F, type HttpType as H, IsLogger as I, type LogFormatter as L, type MockLoggerReturn as M, None as N, Option as O, type PathURIObject as P, type Serialized as S, type URIInterface as U, type WithLogger as W, type LogSerializable as a, type LevelHandler as b, type Logger as c, Level as d, Future as e, LogValue as f, asyncLogValue as g, type LogValueArg as h, type LogValueState as i, type Sized as j, type Lengthed as k, logValue as l, type SizeOrLength as m, type LoggerInterface as n, LogWriteStream as o, LogCollector as p, MockLogger as q, Some as r, type WithoutOption as s, type
|
285
|
+
export { type AsError as A, BuildURI as B, type CoerceURI as C, URI as D, type FnSerialized as F, type HttpType as H, IsLogger as I, type LogFormatter as L, type MockLoggerReturn as M, None as N, Option as O, type PathURIObject as P, type Serialized as S, type URIInterface as U, type WithLogger as W, type LogSerializable as a, type LevelHandler as b, type Logger as c, Level as d, Future as e, LogValue as f, asyncLogValue as g, type LogValueArg as h, type LogValueState as i, type Sized as j, type Lengthed as k, logValue as l, type SizeOrLength as m, type LoggerInterface as n, LogWriteStream as o, LogCollector as p, MockLogger as q, Some as r, type WithoutOption as s, type MatchResult as t, type URIObject as u, type HostURIObject as v, isURL as w, MutableURL as x, isCoerceURI as y, hasHostPartProtocols as z };
|