@runnerpro/backend 0.0.1 → 0.0.2

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.
package/lib/cjs/index.js CHANGED
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.helloWorld = exports.goodBye = void 0;
3
+ exports.sleep = exports.helloWorld = void 0;
4
4
  const HelloWorld_1 = require("./HelloWorld");
5
5
  Object.defineProperty(exports, "helloWorld", { enumerable: true, get: function () { return HelloWorld_1.helloWorld; } });
6
- function goodBye() {
7
- const message = 'Goodbye from my example modern npm package!';
8
- return message;
9
- }
10
- exports.goodBye = goodBye;
6
+ const sleep_1 = require("./sleep");
7
+ Object.defineProperty(exports, "sleep", { enumerable: true, get: function () { return sleep_1.sleep; } });
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sleep = void 0;
4
+ const sleep = (ms) => {
5
+ return new Promise((resolve) => {
6
+ setTimeout(resolve, ms);
7
+ });
8
+ };
9
+ exports.sleep = sleep;
@@ -1,4 +1,4 @@
1
1
  import { helloWorld } from './HelloWorld';
2
- declare function goodBye(): string;
3
- export { goodBye, helloWorld };
2
+ import { sleep } from './sleep';
3
+ export { helloWorld, sleep };
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,iBAAS,OAAO,WAGf;AAED,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const sleep: (ms: number) => Promise<unknown>;
2
+ export { sleep };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sleep/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,KAAK,OAAQ,MAAM,qBAIxB,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"