@adviser/cement 0.3.14 → 0.3.16

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 (116) hide show
  1. package/{base-sys-abstraction-8v83VyEU.d.ts → base-sys-abstraction-BnBZ6zd0.d.ts} +2 -2
  2. package/{base-sys-abstraction-4Vw4QGaI.d.cts → base-sys-abstraction-DAZ8tx5F.d.cts} +2 -2
  3. package/cf/index.cjs +46 -18
  4. package/cf/index.cjs.map +1 -1
  5. package/cf/index.d.cts +3 -3
  6. package/cf/index.d.ts +3 -3
  7. package/cf/index.js +3 -3
  8. package/{chunk-W53WEZWY.js → chunk-55W4AK2Z.js} +3 -5
  9. package/{chunk-W53WEZWY.js.map → chunk-55W4AK2Z.js.map} +1 -1
  10. package/{chunk-22GI5ETU.js → chunk-H3CAVBMO.js} +41 -42
  11. package/chunk-H3CAVBMO.js.map +1 -0
  12. package/{chunk-A57BAYWU.js → chunk-LXTKPZ6M.js} +10 -8
  13. package/chunk-LXTKPZ6M.js.map +1 -0
  14. package/{chunk-KY47QBK3.js → chunk-WGRZHIFK.js} +155 -152
  15. package/chunk-WGRZHIFK.js.map +1 -0
  16. package/{chunk-GLUGMVET.js → chunk-Z3IR6QEZ.js} +3 -3
  17. package/deno/index.cjs +46 -18
  18. package/deno/index.cjs.map +1 -1
  19. package/deno/index.d.cts +3 -3
  20. package/deno/index.d.ts +3 -3
  21. package/deno/index.js +2 -2
  22. package/{get-params-result-C2cbgB78.d.ts → get-params-result-4xHM5s4_.d.cts} +14 -10
  23. package/{get-params-result-C2cbgB78.d.cts → get-params-result-4xHM5s4_.d.ts} +14 -10
  24. package/index-CMLb7JSe.d.ts +97 -0
  25. package/{index-DixRvifF.d.cts → index-Cp1NspHH.d.cts} +10 -10
  26. package/{index-D2WPDt4R.d.ts → index-D1j1fPYg.d.ts} +10 -10
  27. package/index-LQOsS7gM.d.cts +97 -0
  28. package/index.cjs +370 -317
  29. package/index.cjs.map +1 -1
  30. package/index.d.cts +23 -10
  31. package/index.d.ts +23 -10
  32. package/index.js +86 -39
  33. package/index.js.map +1 -1
  34. package/metafile-cjs.json +1 -1
  35. package/metafile-esm.json +1 -1
  36. package/node/index.cjs +46 -18
  37. package/node/index.cjs.map +1 -1
  38. package/node/index.d.cts +3 -3
  39. package/node/index.d.ts +3 -3
  40. package/node/index.js +2 -2
  41. package/package.json +5 -4
  42. package/src/index.ts +4 -2
  43. package/src/jsr.json +1 -1
  44. package/src/logger.ts +8 -6
  45. package/src/lru-cache.ts +68 -0
  46. package/src/sys-abstraction.ts +18 -15
  47. package/src/time.ts +7 -9
  48. package/src/types.ts +19 -0
  49. package/src/uri.ts +4 -3
  50. package/src/utils/get-params-result.ts +2 -18
  51. package/src/utils/relative-path.ts +8 -6
  52. package/{sys-abstraction-3OXhCVsu.d.cts → sys-abstraction-B0x6IE7r.d.ts} +27 -23
  53. package/{sys-abstraction-DXeSUn9x.d.ts → sys-abstraction-BTs3Vzy4.d.cts} +27 -23
  54. package/test/index.cjs +87 -46
  55. package/test/index.cjs.map +1 -1
  56. package/test/index.d.cts +3 -3
  57. package/test/index.d.ts +3 -3
  58. package/test/index.js +4 -4
  59. package/ts/src/index.d.ts +2 -2
  60. package/ts/src/index.d.ts.map +1 -1
  61. package/ts/src/index.js +2 -2
  62. package/ts/src/index.js.map +1 -1
  63. package/ts/src/logger.d.ts +7 -6
  64. package/ts/src/logger.d.ts.map +1 -1
  65. package/ts/src/logger.js +6 -7
  66. package/ts/src/logger.js.map +1 -1
  67. package/ts/src/lru-cache.d.ts +15 -0
  68. package/ts/src/lru-cache.d.ts.map +1 -0
  69. package/ts/src/lru-cache.js +46 -0
  70. package/ts/src/lru-cache.js.map +1 -0
  71. package/ts/src/lru-cache.test.d.ts +2 -0
  72. package/ts/src/lru-cache.test.d.ts.map +1 -0
  73. package/ts/src/lru-cache.test.js +54 -0
  74. package/ts/src/lru-cache.test.js.map +1 -0
  75. package/ts/src/sys-abstraction.d.ts +18 -15
  76. package/ts/src/sys-abstraction.d.ts.map +1 -1
  77. package/ts/src/sys-abstraction.js +15 -18
  78. package/ts/src/sys-abstraction.js.map +1 -1
  79. package/ts/src/sys-env.test.js +1 -2
  80. package/ts/src/sys-env.test.js.map +1 -1
  81. package/ts/src/time.d.ts +7 -6
  82. package/ts/src/time.d.ts.map +1 -1
  83. package/ts/src/time.js +6 -7
  84. package/ts/src/time.js.map +1 -1
  85. package/ts/src/types.d.ts +16 -0
  86. package/ts/src/types.d.ts.map +1 -0
  87. package/ts/src/types.js +15 -0
  88. package/ts/src/types.js.map +1 -0
  89. package/ts/src/uri.d.ts +0 -1
  90. package/ts/src/uri.d.ts.map +1 -1
  91. package/ts/src/uri.js +1 -2
  92. package/ts/src/uri.js.map +1 -1
  93. package/ts/src/utils/get-params-result.d.ts +2 -13
  94. package/ts/src/utils/get-params-result.d.ts.map +1 -1
  95. package/ts/src/utils/get-params-result.js +1 -14
  96. package/ts/src/utils/get-params-result.js.map +1 -1
  97. package/ts/src/utils/relative-path.d.ts +7 -6
  98. package/ts/src/utils/relative-path.d.ts.map +1 -1
  99. package/ts/src/utils/relative-path.js +6 -7
  100. package/ts/src/utils/relative-path.js.map +1 -1
  101. package/utils/index.cjs +9 -9
  102. package/utils/index.cjs.map +1 -1
  103. package/utils/index.d.cts +2 -2
  104. package/utils/index.d.ts +2 -2
  105. package/utils/index.js +3 -5
  106. package/web/index.cjs +46 -18
  107. package/web/index.cjs.map +1 -1
  108. package/web/index.d.cts +3 -3
  109. package/web/index.d.ts +3 -3
  110. package/web/index.js +3 -3
  111. package/chunk-22GI5ETU.js.map +0 -1
  112. package/chunk-A57BAYWU.js.map +0 -1
  113. package/chunk-KY47QBK3.js.map +0 -1
  114. package/index-Dpc3oVOD.d.cts +0 -99
  115. package/index-MWn9Xel9.d.ts +0 -99
  116. /package/{chunk-GLUGMVET.js.map → chunk-Z3IR6QEZ.js.map} +0 -0
@@ -1,6 +1,6 @@
1
- import { P as Param, R as Result, K as KeysParam, T as TxtEnDecoder } from './get-params-result-C2cbgB78.js';
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 { S as SysAbstraction } from './sys-abstraction-DXeSUn9x.js';
3
+ import { S as SysAbstraction } from './sys-abstraction-B0x6IE7r.js';
4
4
 
5
5
  declare abstract class Option<T> {
6
6
  static Some<T>(t: T): Option<T>;
@@ -30,7 +30,6 @@ type WithoutOption<T> = T extends Option<infer U> ? U : T;
30
30
 
31
31
  type NullOrUndef = null | undefined;
32
32
  type OneKey<K extends string, V = string> = Record<K, V>;
33
- declare const key: Param;
34
33
  interface URIInterface<R extends URIInterface<R>> {
35
34
  readonly getParams: Iterable<[string, string]>;
36
35
  hasParam(key: string): boolean;
@@ -134,12 +133,13 @@ declare class URI implements URIInterface<URI> {
134
133
  asObj(...strips: StripCommand[]): Partial<HostURIObject | PathURIObject>;
135
134
  }
136
135
 
137
- declare enum Level {
138
- WARN = "warn",
139
- DEBUG = "debug",
140
- INFO = "info",
141
- ERROR = "error"
142
- }
136
+ declare const Level: {
137
+ WARN: string;
138
+ DEBUG: string;
139
+ INFO: string;
140
+ ERROR: string;
141
+ };
142
+ type Level = (typeof Level)[keyof typeof Level];
143
143
  type Serialized = string | number | boolean;
144
144
  type FnSerialized = () => Serialized | Serialized[];
145
145
  declare class LogValue {
@@ -270,4 +270,4 @@ declare function MockLogger(params?: {
270
270
  readonly disableDebug?: boolean;
271
271
  }): MockLoggerReturn;
272
272
 
273
- 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, key as t, type URIObject as u, type HostURIObject as v, isURL as w, MutableURL as x, isCoerceURI as y, hasHostPartProtocols as z };
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 URIObject as t, type HostURIObject as u, isURL as v, MutableURL as w, isCoerceURI as x, hasHostPartProtocols as y, URI as z };
@@ -0,0 +1,97 @@
1
+ import { T as TxtEnDecoder, A as AsyncToUInt8, K as KeysParam, M as MsgFn, a as ToUInt8, b as ToUInt8Async, c as ToUInt8Plain, d as asyncCoerceIntoUint8, e as coerceIntoUint8, g as getParamsResult } from './get-params-result-4xHM5s4_.cjs';
2
+ import { S as StripCommand, s as stripper } from './stripper-BpBUUZ9p.cjs';
3
+
4
+ declare function rebufferArray(a: Uint8Array[], chunkSize: number): Promise<Uint8Array[]>;
5
+ declare function rebuffer(a: ReadableStream<Uint8Array>, chunkSize: number): ReadableStream<Uint8Array>;
6
+
7
+ interface StreamMap<T, U> {
8
+ Map(s: T, idx: number): U | Promise<U>;
9
+ readonly Close?: () => void;
10
+ }
11
+ declare function streamMap<T, U>(s: ReadableStream<T>, sm: StreamMap<T, U>): ReadableStream<U>;
12
+ declare function devnull<T>(a: ReadableStream<T>): Promise<number>;
13
+ declare function array2stream<T>(a: T[]): ReadableStream<T>;
14
+ declare function stream2array<T>(a: ReadableStream<T>): Promise<T[]>;
15
+
16
+ declare function stream2string(stream?: ReadableStream<Uint8Array> | null, maxSize?: number): Promise<string>;
17
+ declare function stream2uint8array(stream?: ReadableStream<Uint8Array> | null): Promise<Uint8Array>;
18
+
19
+ declare function string2stream(str: string, ende?: TxtEnDecoder): ReadableStream<Uint8Array>;
20
+ declare function uint8array2stream(str: Uint8Array): ReadableStream<Uint8Array>;
21
+
22
+ declare class ConsoleWriterStreamDefaultWriter implements WritableStreamDefaultWriter<Uint8Array> {
23
+ private stream;
24
+ readonly desiredSize: number | null;
25
+ readonly decoder: TextDecoder;
26
+ closed: Promise<undefined>;
27
+ ready: Promise<undefined>;
28
+ readonly _stream: ConsoleWriterStream;
29
+ constructor(stream: ConsoleWriterStream);
30
+ abort(reason?: any): Promise<void>;
31
+ close(): Promise<void>;
32
+ releaseLock(): void;
33
+ write(chunk?: Uint8Array): Promise<void>;
34
+ }
35
+ declare class ConsoleWriterStream implements WritableStream<Uint8Array> {
36
+ locked: boolean;
37
+ _writer?: WritableStreamDefaultWriter<Uint8Array>;
38
+ abort(reason?: any): Promise<void>;
39
+ close(): Promise<void>;
40
+ getWriter(): WritableStreamDefaultWriter<Uint8Array>;
41
+ }
42
+
43
+ declare class FanoutWriteStream implements WritableStreamDefaultWriter<Uint8Array> {
44
+ readonly _writers: WritableStreamDefaultWriter<Uint8Array>[];
45
+ readonly ready: Promise<undefined>;
46
+ readonly closed: Promise<undefined>;
47
+ readonly desiredSize: number | null;
48
+ constructor(writers: WritableStreamDefaultWriter<Uint8Array>[]);
49
+ abort(reason?: any): Promise<void>;
50
+ close(): Promise<void>;
51
+ releaseLock(): void;
52
+ write(chunk?: Uint8Array): Promise<void>;
53
+ }
54
+
55
+ declare function toSortedObjectArray<T>(set?: T): Record<string, unknown>[];
56
+ declare function toSortedArray<T>(set?: T): [string, unknown][];
57
+ declare function toSortedObject<S, T extends NonNullable<S>>(set?: T): T;
58
+
59
+ declare function UInt8ArrayEqual(a: Uint8Array, b: Uint8Array): boolean;
60
+
61
+ declare const index_AsyncToUInt8: typeof AsyncToUInt8;
62
+ type index_ConsoleWriterStream = ConsoleWriterStream;
63
+ declare const index_ConsoleWriterStream: typeof ConsoleWriterStream;
64
+ type index_ConsoleWriterStreamDefaultWriter = ConsoleWriterStreamDefaultWriter;
65
+ declare const index_ConsoleWriterStreamDefaultWriter: typeof ConsoleWriterStreamDefaultWriter;
66
+ type index_FanoutWriteStream = FanoutWriteStream;
67
+ declare const index_FanoutWriteStream: typeof FanoutWriteStream;
68
+ declare const index_KeysParam: typeof KeysParam;
69
+ declare const index_MsgFn: typeof MsgFn;
70
+ type index_StreamMap<T, U> = StreamMap<T, U>;
71
+ declare const index_StripCommand: typeof StripCommand;
72
+ declare const index_ToUInt8: typeof ToUInt8;
73
+ declare const index_ToUInt8Async: typeof ToUInt8Async;
74
+ declare const index_ToUInt8Plain: typeof ToUInt8Plain;
75
+ declare const index_UInt8ArrayEqual: typeof UInt8ArrayEqual;
76
+ declare const index_array2stream: typeof array2stream;
77
+ declare const index_asyncCoerceIntoUint8: typeof asyncCoerceIntoUint8;
78
+ declare const index_coerceIntoUint8: typeof coerceIntoUint8;
79
+ declare const index_devnull: typeof devnull;
80
+ declare const index_getParamsResult: typeof getParamsResult;
81
+ declare const index_rebuffer: typeof rebuffer;
82
+ declare const index_rebufferArray: typeof rebufferArray;
83
+ declare const index_stream2array: typeof stream2array;
84
+ declare const index_stream2string: typeof stream2string;
85
+ declare const index_stream2uint8array: typeof stream2uint8array;
86
+ declare const index_streamMap: typeof streamMap;
87
+ declare const index_string2stream: typeof string2stream;
88
+ declare const index_stripper: typeof stripper;
89
+ declare const index_toSortedArray: typeof toSortedArray;
90
+ declare const index_toSortedObject: typeof toSortedObject;
91
+ declare const index_toSortedObjectArray: typeof toSortedObjectArray;
92
+ declare const index_uint8array2stream: typeof uint8array2stream;
93
+ declare namespace index {
94
+ export { index_AsyncToUInt8 as AsyncToUInt8, index_ConsoleWriterStream as ConsoleWriterStream, index_ConsoleWriterStreamDefaultWriter as ConsoleWriterStreamDefaultWriter, index_FanoutWriteStream as FanoutWriteStream, index_KeysParam as KeysParam, index_MsgFn as MsgFn, type index_StreamMap as StreamMap, index_StripCommand as StripCommand, index_ToUInt8 as ToUInt8, index_ToUInt8Async as ToUInt8Async, index_ToUInt8Plain as ToUInt8Plain, index_UInt8ArrayEqual as UInt8ArrayEqual, index_array2stream as array2stream, index_asyncCoerceIntoUint8 as asyncCoerceIntoUint8, index_coerceIntoUint8 as coerceIntoUint8, index_devnull as devnull, index_getParamsResult as getParamsResult, 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_stripper as stripper, index_toSortedArray as toSortedArray, index_toSortedObject as toSortedObject, index_toSortedObjectArray as toSortedObjectArray, index_uint8array2stream as uint8array2stream };
95
+ }
96
+
97
+ export { ConsoleWriterStreamDefaultWriter as C, FanoutWriteStream as F, type StreamMap as S, UInt8ArrayEqual as U, 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, toSortedArray as j, toSortedObject as k, rebufferArray as r, streamMap as s, toSortedObjectArray as t, uint8array2stream as u };