Comparing version 1.0.2 to 1.0.3
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.forEach = void 0; | ||
const p_immediate_1 = __importDefault(require("p-immediate")); | ||
const promises_1 = require("node:timers/promises"); | ||
const config_js_1 = require("./config.js"); | ||
@@ -39,3 +36,3 @@ const symbol_js_1 = require("./symbol.js"); | ||
// allow others a chance to execute | ||
await (0, p_immediate_1.default)(); | ||
await (0, promises_1.setImmediate)(); | ||
state = state ?? { position }; | ||
@@ -42,0 +39,0 @@ state.position = position; |
@@ -1,2 +0,2 @@ | ||
import pImmediate from 'p-immediate'; | ||
import { setImmediate } from 'node:timers/promises'; | ||
import { batch as configBatch } from './config.js'; | ||
@@ -33,3 +33,3 @@ import { EndIteration } from './symbol.js'; | ||
// allow others a chance to execute | ||
await pImmediate(); | ||
await setImmediate(); | ||
state = state ?? { position }; | ||
@@ -36,0 +36,0 @@ state.position = position; |
{ | ||
"name": "nice-loops", | ||
"type": "module", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Array iterators that yield to the event-loop periodically", | ||
@@ -30,5 +30,2 @@ "main": "dist/index.js", | ||
}, | ||
"dependencies": { | ||
"p-immediate": "^4.0.0" | ||
}, | ||
"files": [ | ||
@@ -35,0 +32,0 @@ "/dist", |
@@ -1,2 +0,3 @@ | ||
import pImmediate from 'p-immediate'; | ||
import {setImmediate} from 'node:timers/promises'; | ||
import {batch as configBatch} from './config.js'; | ||
@@ -42,3 +43,3 @@ import {EndIteration} from './symbol.js'; | ||
// allow others a chance to execute | ||
await pImmediate(); | ||
await setImmediate(); | ||
@@ -45,0 +46,0 @@ state = state ?? {position}; |
Sorry, the diff of this file is not supported yet
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
0
77006
1204
- Removedp-immediate@^4.0.0
- Removedp-immediate@4.0.0(transitive)