@aomex/internal-tools
Advanced tools
Comparing version 3.1.1 to 3.2.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.2.0](https://github.com/aomex/aomex/compare/v3.1.1...v3.2.0) (2024-09-17) | ||
**Note:** Version bump only for package @aomex/internal-tools | ||
## [3.1.1](https://github.com/aomex/aomex/compare/v3.1.0...v3.1.1) (2024-09-13) | ||
@@ -8,0 +16,0 @@ |
@@ -7,5 +7,6 @@ // src/to-array.ts | ||
// src/sleep.ts | ||
var sleep = (durationMS) => durationMS <= 0 ? Promise.resolve(void 0) : new Promise((resolve) => { | ||
setTimeout(resolve, durationMS); | ||
}); | ||
import timers from "node:timers/promises"; | ||
var sleep = (durationMS) => { | ||
return durationMS <= 0 ? Promise.resolve(void 0) : timers.setTimeout(durationMS); | ||
}; | ||
@@ -12,0 +13,0 @@ // src/index.ts |
{ | ||
"name": "@aomex/internal-tools", | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"description": "aomex内部实用工具", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
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
6622
36