@bscotch/utility
Advanced tools
Comparing version 0.7.0 to 0.7.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolveInNextTick = exports.resolveInSeconds = exports.resolveInMillis = void 0; | ||
const process_1 = require("process"); | ||
/** Get a promise that resolves in some number of milliseconds. */ | ||
@@ -16,5 +15,5 @@ function resolveInMillis(millis) { | ||
function resolveInNextTick() { | ||
return new Promise(res => process_1.nextTick(res)); | ||
return new Promise(res => setImmediate(res)); | ||
} | ||
exports.resolveInNextTick = resolveInNextTick; | ||
//# sourceMappingURL=wait.js.map |
@@ -0,1 +1,10 @@ | ||
## [0.7.1](https://github.com/bscotch/node-util/compare/v0.7.0...v0.7.1) (2020-11-12) | ||
### Bug Fixes | ||
* resolveInNextTick no longer uses nextTick, instead using setImmediate, which works as intended. ([a3d8dc0](https://github.com/bscotch/node-util/commit/a3d8dc0523a659578e9a66445bd9980c895c209a)) | ||
# [0.7.0](https://github.com/bscotch/node-util/compare/v0.6.0...v0.7.0) (2020-11-11) | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "@bscotch/utility", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Bscotch Utilities: Methods for common Node.js needs.", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
28494
302