@nr1e/commons 0.0.3-alpha.6 → 0.0.3-alpha.8
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/lang/index.d.ts +1 -0
- package/lang/index.js +1 -0
- package/lang/index.js.map +1 -1
- package/lang/sleep.d.ts +6 -0
- package/lang/sleep.js +13 -0
- package/lang/sleep.js.map +1 -0
- package/package.json +5 -1
package/lang/index.d.ts
CHANGED
package/lang/index.js
CHANGED
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./type-functions"), exports);
|
|
18
|
+
__exportStar(require("./sleep"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
package/lang/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,0CAAwB"}
|
package/lang/sleep.d.ts
ADDED
package/lang/sleep.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sleep = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Sleep for a given amount of time
|
|
6
|
+
*
|
|
7
|
+
* @param ms the number of milliseconds to sleep
|
|
8
|
+
*/
|
|
9
|
+
function sleep(ms) {
|
|
10
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
11
|
+
}
|
|
12
|
+
exports.sleep = sleep;
|
|
13
|
+
//# sourceMappingURL=sleep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sleep.js","sourceRoot":"","sources":["sleep.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,KAAK,CAAC,EAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AACzD,CAAC;AAFD,sBAEC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nr1e/commons",
|
|
3
3
|
"description": "Provides common patterns for validation",
|
|
4
|
-
"version": "0.0.3-alpha.
|
|
4
|
+
"version": "0.0.3-alpha.8",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"author": "NR1E, Inc.",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "https://github.com/nr1etech/commons-js.git"
|
|
15
15
|
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/nr1etech/commons-js/issues"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/nr1etech/commons-js#readme",
|
|
16
20
|
"files": [
|
|
17
21
|
"/**/*.d.ts",
|
|
18
22
|
"/**/*.js",
|