@adviser/cement 0.0.5 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/{node_sys_abstraction.d.ts → base_sys_abstraction.d.ts} +29 -41
  2. package/base_sys_abstraction.d.ts.map +1 -0
  3. package/{node_sys_abstraction.js → base_sys_abstraction.js} +38 -117
  4. package/base_sys_abstraction.js.map +1 -0
  5. package/base_sys_abstraction.test.d.ts +2 -0
  6. package/base_sys_abstraction.test.d.ts.map +1 -0
  7. package/base_sys_abstraction.test.js +77 -0
  8. package/base_sys_abstraction.test.js.map +1 -0
  9. package/index.d.ts +0 -2
  10. package/index.d.ts.map +1 -1
  11. package/index.js +0 -2
  12. package/index.js.map +1 -1
  13. package/logger.test.js +5 -4
  14. package/logger.test.js.map +1 -1
  15. package/logger_impl.js +2 -2
  16. package/logger_impl.js.map +1 -1
  17. package/mock_file_service.d.ts +1 -1
  18. package/mock_file_service.d.ts.map +1 -1
  19. package/mock_file_service.js +1 -1
  20. package/mock_file_service.js.map +1 -1
  21. package/node/index.d.ts +3 -0
  22. package/node/index.d.ts.map +1 -0
  23. package/node/index.js +19 -0
  24. package/node/index.js.map +1 -0
  25. package/{node_file_service.d.ts → node/node_file_service.d.ts} +1 -1
  26. package/node/node_file_service.d.ts.map +1 -0
  27. package/node/node_file_service.js.map +1 -0
  28. package/node/node_sys_abstraction.d.ts +21 -0
  29. package/node/node_sys_abstraction.d.ts.map +1 -0
  30. package/node/node_sys_abstraction.js +101 -0
  31. package/node/node_sys_abstraction.js.map +1 -0
  32. package/node/node_sys_abstraction.test.d.ts.map +1 -0
  33. package/node/node_sys_abstraction.test.js +57 -0
  34. package/node/node_sys_abstraction.test.js.map +1 -0
  35. package/package.json +2 -2
  36. package/test/test-exit-handler.js +2 -2
  37. package/test/test-exit-handler.js.map +1 -1
  38. package/web/index.d.ts +2 -0
  39. package/web/index.d.ts.map +1 -0
  40. package/web/index.js +18 -0
  41. package/web/index.js.map +1 -0
  42. package/web/web_sys_abstraction.d.ts +4 -0
  43. package/web/web_sys_abstraction.d.ts.map +1 -0
  44. package/web/web_sys_abstraction.js +65 -0
  45. package/web/web_sys_abstraction.js.map +1 -0
  46. package/node_file_service.d.ts.map +0 -1
  47. package/node_file_service.js.map +0 -1
  48. package/node_sys_abstraction.d.ts.map +0 -1
  49. package/node_sys_abstraction.js.map +0 -1
  50. package/node_sys_abstraction.test.d.ts.map +0 -1
  51. package/node_sys_abstraction.test.js +0 -123
  52. package/node_sys_abstraction.test.js.map +0 -1
  53. /package/{node_file_service.js → node/node_file_service.js} +0 -0
  54. /package/{node_sys_abstraction.test.d.ts → node/node_sys_abstraction.test.d.ts} +0 -0
package/node/index.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./node_file_service"), exports);
18
+ __exportStar(require("./node_sys_abstraction"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,yDAAuC"}
@@ -1,4 +1,4 @@
1
- import { FileService, NamedWritableStream } from "./file_service";
1
+ import { FileService, NamedWritableStream } from "../file_service";
2
2
  export declare class NodeFileService implements FileService {
3
3
  readonly baseDir: string;
4
4
  constructor(baseDir?: string);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node_file_service.d.ts","sourceRoot":"","sources":["../../src/node/node_file_service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEnE,qBAAa,eAAgB,YAAW,WAAW;IACjD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;gBACb,OAAO,GAAE,MAAsB;IAI3C,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IASjC,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI9C,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAG9B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAI/B,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;IAIhC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;IAU3C,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAS1B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAI5B,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAO9D,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAwB1D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node_file_service.js","sourceRoot":"","sources":["../../src/node/node_file_service.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAC7B,sDAAyB;AAGzB,MAAa,eAAe;IAE1B,YAAY,UAAkB,OAAO,CAAC,GAAG,EAAE;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,UAAU,CAAC,KA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VoidFunc } from "../sys_abstraction";
2
+ import { ExitHandler, ExitService, WrapperSysAbstractionParams } from "../base_sys_abstraction";
3
+ export declare class ExitServiceImpl implements ExitService {
4
+ constructor();
5
+ _exitHandlers: ExitHandler[];
6
+ injectExitHandlers(hdls: ExitHandler[]): void;
7
+ invoked: boolean;
8
+ readonly _handleExit: () => Promise<void>;
9
+ exit(code: number): void;
10
+ }
11
+ export declare class NodeSystemService implements SystemService {
12
+ static readonly _exitHandlers: ExitHandler[];
13
+ readonly _exitService: ExitService;
14
+ constructor();
15
+ Env(): Record<string, string>;
16
+ Args(): string[];
17
+ OnExit(hdl: VoidFunc): VoidFunc;
18
+ Exit(code: number): void;
19
+ }
20
+ export declare function NodeSysAbstraction(param?: WrapperSysAbstractionParams): SysAbstraction;
21
+ //# sourceMappingURL=node_sys_abstraction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node_sys_abstraction.d.ts","sourceRoot":"","sources":["../../src/node/node_sys_abstraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAEL,WAAW,EACX,WAAW,EAEX,2BAA2B,EAC5B,MAAM,yBAAyB,CAAC;AAGjC,qBAAa,eAAgB,YAAW,WAAW;;IA0BjD,aAAa,EAAE,WAAW,EAAE,CAAM;IAClC,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI;IAI7C,OAAO,UAAS;IAChB,QAAQ,CAAC,WAAW,QAAa,QAAQ,IAAI,CAAC,CAkB5C;IAEF,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAWzB;AAED,qBAAa,iBAAkB,YAAW,aAAa;IACrD,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,WAAW,EAAE,CAAM;IAClD,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAyB;;IAK3D,GAAG;IAIH,IAAI;IAIJ,MAAM,CAAC,GAAG,EAAE,QAAQ,GAAG,QAAQ;IAW/B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAGzB;AAGD,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,cAAc,CAQtF"}
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NodeSysAbstraction = exports.NodeSystemService = exports.ExitServiceImpl = void 0;
4
+ const base_sys_abstraction_1 = require("../base_sys_abstraction");
5
+ const node_file_service_1 = require("./node_file_service");
6
+ class ExitServiceImpl {
7
+ constructor() {
8
+ this._exitHandlers = [];
9
+ this.invoked = false;
10
+ this._handleExit = async () => {
11
+ if (this.invoked) {
12
+ return;
13
+ }
14
+ this.invoked = true;
15
+ for (const h of this._exitHandlers) {
16
+ try {
17
+ const ret = h.hdl();
18
+ if (typeof ret.then === "function") {
19
+ await ret;
20
+ }
21
+ }
22
+ finally {
23
+ }
24
+ }
25
+ };
26
+ process.on("unhandledRejection", (reason, p) => {
27
+ this.exit(19);
28
+ });
29
+ process.on("uncaughtException", (error) => {
30
+ this.exit(18);
31
+ });
32
+ process.on("close", () => {
33
+ this.exit(0);
34
+ });
35
+ process.on("exit", () => {
36
+ this.exit(0);
37
+ });
38
+ process.on("SIGQUIT", () => {
39
+ this.exit(3);
40
+ });
41
+ process.on("SIGINT", () => {
42
+ this.exit(2);
43
+ });
44
+ process.on("SIGTERM", () => {
45
+ this.exit(9);
46
+ });
47
+ }
48
+ injectExitHandlers(hdls) {
49
+ this._exitHandlers = hdls;
50
+ }
51
+ exit(code) {
52
+ this._handleExit()
53
+ .then(() => {
54
+ process.exit(code);
55
+ })
56
+ .catch((err) => {
57
+ console.error("ExitService: failed to handle exit", err);
58
+ process.exit(code);
59
+ });
60
+ }
61
+ }
62
+ exports.ExitServiceImpl = ExitServiceImpl;
63
+ class NodeSystemService {
64
+ constructor() {
65
+ this._exitService = new ExitServiceImpl();
66
+ this._exitService.injectExitHandlers(NodeSystemService._exitHandlers);
67
+ }
68
+ Env() {
69
+ return process.env;
70
+ }
71
+ Args() {
72
+ return process.argv;
73
+ }
74
+ OnExit(hdl) {
75
+ const id = crypto.randomUUID();
76
+ NodeSystemService._exitHandlers.push({ hdl, id });
77
+ return () => {
78
+ const idx = NodeSystemService._exitHandlers.findIndex((h) => h.id === id);
79
+ if (idx >= 0) {
80
+ NodeSystemService._exitHandlers.splice(idx, 1);
81
+ }
82
+ };
83
+ }
84
+ Exit(code) {
85
+ this._exitService.exit(code);
86
+ }
87
+ }
88
+ exports.NodeSystemService = NodeSystemService;
89
+ NodeSystemService._exitHandlers = [];
90
+ let my = undefined;
91
+ function NodeSysAbstraction(param) {
92
+ if (!my) {
93
+ my = new base_sys_abstraction_1.BaseSysAbstraction({
94
+ FileSystem: new node_file_service_1.NodeFileService(),
95
+ SystemService: new NodeSystemService(),
96
+ });
97
+ }
98
+ return new base_sys_abstraction_1.WrapperSysAbstraction(my, param);
99
+ }
100
+ exports.NodeSysAbstraction = NodeSysAbstraction;
101
+ //# sourceMappingURL=node_sys_abstraction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node_sys_abstraction.js","sourceRoot":"","sources":["../../src/node/node_sys_abstraction.ts"],"names":[],"mappings":";;;AACA,kEAMiC;AACjC,2DAAsD;AAEtD,MAAa,eAAe;IAC1B;QAyBA,kBAAa,GAAkB,EAAE,CAAC;QAKlC,YAAO,GAAG,KAAK,CAAC;QACP,gBAAW,GAAG,KAAK,IAAmB,EAAE;YAC/C,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;gBAEjB,OAAO;YACT,CAAC;YACD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACpB,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBACnC,IAAI,CAAC;oBAEH,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;oBAEpB,IAAI,OAAQ,GAAqB,CAAC,IAAI,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AAkB,CAAC,KAAmC;IACpE,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,EAAE,GAAG,IAAI,yCAAkB,CAAC;YAC1B,UAAU,EAAE,IAAI,mCAAe,EAAE;YACjC,aAAa,EAAE,IAAI,iBAAiB,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,IAAI,4CAAqB,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AARD,gDAQC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node_sys_abstraction.test.d.ts","sourceRoot":"","sources":["../../src/node/node_sys_abstraction.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const node_child_process_1 = require("node:child_process");
4
+ function exitHandler(errCode, larg, done) {
5
+ return (err, stdout, stderr) => {
6
+ if (err) {
7
+ expect(err.code).toBe(errCode);
8
+ }
9
+ if (stdout) {
10
+ const res = stdout
11
+ .toString()
12
+ .split("\n")
13
+ .filter((line) => line.trim())
14
+ .map((line) => {
15
+ const out = JSON.parse(line);
16
+ return out;
17
+ })
18
+ .map((obj) => {
19
+ delete obj.pid;
20
+ return obj;
21
+ });
22
+ expect(res).toEqual([
23
+ {
24
+ larg: larg,
25
+ },
26
+ {
27
+ larg: larg,
28
+ msg: "Called OnExit 1",
29
+ },
30
+ {
31
+ larg: larg,
32
+ msg: "Called OnExit 2",
33
+ },
34
+ ]);
35
+ done();
36
+ }
37
+ if (stderr) {
38
+ expect(stderr).toEqual({});
39
+ }
40
+ };
41
+ }
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));
44
+ });
45
+ it("throw", (done) => {
46
+ (0, node_child_process_1.exec)("ts-node src/test/test-exit-handler.ts throw", exitHandler(19, "throw", done));
47
+ });
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));
50
+ });
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));
53
+ });
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));
56
+ });
57
+ //# sourceMappingURL=node_sys_abstraction.test.js.map
@@ -0,0 +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;IAClE,OAAO,CAAC,GAAyB,EAAE,MAAuB,EAAE,MAAuB,EAAE,EAAE;QACrF,IAAI,GAAG,EAAE,CAAC;YACR,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjC,CAAC;QACD,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,GAAG,GAAG,MAAM;iBACf,QAAQ,EAAE;iBACV,KAAK,CAAC,IAAI,CAAC;iBACX,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;iBAC7B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;gBACZ,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAC7B,OAAO,GAAG,CAAC;YACb,CAAC,CAAC;iBACD,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;gBACX,OAAO,GAAG,CAAC,GAAG,CAAC;gBACf,OAAO,GAAG,CAAC;YACb,CAAC,CAAC,CAAC;YACL,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC;gBAClB;oBACE,IAAI,EAAE,IAAI;iBACX;gBACD;oBACE,IAAI,EAAE,IAAI;oBACV,GAAG,EAAE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0.0.5",
3
+ "version": "0.1.1",
4
4
  "description": "better try/catch/finally handling",
5
5
  "main": "index.js",
6
6
  "keywords": [],
@@ -12,7 +12,7 @@
12
12
  "homepage": "https://github.com/mabels/cement#readme",
13
13
  "devDependencies": {
14
14
  "@types/jest": "^29.5.12",
15
- "@types/node": "^20.11.16",
15
+ "@types/node": "^20.11.17",
16
16
  "@typescript-eslint/eslint-plugin": "^6.21.0",
17
17
  "@typescript-eslint/parser": "^6.21.0",
18
18
  "eslint": "^8.56.0",
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  (async () => {
26
- const sa = await Promise.resolve().then(() => __importStar(require("../node_sys_abstraction")));
27
- const my = new sa.NodeSysAbstraction();
26
+ const sa = await Promise.resolve().then(() => __importStar(require("../node/node_sys_abstraction")));
27
+ const my = sa.NodeSysAbstraction();
28
28
  const larg = process.argv[process.argv.length - 1];
29
29
  console.log(JSON.stringify({
30
30
  larg,
@@ -1 +1 @@
1
- {"version":3,"file":"test-exit-handler.js","sourceRoot":"","sources":["../../src/test/test-exit-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,CAAC,KAAK,IAAI,EAAE;IACV,MAAM,EAAE,GAAG,wDAAa,yBAAyB,GAAC,CAAC;IAEnD,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC,kBAAkB,EAAE,CAAC;IAEvC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACnD,OAAO,CAAC,GAAG,CACT,IAAI,CAAC,SAAS,CAAC;QACb,IAAI;QACJ,GAAG,EAAE,OAAO,CAAC,GAAG;KACjB,CAAC,CACH,CAAC;IAEF,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;QAC5B,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,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AE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAC5B,MAAM;QACR,KAAK,QAAQ,CAAC;QACd;YACE,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACzB,CAAC;AACH,CAAC,CAAC,EAAE,CAAC"}
package/web/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./web_sys_abstraction";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/web/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
package/web/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./web_sys_abstraction"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/web/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
@@ -0,0 +1,4 @@
1
+ import { WrapperSysAbstractionParams } from "../base_sys_abstraction";
2
+ import { SysAbstraction } from "../sys_abstraction";
3
+ export declare function WebSysAbstraction(param?: WrapperSysAbstractionParams): SysAbstraction;
4
+ //# sourceMappingURL=web_sys_abstraction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web_sys_abstraction.d.ts","sourceRoot":"","sources":["../../src/web/web_sys_abstraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAEjH,OAAO,EAAE,cAAc,EAA2B,MAAM,oBAAoB,CAAC;AAkE7E,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,cAAc,CAQrF"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebSysAbstraction = void 0;
4
+ const base_sys_abstraction_1 = require("../base_sys_abstraction");
5
+ class WebFileService {
6
+ get baseDir() {
7
+ throw new Error("basedir-Method not implemented.");
8
+ }
9
+ create(fname) {
10
+ throw new Error("create-Method not implemented.");
11
+ }
12
+ readFileString(fname) {
13
+ throw new Error("readFileString-Method not implemented.");
14
+ }
15
+ writeFileString(fname, content) {
16
+ throw new Error("writeFileString-Method not implemented.");
17
+ }
18
+ abs(fname) {
19
+ throw new Error("abs-Method not implemented.");
20
+ }
21
+ join(...paths) {
22
+ throw new Error("join-Method not implemented.");
23
+ }
24
+ relative(from, to) {
25
+ throw new Error("relative-Method not implemented.");
26
+ }
27
+ dirname(fname) {
28
+ throw new Error("dirname-Method not implemented.");
29
+ }
30
+ basename(fname) {
31
+ throw new Error("basename-Method not implemented.");
32
+ }
33
+ nodeImport(fname) {
34
+ throw new Error("nodeImport-Method not implemented.");
35
+ }
36
+ isAbsolute(fname) {
37
+ throw new Error("isAbsolute-Method not implemented.");
38
+ }
39
+ }
40
+ class WebSystemService {
41
+ Env() {
42
+ throw new Error("Env-Method not implemented.");
43
+ }
44
+ Args() {
45
+ throw new Error("Args-Method not implemented.");
46
+ }
47
+ OnExit(hdl) {
48
+ throw new Error("OnExit-Method not implemented.");
49
+ }
50
+ Exit(code) {
51
+ throw new Error("Exit-Method not implemented.");
52
+ }
53
+ }
54
+ let my = undefined;
55
+ function WebSysAbstraction(param) {
56
+ if (!my) {
57
+ my = new base_sys_abstraction_1.BaseSysAbstraction({
58
+ FileSystem: new WebFileService(),
59
+ SystemService: new WebSystemService(),
60
+ });
61
+ }
62
+ return new base_sys_abstraction_1.WrapperSysAbstraction(my, param);
63
+ }
64
+ exports.WebSysAbstraction = WebSysAbstraction;
65
+ //# sourceMappingURL=web_sys_abstraction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web_sys_abstraction.js","sourceRoot":"","sources":["../../src/web/web_sys_abstraction.ts"],"names":[],"mappings":";;;AAAA,kEAAiH;AAIjH,MAAM,cAAc;IAClB,IAAI,OAAO;QACT,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACrD,CAAC;IAED,MAAM,CAAC,KAAa;QAClB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACpD,CAAC;IAED,cAAc,CAAC,KAAa;QAC1B,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;IAC5D,CAAC;IAED,eAAe,CAAC,KAAa,EAAE,OAAe;QAC5C,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC7D,CAAC;IAED,GAAG,CAAC,KAAa;QACf,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,CAAC,GAAG,KAAe;QACrB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAClD,CAAC;IAED,QAAQ,CAAC,IAAY,EAAE,EAAuB;QAC5C,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtD,CAAC;IAED,OAAO,CAAC,KAAa;QACnB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACrD,CAAC;IAED,QAAQ,CAAC,KAAa;QACpB,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtD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G,IAAI,SAAS,EAAE,AAAlB,CAAmB;AAC7B,iCAAc,GAAG,IAAI,aAAa,CAAC,4BAAU,CAAC,MAAM,CAAC,AAAvC,CAAwC;AACtD,8BAAW,GAAG,IAAI,mCAAe,EAAE,AAAxB,CAAyB;AACpC,iCAAc,GAAG,IAAI,iBAAiB,EAAE,AAA1B,CAA2B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"node_sys_abstraction.test.d.ts","sourceRoot":"","sources":["../src/node_sys_abstraction.test.ts"],"names":[],"mappings":""}
@@ -1,123 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const sys_abstraction_1 = require("./sys_abstraction");
4
- const node_sys_abstraction_1 = require("./node_sys_abstraction");
5
- const node_child_process_1 = require("node:child_process");
6
- it("IdService UUID", () => {
7
- const sys = new node_sys_abstraction_1.NodeSysAbstraction();
8
- const id1 = sys.NextId();
9
- const id2 = sys.NextId();
10
- expect(id1).not.toEqual(id2);
11
- });
12
- it("IdService explict UUID", () => {
13
- const sys = new node_sys_abstraction_1.NodeSysAbstraction({ IdMode: sys_abstraction_1.IDMode.UUID });
14
- const id1 = sys.NextId();
15
- const id2 = sys.NextId();
16
- expect(id1).not.toEqual(id2);
17
- });
18
- it("IdService const", () => {
19
- const sys = new node_sys_abstraction_1.NodeSysAbstraction({ IdMode: sys_abstraction_1.IDMode.CONST });
20
- const id1 = sys.NextId();
21
- const id2 = sys.NextId();
22
- expect(id1).toEqual(id2);
23
- });
24
- it("IdService set", () => {
25
- for (let i = 0; i < 10; i++) {
26
- const sys = new node_sys_abstraction_1.NodeSysAbstraction({ IdMode: sys_abstraction_1.IDMode.STEP });
27
- const id1 = sys.NextId();
28
- const id2 = sys.NextId();
29
- expect(id1).toEqual("STEPId-0");
30
- expect(id2).toEqual("STEPId-1");
31
- }
32
- });
33
- it("time sleep", async () => {
34
- const sys = new node_sys_abstraction_1.NodeSysAbstraction();
35
- const start = sys.Time().Now();
36
- await sys.Time().Sleep(100);
37
- expect(sys.Time().TimeSince(start)).toBeGreaterThan(90);
38
- });
39
- it("time sleep const", async () => {
40
- const sys = new node_sys_abstraction_1.NodeSysAbstraction({ TimeMode: sys_abstraction_1.TimeMode.REAL });
41
- const start = new Date();
42
- await sys.Time().Sleep(100);
43
- const end = new Date();
44
- expect(end.getTime() - start.getTime()).toBeGreaterThan(90);
45
- });
46
- it("time sleep step", async () => {
47
- const sys = new node_sys_abstraction_1.NodeSysAbstraction({ TimeMode: sys_abstraction_1.TimeMode.STEP });
48
- const start = sys.Time().Now();
49
- await sys.Time().Sleep(86400500);
50
- expect(sys.Time().Now().getTime() - start.getTime()).toEqual(86401500);
51
- });
52
- it("const random", () => {
53
- const sys = new node_sys_abstraction_1.NodeSysAbstraction({ RandomMode: sys_abstraction_1.RandomMode.CONST });
54
- expect(sys.Random0ToValue(10)).toEqual(5);
55
- expect(sys.Random0ToValue(10)).toEqual(5);
56
- });
57
- it("step random", () => {
58
- const sys = new node_sys_abstraction_1.NodeSysAbstraction({ RandomMode: sys_abstraction_1.RandomMode.STEP });
59
- expect(sys.Random0ToValue(10000)).toEqual(1);
60
- expect(sys.Random0ToValue(10000)).toEqual(2);
61
- });
62
- it("random", () => {
63
- const sys = new node_sys_abstraction_1.NodeSysAbstraction({});
64
- for (let i = 0; i < 100; i++) {
65
- const val = sys.Random0ToValue(10);
66
- expect(val).toBeGreaterThanOrEqual(0);
67
- expect(val).toBeLessThanOrEqual(10);
68
- }
69
- });
70
- function exitHandler(errCode, larg, done) {
71
- return (err, stdout, stderr) => {
72
- if (err) {
73
- expect(err.code).toBe(errCode);
74
- }
75
- if (stdout) {
76
- const res = stdout
77
- .toString()
78
- .split("\n")
79
- .filter((line) => line.trim())
80
- .map((line) => {
81
- const out = JSON.parse(line);
82
- return out;
83
- })
84
- .map((obj) => {
85
- delete obj.pid;
86
- return obj;
87
- });
88
- expect(res).toEqual([
89
- {
90
- larg: larg,
91
- },
92
- {
93
- larg: larg,
94
- msg: "Called OnExit 1",
95
- },
96
- {
97
- larg: larg,
98
- msg: "Called OnExit 2",
99
- },
100
- ]);
101
- done();
102
- }
103
- if (stderr) {
104
- expect(stderr).toEqual({});
105
- }
106
- };
107
- }
108
- it("just-exit", (done) => {
109
- (0, node_child_process_1.exec)("ts-node src/test/test-exit-handler.ts exit24", exitHandler(24, "exit24", done));
110
- });
111
- it("throw", (done) => {
112
- (0, node_child_process_1.exec)("ts-node src/test/test-exit-handler.ts throw", exitHandler(19, "throw", done));
113
- });
114
- it("via sigint", (done) => {
115
- (0, node_child_process_1.exec)("ts-node src/test/test-exit-handler.ts sigint", exitHandler(2, "sigint", done));
116
- });
117
- it("via sigterm", (done) => {
118
- (0, node_child_process_1.exec)("ts-node src/test/test-exit-handler.ts sigterm", exitHandler(9, "sigterm", done));
119
- });
120
- it("via sigquit", (done) => {
121
- (0, node_child_process_1.exec)("ts-node src/test/test-exit-handler.ts sigquit", exitHandler(3, "sigquit", done));
122
- });
123
- //# sourceMappingURL=node_sys_abstraction.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node_sys_abstraction.test.js","sourceRoot":"","sources":["../src/node_sys_abstraction.test.ts"],"names":[],"mappings":";;AAAA,uDAAiE;AACjE,iEAA4D;AAC5D,2DAAyD;AAEzD,EAAE,CAAC,gBAAgB,EAAE,GAAG,EAAE;IACxB,MAAM,GAAG,GAAG,IAAI,yCAAkB,EAAE,CAAC;IACrC,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC;IACzB,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC;IACzB,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC/B,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,wBAAwB,EAAE,GAAG,EAAE;IAChC,MAAM,GAAG,GAAG,IAAI,yCAAkB,CAAC,EAAE,MAAM,EAAE,wBAAM,CAAC,IAAI,EAAE,CAAC,CAAC;I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