From d536f73f9f0a58fee1cf0855074f3445f68ca815 Mon Sep 17 00:00:00 2001 From: Cyanoure Date: Sun, 15 Sep 2024 14:48:08 +0200 Subject: [PATCH] Build --- dist/index.d.mts | 6 ++++-- dist/index.d.ts | 6 ++++-- dist/index.js | 18 ++++++++++-------- dist/index.js.map | 2 +- dist/index.mjs | 18 ++++++++++-------- dist/index.mjs.map | 2 +- 6 files changed, 30 insertions(+), 22 deletions(-) diff --git a/dist/index.d.mts b/dist/index.d.mts index 0c41616..7f3fba6 100644 --- a/dist/index.d.mts +++ b/dist/index.d.mts @@ -1,3 +1,5 @@ -declare function startTest(): void; +declare class NodeTest { + static startTest(): void; +} -export { startTest as default }; +export { NodeTest as default }; diff --git a/dist/index.d.ts b/dist/index.d.ts index 0c41616..7f3fba6 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,3 +1,5 @@ -declare function startTest(): void; +declare class NodeTest { + static startTest(): void; +} -export { startTest as default }; +export { NodeTest as default }; diff --git a/dist/index.js b/dist/index.js index c0f0a60..57439c6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -20,7 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru // src/index.ts var src_exports = {}; __export(src_exports, { - default: () => startTest + default: () => NodeTest }); module.exports = __toCommonJS(src_exports); @@ -30,11 +30,13 @@ function test(i) { } // src/index.ts -function startTest() { - let i = 0; - setInterval(() => { - i++; - test(i); - }, 1e3); -} +var NodeTest = class { + static startTest() { + let i = 0; + setInterval(() => { + i++; + test(i); + }, 1e3); + } +}; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map index ef7195d..640a3e9 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/index.ts","../src/test.ts"],"sourcesContent":["import test from \"./test\";\r\n\r\nexport default function startTest() {\r\n let i: number = 0;\r\n setInterval(() => {\r\n i++;\r\n test(i);\r\n }, 1000);\r\n}\r\n","export default function test(i: number) {\r\n console.log(`Hello, World! (#${i})`);\r\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAe,SAAR,KAAsB,GAAW;AACpC,UAAQ,IAAI,mBAAmB,CAAC,GAAG;AACvC;;;ADAe,SAAR,YAA6B;AAChC,MAAI,IAAY;AAChB,cAAY,MAAM;AACd;AACA,SAAK,CAAC;AAAA,EACV,GAAG,GAAI;AACX;","names":[]} \ No newline at end of file +{"version":3,"sources":["../src/index.ts","../src/test.ts"],"sourcesContent":["import test from \"./test\";\r\n\r\nexport default class NodeTest {\r\n static startTest() {\r\n let i: number = 0;\r\n setInterval(() => {\r\n i++;\r\n test(i);\r\n }, 1000);\r\n }\r\n}\r\n","export default function test(i: number) {\r\n console.log(`Hello, World! (#${i})`);\r\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAe,SAAR,KAAsB,GAAW;AACpC,UAAQ,IAAI,mBAAmB,CAAC,GAAG;AACvC;;;ADAA,IAAqB,WAArB,MAA8B;AAAA,EAC1B,OAAO,YAAY;AACf,QAAI,IAAY;AAChB,gBAAY,MAAM;AACd;AACA,WAAK,CAAC;AAAA,IACV,GAAG,GAAI;AAAA,EACX;AACJ;","names":[]} \ No newline at end of file diff --git a/dist/index.mjs b/dist/index.mjs index 55b9f42..54a4052 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -4,14 +4,16 @@ function test(i) { } // src/index.ts -function startTest() { - let i = 0; - setInterval(() => { - i++; - test(i); - }, 1e3); -} +var NodeTest = class { + static startTest() { + let i = 0; + setInterval(() => { + i++; + test(i); + }, 1e3); + } +}; export { - startTest as default + NodeTest as default }; //# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/dist/index.mjs.map b/dist/index.mjs.map index 30b8416..15addb3 100644 --- a/dist/index.mjs.map +++ b/dist/index.mjs.map @@ -1 +1 @@ -{"version":3,"sources":["../src/test.ts","../src/index.ts"],"sourcesContent":["export default function test(i: number) {\r\n console.log(`Hello, World! (#${i})`);\r\n}","import test from \"./test\";\r\n\r\nexport default function startTest() {\r\n let i: number = 0;\r\n setInterval(() => {\r\n i++;\r\n test(i);\r\n }, 1000);\r\n}\r\n"],"mappings":";AAAe,SAAR,KAAsB,GAAW;AACpC,UAAQ,IAAI,mBAAmB,CAAC,GAAG;AACvC;;;ACAe,SAAR,YAA6B;AAChC,MAAI,IAAY;AAChB,cAAY,MAAM;AACd;AACA,SAAK,CAAC;AAAA,EACV,GAAG,GAAI;AACX;","names":[]} \ No newline at end of file +{"version":3,"sources":["../src/test.ts","../src/index.ts"],"sourcesContent":["export default function test(i: number) {\r\n console.log(`Hello, World! (#${i})`);\r\n}","import test from \"./test\";\r\n\r\nexport default class NodeTest {\r\n static startTest() {\r\n let i: number = 0;\r\n setInterval(() => {\r\n i++;\r\n test(i);\r\n }, 1000);\r\n }\r\n}\r\n"],"mappings":";AAAe,SAAR,KAAsB,GAAW;AACpC,UAAQ,IAAI,mBAAmB,CAAC,GAAG;AACvC;;;ACAA,IAAqB,WAArB,MAA8B;AAAA,EAC1B,OAAO,YAAY;AACf,QAAI,IAAY;AAChB,gBAAY,MAAM;AACd;AACA,WAAK,CAAC;AAAA,IACV,GAAG,GAAI;AAAA,EACX;AACJ;","names":[]} \ No newline at end of file