@adviser/cement 0.1.10 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. package/base_sys_abstraction-BCdXJHNa.d.ts +21 -0
  2. package/base_sys_abstraction-BYZvxqsW.d.cts +21 -0
  3. package/chunk-J2IM7FHM.js +65 -0
  4. package/chunk-J2IM7FHM.js.map +1 -0
  5. package/chunk-MWAFFTM4.js +82 -0
  6. package/chunk-MWAFFTM4.js.map +1 -0
  7. package/chunk-PZTL4UNG.js +233 -0
  8. package/chunk-PZTL4UNG.js.map +1 -0
  9. package/index.cjs +987 -0
  10. package/index.cjs.map +1 -0
  11. package/index.d.cts +196 -0
  12. package/index.d.ts +196 -10
  13. package/index.js +611 -25
  14. package/index.js.map +1 -1
  15. package/node/index.cjs +436 -0
  16. package/node/index.cjs.map +1 -0
  17. package/node/index.d.cts +47 -0
  18. package/node/index.d.ts +47 -4
  19. package/node/index.js +215 -17
  20. package/node/index.js.map +1 -1
  21. package/package.json +39 -11
  22. package/sys_abstraction-CjljYIkv.d.cts +65 -0
  23. package/sys_abstraction-CjljYIkv.d.ts +65 -0
  24. package/utils/index.cjs +270 -0
  25. package/utils/index.cjs.map +1 -0
  26. package/utils/index.d.cts +33 -0
  27. package/utils/index.d.ts +33 -6
  28. package/utils/index.js +232 -20
  29. package/utils/index.js.map +1 -1
  30. package/web/index.cjs +286 -0
  31. package/web/index.cjs.map +1 -0
  32. package/web/index.d.cts +6 -0
  33. package/web/index.d.ts +6 -2
  34. package/web/index.js +7 -16
  35. package/web/index.js.map +1 -1
  36. package/base_sys_abstraction.d.ts +0 -79
  37. package/base_sys_abstraction.d.ts.map +0 -1
  38. package/base_sys_abstraction.js +0 -186
  39. package/base_sys_abstraction.js.map +0 -1
  40. package/base_sys_abstraction.test.d.ts +0 -2
  41. package/base_sys_abstraction.test.d.ts.map +0 -1
  42. package/base_sys_abstraction.test.js +0 -77
  43. package/base_sys_abstraction.test.js.map +0 -1
  44. package/file_service.d.ts +0 -18
  45. package/file_service.d.ts.map +0 -1
  46. package/file_service.js +0 -3
  47. package/file_service.js.map +0 -1
  48. package/index.d.ts.map +0 -1
  49. package/logger.d.ts +0 -36
  50. package/logger.d.ts.map +0 -1
  51. package/logger.js +0 -11
  52. package/logger.js.map +0 -1
  53. package/logger.test.d.ts +0 -2
  54. package/logger.test.d.ts.map +0 -1
  55. package/logger.test.js +0 -362
  56. package/logger.test.js.map +0 -1
  57. package/logger_impl.d.ts +0 -64
  58. package/logger_impl.d.ts.map +0 -1
  59. package/logger_impl.js +0 -330
  60. package/logger_impl.js.map +0 -1
  61. package/node/index.d.ts.map +0 -1
  62. package/node/mock_file_service.d.ts +0 -11
  63. package/node/mock_file_service.d.ts.map +0 -1
  64. package/node/mock_file_service.js +0 -37
  65. package/node/mock_file_service.js.map +0 -1
  66. package/node/mock_file_service.test.d.ts +0 -2
  67. package/node/mock_file_service.test.d.ts.map +0 -1
  68. package/node/mock_file_service.test.js +0 -19
  69. package/node/mock_file_service.test.js.map +0 -1
  70. package/node/node_file_service.d.ts +0 -16
  71. package/node/node_file_service.d.ts.map +0 -1
  72. package/node/node_file_service.js +0 -84
  73. package/node/node_file_service.js.map +0 -1
  74. package/node/node_sys_abstraction.d.ts +0 -21
  75. package/node/node_sys_abstraction.d.ts.map +0 -1
  76. package/node/node_sys_abstraction.js +0 -101
  77. package/node/node_sys_abstraction.js.map +0 -1
  78. package/node/node_sys_abstraction.test.d.ts +0 -2
  79. package/node/node_sys_abstraction.test.d.ts.map +0 -1
  80. package/node/node_sys_abstraction.test.js +0 -57
  81. package/node/node_sys_abstraction.test.js.map +0 -1
  82. package/option.d.ts +0 -25
  83. package/option.d.ts.map +0 -1
  84. package/option.js +0 -53
  85. package/option.js.map +0 -1
  86. package/result.d.ts +0 -31
  87. package/result.d.ts.map +0 -1
  88. package/result.js +0 -69
  89. package/result.js.map +0 -1
  90. package/result.test.d.ts +0 -2
  91. package/result.test.d.ts.map +0 -1
  92. package/result.test.js +0 -39
  93. package/result.test.js.map +0 -1
  94. package/sys_abstraction.d.ts +0 -35
  95. package/sys_abstraction.d.ts.map +0 -1
  96. package/sys_abstraction.js +0 -35
  97. package/sys_abstraction.js.map +0 -1
  98. package/test/log_collector.d.ts +0 -22
  99. package/test/log_collector.d.ts.map +0 -1
  100. package/test/log_collector.js +0 -65
  101. package/test/log_collector.js.map +0 -1
  102. package/test/mock_logger.d.ts +0 -13
  103. package/test/mock_logger.d.ts.map +0 -1
  104. package/test/mock_logger.js +0 -30
  105. package/test/mock_logger.js.map +0 -1
  106. package/test/mock_logger.test.d.ts +0 -2
  107. package/test/mock_logger.test.d.ts.map +0 -1
  108. package/test/mock_logger.test.js +0 -49
  109. package/test/mock_logger.test.js.map +0 -1
  110. package/test/test-exit-handler.d.ts +0 -1
  111. package/test/test-exit-handler.d.ts.map +0 -1
  112. package/test/test-exit-handler.js +0 -76
  113. package/test/test-exit-handler.js.map +0 -1
  114. package/time.d.ts +0 -13
  115. package/time.d.ts.map +0 -1
  116. package/time.js +0 -18
  117. package/time.js.map +0 -1
  118. package/utils/index.d.ts.map +0 -1
  119. package/utils/rebuffer.d.ts +0 -3
  120. package/utils/rebuffer.d.ts.map +0 -1
  121. package/utils/rebuffer.js +0 -65
  122. package/utils/rebuffer.js.map +0 -1
  123. package/utils/rebuffer.test.d.ts +0 -2
  124. package/utils/rebuffer.test.d.ts.map +0 -1
  125. package/utils/rebuffer.test.js +0 -79
  126. package/utils/rebuffer.test.js.map +0 -1
  127. package/utils/stream2string.d.ts +0 -3
  128. package/utils/stream2string.d.ts.map +0 -1
  129. package/utils/stream2string.js +0 -53
  130. package/utils/stream2string.js.map +0 -1
  131. package/utils/stream2string.test.d.ts +0 -2
  132. package/utils/stream2string.test.d.ts.map +0 -1
  133. package/utils/stream2string.test.js +0 -31
  134. package/utils/stream2string.test.js.map +0 -1
  135. package/utils/stream_map.d.ts +0 -9
  136. package/utils/stream_map.d.ts.map +0 -1
  137. package/utils/stream_map.js +0 -67
  138. package/utils/stream_map.js.map +0 -1
  139. package/utils/stream_map.test.d.ts +0 -2
  140. package/utils/stream_map.test.d.ts.map +0 -1
  141. package/utils/stream_map.test.js +0 -89
  142. package/utils/stream_map.test.js.map +0 -1
  143. package/utils/stream_test_helper.d.ts +0 -15
  144. package/utils/stream_test_helper.d.ts.map +0 -1
  145. package/utils/stream_test_helper.js +0 -42
  146. package/utils/stream_test_helper.js.map +0 -1
  147. package/utils/string2stream.d.ts +0 -3
  148. package/utils/string2stream.d.ts.map +0 -1
  149. package/utils/string2stream.js +0 -18
  150. package/utils/string2stream.js.map +0 -1
  151. package/utils/string2stream.test.d.ts +0 -2
  152. package/utils/string2stream.test.d.ts.map +0 -1
  153. package/utils/string2stream.test.js +0 -9
  154. package/utils/string2stream.test.js.map +0 -1
  155. package/web/index.d.ts.map +0 -1
  156. package/web/web_sys_abstraction.d.ts +0 -4
  157. package/web/web_sys_abstraction.d.ts.map +0 -1
  158. package/web/web_sys_abstraction.js +0 -65
  159. package/web/web_sys_abstraction.js.map +0 -1
@@ -1,77 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const node_sys_abstraction_1 = require("./node/node_sys_abstraction");
4
- const sys_abstraction_1 = require("./sys_abstraction");
5
- const web_sys_abstraction_1 = require("./web/web_sys_abstraction");
6
- for (const abstraction of [
7
- { name: "NodeSysAbstraction", fn: node_sys_abstraction_1.NodeSysAbstraction },
8
- { name: "WebSysAbstraction", fn: web_sys_abstraction_1.WebSysAbstraction },
9
- ]) {
10
- describe(abstraction.name, () => {
11
- it("IdService UUID", () => {
12
- const sys = abstraction.fn();
13
- const id1 = sys.NextId();
14
- const id2 = sys.NextId();
15
- expect(id1).not.toEqual(id2);
16
- });
17
- it("IdService explict UUID", () => {
18
- const sys = abstraction.fn({ IdMode: sys_abstraction_1.IDMode.UUID });
19
- const id1 = sys.NextId();
20
- const id2 = sys.NextId();
21
- expect(id1).not.toEqual(id2);
22
- });
23
- it("IdService const", () => {
24
- const sys = abstraction.fn({ IdMode: sys_abstraction_1.IDMode.CONST });
25
- const id1 = sys.NextId();
26
- const id2 = sys.NextId();
27
- expect(id1).toEqual(id2);
28
- });
29
- it("IdService set", () => {
30
- for (let i = 0; i < 10; i++) {
31
- const sys = abstraction.fn({ IdMode: sys_abstraction_1.IDMode.STEP });
32
- const id1 = sys.NextId();
33
- const id2 = sys.NextId();
34
- expect(id1).toEqual("STEPId-0");
35
- expect(id2).toEqual("STEPId-1");
36
- }
37
- });
38
- it("time sleep", async () => {
39
- const sys = abstraction.fn();
40
- const start = sys.Time().Now();
41
- await sys.Time().Sleep(100);
42
- expect(sys.Time().TimeSince(start)).toBeGreaterThan(90);
43
- });
44
- it("time sleep const", async () => {
45
- const sys = abstraction.fn({ TimeMode: sys_abstraction_1.TimeMode.REAL });
46
- const start = new Date();
47
- await sys.Time().Sleep(100);
48
- const end = new Date();
49
- expect(end.getTime() - start.getTime()).toBeGreaterThan(90);
50
- });
51
- it("time sleep step", async () => {
52
- const sys = abstraction.fn({ TimeMode: sys_abstraction_1.TimeMode.STEP });
53
- const start = sys.Time().Now();
54
- await sys.Time().Sleep(86400500);
55
- expect(sys.Time().Now().getTime() - start.getTime()).toEqual(86401500);
56
- });
57
- it("const random", () => {
58
- const sys = abstraction.fn({ RandomMode: sys_abstraction_1.RandomMode.CONST });
59
- expect(sys.Random0ToValue(10)).toEqual(5);
60
- expect(sys.Random0ToValue(10)).toEqual(5);
61
- });
62
- it("step random", () => {
63
- const sys = abstraction.fn({ RandomMode: sys_abstraction_1.RandomMode.STEP });
64
- expect(sys.Random0ToValue(10000)).toEqual(1);
65
- expect(sys.Random0ToValue(10000)).toEqual(2);
66
- });
67
- it("random", () => {
68
- const sys = abstraction.fn({});
69
- for (let i = 0; i < 100; i++) {
70
- const val = sys.Random0ToValue(10);
71
- expect(val).toBeGreaterThanOrEqual(0);
72
- expect(val).toBeLessThanOrEqual(10);
73
- }
74
- });
75
- });
76
- }
77
- //# sourceMappingURL=base_sys_abstraction.test.js.map
@@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EAAE,CAAC,EAAE,UAAU,EAAE,4BAAU,CAAC,IAAI,EAAE,CAAC,CAAC;YAC5D,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAC7C,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE;YAChB,MAAM,GAAG,GAAG,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;YAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC7B,MAAM,GAAG,GAAG,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;gBACnC,MAAM,CAAC,GAAG,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;gBACtC,MAAM,CAAC,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;YACtC,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
package/file_service.d.ts DELETED
@@ -1,18 +0,0 @@
1
- export interface NamedWritableStream {
2
- readonly name: string;
3
- readonly stream: WritableStream<Uint8Array>;
4
- }
5
- export interface FileService {
6
- readonly baseDir: string;
7
- create(fname: string): Promise<NamedWritableStream>;
8
- readFileString(fname: string): Promise<string>;
9
- writeFileString(fname: string, content: string): Promise<void>;
10
- abs(fname: string): string;
11
- join(...paths: string[]): string;
12
- relative(from: string, to?: string): string;
13
- dirname(fname: string): string;
14
- basename(fname: string): string;
15
- nodeImport(fname: string): string;
16
- isAbsolute(fname: string): boolean;
17
- }
18
- //# sourceMappingURL=file_service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file_service.d.ts","sourceRoot":"","sources":["../src/file_service.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACpD,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/C,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/D,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3B,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAEjC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5C,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAEhC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAElC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACpC"}
package/file_service.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=file_service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file_service.js","sourceRoot":"","sources":["../src/file_service.ts"],"names":[],"mappings":""}
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
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"}
package/logger.d.ts DELETED
@@ -1,36 +0,0 @@
1
- export declare enum Level {
2
- WARN = "warn",
3
- DEBUG = "debug",
4
- INFO = "info",
5
- ERROR = "error"
6
- }
7
- export interface LoggerInterface<R> {
8
- Module(key: string): R;
9
- EnableLevel(level: Level, ...modules: string[]): R;
10
- DisableLevel(level: Level, ...modules: string[]): R;
11
- SetDebug(...modules: (string | string[])[]): R;
12
- Str(key: string, value: string): R;
13
- Error(): R;
14
- Warn(): R;
15
- Debug(): R;
16
- Log(): R;
17
- WithLevel(level: Level): R;
18
- Err(err: unknown): R;
19
- Info(): R;
20
- Timestamp(): R;
21
- Any(key: string, value: unknown): R;
22
- Dur(key: string, nsec: number): R;
23
- Uint64(key: string, value: number): R;
24
- }
25
- export interface WithLogger extends LoggerInterface<WithLogger> {
26
- Logger(): Logger;
27
- }
28
- export interface AsError {
29
- AsError(): Error;
30
- }
31
- export interface Logger extends LoggerInterface<Logger> {
32
- With(): WithLogger;
33
- Msg(...args: string[]): AsError;
34
- Flush(): Promise<void>;
35
- }
36
- //# sourceMappingURL=logger.d.ts.map
package/logger.d.ts.map DELETED
@@ -1 +0,0 @@
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;IAEvB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,CAA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});
3
- exports.Level = void 0;
4
- var Level;
5
- (function (Level) {
6
- Level["WARN"] = "warn";
7
- Level["DEBUG"] = "debug";
8
- Level["INFO"] = "info";
9
- Level["ERROR"] = "error";
10
- })(Level || (exports.Level = Level = {}));
11
- //# sourceMappingURL=logger.js.map
package/logger.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAKX;AALD,WAAY,KAAK;IACf,sBAAa,CAAA;IACb,wBAAe,CAAA;IACf,sBAAa,CAAA;IACb,wBAAe,CAAA;AACjB,CAAC,EALW,KAAK,qBAAL,KAAK,QAKhB"}
package/logger.test.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=logger.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.test.d.ts","sourceRoot":"","sources":["../src/logger.test.ts"],"names":[],"mappings":""}
package/logger.test.js DELETED
@@ -1,362 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const logger_impl_1 = require("./logger_impl");
4
- const log_collector_1 = require("./test/log_collector");
5
- const logger_1 = require("./logger");
6
- const sys_abstraction_1 = require("./sys_abstraction");
7
- const web_sys_abstraction_1 = require("./web/web_sys_abstraction");
8
- const base_sys_abstraction_1 = require("./base_sys_abstraction");
9
- describe("TestLogger", () => {
10
- let logCollector;
11
- let logger;
12
- beforeEach(() => {
13
- logCollector = new log_collector_1.LogCollector();
14
- logger = new logger_impl_1.LoggerImpl({
15
- out: logCollector,
16
- sys: (0, web_sys_abstraction_1.WebSysAbstraction)({ TimeMode: sys_abstraction_1.TimeMode.STEP }),
17
- levelHandler: new logger_impl_1.LevelHandlerImpl(),
18
- });
19
- });
20
- describe("Error()", () => {
21
- it("should set the level attribute to error", async () => {
22
- logger.Error().Msg("");
23
- await logger.Flush();
24
- expect(logCollector.Logs()).toEqual([{ level: "error" }]);
25
- });
26
- it("should set the error message", async () => {
27
- logger.Err(new Error("test")).Msg("");
28
- await logger.Flush();
29
- expect(logCollector.Logs()).toEqual([{ error: "test" }]);
30
- });
31
- it("should set the error from string", async () => {
32
- logger.Err("test").Msg("");
33
- await logger.Flush();
34
- expect(logCollector.Logs()).toEqual([{ error: "test" }]);
35
- });
36
- it("should set the error from bool", async () => {
37
- logger.Err(false).Msg("");
38
- await logger.Flush();
39
- expect(logCollector.Logs()).toEqual([{ error: "false" }]);
40
- });
41
- });
42
- describe("Info()", () => {
43
- it("should set the level attribute to info", async () => {
44
- logger.Info().Msg("");
45
- await logger.Flush();
46
- expect(logCollector.Logs()).toEqual([{ level: "info" }]);
47
- });
48
- });
49
- describe("Any()", () => {
50
- it("should set the Any attribute", async () => {
51
- logger.Any("key", "value").Msg("");
52
- await logger.Flush();
53
- expect(logCollector.Logs()).toEqual([{ key: "value" }]);
54
- });
55
- });
56
- describe("Dur()", () => {
57
- it("should set the Dur attribute", async () => {
58
- logger.Dur("key", 123).Msg("");
59
- await logger.Flush();
60
- expect(logCollector.Logs()).toEqual([{ key: "123ms" }]);
61
- });
62
- });
63
- describe("Uint64()", () => {
64
- it("should set the Uint64 / number attribute", async () => {
65
- logger.Uint64("Hey", 123).Msg("");
66
- await logger.Flush();
67
- expect(logCollector.Logs()).toEqual([{ Hey: 123 }]);
68
- });
69
- });
70
- describe("Str()", () => {
71
- it("should set the String attribute", async () => {
72
- logger.Str("key", "value").Msg("");
73
- await logger.Flush();
74
- expect(logCollector.Logs()).toEqual([{ key: "value" }]);
75
- });
76
- });
77
- describe("With()", () => {
78
- it("should return a new logger with the same attributes", async () => {
79
- const log = logger.With().Str("key", "value").Logger();
80
- const newLogger = log.With().Str("str", "str").Logger();
81
- logger.Msg("logger1");
82
- logger.Msg("logger2");
83
- newLogger.Msg("newLogger1");
84
- newLogger.Msg("newLogger2");
85
- log.Info().Msg("log1");
86
- log.Info().Msg("log2");
87
- await log.Flush();
88
- expect(logCollector.Logs()).toEqual([
89
- { msg: "logger1" },
90
- { msg: "logger2" },
91
- { key: "value", msg: "newLogger1", str: "str" },
92
- { key: "value", msg: "newLogger2", str: "str" },
93
- { level: "info", key: "value", msg: "log1" },
94
- { level: "info", key: "value", msg: "log2" },
95
- ]);
96
- });
97
- });
98
- describe("Timestamp()", () => {
99
- it("should set the Timestamp attribute", async () => {
100
- const WithConstant = logger.With().Str("key", "withconstant").Str("key1", "anotherone").Logger();
101
- const timelog = WithConstant.With().Timestamp().Str("key", "withconstant2").Logger();
102
- timelog.Msg("1");
103
- timelog.Msg("2");
104
- timelog.Timestamp().Msg("3");
105
- await timelog.Flush();
106
- const timer = (0, base_sys_abstraction_1.TimeFactory)(sys_abstraction_1.TimeMode.STEP);
107
- expect(logCollector.Logs()).toEqual([
108
- {
109
- key: "withconstant2",
110
- key1: "anotherone",
111
- ts: timer.Now().toISOString(),
112
- msg: "1",
113
- },
114
- {
115
- key: "withconstant2",
116
- key1: "anotherone",
117
- ts: timer.Now().toISOString(),
118
- msg: "2",
119
- },
120
- {
121
- key: "withconstant2",
122
- key1: "anotherone",
123
- ts: timer.Now().toISOString(),
124
- msg: "3",
125
- },
126
- ]);
127
- });
128
- it("should NOT set the Timestamp attribute", async () => {
129
- const timelog = logger.With().Logger();
130
- timelog.Msg("1");
131
- timelog.Msg("2");
132
- timelog.Timestamp().Msg("3");
133
- await timelog.Flush();
134
- const timer = (0, base_sys_abstraction_1.TimeFactory)(sys_abstraction_1.TimeMode.STEP);
135
- expect(logCollector.Logs()).toEqual([
136
- { msg: "1" },
137
- { msg: "2" },
138
- {
139
- ts: timer.Now().toISOString(),
140
- msg: "3",
141
- },
142
- ]);
143
- });
144
- });
145
- it("remove empty msg", async () => {
146
- const log = logger;
147
- log.Warn().Msg();
148
- await log.Flush();
149
- expect(logCollector.Logs()).toEqual([{ level: "warn" }]);
150
- });
151
- it("check log level", async () => {
152
- const log = logger.With().Module("test").Logger().With().Logger();
153
- log.Warn().Msg("Warn");
154
- log.Info().Msg("Info");
155
- log.Error().Msg("Error");
156
- log.Log().Msg("Log");
157
- log.WithLevel(logger_1.Level.ERROR).Msg("WithLevel");
158
- log.Debug().Str("should", "reset").Msg("Debug");
159
- log.Info().Str("what", "the").Msg("Simple");
160
- await log.Flush();
161
- const expected = [
162
- { msg: "Warn", level: "warn", module: "test" },
163
- { msg: "Info", level: "info", module: "test" },
164
- { msg: "Error", level: "error", module: "test" },
165
- { msg: "Log", module: "test" },
166
- { msg: "WithLevel", level: "error", module: "test" },
167
- { level: "info", module: "test", msg: "Simple", what: "the" },
168
- ];
169
- expect(logCollector.Logs()).toEqual(expected);
170
- logCollector.Logs().splice(0, logCollector.Logs().length);
171
- logger.With().Logger().SetDebug("test");
172
- log.Debug().Msg("Debug1");
173
- await log.Flush();
174
- expect(logCollector.Logs()).toEqual([...expected, { msg: "Debug1", level: "debug", module: "test" }]);
175
- });
176
- it("should flush all logs", async () => {
177
- const log = new logger_impl_1.LoggerImpl();
178
- log.Info().Msg("1");
179
- log.Info().Msg("2");
180
- await log.Flush();
181
- log.Info().Msg("DONE");
182
- return log.Flush();
183
- });
184
- it("carry debug", async () => {
185
- const log = logger;
186
- log.Module("xxx").SetDebug("yyy", ["i , xxx"]);
187
- log.Debug().Msg("Debug1");
188
- const next1 = log.With().Str("next1", "meno").Logger();
189
- next1.Debug().Msg("Next1");
190
- const next2 = next1.With().Str("next2", "meno").Logger();
191
- next2.Debug().Msg("Next2");
192
- next2.Module("zzz");
193
- next2.Debug().Msg("Next3");
194
- log.Debug().Msg("Top");
195
- next1.Debug().Msg("Next1");
196
- await log.Flush();
197
- expect(logCollector.Logs()).toEqual([
198
- {
199
- level: "debug",
200
- module: "xxx",
201
- msg: "Debug1",
202
- },
203
- {
204
- level: "debug",
205
- module: "xxx",
206
- msg: "Next1",
207
- next1: "meno",
208
- },
209
- {
210
- level: "debug",
211
- module: "xxx",
212
- msg: "Next2",
213
- next1: "meno",
214
- next2: "meno",
215
- },
216
- {
217
- level: "debug",
218
- module: "xxx",
219
- msg: "Top",
220
- },
221
- {
222
- level: "debug",
223
- module: "xxx",
224
- msg: "Next1",
225
- next1: "meno",
226
- },
227
- ]);
228
- });
229
- it("should return an Error on Msg", async () => {
230
- const log = logger;
231
- log.Module("xxx").SetDebug("xxx");
232
- log.Debug().Msg("Debug1");
233
- expect(JSON.parse(log.Debug().Msg("Debug2").AsError().message)).toEqual({
234
- level: "debug",
235
- module: "xxx",
236
- msg: "Debug2",
237
- });
238
- expect(JSON.parse(log.Info().Msg("Info2").AsError().message)).toEqual({
239
- level: "info",
240
- module: "xxx",
241
- msg: "Info2",
242
- });
243
- await log.Flush();
244
- expect(logCollector.Logs()).toEqual([
245
- {
246
- level: "debug",
247
- module: "xxx",
248
- msg: "Debug1",
249
- },
250
- {
251
- level: "debug",
252
- module: "xxx",
253
- msg: "Debug2",
254
- },
255
- {
256
- level: "info",
257
- module: "xxx",
258
- msg: "Info2",
259
- },
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
- });
362
- //# sourceMappingURL=logger.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.test.js","sourceRoot":"","sources":["../src/logger.test.ts"],"names":[],"mappings":";;AAAA,+CAA6D;AAC7D,wDAAoD;AAEpD,qCAAyC;AACzC,uDAA6C;AAC7C,mEAA8D;AAC9D,iEAAqD;AAErD,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,IAAI,YAA0B,CAAC;IAC/B,IAAI,MAAc,CAAC;IAEnB,UAAU,CAAC,GAAG,EAAE;QACd,YAAY,GAAG,IAAI,4BAAY,EAAE,CAAC;QAClC,MAAM,GAAG,IAAI,wBAAU,CAAC;YACtB,GAAG,EAAE,YAAY;YACjB,GAAG,EAAE,IAAA,uCAAiB,EAAC,EAAE,QAAQ,EAAE,0BAAQ,CAAC,IAAI,EAAE,CAAC;YACnD,YAAY,EAAE,IAAI,8BAAgB,EAAE;SACrC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,yCAAyC,EAAE,KAAK,IAAI,EAAE;YACvD,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACvB,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;YACrB,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;YAC5C,MAAM,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACtC,MAAM,MAAM,CAAC,KAA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E5B,SAAS,CAAC,YAAY,CAAC,cAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC3C,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAEtC,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAEtC,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAE5B,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;QAClB,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC;YAClC;gBACE,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,aAAa;aACnB;YACD;gBACE,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,cAAc;aACpB;YACD;gBACE,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,cAAc;aACpB;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/logger_impl.d.ts DELETED
@@ -1,64 +0,0 @@
1
- import { AsError, Level, Logger, WithLogger } from "./logger";
2
- import { SysAbstraction } from "./sys_abstraction";
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
- }
19
- export declare class LogWriter {
20
- readonly _out: WritableStream<Uint8Array>;
21
- readonly _toFlush: Array<() => Promise<void>>;
22
- constructor(out: WritableStream<Uint8Array>);
23
- write(encoded: Uint8Array): void;
24
- _flushIsRunning: boolean;
25
- _flushDoneFns: (() => void)[];
26
- _flush(toFlush?: Array<() => Promise<void>> | undefined, done?: () => void): void;
27
- }
28
- export interface LoggerImplParams {
29
- readonly out?: WritableStream<Uint8Array>;
30
- readonly logWriter?: LogWriter;
31
- readonly sys?: SysAbstraction;
32
- readonly withAttributes?: JsonRecord;
33
- readonly levelHandler?: LevelHandler;
34
- }
35
- export declare class LoggerImpl implements Logger {
36
- readonly _sys: SysAbstraction;
37
- readonly _attributes: JsonRecord;
38
- readonly _withAttributes: JsonRecord;
39
- readonly _logWriter: LogWriter;
40
- readonly _levelHandler: LevelHandler;
41
- constructor(params?: LoggerImplParams);
42
- EnableLevel(level: Level, ...modules: string[]): Logger;
43
- DisableLevel(level: Level, ...modules: string[]): Logger;
44
- Module(key: string): Logger;
45
- SetDebug(...modules: (string | string[])[]): Logger;
46
- Timestamp(): Logger;
47
- Warn(): Logger;
48
- Log(): Logger;
49
- Debug(): Logger;
50
- Error(): Logger;
51
- Info(): Logger;
52
- Err(err: unknown): Logger;
53
- WithLevel(l: Level): Logger;
54
- Str(key: string, value: string): Logger;
55
- Any(key: string, value: string | number | boolean | JsonRecord): Logger;
56
- Dur(key: string, nsec: number): Logger;
57
- Uint64(key: string, value: number): Logger;
58
- Flush(): Promise<void>;
59
- With(): WithLogger;
60
- _resetAttributes(fn: () => Error): Error;
61
- Msg(...args: string[]): AsError;
62
- }
63
- export {};
64
- //# sourceMappingURL=logger_impl.d.ts.map
@@ -1 +0,0 @@
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,MAA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