@mrts/common 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ export declare function noop(): void;
2
+ export declare function asyncDelay(delayMillis: number): Promise<void>;
3
+ export declare function asyncDelay<T = void>(delayMillis: number, func: () => T): Promise<T>;
4
+ //# sourceMappingURL=delay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../src/delay.ts"],"names":[],"mappings":"AAAA,wBAAgB,IAAI,SAAK;AAEzB,wBAAsB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACrE,wBAAsB,UAAU,CAAC,CAAC,GAAG,IAAI,EACvC,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,CAAC,GACZ,OAAO,CAAC,CAAC,CAAC,CAAC"}
package/dist/delay.js ADDED
@@ -0,0 +1,7 @@
1
+ export function noop() { }
2
+ export async function asyncDelay(delayMillis, func) {
3
+ func ??= noop;
4
+ await new Promise((r) => setTimeout(r, delayMillis));
5
+ return func();
6
+ }
7
+ //# sourceMappingURL=delay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delay.js","sourceRoot":"","sources":["../src/delay.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,IAAI,KAAI,CAAC;AAOzB,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,WAAmB,EACnB,IAAc;IAEd,IAAI,KAAK,IAAe,CAAC;IACzB,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC;IACrD,OAAO,IAAI,EAAE,CAAC;AAChB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const NAME = "Hello!";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,WAAW,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export const NAME = "Hello!";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAC"}
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@mrts/common",
3
+ "version": "0.1.4",
4
+ "description": "MRTS - common",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "scripts": {
16
+ "clean": "shx mkdir -p dist/removeme.d && shx rm -r dist/*",
17
+ "build": "tsc"
18
+ },
19
+ "devDependencies": {
20
+ "@mrts/tsconfig": "^0.1.3",
21
+ "@types/node": "^24.0.1",
22
+ "shx": "^0.4.0",
23
+ "typescript": "^5.8.3"
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "package.json",
28
+ "README.md"
29
+ ],
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "gitHead": "e924f0fd322fca9a723b5f248f70fc82fa92ab90"
34
+ }