Socket
Socket
Sign inDemoInstall

nice-loops

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nice-loops - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

7

dist/cjs/src/for-each.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc