@aomex/helper
Advanced tools
Comparing version 0.0.1 to 0.0.2
# @aomex/helper | ||
## 0.0.2 | ||
### Patch Changes | ||
- [`956bba9`](https://github.com/aomex/aomex/commit/956bba9e5b954f34486ad5f2b45a5277c1f980c9) Thanks [@geekact](https://github.com/geekact)! - feat(helper): 新的 sleep 函数 | ||
## 0.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -6,2 +6,4 @@ export { default as color } from 'chalk'; | ||
declare const sleep: (ms: number) => Promise<void>; | ||
type NonReadonly<T extends object> = { | ||
@@ -12,2 +14,2 @@ -readonly [K in keyof T]: T[K]; | ||
export { NonReadonly, Union2Intersection, toArray }; | ||
export { NonReadonly, Union2Intersection, sleep, toArray }; |
@@ -6,2 +6,7 @@ // src/to-array.ts | ||
// src/sleep.ts | ||
var sleep = (ms) => ms <= 0 ? Promise.resolve(void 0) : new Promise((resolve) => { | ||
setTimeout(resolve, ms); | ||
}); | ||
// src/index.ts | ||
@@ -11,4 +16,5 @@ import { default as default2 } from "chalk"; | ||
default2 as color, | ||
sleep, | ||
toArray | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aomex/helper", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -25,3 +25,4 @@ "type": "module", | ||
"keywords": [], | ||
"author": "geekact", | ||
"repository": "git@github.com:aomex/aomex.git", | ||
"homepage": "https://aomex.js.org", | ||
"license": "MIT", | ||
@@ -28,0 +29,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4014
24
1
2