@adviser/cement 0.1.9 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/base_sys_abstraction.d.ts.map +1 -1
  2. package/base_sys_abstraction.js.map +1 -1
  3. package/future.d.ts +8 -0
  4. package/future.d.ts.map +1 -0
  5. package/future.js +42 -0
  6. package/future.js.map +1 -0
  7. package/future.test.d.ts +2 -0
  8. package/future.test.d.ts.map +1 -0
  9. package/future.test.js +30 -0
  10. package/future.test.js.map +1 -0
  11. package/index.d.ts +1 -0
  12. package/index.d.ts.map +1 -1
  13. package/index.js +1 -0
  14. package/index.js.map +1 -1
  15. package/logger.d.ts +2 -0
  16. package/logger.d.ts.map +1 -1
  17. package/logger.test.js +110 -0
  18. package/logger.test.js.map +1 -1
  19. package/logger_impl.d.ts +21 -3
  20. package/logger_impl.d.ts.map +1 -1
  21. package/logger_impl.js +84 -22
  22. package/logger_impl.js.map +1 -1
  23. package/node/mock_file_service.d.ts.map +1 -1
  24. package/node/mock_file_service.js +2 -1
  25. package/node/mock_file_service.js.map +1 -1
  26. package/node/node_sys_abstraction.test.js +5 -5
  27. package/node/node_sys_abstraction.test.js.map +1 -1
  28. package/package.json +10 -8
  29. package/result.test.js.map +1 -1
  30. package/test/log_collector.d.ts.map +1 -1
  31. package/test/log_collector.js +2 -1
  32. package/test/log_collector.js.map +1 -1
  33. package/test/mock_logger.d.ts.map +1 -1
  34. package/test/mock_logger.js +8 -1
  35. package/test/mock_logger.js.map +1 -1
  36. package/time.d.ts.map +1 -1
  37. package/time.js.map +1 -1
  38. package/utils/rebuffer.d.ts.map +1 -1
  39. package/utils/rebuffer.js +3 -3
  40. package/utils/rebuffer.js.map +1 -1
  41. package/utils/rebuffer.test.js +1 -1
  42. package/utils/rebuffer.test.js.map +1 -1
  43. package/utils/stream2string.d.ts.map +1 -1
  44. package/utils/stream2string.js.map +1 -1
  45. package/utils/stream_map.d.ts.map +1 -1
  46. package/utils/stream_map.js.map +1 -1
  47. package/utils/stream_map.test.js +1 -1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QACR,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;CACF;AA9DD,sDA8DC"}
package/future.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export declare class Future<T> {
2
+ #private;
3
+ constructor();
4
+ asPromise(): Promise<T>;
5
+ resolve(value: T): void;
6
+ reject(reason: unknown): void;
7
+ }
8
+ //# sourceMappingURL=future.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"future.d.ts","sourceRoot":"","sources":["../src/future.ts"],"names":[],"mappings":"AAAA,qBAAa,MAAM,CAAC,CAAC;;;IAgBb,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC;IAI7B,OAAO,CAAC,KAAK,EAAE,CAAC;IAGhB,MAAM,CAAC,MAAM,EAAE,OAAO;CAGvB"}
package/future.js ADDED
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _Future_promise, _Future_resolveFn, _Future_rejectFn;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.Future = void 0;
16
+ class Future {
17
+ constructor() {
18
+ _Future_promise.set(this, void 0);
19
+ _Future_resolveFn.set(this, () => {
20
+ throw new Error("This Promise is not working as expected.");
21
+ });
22
+ _Future_rejectFn.set(this, () => {
23
+ throw new Error("This Promise is not working as expected.");
24
+ });
25
+ __classPrivateFieldSet(this, _Future_promise, new Promise((resolve, reject) => {
26
+ __classPrivateFieldSet(this, _Future_resolveFn, resolve, "f");
27
+ __classPrivateFieldSet(this, _Future_rejectFn, reject, "f");
28
+ }), "f");
29
+ }
30
+ async asPromise() {
31
+ return __classPrivateFieldGet(this, _Future_promise, "f");
32
+ }
33
+ resolve(value) {
34
+ __classPrivateFieldGet(this, _Future_resolveFn, "f").call(this, value);
35
+ }
36
+ reject(reason) {
37
+ __classPrivateFieldGet(this, _Future_rejectFn, "f").call(this, reason);
38
+ }
39
+ }
40
+ exports.Future = Future;
41
+ _Future_promise = new WeakMap(), _Future_resolveFn = new WeakMap(), _Future_rejectFn = new WeakMap();
42
+ //# sourceMappingURL=future.js.map
package/future.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"future.js","sourceRoot":"","sources":["../src/future.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,MAAa,MAAM;IASjB;QARS,kCAAqB;QAC9B,4BAAiC,GAAG,EAAE;YACpC,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;QAC9D,CAAC,EAAC;QACF,2BAAuC,GAAG,EAAE;YAC1C,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;QAC9D,CAAC,EAAC;QAGA,uBAAA,IAAI,mBAAY,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACjD,uBAAA,IAAI,qBAAc,OAAO,MAAA,CAAC;YAC1B,uBAAA,IAAI,oBAAa,MAAM,MAAA,CAAC;QAC1B,CAAC,CAAC,MAAA,CAAC;IACL,CAAC;IAED,KAAK,CAAC,SAAS;QACb,OAAO,uBAAA,IAAI,uBAAS,CAAC;IACvB,CAAC;IAED,OAAO,CAAC,KAAQ;QACd,uBAAA,IAAI,yBAAW,MAAf,IAAI,EAAY,KAAK,CAAC,CAAC;IACzB,CAAC;IACD,MAAM,CAAC,MAAe;QACpB,uBAAA,IAAI,wBAAU,MAAd,IAAI,EAAW,MAAM,CAAC,CAAC;IACzB,CAAC;CACF;AA1BD,wBA0BC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=future.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"future.test.d.ts","sourceRoot":"","sources":["../src/future.test.ts"],"names":[],"mappings":""}
package/future.test.js ADDED
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const future_1 = require("./future");
4
+ it("Create Future Happy", async () => {
5
+ const future = new future_1.Future();
6
+ const promise = future.asPromise();
7
+ expect(promise).toBeInstanceOf(Promise);
8
+ const asynced = new Promise((resolve, reject) => {
9
+ promise.then(resolve).catch(reject);
10
+ });
11
+ future.resolve("Hello World");
12
+ expect(await asynced).toBe("Hello World");
13
+ });
14
+ it("Create Future Sad", async () => {
15
+ const future = new future_1.Future();
16
+ const promise = future.asPromise();
17
+ expect(promise).toBeInstanceOf(Promise);
18
+ const asynced = new Promise((resolve, reject) => {
19
+ promise.then(resolve).catch(reject);
20
+ });
21
+ future.reject("Sad World");
22
+ try {
23
+ await asynced;
24
+ expect("Why").toBe("Sad World");
25
+ }
26
+ catch (error) {
27
+ expect(error).toBe("Sad World");
28
+ }
29
+ });
30
+ //# sourceMappingURL=future.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"future.test.js","sourceRoot":"","sources":["../src/future.test.ts"],"names":[],"mappings":";;AAAA,qCAAkC;AAElC,EAAE,CAAC,qBAAqB,EAAE,KAAK,IAAI,EAAE;IACnC,MAAM,MAAM,GAAG,IAAI,eAAM,EAAE,CAAC;IAC5B,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAExC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC9C,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAE9B,MAAM,CAAC,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;IACjC,MAAM,MAAM,GAAG,IAAI,eAAM,EAAE,CAAC;IAC5B,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAExC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC9C,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IAE3B,IAAI,CAAC;QACH,MAAM,OAAO,CAAC;QACd,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAClC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAClC,CAAC;AACH,CAAC,CAAC,CAAC"}
package/index.d.ts CHANGED
@@ -7,4 +7,5 @@ export * from "./test/log_collector";
7
7
  export * from "./test/mock_logger";
8
8
  export * from "./result";
9
9
  export * from "./option";
10
+ export * from "./future";
10
11
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
package/index.js CHANGED
@@ -23,4 +23,5 @@ __exportStar(require("./test/log_collector"), exports);
23
23
  __exportStar(require("./test/mock_logger"), exports);
24
24
  __exportStar(require("./result"), exports);
25
25
  __exportStar(require("./option"), exports);
26
+ __exportStar(require("./future"), exports);
26
27
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,gDAA8B;AAC9B,2CAAyB;AACzB,oDAAkC;AAClC,yCAAuB;AACvB,uDAAqC;AACrC,qDAAmC;AACnC,2CAAyB;AACzB,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,gDAA8B;AAC9B,2CAAyB;AACzB,oDAAkC;AAClC,yCAAuB;AACvB,uDAAqC;AACrC,qDAAmC;AACnC,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB"}
package/logger.d.ts CHANGED
@@ -6,6 +6,8 @@ export declare enum Level {
6
6
  }
7
7
  export interface LoggerInterface<R> {
8
8
  Module(key: string): R;
9
+ EnableLevel(level: Level, ...modules: string[]): R;
10
+ DisableLevel(level: Level, ...modules: string[]): R;
9
11
  SetDebug(...modules: (string | string[])[]): R;
10
12
  Str(key: string, value: string): R;
11
13
  Error(): R;
package/logger.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;IACvB,QAAQ,CAAC,GAAG,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;IAE/C,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC;IACnC,KAAK,IAAI,CAAC,CAAC;IACX,IAAI,IAAI,CAAC,CAAC;IACV,KAAK,IAAI,CAAC,CAAC;IACX,GAAG,IAAI,CAAC,CAAC;IACT,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC;IAE3B,GAAG,CAAC,GAAG,EAAE,OAAO,GAAG,CAAC,CAAC;IACrB,IAAI,IAAI,CAAC,CAAC;IACV,SAAS,IAAI,CAAC,CAAC;IACf,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,CAAC,CAAC;IACpC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC;IAClC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,CA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CAAC;IACV,SAAS,IAAI,CAAC,CAAC;IACf,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,CAAC,CAAC;IACpC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC;IAClC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC;CACvC;AACD,MAAM,WAAW,UAAW,SAAQ,eAAe,CAAC,UAAU,CAAC;IAC7D,MAAM,IAAI,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,OAAO;IACtB,OAAO,IAAI,KAAK,CAAC;CAClB;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/logger.test.js CHANGED
@@ -14,6 +14,7 @@ describe("TestLogger", () => {
14
14
  logger = new logger_impl_1.LoggerImpl({
15
15
  out: logCollector,
16
16
  sys: (0, web_sys_abstraction_1.WebSysAbstraction)({ TimeMode: sys_abstraction_1.TimeMode.STEP }),
17
+ levelHandler: new logger_impl_1.LevelHandlerImpl(),
17
18
  });
18
19
  });
19
20
  describe("Error()", () => {
@@ -258,5 +259,114 @@ describe("TestLogger", () => {
258
259
  },
259
260
  ]);
260
261
  });
262
+ it("top should enable modules wildcard", async () => {
263
+ const log = logger;
264
+ const xxxModule = log.With().Module("xxx").Logger();
265
+ log.Debug().Msg("log-Msg0");
266
+ xxxModule.Debug().Msg("xxx-log-Msg0");
267
+ log.EnableLevel(logger_1.Level.DEBUG);
268
+ log.Debug().Msg("log-Msg");
269
+ xxxModule.Debug().Msg("xxx-log-Msg");
270
+ const yyyModule = log.With().Module("yyy").Logger();
271
+ yyyModule.Debug().Msg("yyy-log-Msg");
272
+ log.DisableLevel(logger_1.Level.DEBUG);
273
+ yyyModule.Debug().Msg("yyy-log-Msg1");
274
+ log.Debug().Msg("log-Msg1");
275
+ xxxModule.Debug().Msg("xxx-log-Msg1");
276
+ await log.Flush();
277
+ expect(logCollector.Logs()).toEqual([
278
+ {
279
+ level: "debug",
280
+ msg: "log-Msg",
281
+ },
282
+ {
283
+ level: "debug",
284
+ module: "xxx",
285
+ msg: "xxx-log-Msg",
286
+ },
287
+ {
288
+ level: "debug",
289
+ module: "yyy",
290
+ msg: "yyy-log-Msg",
291
+ },
292
+ ]);
293
+ });
294
+ it("down should enable modules wildcard", async () => {
295
+ const log = logger;
296
+ const xxxModule = log.With().Module("xxx").Logger();
297
+ log.Debug().Msg("log-Msg");
298
+ xxxModule.Debug().Msg("xxx-log-Msg");
299
+ xxxModule.EnableLevel(logger_1.Level.DEBUG);
300
+ log.Debug().Msg("log-Msg1");
301
+ xxxModule.Debug().Msg("xxx-log-Msg1");
302
+ const yyyModule = log.With().Module("yyy").Logger();
303
+ yyyModule.Debug().Msg("yyy-log-Msg");
304
+ yyyModule.DisableLevel(logger_1.Level.DEBUG);
305
+ log.Debug().Msg("log-Msg2");
306
+ xxxModule.Debug().Msg("xxx-log-Msg2");
307
+ yyyModule.Debug().Msg("yyy-log-Msg2");
308
+ await log.Flush();
309
+ expect(logCollector.Logs()).toEqual([
310
+ {
311
+ level: "debug",
312
+ msg: "log-Msg1",
313
+ },
314
+ {
315
+ level: "debug",
316
+ module: "xxx",
317
+ msg: "xxx-log-Msg1",
318
+ },
319
+ {
320
+ level: "debug",
321
+ module: "yyy",
322
+ msg: "yyy-log-Msg",
323
+ },
324
+ ]);
325
+ });
326
+ it("global set debug on modules", async () => {
327
+ const log = logger;
328
+ const xxxModule = log.With().Module("xxx").Logger();
329
+ log.Debug().Msg("log-Msg");
330
+ xxxModule.Debug().Msg("xxx-log-Msg");
331
+ await log.Flush();
332
+ expect(logCollector.Logs()).toEqual([]);
333
+ xxxModule.EnableLevel(logger_1.Level.DEBUG, "yyy", "xxx");
334
+ const yyyModule = log.With().Module("yyy").Logger();
335
+ yyyModule.Debug().Msg("yyy-log-Msg");
336
+ xxxModule.Debug().Msg("xxx-log-Msg1");
337
+ log.Debug().Msg("log-Msg1");
338
+ yyyModule.DisableLevel(logger_1.Level.DEBUG, "yyy");
339
+ yyyModule.Debug().Msg("yyy-log-Msg1");
340
+ xxxModule.Debug().Msg("xxx-log-Msg2");
341
+ log.Debug().Msg("log-Msg3");
342
+ await log.Flush();
343
+ expect(logCollector.Logs()).toEqual([
344
+ {
345
+ level: "debug",
346
+ module: "yyy",
347
+ msg: "yyy-log-Msg",
348
+ },
349
+ {
350
+ level: "debug",
351
+ module: "xxx",
352
+ msg: "xxx-log-Msg1",
353
+ },
354
+ {
355
+ level: "debug",
356
+ module: "xxx",
357
+ msg: "xxx-log-Msg2",
358
+ },
359
+ ]);
360
+ });
361
+ it("global Check", async () => {
362
+ const g1 = new logger_impl_1.LoggerImpl().EnableLevel(logger_1.Level.DEBUG);
363
+ const g2 = new logger_impl_1.LoggerImpl();
364
+ const g3 = g2.With().Module("X").Logger();
365
+ expect(g1._levelHandler).toBe(g2._levelHandler);
366
+ expect(g1._levelHandler).toBe(g3._levelHandler);
367
+ expect(g1._levelHandler._globalLevels.has(logger_1.Level.DEBUG)).toBeTruthy();
368
+ expect(g2._levelHandler._globalLevels.has(logger_1.Level.DEBUG)).toBeTruthy();
369
+ expect(g3._levelHandler._globalLevels.has(logger_1.Level.DEBUG)).toBeTruthy();
370
+ });
261
371
  });
262
372
  //# sourceMappingURL=logger.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.test.js","sourceRoot":"","sources":["../src/logger.test.ts"],"names":[],"mappings":";;AAAA,+CAA2C;AAC3C,wDAAoD;AAEpD,qCAAyC;AACzC,uDAA6C;AAC7C,mEAA8D;AAC9D,iEAAqD;AAErD,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,IAAI,Y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,CAAC,CAAC,CAAC"}
package/logger_impl.d.ts CHANGED
@@ -1,28 +1,46 @@
1
1
  import { AsError, Level, Logger, WithLogger } from "./logger";
2
2
  import { SysAbstraction } from "./sys_abstraction";
3
3
  type JsonRecord = Record<string, string | number | boolean | unknown>;
4
+ export interface LevelHandler {
5
+ enableLevel(level: Level, ...modules: string[]): void;
6
+ disableLevel(level: Level, ...modules: string[]): void;
7
+ setDebug(...modules: (string | string[])[]): void;
8
+ isEnabled(ilevel: unknown, module: unknown): boolean;
9
+ }
10
+ export declare class LevelHandlerImpl implements LevelHandler {
11
+ readonly _globalLevels: Set<Level>;
12
+ readonly _modules: Map<string, Set<Level>>;
13
+ enableLevel(level: Level, ...modules: string[]): void;
14
+ disableLevel(level: Level, ...modules: string[]): void;
15
+ forModules(level: Level, fnAction: (p: string) => void, ...modules: (string | string[])[]): void;
16
+ setDebug(...modules: (string | string[])[]): void;
17
+ isEnabled(ilevel: unknown, module: unknown): boolean;
18
+ }
4
19
  export declare class LogWriter {
5
20
  readonly _out: WritableStream<Uint8Array>;
6
- readonly _toFlush: Array<() => Promise<void>>;
7
- readonly modules: Set<string>;
21
+ readonly _toFlush: (() => Promise<void>)[];
8
22
  constructor(out: WritableStream<Uint8Array>);
9
23
  write(encoded: Uint8Array): void;
10
24
  _flushIsRunning: boolean;
11
25
  _flushDoneFns: (() => void)[];
12
- _flush(toFlush?: Array<() => Promise<void>> | undefined, done?: () => void): void;
26
+ _flush(toFlush?: (() => Promise<void>)[] | undefined, done?: () => void): void;
13
27
  }
14
28
  export interface LoggerImplParams {
15
29
  readonly out?: WritableStream<Uint8Array>;
16
30
  readonly logWriter?: LogWriter;
17
31
  readonly sys?: SysAbstraction;
18
32
  readonly withAttributes?: JsonRecord;
33
+ readonly levelHandler?: LevelHandler;
19
34
  }
20
35
  export declare class LoggerImpl implements Logger {
21
36
  readonly _sys: SysAbstraction;
22
37
  readonly _attributes: JsonRecord;
23
38
  readonly _withAttributes: JsonRecord;
24
39
  readonly _logWriter: LogWriter;
40
+ readonly _levelHandler: LevelHandler;
25
41
  constructor(params?: LoggerImplParams);
42
+ EnableLevel(level: Level, ...modules: string[]): Logger;
43
+ DisableLevel(level: Level, ...modules: string[]): Logger;
26
44
  Module(key: string): Logger;
27
45
  SetDebug(...modules: (string | string[])[]): Logger;
28
46
  Timestamp(): Logger;
@@ -1 +1 @@
1
- {"version":3,"file":"logger_impl.d.ts","sourceRoot":"","sources":["../src/logger_impl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAInD,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC,CAAC;AAEtE,qBAAa,SAAS;IACpB,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IAC1C,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAM;IACnD,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAa;gBAE9B,GAAG,EAAE,cAAc,CAAC,UAAU,CAAC;IAI3C,KAAK,CAAC,OAAO,EAAE,UAAU;IAkBzB,eAAe,UAAS;IACxB,aAAa,SAAe,IAAI,IAAI;IACpC,MAAM,CAAC,OAAO,GAAE,KAAK,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI;CA4B7F;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IAC/B,QAAQ,CAAC,GAAG,CAAC,E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AAG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM;IAKxD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAK3B,QAAQ,CAAC,GAAG,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,GAAG,MAAM;IAMnD,SAAS,IAAI,MAAM;IAInB,IAAI,IAAI,MAAM;IAId,GAAG,IAAI,MAAM;IAGb,KAAK,IAAI,MAAM;IAIf,KAAK,IAAI,MAAM;IAIf,IAAI,IAAI,MAAM;IAId,GAAG,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM;IAQzB,SAAS,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM;IAK3B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAKvC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM;IAIvE,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM;IAKtC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAKpC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAM5B,IAAI,IAAI,UAAU;IAelB,gBAAgB,CAAC,EAAE,EAAE,MAAM,KAAK,GAAG,KAAK;IASxC,GAAG,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO;CAqBhC"}
package/logger_impl.js CHANGED
@@ -1,13 +1,67 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LoggerImpl = exports.LogWriter = void 0;
3
+ exports.LoggerImpl = exports.LogWriter = exports.LevelHandlerImpl = void 0;
4
4
  const logger_1 = require("./logger");
5
5
  const web_sys_abstraction_1 = require("./web/web_sys_abstraction");
6
6
  const encoder = new TextEncoder();
7
+ class LevelHandlerImpl {
8
+ constructor() {
9
+ this._globalLevels = new Set([logger_1.Level.INFO, logger_1.Level.ERROR, logger_1.Level.WARN]);
10
+ this._modules = new Map();
11
+ }
12
+ enableLevel(level, ...modules) {
13
+ if (modules.length == 0) {
14
+ this._globalLevels.add(level);
15
+ return;
16
+ }
17
+ this.forModules(level, (p) => {
18
+ this._modules.set(p, new Set([...this._globalLevels, level]));
19
+ }, ...modules);
20
+ }
21
+ disableLevel(level, ...modules) {
22
+ if (modules.length == 0) {
23
+ this._globalLevels.delete(level);
24
+ return;
25
+ }
26
+ this.forModules(level, (p) => {
27
+ this._modules.delete(p);
28
+ }, ...modules);
29
+ }
30
+ forModules(level, fnAction, ...modules) {
31
+ for (const m of modules.flat()) {
32
+ const parts = m
33
+ .split(",")
34
+ .map((s) => s.trim())
35
+ .filter((s) => s.length > 0);
36
+ for (const p of parts) {
37
+ fnAction(p);
38
+ }
39
+ }
40
+ }
41
+ setDebug(...modules) {
42
+ this.forModules(logger_1.Level.DEBUG, (p) => {
43
+ this._modules.set(p, new Set([...this._globalLevels, logger_1.Level.DEBUG]));
44
+ }, ...modules);
45
+ }
46
+ isEnabled(ilevel, module) {
47
+ const level = ilevel;
48
+ if (module !== undefined) {
49
+ const levels = this._modules.get(module);
50
+ if (levels && levels.has(level)) {
51
+ return true;
52
+ }
53
+ }
54
+ if (level === undefined) {
55
+ return true;
56
+ }
57
+ return this._globalLevels.has(level);
58
+ }
59
+ }
60
+ exports.LevelHandlerImpl = LevelHandlerImpl;
61
+ const levelSingleton = new LevelHandlerImpl();
7
62
  class LogWriter {
8
63
  constructor(out) {
9
64
  this._toFlush = [];
10
- this.modules = new Set();
11
65
  this._flushIsRunning = false;
12
66
  this._flushDoneFns = Array();
13
67
  this._out = out;
@@ -44,7 +98,7 @@ class LogWriter {
44
98
  return;
45
99
  }
46
100
  const my = this._toFlush.shift();
47
- my().finally(() => {
101
+ my === null || my === void 0 ? void 0 : my().finally(() => {
48
102
  this._flush(this._toFlush);
49
103
  });
50
104
  }
@@ -80,6 +134,20 @@ class LoggerImpl {
80
134
  this._withAttributes = Object.assign({}, params.withAttributes);
81
135
  }
82
136
  this._attributes = Object.assign({}, this._withAttributes);
137
+ if (params.levelHandler) {
138
+ this._levelHandler = params.levelHandler;
139
+ }
140
+ else {
141
+ this._levelHandler = levelSingleton;
142
+ }
143
+ }
144
+ EnableLevel(level, ...modules) {
145
+ this._levelHandler.enableLevel(level, ...modules);
146
+ return this;
147
+ }
148
+ DisableLevel(level, ...modules) {
149
+ this._levelHandler.disableLevel(level, ...modules);
150
+ return this;
83
151
  }
84
152
  Module(key) {
85
153
  this._attributes["module"] = key;
@@ -87,15 +155,7 @@ class LoggerImpl {
87
155
  return this;
88
156
  }
89
157
  SetDebug(...modules) {
90
- for (const m of modules.flat()) {
91
- const parts = m
92
- .split(",")
93
- .map((s) => s.trim())
94
- .filter((s) => s.length > 0);
95
- for (const p of parts) {
96
- this._logWriter.modules.add(p);
97
- }
98
- }
158
+ this._levelHandler.setDebug(...modules);
99
159
  return this;
100
160
  }
101
161
  Timestamp() {
@@ -159,6 +219,7 @@ class LoggerImpl {
159
219
  return new WithLoggerBuilder(new LoggerImpl({
160
220
  logWriter: this._logWriter,
161
221
  sys: this._sys,
222
+ levelHandler: this._levelHandler,
162
223
  withAttributes: Object.assign({ module: this._attributes["module"] }, this._withAttributes),
163
224
  }));
164
225
  }
@@ -172,15 +233,7 @@ class LoggerImpl {
172
233
  }
173
234
  Msg(...args) {
174
235
  const error = this._resetAttributes(() => {
175
- let skipWrite = false;
176
- if (this._attributes["level"] === logger_1.Level.DEBUG) {
177
- if (typeof this._attributes["module"] !== "string") {
178
- skipWrite = true;
179
- }
180
- else if (!this._logWriter.modules.has(this._attributes["module"])) {
181
- skipWrite = true;
182
- }
183
- }
236
+ const doWrite = this._levelHandler.isEnabled(this._attributes["level"], this._attributes["module"]);
184
237
  this._attributes["msg"] = args.join(" ");
185
238
  if (typeof this._attributes["msg"] === "string" && !this._attributes["msg"].trim().length) {
186
239
  delete this._attributes["msg"];
@@ -189,7 +242,7 @@ class LoggerImpl {
189
242
  this.Timestamp();
190
243
  }
191
244
  const str = JSON.stringify(this._attributes);
192
- if (!skipWrite) {
245
+ if (doWrite) {
193
246
  const encoded = encoder.encode(str + "\n");
194
247
  this._logWriter.write(encoded);
195
248
  }
@@ -207,8 +260,17 @@ class WithLoggerBuilder {
207
260
  }
208
261
  Logger() {
209
262
  Object.assign(this._li._withAttributes, this._li._attributes);
263
+ console.log(`Logger:${JSON.stringify([...this._li._levelHandler._globalLevels])}`);
210
264
  return this._li;
211
265
  }
266
+ EnableLevel(level, ...modules) {
267
+ this._li._levelHandler.enableLevel(level, ...modules);
268
+ return this;
269
+ }
270
+ DisableLevel(level, ...modules) {
271
+ this._li._levelHandler.enableLevel(level, ...modules);
272
+ return this;
273
+ }
212
274
  Module(key) {
213
275
  this._li.Module(key);
214
276
  return this;
@@ -1 +1 @@
1
- {"version":3,"file":"logger_impl.js","sourceRoot":"","sources":["../src/logger_impl.ts"],"names":[],"mappings":";;;AACA,qCAA8D;AAC9D,mEAA8D;AAG9D,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;AAIlC,MAAa,SAAS;IAKpB,YAAY,GAA+B;QAHlC,aAAQ,GAA+B,EAAE,CAAC;QAC1C,YAAO,GAAgB,IAAI,GAAG,EAAE,CAAC;QAwB1C,oBAAe,GAAG,KAAK,CAAC;QACxB,kBAAa,GAAG,KAAK,EAAc,CAAC;QAtBlC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,OAAmB;QACvB,MAAM,EAAE,GAAG,KAAK,IAAI,EAAE;YAGpB,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;gBACrC,MAAM,MAAM,CAAC,KAAK,CAAC;gBACnB,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBAC5B,MAAM,MAAM,CA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ACd,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI;QACF,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QAChB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,SAAS;QACP,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,GAAG,CAAC,GAAW,EAAE,KAAiB;QAChC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,GAAG,CAAC,GAAW,EAAE,IAAY;QAC3B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,CAAC,GAAW,EAAE,KAAa;QAC/B,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"mock_file_service.d.ts","sourceRoot":"","sources":["../../src/node/mock_file_service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,eAAgB,SAAQ,eAAe;IAClD,QAAQ,CAAC,KAAK,gCAAuC;IAMtC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;CA2BnE"}
1
+ {"version":3,"file":"mock_file_service.d.ts","sourceRoot":"","sources":["../../src/node/mock_file_service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,eAAgB,SAAQ,eAAe;IAClD,QAAQ,CAAC,KAAK,gCAAuC;IAMtC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;CA6BnE"}
@@ -25,7 +25,8 @@ class MockFileService extends node_file_service_1.NodeFileService {
25
25
  write(chunk) {
26
26
  fc.content = fc.content + decoder.decode(chunk);
27
27
  },
28
- close() { },
28
+ close() {
29
+ },
29
30
  abort() {
30
31
  throw new Error("not implemented");
31
32
  },
@@ -1 +1 @@
1
- {"version":3,"file":"mock_file_service.js","sourceRoot":"","sources":["../../src/node/mock_file_service.ts"],"names":[],"mappings":";;;AACA,2DAAsD;AAOtD,MAAa,eAAgB,SAAQ,mCAAe;IAApD;;QACW,UAAK,GAAG,EAAmC,CAAC;IAiCvD,CAAC;IA3BU,KAAK,CAAC,MAAM,CAAC,KAAa;QACjC,IAAI,KAAK,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,KAAK,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;QAED,MAAM,EAAE,GAAG;YACT,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QACvB,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAElC,OAAO;YACL,IAAI,EAAE,KAAK;YACX,MAAM,EAAE,IAAI,cAAc,CAAa;gBACrC,KAAK,CAAC,KAAK;oBACT,EAAE,CAAC,OAAO,GAAG,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAClD,CAAC;gBACD,KAAK,KAAI,CAAC;gBACV,KAAK;oBACH,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;gBACrC,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF;AAlCD,0CAkCC"}
1
+ {"version":3,"file":"mock_file_service.js","sourceRoot":"","sources":["../../src/node/mock_file_service.ts"],"names":[],"mappings":";;;AACA,2DAAsD;AAOtD,MAAa,eAAgB,SAAQ,mCAAe;IAApD;;QACW,UAAK,GAAG,EAAmC,CAAC;IAmCvD,CAAC;IA7BU,KAAK,CAAC,MAAM,CAAC,KAAa;QACjC,IAAI,KAAK,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,KAAK,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;QAED,MAAM,EAAE,GAAG;YACT,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QACvB,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAElC,OAAO;YACL,IAAI,EAAE,KAAK;YACX,MAAM,EAAE,IAAI,cAAc,CAAa;gBACrC,KAAK,CAAC,KAAK;oBACT,EAAE,CAAC,OAAO,GAAG,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAClD,CAAC;gBACD,KAAK;gBAEL,CAAC;gBACD,KAAK;oBACH,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;gBACrC,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF;AApCD,0CAoCC"}
@@ -40,18 +40,18 @@ function exitHandler(errCode, larg, done) {
40
40
  };
41
41
  }
42
42
  it("just-exit", (done) => {
43
- (0, node_child_process_1.exec)("ts-node src/test/test-exit-handler.ts exit24", exitHandler(24, "exit24", done));
43
+ (0, node_child_process_1.exec)("tsx src/test/test-exit-handler.ts exit24", exitHandler(24, "exit24", done));
44
44
  });
45
45
  it("throw", (done) => {
46
- (0, node_child_process_1.exec)("ts-node src/test/test-exit-handler.ts throw", exitHandler(19, "throw", done));
46
+ (0, node_child_process_1.exec)("tsx src/test/test-exit-handler.ts throw", exitHandler(19, "throw", done));
47
47
  });
48
48
  it("via sigint", (done) => {
49
- (0, node_child_process_1.exec)("ts-node src/test/test-exit-handler.ts sigint", exitHandler(2, "sigint", done));
49
+ (0, node_child_process_1.exec)("tsx src/test/test-exit-handler.ts sigint", exitHandler(2, "sigint", done));
50
50
  });
51
51
  it("via sigterm", (done) => {
52
- (0, node_child_process_1.exec)("ts-node src/test/test-exit-handler.ts sigterm", exitHandler(9, "sigterm", done));
52
+ (0, node_child_process_1.exec)("tsx src/test/test-exit-handler.ts sigterm", exitHandler(9, "sigterm", done));
53
53
  });
54
54
  it("via sigquit", (done) => {
55
- (0, node_child_process_1.exec)("ts-node src/test/test-exit-handler.ts sigquit", exitHandler(3, "sigquit", done));
55
+ (0, node_child_process_1.exec)("tsx src/test/test-exit-handler.ts sigquit", exitHandler(3, "sigquit", done));
56
56
  });
57
57
  //# sourceMappingURL=node_sys_abstraction.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"node_sys_abstraction.test.js","sourceRoot":"","sources":["../../src/node/node_sys_abstraction.test.ts"],"names":[],"mappings":";;AAAA,2DAAyD;AAEzD,SAAS,WAAW,CAAC,OAAe,EAAE,IAAY,EAAE,IAAgB;IA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AC,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE;IACzB,IAAA,yBAAI,EAAC,2CAA2C,EAAE,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AACrF,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE;IACzB,IAAA,yBAAI,EAAC,2CAA2C,EAAE,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AACrF,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@adviser/cement",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "better try/catch/finally handling",
5
- "main": "index.js",
5
+ "xmain": "index.js",
6
+ "type": "module",
6
7
  "keywords": [],
7
8
  "author": "Meno Abels <meno.abels@adviser.com>",
8
9
  "license": "AFL-2.0",
@@ -13,13 +14,14 @@
13
14
  "devDependencies": {
14
15
  "@types/jest": "^29.5.12",
15
16
  "@types/node": "^20.12.3",
16
- "@typescript-eslint/eslint-plugin": "^6.21.0",
17
- "@typescript-eslint/parser": "^6.21.0",
18
- "eslint": "^8.57.0",
17
+ "@typescript-eslint/eslint-plugin": "^7.13.0",
18
+ "@typescript-eslint/parser": "^7.13.0",
19
+ "eslint": "^9.4.0",
19
20
  "jest": "^29.7.0",
20
21
  "prettier": "^3.2.5",
21
22
  "ts-jest": "^29.1.2",
22
- "ts-node": "^10.9.2",
23
+ "tsx": "^4.15.2",
24
+ "typescript-eslint": "^7.13.0",
23
25
  "typescript": "^5.4.3"
24
26
  },
25
27
  "engines": {
@@ -33,8 +35,8 @@
33
35
  "test:js": "jest",
34
36
  "pubdir": "pnpm run build; rm -rf pubdir ; mkdir -p pubdir; cp -pr ../.gitignore package.json ../README.md ../LICENSE pubdir/; cd dist ; cp -pr . ../pubdir/",
35
37
  "presmoke": "pnpm run pubdir ; cd pubdir ; pnpm pack",
36
- "smoke": "cd smoke; rm -f package.json; pnpm init ; pnpm install -f ../pubdir/adviser-cement-*.tgz; npx ts-node ./smoke.ts",
37
- "lint": "eslint . --ext .ts",
38
+ "smoke": "cd smoke; rm -f package.json; pnpm init ; pnpm install -f ../pubdir/adviser-cement-*.tgz; npx tsx ./smoke.ts",
39
+ "lint": "eslint .",
38
40
  "prettier": "prettier ."
39
41
  }
40
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"result.test.js","sourceRoot":"","sources":["../src/result.test.ts"],"names":[],"mappings":";;AAAA,qCAAiD;AAEjD,EAAE,CAAC,UAAU,EAAE,GAAG,EAAE;IAClB,MAAM,MAAM,GAAG,eAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5B,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACpC,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;IACrC,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;AAC9C,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE;IACnB,MAAM,MAAM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AK,IAAI,OAAO,CAAC,IAAI,CAAC;IAS5B,SAAS,IAAI,2BAA2B,CAAC,UAAU,CAAC;IAQpD,IAAI,IAAI,GAAG,EAAE;CAkBd"}
1
+ {"version":3,"file":"log_collector.d.ts","sourceRoot":"","sources":["../../src/test/log_collector.ts"],"names":[],"mappings":"AAAA,cAAM,SAAU,YAAW,2BAA2B,CAAC,UAAU,CAAC;IAChE,QAAQ,CAAC,UAAU,EAAE,UAAU,EAAE,CAAM;IAEvC,cAAc,EAAE,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IACzD,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;IAClC,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,CAA8B;;IAYvD,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAGlC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,WAAW,IAAI,IAAI;IAGnB,KAAK,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CAIzC;AAED,qBAAa,YAAa,YAAW,cAAc,CAAC,UAAU,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAS;IACjC,OAAO,CAAC,EAAE,SAAS,CAAC;IAGpB,KAAK,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAInC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAS5B,SAAS,IAAI,2BAA2B,CAAC,UAAU,CAAC;IAQpD,IAAI,IAAI,GAAG,EAAE;CAkBd"}
@@ -6,7 +6,8 @@ class LogWriter {
6
6
  this._bufferArr = [];
7
7
  this.desiredSize = null;
8
8
  this.ready = Promise.resolve(undefined);
9
- this._resolveClosed = () => { };
9
+ this._resolveClosed = () => {
10
+ };
10
11
  this.closed = new Promise((resolve) => {
11
12
  this._resolveClosed = resolve;
12
13
  });
@@ -1 +1 @@
1
- {"version":3,"file":"log_collector.js","sourceRoot":"","sources":["../../src/test/log_collector.ts"],"names":[],"mappings":";;;AAAA,MAAM,SAAS;IAQb;QAPS,eAAU,GAAiB,EAAE,CAAC;QAIvC,gBAAW,GAAkB,IAAI,CAAC;QAClC,UAAK,GAAuB,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAIrD,IAAI,CAAC,cAAc,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACpC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC;IAGD,KAAK,CAAC,MAAY;QAChB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,KAAK;QACH,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IACD,WAAW;IAEX,CAAC;IACD,KAAK,CAAC,KAAkB;QACtB,KAAK,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrC,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;CACF;AAED,MAAa,YAAY;IAAzB;QACW,WAAM,GAAY,KAAK,CAAC;IA2CnC,CAAC;IAvCC,KAAK,CAAC,MAAmB;QACvB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,KAAK;QACT,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YACvC,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;YACzB,OAAO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,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CACjC,GAAG,gBAAgB,CAcnB"}
1
+ {"version":3,"file":"mock_logger.d.ts","sourceRoot":"","sources":["../../src/test/mock_logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;CACrC;AAED,wBAAgB,UAAU,CAAC,MAAM,CAAC,EAAE;IAClC,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CACjC,GAAG,gBAAgB,CAqBnB"}
@@ -12,7 +12,14 @@ function MockLogger(params) {
12
12
  else if (Array.isArray(params === null || params === void 0 ? void 0 : params.moduleName)) {
13
13
  modNames = [...params.moduleName, ...modNames];
14
14
  }
15
- const logger = new logger_impl_1.LoggerImpl({ out: lc, sys: params === null || params === void 0 ? void 0 : params.sys }).With().Module(modNames[0]).Logger();
15
+ const logger = new logger_impl_1.LoggerImpl({
16
+ out: lc,
17
+ sys: params === null || params === void 0 ? void 0 : params.sys,
18
+ levelHandler: new logger_impl_1.LevelHandlerImpl(),
19
+ })
20
+ .With()
21
+ .Module(modNames[0])
22
+ .Logger();
16
23
  !(params === null || params === void 0 ? void 0 : params.disableDebug) && logger.SetDebug(...modNames);
17
24
  return {
18
25
  logCollector: lc,
@@ -1 +1 @@
1
- {"version":3,"file":"mock_logger.js","sourceRoot":"","sources":["../../src/test/mock_logger.ts"],"names":[],"mappings":";;;AACA,gDAA4C;AAE5C,mDAA+C;AAO/C,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c;IACpB,IAAI,UAAc;CACnB"}
1
+ {"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../src/time.ts"],"names":[],"mappings":"AAAA,8BAAsB,IAAI;IACxB,QAAQ,CAAC,GAAG,IAAI,IAAI;IACpB,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IACjD,SAAS,CAAC,KAAK,EAAE,IAAI,GAAG,QAAQ;CAIjC;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,oBAAY,SAAS;IACnB,WAAW,IAAI;IAEf,MAAM,OAAqB;IAE3B,MAAM,QAAc;IAEpB,IAAI,UAAc;CACnB"}
package/time.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"time.js","sourceRoot":"","sources":["../src/time.ts"],"names":[],"mappings":";;;AAAA,MAAsB,IAAI;IAGxB,SAAS,CAAC,KAAW;QACnB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACvB,OAAO,GAAG,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC;IACzC,CAAC;CACF;AAPD,oBAOC;AAID,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,uDAAe,CAAA;IACf,gDAA2B,CAAA;IAC3B,iDAAoB,CAAA;IACpB,+CAAkB,CAAA;AACpB,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB"}
1
+ {"version":3,"file":"time.js","sourceRoot":"","sources":["../src/time.ts"],"names":[],"mappings":";;;AAAA,MAAsB,IAAI;IAGxB,SAAS,CAAC,KAAW;QACnB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACvB,OAAO,GAAG,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC;IACzC,CAAC;CACF;AAPD,oBAOC;AAID,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,uDAAe,CAAA;IAEf,gDAA2B,CAAA;IAE3B,iDAAoB,CAAA;IAEpB,+CAAkB,CAAA;AACpB,CAAC,EARW,SAAS,yBAAT,SAAS,QAQpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"rebuffer.d.ts","sourceRoot":"","sources":["../../src/utils/rebuffer.ts"],"names":[],"mappings":"AAOA,wBAAsB,aAAa,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAE7F;AAoDD,wBAAgB,QAAQ,CAAC,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,MAAM,GAAG,cAAc,CAAC,UAAU,CAAC,CAcrG"}
1
+ {"version":3,"file":"rebuffer.d.ts","sourceRoot":"","sources":["../../src/utils/rebuffer.ts"],"names":[],"mappings":"AAOA,wBAAsB,aAAa,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAE7F;AAmDD,wBAAgB,QAAQ,CAAC,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,MAAM,GAAG,cAAc,CAAC,UAAU,CAAC,CAcrG"}
package/utils/rebuffer.js CHANGED
@@ -14,9 +14,9 @@ function reChunk(cs, chunkSize) {
14
14
  cs[cs.length - 1] = last.subarray(0, chunkSize - lastOfs);
15
15
  const chunk = new Uint8Array(chunkSize);
16
16
  let ofs = 0;
17
- for (let i = 0; i < cs.length; i++) {
18
- chunk.set(cs[i], ofs);
19
- ofs += cs[i].length;
17
+ for (const c of cs) {
18
+ chunk.set(c, ofs);
19
+ ofs += c.length;
20
20
  }
21
21
  return { rest, chunk };
22
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"rebuffer.js","sourceRoot":"","sources":["../../src/utils/rebuffer.ts"],"names":[],"mappings":";;;AAAA,6CAA0D;AAOnD,KAAK,UAAU,aAAa,CAAC,CAAe,EAAE,SAAiB;IACpE,OAAO,IA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C5B,CAAC;QACD,IAAI,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,QAAQ,CAAC,CAA6B,EAAE,SAAiB;IACvE,MAAM,KAAK,GAAc;QACvB,MAAM,EAAE,CAAC,CAAC,SAAS,EAAE;QACrB,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,CAAC;QACT,SAAS;KACV,CAAC;IACF,OAAO,IAAI,cAAc,CAAa;QACpC,KAAK,CAAC,IAAI,CAAC,UAAU;YACnB,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;gBACnC,IAAI,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;YACnC,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAdD,4BAcC"}
@@ -70,7 +70,7 @@ describe("test streaming through rebuffer", () => {
70
70
  let lastfillCalls = 0;
71
71
  for (let i = 0; i < state.CollectorFn.mock.calls.length - 1; i++) {
72
72
  const { fillCalls, reBufferCalls, value } = state.CollectorFn.mock.calls[i][0];
73
- expect(value[0]).toBe(~~((reBufferSize * i) / state.sendChunkSize) % 256);
73
+ expect(value === null || value === void 0 ? void 0 : value[0]).toBe(~~((reBufferSize * i) / state.sendChunkSize) % 256);
74
74
  expect(fillCalls * state.sendChunkSize).toBeGreaterThanOrEqual((fillCalls - lastfillCalls) * state.sendChunkSize + reBufferCalls * reBufferSize);
75
75
  lastfillCalls = fillCalls;
76
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"rebuffer.test.js","sourceRoot":"","sources":["../../src/utils/rebuffer.test.ts"],"names":[],"mappings":";;AAAA,yCAAqD;AACrD,6DAA2F;AAE3F,EAAE,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;IAC7B,MAAM,MAAM,GAAG,MAAM,IAAA,wBAAa,EAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3C,MAAM,CA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,aAAa,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC/E,MAAM,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,GAAG,CAAC,CAAC;YAC5E,MAAM,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,sBAAsB,CAC5D,CAAC,SAAS,GAAG,aAAa,CAAC,GAAG,KAAK,CAAC,aAAa,GAAG,aAAa,GAAG,YAAY,CACjF,CAAC;YACF,aAAa,GAAG,SAAS,CAAC;QAC5B,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stream2string.d.ts","sourceRoot":"","sources":["../../src/utils/stream2string.ts"],"names":[],"mappings":"AAAA,wBAAsB,aAAa,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA0BjH;AAED,wBAAsB,iBAAiB,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAmBvG"}
1
+ {"version":3,"file":"stream2string.d.ts","sourceRoot":"","sources":["../../src/utils/stream2string.ts"],"names":[],"mappings":"AAAA,wBAAsB,aAAa,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAyBjH;AAED,wBAAsB,iBAAiB,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,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AAG,GAAG,IAAI,UAAU,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC;QAC3C,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC9B,CAAC;AAnBD,8CAmBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stream_map.d.ts","sourceRoot":"","sources":["../../src/utils/stream_map.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS,CAAC,CAAC,EAAE,CAAC;IAC7B,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACvC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AACD,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAoB5F;AAED,wBAAsB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAYtE;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC,CAYzD;AAED,wBAAsB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAYxE"}
1
+ {"version":3,"file":"stream_map.d.ts","sourceRoot":"","sources":["../../src/utils/stream_map.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS,CAAC,CAAC,EAAE,CAAC;IA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KAAK,CAAC,CAAC;IAClB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAXD,oCAWC"}
@@ -80,7 +80,7 @@ describe("test streaming through streamMap", () => {
80
80
  let lastfillCalls = 0;
81
81
  for (let i = 0; i < state.CollectorFn.mock.calls.length - 1; i++) {
82
82
  const { fillCalls, reBufferCalls, value } = state.CollectorFn.mock.calls[i][0];
83
- expect(value[0]).toBe((i + 1) % 256);
83
+ expect(value === null || value === void 0 ? void 0 : value[0]).toBe((i + 1) % 256);
84
84
  expect(fillCalls * state.sendChunkSize).toBeGreaterThanOrEqual((fillCalls - lastfillCalls) * state.sendChunkSize + reBufferCalls * state.sendChunkSize);
85
85
  lastfillCalls = fillCalls;
86
86
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stream_map.test.js","sourceRoot":"","sources":["../../src/utils/stream_map.test.ts"],"names":[],"mappings":";;AAAA,6DAA2F;AAC3F,6CAA8E;AAE9E,EAAE,CAAC,cAAc,EAAE,KAAK,IAAI,EAAE;IAC5B,MAAM,EAAE,GAAG,IAAA,yBAAY,EAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACnC,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,MAAM,MAAM,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC;IAE9B,OAAO,IAAI,EAAE,CAAC;QACZ,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QAC5C,IAAI,IAAI,EAAE,CAAC;YACT,MAAM;QACR,CAAC;QACD,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,cAAc,EAAE,KAAK,IAAI,EAAE;IAC5B,MAAM,EAAE,GAAG,MAAM,IAAA,yBAAY,EAC3B,IAAI,cAAc,CAAC;QACjB,KAAK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