New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

easy-loop

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-loop - npm Package Compare versions

Comparing version 1.2.2 to 1.2.4

6

lib/easy-for.js

@@ -14,2 +14,8 @@ function easyFor(obj, func, concurrency, last){

if((arguments.length === 3 || arguments.length === 4) && typeof func === 'number' && typeof concurrency === 'function')
{
var temp = func;
func = concurrency;
concurrency = temp;
}
if(typeof concurrency === 'function')

@@ -16,0 +22,0 @@ {

2

package.json
{
"name": "easy-loop",
"version": "1.2.2",
"version": "1.2.4",
"description": "Easy sync loop processing for Node.js",

@@ -5,0 +5,0 @@ "main": "lib/easy-loop",

@@ -19,2 +19,4 @@

(4) callback function - option (default : nothing)
* TIP : arg2 와 arg3 의 인자값은 순서 변경 가능

@@ -175,3 +177,5 @@ ## Examples

/* 결과(Result) - 2초 소요(run time : 2 second)
/*
*Tip : arguments(arr, function, concurrency, callback) == arguments(arr, concurrency, function, callback)
결과(Result) - 2초 소요(run time : 2 second)
Case6 Start => concurrency and 4 arguments

@@ -178,0 +182,0 @@ Start : Now Second : 3

@@ -83,3 +83,3 @@ //var fs = require('fs');

*/
var arr = [];

@@ -100,4 +100,4 @@ for(var i=0; i<10000; i++) arr.push(i);

console.log("Case6 End");
*/
/*

@@ -121,3 +121,2 @@ var num = 0;

console.log("Case7 End");
*/

@@ -127,2 +126,3 @@

var num = 0;

@@ -145,2 +145,2 @@ console.log("Case8 Start => while and 3 arguments and break(or error)");

console.log("Case8 End");
*/
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