@adviser/cement 0.2.33 → 0.2.35

Sign up to get free protection for your applications and to get access to all the features.
package/src/logger.ts CHANGED
@@ -16,7 +16,12 @@ export type FnSerialized = () => Serialized | Serialized[];
16
16
  export class LogValue {
17
17
  constructor(readonly fn: FnSerialized) {}
18
18
  value(): Serialized | Serialized[] {
19
- return this.fn();
19
+ try {
20
+ // console.log("LogValue.value", this.fn.toString());
21
+ return this.fn();
22
+ } catch (e) {
23
+ return `LogValue:${(e as Error).message}`;
24
+ }
20
25
  }
21
26
  toJSON(): Serialized | Serialized[] {
22
27
  return this.value();
@@ -25,17 +30,17 @@ export class LogValue {
25
30
 
26
31
  export type LogSerializable = Record<string, LogValue | Promise<LogValue>>;
27
32
 
28
- export function removeSelfRef(lineEnd?: string): (key: unknown, val: unknown) => unknown {
29
- const cache = new Set();
30
- return function (key: unknown, value: unknown) {
31
- if (typeof value === "object" && value !== null) {
32
- // Duplicate reference found, discard key
33
- if (cache.has(value)) return "...";
34
- cache.add(value);
35
- }
36
- return lineEnd ? value + lineEnd : value;
37
- };
38
- }
33
+ // export function sanitizeSerialize(lineEnd?: string): (key: unknown, val: unknown) => unknown {
34
+ // const cache = new Set();
35
+ // return function (this: unknown, key: unknown, value: unknown) {
36
+ // if (typeof value === "object" && value !== null) {
37
+ // // Duplicate reference found, discard key
38
+ // if (cache.has(value)) return "...";
39
+ // cache.add(value);
40
+ // }
41
+ // return lineEnd ? value + lineEnd : value;
42
+ // };
43
+ // }
39
44
 
40
45
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
41
46
  export function asyncLogValue(val: () => Promise<Serialized>): Promise<LogValue> {
@@ -69,20 +74,39 @@ export function logValue(val: LogValueArg, state: Set<unknown> = new Set<unknown
69
74
  case "boolean":
70
75
  return new LogValue(() => val);
71
76
  case "object": {
77
+ if (val === null) {
78
+ return new LogValue(() => "null");
79
+ }
72
80
  if (ArrayBuffer.isView(val)) {
73
81
  return logValue(bin2string(val, 512));
74
82
  }
75
83
  if (Array.isArray(val)) {
76
- return new LogValue(() => val.map((v) => logValue(v).value() as Serialized));
84
+ return new LogValue(() => (val as Serialized[]).map((v) => logValue(v).value() as Serialized));
77
85
  }
78
- if (val === null) {
79
- return new LogValue(() => "null");
86
+ // if (val instanceof Response) {
87
+ // // my = my.clone() as unknown as LogValue | Serialized[] | null
88
+ // // const rval = my as unknown as Partial<Response>;
89
+ // // delete rval.clone
90
+ // // delete rval.blob
91
+ // }
92
+ if (val instanceof Headers) {
93
+ return new LogValue(() => Object.fromEntries(val.entries()) as unknown as Serialized);
94
+ }
95
+ if (val instanceof ReadableStream) {
96
+ return new LogValue(() => ">Stream<");
80
97
  }
98
+ if (val instanceof Promise) {
99
+ return new LogValue(() => ">Promise<");
100
+ }
101
+
81
102
  // Duplicate reference found, discard key
82
103
  if (state.has(val)) {
83
104
  return new LogValue(() => "...");
84
105
  }
85
106
  state.add(val);
107
+ if (typeof val.toJSON === "function") {
108
+ return new LogValue(() => val.toJSON());
109
+ }
86
110
 
87
111
  const res: Record<string, LogValue> = {};
88
112
  const typedVal = val as unknown as Record<string, LogValueArg>;
@@ -91,7 +115,10 @@ export function logValue(val: LogValueArg, state: Set<unknown> = new Set<unknown
91
115
  if (element instanceof LogValue) {
92
116
  res[key] = element;
93
117
  } else {
94
- res[key] = logValue(element, state);
118
+ if (typeof element !== "function") {
119
+ res[key] = logValue(element, state);
120
+ }
121
+ // res[key] = logValue(element, state);
95
122
  }
96
123
  }
97
124
  // ugly as hell cast but how declare a self-referencing type?
@@ -149,6 +176,10 @@ export interface LoggerInterface<R> {
149
176
  Hash(value: unknown, key?: string): R;
150
177
 
151
178
  Str(key: string, value?: string): R;
179
+
180
+ Http(res: Response | Result<Response>, req?: Request, key?: string): R;
181
+ Pair(x: Record<string, unknown>): R;
182
+
152
183
  Error(): R;
153
184
  Warn(): R;
154
185
  Debug(): R;
package/src/uri.ts CHANGED
@@ -60,7 +60,7 @@ export class MutableURL extends URL {
60
60
  private _pathname: string;
61
61
  private _hasHostpart: boolean;
62
62
 
63
- readonly hash: string;
63
+ override readonly hash: string;
64
64
 
65
65
  constructor(urlStr: string) {
66
66
  super("defect://does.not.exist");
@@ -91,7 +91,7 @@ export class MutableURL extends URL {
91
91
  return new MutableURL(this.toString());
92
92
  }
93
93
 
94
- get host(): string {
94
+ override get host(): string {
95
95
  if (!this._hasHostpart) {
96
96
  throw new Error(
97
97
  `you can use hostname only if protocol is ${this.toString()} ${JSON.stringify(Array.from(hasHostPartProtocols.keys()))}`,
@@ -100,58 +100,58 @@ export class MutableURL extends URL {
100
100
  return this._sysURL.host;
101
101
  }
102
102
 
103
- get port(): string {
103
+ override get port(): string {
104
104
  if (!this._hasHostpart) {
105
105
  throw new Error(`you can use hostname only if protocol is ${JSON.stringify(Array.from(hasHostPartProtocols.keys()))}`);
106
106
  }
107
107
  return this._sysURL.port;
108
108
  }
109
109
 
110
- set port(p: string) {
110
+ override set port(p: string) {
111
111
  if (!this._hasHostpart) {
112
112
  throw new Error(`you can use port only if protocol is ${JSON.stringify(Array.from(hasHostPartProtocols.keys()))}`);
113
113
  }
114
114
  this._sysURL.port = p;
115
115
  }
116
116
 
117
- get hostname(): string {
117
+ override get hostname(): string {
118
118
  if (!this._hasHostpart) {
119
119
  throw new Error(`you can use hostname only if protocol is ${JSON.stringify(Array.from(hasHostPartProtocols.keys()))}`);
120
120
  }
121
121
  return this._sysURL.hostname;
122
122
  }
123
123
 
124
- set hostname(h: string) {
124
+ override set hostname(h: string) {
125
125
  if (!this._hasHostpart) {
126
126
  throw new Error(`you can use hostname only if protocol is ${JSON.stringify(Array.from(hasHostPartProtocols.keys()))}`);
127
127
  }
128
128
  this._sysURL.hostname = h;
129
129
  }
130
130
 
131
- set pathname(p: string) {
131
+ override set pathname(p: string) {
132
132
  this._pathname = p;
133
133
  }
134
134
 
135
- get pathname(): string {
135
+ override get pathname(): string {
136
136
  return this._pathname;
137
137
  }
138
138
 
139
- get protocol(): string {
139
+ override get protocol(): string {
140
140
  return this._protocol;
141
141
  }
142
142
 
143
- set protocol(p: string) {
143
+ override set protocol(p: string) {
144
144
  if (!p.endsWith(":")) {
145
145
  p = `${p}:`;
146
146
  }
147
147
  this._protocol = p;
148
148
  }
149
149
 
150
- get searchParams(): URLSearchParams {
150
+ override get searchParams(): URLSearchParams {
151
151
  return this._sysURL.searchParams;
152
152
  }
153
153
 
154
- toString(): string {
154
+ override toString(): string {
155
155
  let search = "";
156
156
  if (this._sysURL.searchParams.size) {
157
157
  for (const [key, value] of Array.from(this._sysURL.searchParams.entries()).sort((a, b) => a[0].localeCompare(b[0]))) {
@@ -311,15 +311,28 @@ export class BuildURI {
311
311
  // }
312
312
 
313
313
  appendRelative(p: CoerceURI): BuildURI {
314
- const url = URI.from(p);
315
- let pathname = url.pathname;
316
- if (url.pathname === "/") {
317
- pathname = "";
318
- } else if (!pathname.startsWith("/")) {
319
- pathname = `/${pathname}`;
314
+ const appendUrl = URI.from(p);
315
+ let pathname = appendUrl.pathname;
316
+ let basePath = this._url.pathname;
317
+ /*
318
+ * cases
319
+ * pathname "" basePAth "" -> ""
320
+ * pathname "/" basePath "" -> "/"
321
+ * pathname "" basePath "/" -> "/"
322
+ * pathname "/" basePath "/" -> "/"
323
+ * pathname "ab" basePath "" -> "/ab"
324
+ * pathname "ab" basePath "/" -> "/ab"
325
+ * pathname "ab" basePath "/ab/" -> "/ab/ab"
326
+ * pathname "/ab/" basePath "/ab/" -> "/ab/ab/"
327
+ */
328
+ if (pathname.startsWith("/")) {
329
+ pathname = pathname.replace(/^\//, "");
330
+ }
331
+ if (basePath.length > 0) {
332
+ basePath = basePath.replace(/\/$/, "");
320
333
  }
321
- this.pathname(this._url.pathname + pathname);
322
- for (const [key, value] of url.getParams) {
334
+ this.pathname(basePath + "/" + pathname);
335
+ for (const [key, value] of appendUrl.getParams) {
323
336
  this.setParam(key, value);
324
337
  }
325
338
  return this;
@@ -346,8 +359,12 @@ export class BuildURI {
346
359
  return this._url.searchParams.has(key);
347
360
  }
348
361
 
349
- getParam(key: string): string | undefined {
350
- return falsy2undef(this._url.searchParams.get(key));
362
+ getParam<T extends string | undefined>(key: string, def?: T): T extends string ? string : string | undefined {
363
+ let val = this._url.searchParams.get(key);
364
+ if (!falsy2undef(val) && def) {
365
+ val = def;
366
+ }
367
+ return falsy2undef(val) as T extends string ? string : string | undefined;
351
368
  }
352
369
 
353
370
  getParamResult(key: string, msgFn?: (key: string) => string): Result<string> {
@@ -366,7 +383,11 @@ export class BuildURI {
366
383
  return this.toString();
367
384
  }
368
385
 
369
- asObj(...strips: StripCommand[]): HostURIObject | PathURIObject {
386
+ asURL(): URL {
387
+ return this.URI().asURL();
388
+ }
389
+
390
+ asObj(...strips: StripCommand[]): Partial<HostURIObject | PathURIObject> {
370
391
  return this.URI().asObj(...strips);
371
392
  }
372
393
 
@@ -484,8 +505,13 @@ export class URI {
484
505
  hasParam(key: string): boolean {
485
506
  return this._url.searchParams.has(key);
486
507
  }
487
- getParam(key: string): string | undefined {
488
- return falsy2undef(this._url.searchParams.get(key));
508
+
509
+ getParam<T extends string | undefined>(key: string, def?: T): T extends string ? string : string | undefined {
510
+ let val = this._url.searchParams.get(key);
511
+ if (!falsy2undef(val) && def) {
512
+ val = def;
513
+ }
514
+ return falsy2undef(val) as T extends string ? string : string | undefined;
489
515
  }
490
516
 
491
517
  getParamResult(key: string, msgFn?: (key: string) => string): Result<string> {
@@ -513,7 +539,7 @@ export class URI {
513
539
  toJSON(): string {
514
540
  return this.toString();
515
541
  }
516
- asObj(...strips: StripCommand[]): HostURIObject | PathURIObject {
542
+ asObj(...strips: StripCommand[]): Partial<HostURIObject | PathURIObject> {
517
543
  const pathURI: PathURIObject = {
518
544
  style: "path",
519
545
  protocol: this.protocol,
@@ -526,8 +552,8 @@ export class URI {
526
552
  style: "host",
527
553
  hostname: this.hostname,
528
554
  port: this.port,
529
- }) as HostURIObject;
555
+ }) as Partial<HostURIObject>;
530
556
  }
531
- return stripper(strips, pathURI) as PathURIObject;
557
+ return stripper(strips, pathURI) as Partial<PathURIObject>;
532
558
  }
533
559
  }
@@ -1,6 +1,9 @@
1
1
  export type StripCommand = string | RegExp;
2
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3
- export function stripper<T>(strip: StripCommand | StripCommand[], obj: T): Record<string, any> {
2
+
3
+ export function stripper<T extends unknown | ArrayLike<unknown>>(
4
+ strip: StripCommand | StripCommand[],
5
+ obj: T,
6
+ ): T extends ArrayLike<unknown> ? Record<string, unknown>[] : Record<string, unknown> {
4
7
  const strips = Array.isArray(strip) ? strip : [strip];
5
8
  const restrips = strips.map((s) => {
6
9
  if (typeof s === "string") {
@@ -9,14 +12,18 @@ export function stripper<T>(strip: StripCommand | StripCommand[], obj: T): Recor
9
12
  }
10
13
  return s;
11
14
  });
12
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
13
- return localStripper(undefined, restrips, obj) as Record<string, any>;
15
+ return localStripper(undefined, restrips, obj) as T extends ArrayLike<unknown>
16
+ ? Record<string, unknown>[]
17
+ : Record<string, unknown>;
14
18
  }
15
19
 
16
20
  function localStripper<T>(path: string | undefined, restrips: RegExp[], obj: T): unknown {
17
21
  if (typeof obj !== "object" || obj === null) {
18
22
  return obj;
19
23
  }
24
+ if (Array.isArray(obj)) {
25
+ return obj.map((i) => localStripper(path, restrips, i));
26
+ }
20
27
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
28
  const ret = { ...obj } as Record<string, any>;
22
29
  const matcher = (key: string, nextPath: string): boolean => {
@@ -54,6 +54,8 @@ export declare class LoggerImpl implements Logger {
54
54
  toString: () => string;
55
55
  } | FnSerialized): Logger;
56
56
  Bool(key: string, value: unknown): Logger;
57
+ Http(res: Response | Result<Response>, req?: Request, key?: string): Logger;
58
+ Pair(x: Record<string, unknown>): Logger;
57
59
  Result<T>(key: string, res: Result<T, Error>): Logger;
58
60
  Len(value: unknown, key?: string): Logger;
59
61
  Hash(value: unknown, key?: string): Logger;
@@ -1 +1 @@
1
- {"version":3,"file":"logger-impl.d.ts","sourceRoot":"","s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AyBhC"}
package/ts/logger-impl.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import YAML from "yaml";
2
- import { Level, logValue, removeSelfRef, asyncLogValue, } from "./logger.js";
2
+ import { Level, logValue, LogValue, asyncLogValue, } from "./logger.js";
3
3
  import { WebSysAbstraction } from "./web/web-sys-abstraction.js";
4
4
  import { Result } from "./result.js";
5
5
  import { URI } from "./uri.js";
@@ -41,7 +41,14 @@ export class JSONFormatter {
41
41
  this._space = space;
42
42
  }
43
43
  format(attr) {
44
- return this._txtEnDe.encode(JSON.stringify(attr, removeSelfRef(), this._space) + "\n");
44
+ let ret;
45
+ try {
46
+ ret = JSON.stringify(attr, null, this._space);
47
+ }
48
+ catch (e) {
49
+ ret = JSON.stringify({ internal: { message: e.message, stack: e.stack } });
50
+ }
51
+ return this._txtEnDe.encode(ret + "\n");
45
52
  }
46
53
  }
47
54
  export class YAMLFormatter {
@@ -50,7 +57,7 @@ export class YAMLFormatter {
50
57
  this._space = space;
51
58
  }
52
59
  format(attr) {
53
- return this._txtEnDe.encode("---\n" + YAML.stringify(attr, removeSelfRef(), this._space) + "\n");
60
+ return this._txtEnDe.encode("---\n" + YAML.stringify(attr, null, this._space) + "\n");
54
61
  }
55
62
  }
56
63
  export class LoggerImpl {
@@ -119,7 +126,7 @@ export class LoggerImpl {
119
126
  return this._txtEnDe;
120
127
  }
121
128
  Attributes() {
122
- return JSON.parse(JSON.stringify(this._attributes, removeSelfRef()));
129
+ return JSON.parse(JSON.stringify(this._attributes, null));
123
130
  }
124
131
  SetExposeStack(enable) {
125
132
  this._levelHandler.setExposeStack(enable);
@@ -210,6 +217,36 @@ export class LoggerImpl {
210
217
  this._attributes[key] = logValue(!!value);
211
218
  return this;
212
219
  }
220
+ Http(res, req, key) {
221
+ if (Result.Is(res)) {
222
+ if (res.isErr()) {
223
+ this.Err(res.Err());
224
+ return this;
225
+ }
226
+ res = res.Ok();
227
+ }
228
+ let reqRes = res;
229
+ if (req) {
230
+ reqRes = { res, req };
231
+ }
232
+ this.Any(key || "Http", reqRes);
233
+ return this;
234
+ }
235
+ Pair(x) {
236
+ for (const key of Object.keys(x)) {
237
+ const value = x[key];
238
+ if (value instanceof LogValue) {
239
+ this._attributes[key] = value;
240
+ continue;
241
+ }
242
+ if (Result.Is(value)) {
243
+ this.Result(key, value);
244
+ continue;
245
+ }
246
+ this.Any(key, value);
247
+ }
248
+ return this;
249
+ }
213
250
  Result(key, res) {
214
251
  if (res.isOk()) {
215
252
  this._attributes[key] = logValue(res.Ok());
@@ -334,6 +371,14 @@ class WithLoggerBuilder {
334
371
  this._li.SetDebug(...modules);
335
372
  return this;
336
373
  }
374
+ Http(res, req, key) {
375
+ this._li.Http(res, req, key);
376
+ return this;
377
+ }
378
+ Pair(x) {
379
+ this._li.Pair(x);
380
+ return this;
381
+ }
337
382
  Str(key, value) {
338
383
  this._li.Str(key, value);
339
384
  return this;
@@ -1 +1 @@
1
- {"version":3,"file":"logger-impl.js","sourceRoot":"","sources":["../../src/logger-impl.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAIL,KAAK,EAEL,QAAQ,EAGR,aAAa,EAIb,aAAa,GAId,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAa,GAAG,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAgB,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,SAAS,MAAM,CAAC,KAAc;IAC5B,IAAI,KAAK,CAAC,OAAO,C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,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
package/ts/logger.d.ts CHANGED
@@ -16,7 +16,6 @@ export declare class LogValue {
16
16
  toJSON(): Serialized | Serialized[];
17
17
  }
18
18
  export type LogSerializable = Record<string, LogValue | Promise<LogValue>>;
19
- export declare function removeSelfRef(lineEnd?: string): (key: unknown, val: unknown) => unknown;
20
19
  export declare function asyncLogValue(val: () => Promise<Serialized>): Promise<LogValue>;
21
20
  export type LogValueArg = LogValue | Serialized | Serialized[] | FnSerialized | undefined | null;
22
21
  export declare function logValue(val: LogValueArg, state?: Set<unknown>): LogValue;
@@ -55,6 +54,8 @@ export interface LoggerInterface<R> {
55
54
  Len(value: unknown, key?: string): R;
56
55
  Hash(value: unknown, key?: string): R;
57
56
  Str(key: string, value?: string): R;
57
+ Http(res: Response | Result<Response>, req?: Request, key?: string): R;
58
+ Pair(x: Record<string, unknown>): R;
58
59
  Error(): R;
59
60
  Warn(): R;
60
61
  Debug(): R;
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,oBAAY,KAAK;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACnD,MAAM,MAAM,YAAY,GAAG,MAAM,UAAU,GAAG,UAAU,EAAE,CAAC;AAE3D,qBAAa,QAAQ;IACP,QAAQ,CAAC,EAAE,EAAE,YAAY;gBAAhB,EAAE,EAAE,YAAY;IACrC,KAAK,IAAI,UAAU,GAAG,UAAU,EAAE;IAGlC,MAAM,IAAI,UAAU,GAAG,UAAU,EAAE;CAGpC;AA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IACtC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC;IACnC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,CAAC,CAAC;CACtC;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAyBpD;AAED,MAAM,WAAW,UAAW,SAAQ,eAAe,CAAC,UAAU,CAAC;IAC7D,MAAM,IAAI,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,OAAO;IACtB,OAAO,IAAI,KAAK,CAAC;IACjB,WAAW,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,MAAO,SAAQ,eAAe,CAAC,MAAM,CAAC;IACrD,IAAI,IAAI,UAAU,CAAC;IAEnB,GAAG,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAChC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB"}
package/ts/logger.js CHANGED
@@ -11,23 +11,17 @@ export class LogValue {
11
11
  this.fn = fn;
12
12
  }
13
13
  value() {
14
- return this.fn();
14
+ try {
15
+ return this.fn();
16
+ }
17
+ catch (e) {
18
+ return `LogValue:${e.message}`;
19
+ }
15
20
  }
16
21
  toJSON() {
17
22
  return this.value();
18
23
  }
19
24
  }
20
- export function removeSelfRef(lineEnd) {
21
- const cache = new Set();
22
- return function (key, value) {
23
- if (typeof value === "object" && value !== null) {
24
- if (cache.has(value))
25
- return "...";
26
- cache.add(value);
27
- }
28
- return lineEnd ? value + lineEnd : value;
29
- };
30
- }
31
25
  export function asyncLogValue(val) {
32
26
  throw new Error("Not implemented");
33
27
  }
@@ -55,19 +49,31 @@ export function logValue(val, state = new Set([Math.random()])) {
55
49
  case "boolean":
56
50
  return new LogValue(() => val);
57
51
  case "object": {
52
+ if (val === null) {
53
+ return new LogValue(() => "null");
54
+ }
58
55
  if (ArrayBuffer.isView(val)) {
59
56
  return logValue(bin2string(val, 512));
60
57
  }
61
58
  if (Array.isArray(val)) {
62
59
  return new LogValue(() => val.map((v) => logValue(v).value()));
63
60
  }
64
- if (val === null) {
65
- return new LogValue(() => "null");
61
+ if (val instanceof Headers) {
62
+ return new LogValue(() => Object.fromEntries(val.entries()));
63
+ }
64
+ if (val instanceof ReadableStream) {
65
+ return new LogValue(() => ">Stream<");
66
+ }
67
+ if (val instanceof Promise) {
68
+ return new LogValue(() => ">Promise<");
66
69
  }
67
70
  if (state.has(val)) {
68
71
  return new LogValue(() => "...");
69
72
  }
70
73
  state.add(val);
74
+ if (typeof val.toJSON === "function") {
75
+ return new LogValue(() => val.toJSON());
76
+ }
71
77
  const res = {};
72
78
  const typedVal = val;
73
79
  for (const key in typedVal) {
@@ -76,7 +82,9 @@ export function logValue(val, state = new Set([Math.random()])) {
76
82
  res[key] = element;
77
83
  }
78
84
  else {
79
- res[key] = logValue(element, state);
85
+ if (typeof element !== "function") {
86
+ res[key] = logValue(element, state);
87
+ }
80
88
  }
81
89
  }
82
90
  return new LogValue(() => res);
package/ts/logger.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,MAAM,CAAN,IAAY,KAKX;AALD,WAAY,KAAK;IACf,sBAAa,CAAA;IACb,wBAAe,CAAA;IACf,sBAAa,CAAA;IACb,wBAAe,CAAA;AACjB,CAAC,EALW,KAAK,KAAL,KAAK,QAKhB;AAKD,MAAM,OAAO,QAAQ;IACnB,YAAqB,EAAgB;QAAhB,OAAE,GAAF,EAAE,CAAc;IAAG,CAAC;IACzC,KAAK;QACH,OAAO,IAAI,CAAC,EAAE,EAAE,CAAC;IACnB,CAAC;IACD,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CACF;AA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