mol_dump_lib 0.0.179 → 0.0.181
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/node.audit.js +1 -1
- package/node.d.ts +85 -138
- package/node.deps.json +1 -1
- package/node.js +761 -1030
- package/node.js.map +1 -1
- package/node.meta.tree +0 -58
- package/node.mjs +761 -1030
- package/node.test.js +798 -1091
- package/node.test.js.map +1 -1
- package/package.json +12 -20
- package/web.audit.js +1 -1
- package/web.d.ts +33 -45
- package/web.deps.json +1 -1
- package/web.js +67 -163
- package/web.js.map +1 -1
- package/web.meta.tree +0 -58
- package/web.mjs +67 -163
- package/web.test.js +33 -57
- package/web.test.js.map +1 -1
package/node.audit.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
console.info(
|
|
1
|
+
console.info( '%c ▫ $mol_build ▫ Audit passed', 'color:forestgreen; font-weight:bolder' )
|
package/node.d.ts
CHANGED
|
@@ -256,91 +256,6 @@ declare namespace $ {
|
|
|
256
256
|
function $mol_compare_deep<Value>(left: Value, right: Value): boolean;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
declare namespace $ {
|
|
260
|
-
class $mol_wire_task<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
|
|
261
|
-
static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task<Host, Args, Result>;
|
|
262
|
-
get temp(): boolean;
|
|
263
|
-
complete(): void;
|
|
264
|
-
put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
declare namespace $ {
|
|
269
|
-
function $mol_wire_method<Host extends object, Args extends readonly any[]>(host: Host, field: PropertyKey, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
|
|
270
|
-
value: (this: Host, ...args: Args) => any;
|
|
271
|
-
enumerable?: boolean | undefined;
|
|
272
|
-
configurable?: boolean | undefined;
|
|
273
|
-
writable?: boolean | undefined;
|
|
274
|
-
get?: (() => (...args: Args) => any) | undefined;
|
|
275
|
-
set?: ((value: (...args: Args) => any) => void) | undefined;
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
declare namespace $ {
|
|
280
|
-
type $mol_type_tail<Tuple extends readonly any[]> = ((...tail: Tuple) => any) extends ((head: any, ...tail: infer Tail) => any) ? Tail : never;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
declare namespace $ {
|
|
284
|
-
type $mol_type_foot<Tuple extends readonly any[]> = Tuple['length'] extends 0 ? never : Tuple[$mol_type_tail<Tuple>['length']];
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
declare namespace $ {
|
|
288
|
-
function $mol_fail_catch(error: unknown): boolean;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
declare namespace $ {
|
|
292
|
-
function $mol_fail_log(error: unknown): boolean;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
declare namespace $ {
|
|
296
|
-
class $mol_wire_atom<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
|
|
297
|
-
static solo<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result): $mol_wire_atom<Host, Args, Result>;
|
|
298
|
-
static plex<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result, key: Args[0]): $mol_wire_atom<Host, Args, Result>;
|
|
299
|
-
static watching: Set<$mol_wire_atom<any, any, any>>;
|
|
300
|
-
static watcher: $mol_after_frame | null;
|
|
301
|
-
static watch(): void;
|
|
302
|
-
watch(): void;
|
|
303
|
-
resync(args: Args): Error | Result | Promise<Error | Result>;
|
|
304
|
-
once(): Awaited<Result>;
|
|
305
|
-
channel(): ((next?: $mol_type_foot<Args>) => Awaited<Result>) & {
|
|
306
|
-
atom: $mol_wire_atom<Host, Args, Result>;
|
|
307
|
-
};
|
|
308
|
-
destructor(): void;
|
|
309
|
-
put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
declare namespace $ {
|
|
314
|
-
export function $mol_wire_solo<Args extends any[]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): TypedPropertyDescriptor<(...args: First_optional<Args>) => any>;
|
|
315
|
-
type First_optional<Args extends any[]> = Args extends [] ? [] : [Args[0] | undefined, ...$mol_type_tail<Args>];
|
|
316
|
-
export {};
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
declare namespace $ {
|
|
320
|
-
function $mol_wire_plex<Args extends [any, ...any[]]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
|
|
321
|
-
value: (this: typeof host, ...args: Args) => any;
|
|
322
|
-
enumerable?: boolean | undefined;
|
|
323
|
-
configurable?: boolean | undefined;
|
|
324
|
-
writable?: boolean | undefined;
|
|
325
|
-
get?: (() => (...args: Args) => any) | undefined;
|
|
326
|
-
set?: ((value: (...args: Args) => any) => void) | undefined;
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
declare namespace $ {
|
|
331
|
-
let $mol_mem: typeof $mol_wire_solo;
|
|
332
|
-
let $mol_mem_key: typeof $mol_wire_plex;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
declare namespace $ {
|
|
336
|
-
var $mol_dom_context: typeof globalThis;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
interface $node {
|
|
340
|
-
[key: string]: any;
|
|
341
|
-
}
|
|
342
|
-
declare var $node: $node;
|
|
343
|
-
|
|
344
259
|
declare namespace $ {
|
|
345
260
|
type $mol_log3_event<Fields> = {
|
|
346
261
|
[key in string]: unknown;
|
|
@@ -474,6 +389,91 @@ declare namespace $ {
|
|
|
474
389
|
function $mol_log3_node_make(level: keyof Console, output: 'stdout' | 'stderr', type: string, color: (str: string) => string): (this: $, event: $mol_log3_event<{}>) => () => void;
|
|
475
390
|
}
|
|
476
391
|
|
|
392
|
+
declare namespace $ {
|
|
393
|
+
class $mol_wire_task<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
|
|
394
|
+
static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task<Host, Args, Result>;
|
|
395
|
+
get temp(): boolean;
|
|
396
|
+
complete(): void;
|
|
397
|
+
put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
declare namespace $ {
|
|
402
|
+
function $mol_wire_method<Host extends object, Args extends readonly any[]>(host: Host, field: PropertyKey, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
|
|
403
|
+
value: (this: Host, ...args: Args) => any;
|
|
404
|
+
enumerable?: boolean | undefined;
|
|
405
|
+
configurable?: boolean | undefined;
|
|
406
|
+
writable?: boolean | undefined;
|
|
407
|
+
get?: (() => (...args: Args) => any) | undefined;
|
|
408
|
+
set?: ((value: (...args: Args) => any) => void) | undefined;
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
declare namespace $ {
|
|
413
|
+
type $mol_type_tail<Tuple extends readonly any[]> = ((...tail: Tuple) => any) extends ((head: any, ...tail: infer Tail) => any) ? Tail : never;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
declare namespace $ {
|
|
417
|
+
type $mol_type_foot<Tuple extends readonly any[]> = Tuple['length'] extends 0 ? never : Tuple[$mol_type_tail<Tuple>['length']];
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
declare namespace $ {
|
|
421
|
+
function $mol_fail_catch(error: unknown): boolean;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
declare namespace $ {
|
|
425
|
+
function $mol_fail_log(error: unknown): boolean;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
declare namespace $ {
|
|
429
|
+
class $mol_wire_atom<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
|
|
430
|
+
static solo<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result): $mol_wire_atom<Host, Args, Result>;
|
|
431
|
+
static plex<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result, key: Args[0]): $mol_wire_atom<Host, Args, Result>;
|
|
432
|
+
static watching: Set<$mol_wire_atom<any, any, any>>;
|
|
433
|
+
static watcher: $mol_after_frame | null;
|
|
434
|
+
static watch(): void;
|
|
435
|
+
watch(): void;
|
|
436
|
+
resync(args: Args): Error | Result | Promise<Error | Result>;
|
|
437
|
+
once(): Awaited<Result>;
|
|
438
|
+
channel(): ((next?: $mol_type_foot<Args>) => Awaited<Result>) & {
|
|
439
|
+
atom: $mol_wire_atom<Host, Args, Result>;
|
|
440
|
+
};
|
|
441
|
+
destructor(): void;
|
|
442
|
+
put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
declare namespace $ {
|
|
447
|
+
export function $mol_wire_solo<Args extends any[]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): TypedPropertyDescriptor<(...args: First_optional<Args>) => any>;
|
|
448
|
+
type First_optional<Args extends any[]> = Args extends [] ? [] : [Args[0] | undefined, ...$mol_type_tail<Args>];
|
|
449
|
+
export {};
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
declare namespace $ {
|
|
453
|
+
function $mol_wire_plex<Args extends [any, ...any[]]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
|
|
454
|
+
value: (this: typeof host, ...args: Args) => any;
|
|
455
|
+
enumerable?: boolean | undefined;
|
|
456
|
+
configurable?: boolean | undefined;
|
|
457
|
+
writable?: boolean | undefined;
|
|
458
|
+
get?: (() => (...args: Args) => any) | undefined;
|
|
459
|
+
set?: ((value: (...args: Args) => any) => void) | undefined;
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
declare namespace $ {
|
|
464
|
+
let $mol_mem: typeof $mol_wire_solo;
|
|
465
|
+
let $mol_mem_key: typeof $mol_wire_plex;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
declare namespace $ {
|
|
469
|
+
var $mol_dom_context: typeof globalThis;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
interface $node {
|
|
473
|
+
[key: string]: any;
|
|
474
|
+
}
|
|
475
|
+
declare var $node: $node;
|
|
476
|
+
|
|
477
477
|
declare namespace $ {
|
|
478
478
|
function $mol_env(): Record<string, string | undefined>;
|
|
479
479
|
}
|
|
@@ -2073,59 +2073,6 @@ declare namespace $ {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
2075
|
|
|
2076
|
-
declare namespace $ {
|
|
2077
|
-
let $mol_action: typeof $mol_wire_method;
|
|
2078
|
-
}
|
|
2079
|
-
|
|
2080
|
-
declare namespace $ {
|
|
2081
|
-
function $mol_dom_parse(text: string, type?: DOMParserSupportedType): Document;
|
|
2082
|
-
}
|
|
2083
|
-
|
|
2084
|
-
declare namespace $ {
|
|
2085
|
-
class $mol_fetch_response extends $mol_object2 {
|
|
2086
|
-
readonly native: Response;
|
|
2087
|
-
constructor(native: Response);
|
|
2088
|
-
status(): "unknown" | "success" | "inform" | "redirect" | "wrong" | "failed";
|
|
2089
|
-
code(): number;
|
|
2090
|
-
message(): string;
|
|
2091
|
-
headers(): Headers;
|
|
2092
|
-
mime(): string | null;
|
|
2093
|
-
stream(): ReadableStream<Uint8Array> | null;
|
|
2094
|
-
text(): string;
|
|
2095
|
-
json(): unknown;
|
|
2096
|
-
buffer(): ArrayBuffer;
|
|
2097
|
-
xml(): Document;
|
|
2098
|
-
xhtml(): Document;
|
|
2099
|
-
html(): Document;
|
|
2100
|
-
}
|
|
2101
|
-
class $mol_fetch extends $mol_object2 {
|
|
2102
|
-
static request(input: RequestInfo, init?: RequestInit): Promise<Response> & {
|
|
2103
|
-
destructor: () => void;
|
|
2104
|
-
};
|
|
2105
|
-
static response(input: RequestInfo, init?: RequestInit): $mol_fetch_response;
|
|
2106
|
-
static success(input: RequestInfo, init?: RequestInit): $mol_fetch_response;
|
|
2107
|
-
static stream(input: RequestInfo, init?: RequestInit): ReadableStream<Uint8Array> | null;
|
|
2108
|
-
static text(input: RequestInfo, init?: RequestInit): string;
|
|
2109
|
-
static json(input: RequestInfo, init?: RequestInit): unknown;
|
|
2110
|
-
static buffer(input: RequestInfo, init?: RequestInit): ArrayBuffer;
|
|
2111
|
-
static xml(input: RequestInfo, init?: RequestInit): Document;
|
|
2112
|
-
static xhtml(input: RequestInfo, init?: RequestInit): Document;
|
|
2113
|
-
static html(input: RequestInfo, init?: RequestInit): Document;
|
|
2114
|
-
}
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
declare namespace $ {
|
|
2118
|
-
function $mol_huggingface_run(this: $, space: string, method: string | number, ...data: readonly any[]): readonly any[];
|
|
2119
|
-
function $mol_huggingface_rest(space: string, method: string, ...data: readonly any[]): readonly any[];
|
|
2120
|
-
function $mol_huggingface_ws(space: string, fn_index: number, ...data: readonly any[]): Promise<readonly any[]> & {
|
|
2121
|
-
destructor: () => void;
|
|
2122
|
-
};
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
declare namespace $ {
|
|
2126
|
-
function $hyoo_lingua_translate(this: $, lang: string, text: string): string;
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
2076
|
declare namespace $ {
|
|
2130
2077
|
interface $mol_locale_dict {
|
|
2131
2078
|
[key: string]: string;
|