@adviser/cement 0.2.35 → 0.2.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -265,8 +265,9 @@ export class LoggerImpl implements Logger {
265
265
  }
266
266
  return this;
267
267
  }
268
- Bool(key: string, value: unknown): Logger {
269
- this._attributes[key] = logValue(!!value);
268
+ Bool(key: string | Record<string, unknown>, value: unknown): Logger {
269
+ this.coerceKey(key, !!value);
270
+ // this._attributes[key] = logValue(!!value);
270
271
  return this;
271
272
  }
272
273
 
@@ -325,13 +326,22 @@ export class LoggerImpl implements Logger {
325
326
  return this;
326
327
  }
327
328
 
328
- Str(key: string, value?: string): Logger {
329
- this._attributes[key] = logValue(value);
329
+ private coerceKey(key: string | Record<string, unknown>, value?: unknown): void {
330
+ if (typeof key === "string") {
331
+ this._attributes[key] = logValue(value as LogValueArg);
332
+ } else {
333
+ this.Pair(key);
334
+ }
335
+ }
336
+
337
+ Str(key: string | Record<string, string>, value?: string): Logger {
338
+ this.coerceKey(key, value);
330
339
  return this;
331
340
  }
332
341
 
333
- Any(key: string, value?: string | number | boolean | LogSerializable): Logger {
334
- this._attributes[key] = logValue(value as LogValueArg);
342
+ Any(key: string | Record<string, unknown>, value?: unknown): Logger {
343
+ this.coerceKey(key, value);
344
+ //this._attributes[coerceKey(key)] = logValue(value as LogValueArg);
335
345
  return this;
336
346
  }
337
347
  Dur(key: string, nsec: number): Logger {
@@ -339,11 +349,12 @@ export class LoggerImpl implements Logger {
339
349
  // new Intl.DurationFormat("en", { style: "narrow" }).format(nsec);
340
350
  return this;
341
351
  }
342
- Uint64(key: string, value: number): Logger {
343
- this._attributes[key] = logValue(value);
352
+ Uint64(key: string | Record<string, number>, value?: number): Logger {
353
+ this.coerceKey(key, value);
354
+ //this._attributes[coerceKey(key)] = logValue(value);
344
355
  return this;
345
356
  }
346
- Int(key: string, value: number): Logger {
357
+ Int(key: string | Record<string, number>, value?: number): Logger {
347
358
  return this.Uint64(key, value);
348
359
  }
349
360
 
@@ -462,7 +473,7 @@ class WithLoggerBuilder implements WithLogger {
462
473
  return this;
463
474
  }
464
475
 
465
- Str(key: string, value?: string): WithLogger {
476
+ Str(key: string | Record<string, string>, value?: string): WithLogger {
466
477
  this._li.Str(key, value);
467
478
  return this;
468
479
  }
@@ -481,7 +492,7 @@ class WithLoggerBuilder implements WithLogger {
481
492
  this._li.Ref(key, action);
482
493
  return this;
483
494
  }
484
- Bool(key: string, value: unknown): WithLogger {
495
+ Bool(key: string | Record<string, unknown>, value?: unknown): WithLogger {
485
496
  this._li.Bool(key, value);
486
497
  return this;
487
498
  }
@@ -493,7 +504,7 @@ class WithLoggerBuilder implements WithLogger {
493
504
  this._li.Url(url, key);
494
505
  return this;
495
506
  }
496
- Int(key: string, value: number): WithLogger {
507
+ Int(key: string | Record<string, number>, value?: number): WithLogger {
497
508
  this._li.Int(key, value);
498
509
  return this;
499
510
  }
@@ -532,7 +543,7 @@ class WithLoggerBuilder implements WithLogger {
532
543
  this._li.Timestamp();
533
544
  return this;
534
545
  }
535
- Any(key: string, value: LogSerializable): WithLogger {
546
+ Any(key: string | Record<string, unknown>, value?: unknown | LogSerializable): WithLogger {
536
547
  this._li.Any(key, value);
537
548
  return this;
538
549
  }
@@ -540,7 +551,7 @@ class WithLoggerBuilder implements WithLogger {
540
551
  this._li.Dur(key, nsec);
541
552
  return this;
542
553
  }
543
- Uint64(key: string, value: number): WithLogger {
554
+ Uint64(key: string | Record<string, number>, value?: number): WithLogger {
544
555
  this._li.Uint64(key, value);
545
556
  return this;
546
557
  }
package/src/logger.ts CHANGED
@@ -175,7 +175,11 @@ export interface LoggerInterface<R> {
175
175
 
176
176
  Hash(value: unknown, key?: string): R;
177
177
 
178
- Str(key: string, value?: string): R;
178
+ Str<T extends string | Record<string, string>>(key: T, value?: T extends string ? string : undefined): R;
179
+ Uint64<T extends string | Record<string, number>>(key: T, value?: T extends string ? number : undefined): R;
180
+ Int<T extends string | Record<string, number>>(key: T, value?: T extends string ? number : undefined): R;
181
+ Bool<T extends string | Record<string, unknown>>(key: T, value?: T extends string ? unknown : undefined): R;
182
+ Any<T extends string | Record<string, unknown>>(key: T, value?: T extends string ? unknown : undefined): R;
179
183
 
180
184
  Http(res: Response | Result<Response>, req?: Request, key?: string): R;
181
185
  Pair(x: Record<string, unknown>): R;
@@ -189,11 +193,7 @@ export interface LoggerInterface<R> {
189
193
  Err(err: unknown | Result<unknown> | Error): R; // could be Error, or something which coerces to string
190
194
  Info(): R;
191
195
  Timestamp(): R;
192
- Any(key: string, value: unknown): R;
193
196
  Dur(key: string, nsec: number): R;
194
- Uint64(key: string, value: number): R;
195
- Int(key: string, value: number): R;
196
- Bool(key: string, value: unknown): R;
197
197
  }
198
198
 
199
199
  export function IsLogger(obj: unknown): obj is Logger {
package/src/uri.ts CHANGED
@@ -3,6 +3,38 @@ import { StripCommand, stripper } from "./utils/stripper.js";
3
3
 
4
4
  type NullOrUndef = null | undefined;
5
5
 
6
+ type OneKey<K extends string, V = string> = Record<K, V>;
7
+
8
+ export interface URIInterface<R extends URIInterface<R>> {
9
+ // readonly hostname: string;
10
+ // readonly port: string;
11
+ // readonly host: string;
12
+ // readonly protocol: string;
13
+ // readonly pathname: string;
14
+ readonly getParams: Iterable<[string, string]>;
15
+
16
+ hasParam(key: string): boolean;
17
+ getParam<T extends string | undefined>(key: string | OneKey<string>, def?: T): T extends string ? string : string | undefined;
18
+ getParamResult(key: string, msgFn?: (key: string) => string): Result<string>;
19
+ getParamsResult(...keys: keysParam): Result<Record<string, string>>;
20
+ clone(): R;
21
+ asURL(): URL;
22
+ toString(): string;
23
+ toJSON(): string;
24
+ asObj(...strips: StripCommand[]): Partial<HostURIObject | PathURIObject>;
25
+ }
26
+
27
+ function coerceKey(key: string | OneKey<string>, def?: string): { key: string; def?: string } {
28
+ if (typeof key === "object") {
29
+ const keys = Object.keys(key);
30
+ if (keys.length !== 1) {
31
+ throw new Error(`Invalid key: ${JSON.stringify(key)}`);
32
+ }
33
+ return { key: keys[0], def: key[keys[0]] };
34
+ }
35
+ return { key, def: def };
36
+ }
37
+
6
38
  export interface URIObject {
7
39
  readonly style: "host" | "path";
8
40
  readonly protocol: string;
@@ -205,13 +237,25 @@ function getParamResult(
205
237
  return Result.Ok(val);
206
238
  }
207
239
 
208
- type keysParam = (string | ((...keys: string[]) => string))[];
240
+ type msgFn = (...keys: string[]) => string;
241
+ type keysParam = (string | msgFn | Record<string, string>)[];
209
242
 
210
243
  function getParamsResult(
211
244
  keys: keysParam,
212
245
  getParam: { getParam: (key: string) => string | undefined },
213
246
  ): Result<Record<string, string>> {
214
- const keyStrs = keys.flat().filter((k) => typeof k === "string");
247
+ const keyDef = keys.flat().reduce(
248
+ (acc, i) => {
249
+ if (typeof i === "string") {
250
+ acc.push({ key: i });
251
+ } else if (typeof i === "object") {
252
+ acc.push(...Object.keys(i).map((k) => ({ key: k, def: i[k] })));
253
+ }
254
+ return acc;
255
+ },
256
+ [] as { key: string; def?: string }[],
257
+ );
258
+ //.filter((k) => typeof k === "string");
215
259
  const msgFn =
216
260
  keys.find((k) => typeof k === "function") ||
217
261
  ((...keys: string[]): string => {
@@ -220,12 +264,16 @@ function getParamsResult(
220
264
  });
221
265
  const errors: string[] = [];
222
266
  const result: Record<string, string> = {};
223
- for (const key of keyStrs) {
224
- const val = getParam.getParam(key);
267
+ for (const kd of keyDef) {
268
+ const val = getParam.getParam(kd.key);
225
269
  if (val === undefined) {
226
- errors.push(key);
270
+ if (kd.def) {
271
+ result[kd.key] = kd.def;
272
+ } else {
273
+ errors.push(kd.key);
274
+ }
227
275
  } else {
228
- result[key] = val;
276
+ result[kd.key] = val;
229
277
  }
230
278
  }
231
279
  if (errors.length) {
@@ -234,7 +282,7 @@ function getParamsResult(
234
282
  return Result.Ok(result);
235
283
  }
236
284
 
237
- export class BuildURI {
285
+ export class BuildURI implements URIInterface<BuildURI> {
238
286
  _url: MutableURL; // pathname needs this
239
287
  private constructor(url: MutableURL) {
240
288
  this._url = url;
@@ -359,10 +407,15 @@ export class BuildURI {
359
407
  return this._url.searchParams.has(key);
360
408
  }
361
409
 
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;
410
+ get getParams(): Iterable<[string, string]> {
411
+ return this._url.searchParams.entries();
412
+ }
413
+
414
+ getParam<T extends string | undefined>(key: string | OneKey<string>, def?: T): T extends string ? string : string | undefined {
415
+ const { key: k, def: d } = coerceKey(key, def);
416
+ let val = this._url.searchParams.get(k);
417
+ if (!falsy2undef(val) && d) {
418
+ val = d;
366
419
  }
367
420
  return falsy2undef(val) as T extends string ? string : string | undefined;
368
421
  }
@@ -391,6 +444,10 @@ export class BuildURI {
391
444
  return this.URI().asObj(...strips);
392
445
  }
393
446
 
447
+ clone(): BuildURI {
448
+ return BuildURI.from(this.toString());
449
+ }
450
+
394
451
  URI(): URI {
395
452
  return URI.from(this._url);
396
453
  }
@@ -401,7 +458,7 @@ export type CoerceURI = string | URI | MutableURL | URL | BuildURI | NullOrUndef
401
458
  export const hasHostPartProtocols: Set<string> = new Set<string>(["http", "https", "ws", "wss"]);
402
459
 
403
460
  // non mutable URL Implementation
404
- export class URI {
461
+ export class URI implements URIInterface<URI> {
405
462
  static protocolHasHostpart(protocol: string): () => void {
406
463
  protocol = protocol.replace(/:$/, "");
407
464
  hasHostPartProtocols.add(protocol);
@@ -506,10 +563,11 @@ export class URI {
506
563
  return this._url.searchParams.has(key);
507
564
  }
508
565
 
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;
566
+ getParam<T extends string | undefined>(key: string | OneKey<string>, def?: T): T extends string ? string : string | undefined {
567
+ const { key: k, def: d } = coerceKey(key, def);
568
+ let val = this._url.searchParams.get(k);
569
+ if (!falsy2undef(val) && d) {
570
+ val = d;
513
571
  }
514
572
  return falsy2undef(val) as T extends string ? string : string | undefined;
515
573
  }
@@ -24,11 +24,11 @@ export class ConsoleWriterStreamDefaultWriter implements WritableStreamDefaultWr
24
24
  this.closed = Promise.resolve(undefined);
25
25
  }
26
26
  async write(chunk?: Uint8Array | undefined): Promise<void> {
27
- const str = this.decoder.decode(chunk).trimEnd();
27
+ let strObj: string | { level: string } = this.decoder.decode(chunk).trimEnd();
28
28
  let output = "log";
29
29
  try {
30
- const decode = JSON.parse(str);
31
- output = decode.level;
30
+ strObj = JSON.parse(strObj) as { level: string };
31
+ output = strObj.level;
32
32
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
33
  } catch (e) {
34
34
  /* noop */
@@ -36,15 +36,15 @@ export class ConsoleWriterStreamDefaultWriter implements WritableStreamDefaultWr
36
36
  switch (output) {
37
37
  case "error":
38
38
  // eslint-disable-next-line no-console
39
- console.error(str);
39
+ console.error(strObj);
40
40
  break;
41
41
  case "warn":
42
42
  // eslint-disable-next-line no-console
43
- console.warn(str);
43
+ console.warn(strObj);
44
44
  break;
45
45
  default:
46
46
  // eslint-disable-next-line no-console
47
- console.log(str);
47
+ console.log(strObj);
48
48
  }
49
49
  }
50
50
  }
@@ -53,18 +53,19 @@ export declare class LoggerImpl implements Logger {
53
53
  Ref(key: string, action: {
54
54
  toString: () => string;
55
55
  } | FnSerialized): Logger;
56
- Bool(key: string, value: unknown): Logger;
56
+ Bool(key: string | Record<string, unknown>, value: unknown): Logger;
57
57
  Http(res: Response | Result<Response>, req?: Request, key?: string): Logger;
58
58
  Pair(x: Record<string, unknown>): Logger;
59
59
  Result<T>(key: string, res: Result<T, Error>): Logger;
60
60
  Len(value: unknown, key?: string): Logger;
61
61
  Hash(value: unknown, key?: string): Logger;
62
62
  Url(url: CoerceURI, key?: string): Logger;
63
- Str(key: string, value?: string): Logger;
64
- Any(key: string, value?: string | number | boolean | LogSerializable): Logger;
63
+ private coerceKey;
64
+ Str(key: string | Record<string, string>, value?: string): Logger;
65
+ Any(key: string | Record<string, unknown>, value?: unknown): Logger;
65
66
  Dur(key: string, nsec: number): Logger;
66
- Uint64(key: string, value: number): Logger;
67
- Int(key: string, value: number): Logger;
67
+ Uint64(key: string | Record<string, number>, value?: number): Logger;
68
+ Int(key: string | Record<string, number>, value?: number): Logger;
68
69
  Flush(): Promise<void>;
69
70
  With(): WithLogger;
70
71
  _resetAttributes(fn: () => () => Uint8Array): () => Uint8Array;
@@ -1 +1 @@
1
- {"version":3,"file":"logger-impl.d.ts","sourceRoot":"","sources":["../../src/logger-impl.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,YAAY,EACZ,eAAe,EACf,KAAK,EACL,MAAM,EAGN,UAAU,EAMV,YAAY,EACZ,YAAY,EAEb,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAO,MAAM,UAAU,CAAC;AAG1C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAA0B,MAAM,qBAAqB,CAAC;AAkC3E,qBAAa,aAAc,YAAW,YAAY;IAChD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;IACxC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAS;gBACrB,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM;IAIjD,MAAM,CAAC,IAAI,EAAE,eAAe,GAAG,UAAU;CAS1C;AAED,qBAAa,aAAc,YAAW,YAAY;IAChD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;IACxC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAS;gBACrB,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM;IAIjD,MAAM,CAAC,IAAI,EAAE,eAAe,GAAG,UAAU;CAG1C;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC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AAM,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM;IAKjE,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM;IAKnE,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM;IAKtC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM;IAKpE,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM;IAI3D,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAM5B,IAAI,IAAI,UAAU;IAgBlB,gBAAgB,CAAC,EAAE,EAAE,MAAM,MAAM,UAAU,GAAG,MAAM,UAAU;IAU9D,GAAG,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO;CAyBhC"}
package/ts/logger-impl.js CHANGED
@@ -214,7 +214,7 @@ export class LoggerImpl {
214
214
  return this;
215
215
  }
216
216
  Bool(key, value) {
217
- this._attributes[key] = logValue(!!value);
217
+ this.coerceKey(key, !!value);
218
218
  return this;
219
219
  }
220
220
  Http(res, req, key) {
@@ -268,12 +268,20 @@ export class LoggerImpl {
268
268
  this.Ref(key, () => URI.from(url).toString());
269
269
  return this;
270
270
  }
271
+ coerceKey(key, value) {
272
+ if (typeof key === "string") {
273
+ this._attributes[key] = logValue(value);
274
+ }
275
+ else {
276
+ this.Pair(key);
277
+ }
278
+ }
271
279
  Str(key, value) {
272
- this._attributes[key] = logValue(value);
280
+ this.coerceKey(key, value);
273
281
  return this;
274
282
  }
275
283
  Any(key, value) {
276
- this._attributes[key] = logValue(value);
284
+ this.coerceKey(key, value);
277
285
  return this;
278
286
  }
279
287
  Dur(key, nsec) {
@@ -281,7 +289,7 @@ export class LoggerImpl {
281
289
  return this;
282
290
  }
283
291
  Uint64(key, value) {
284
- this._attributes[key] = logValue(value);
292
+ this.coerceKey(key, value);
285
293
  return this;
286
294
  }
287
295
  Int(key, value) {
@@ -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,EAMR,QAAQ,EACR,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,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACrC,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACvD,IAAI,OAAQ,KAAe,CAAC,IAAI,KAAK,QAAQ,EAAE,CAA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AAY;QAC3B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,CAAC,GAAoC,EAAE,KAAc;QACzD,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
package/ts/logger.d.ts CHANGED
@@ -53,7 +53,11 @@ export interface LoggerInterface<R> {
53
53
  Url(url: CoerceURI, key?: string): R;
54
54
  Len(value: unknown, key?: string): R;
55
55
  Hash(value: unknown, key?: string): R;
56
- Str(key: string, value?: string): R;
56
+ Str<T extends string | Record<string, string>>(key: T, value?: T extends string ? string : undefined): R;
57
+ Uint64<T extends string | Record<string, number>>(key: T, value?: T extends string ? number : undefined): R;
58
+ Int<T extends string | Record<string, number>>(key: T, value?: T extends string ? number : undefined): R;
59
+ Bool<T extends string | Record<string, unknown>>(key: T, value?: T extends string ? unknown : undefined): R;
60
+ Any<T extends string | Record<string, unknown>>(key: T, value?: T extends string ? unknown : undefined): R;
57
61
  Http(res: Response | Result<Response>, req?: Request, key?: string): R;
58
62
  Pair(x: Record<string, unknown>): R;
59
63
  Error(): R;
@@ -64,11 +68,7 @@ export interface LoggerInterface<R> {
64
68
  Err(err: unknown | Result<unknown> | Error): R;
65
69
  Info(): R;
66
70
  Timestamp(): R;
67
- Any(key: string, value: unknown): R;
68
71
  Dur(key: string, nsec: number): R;
69
- Uint64(key: string, value: number): R;
70
- Int(key: string, value: number): R;
71
- Bool(key: string, value: unknown): R;
72
72
  }
73
73
  export declare function IsLogger(obj: unknown): obj is Logger;
74
74
  export interface WithLogger extends LoggerInterface<WithLogger> {
@@ -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,EAA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AG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC;CACnC;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.test.js CHANGED
@@ -987,6 +987,36 @@ describe("TestLogger", () => {
987
987
  expect(res.isErr()).toBeTruthy();
988
988
  expect(res.Err().message).toBe('{"level":"error","msg":"AsError"}\n');
989
989
  });
990
+ it("receive object", async () => {
991
+ logger
992
+ .Error()
993
+ .Str({ blaStr: "blub", blaStr2: "blub2" })
994
+ .Uint64({ blaUint64: 65, blaUint642: 66 })
995
+ .Int({ blaInt: 65 })
996
+ .Bool({ blaBool: true, blaBool2: false })
997
+ .Any({ blaAny: { a: 1 }, blaAny2: { b: 2 } })
998
+ .Msg("hello");
999
+ await logger.Flush();
1000
+ expect(logCollector.Logs()).toEqual([
1001
+ {
1002
+ blaAny: {
1003
+ a: 1,
1004
+ },
1005
+ blaAny2: {
1006
+ b: 2,
1007
+ },
1008
+ blaBool: true,
1009
+ blaBool2: false,
1010
+ blaInt: 65,
1011
+ blaStr: "blub",
1012
+ blaStr2: "blub2",
1013
+ blaUint64: 65,
1014
+ blaUint642: 66,
1015
+ level: "error",
1016
+ msg: "hello",
1017
+ },
1018
+ ]);
1019
+ });
990
1020
  it("my own yaml formatter", async () => {
991
1021
  const log = logger.SetExposeStack(true).SetFormatter(new YAMLFormatter(logger.TxtEnDe(), 2)).With().Logger();
992
1022
  log