Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

util-io

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

util-io - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

18

HELP.md

@@ -107,11 +107,7 @@ ---

}
], function(file1, file2) {
var error1 = file1[0],
data1 = file1[1]
error2 = file1[0]
data2 = file2[1];
console.log(error1 || data1);
console.log(error2 || data2);
], function(error, data1, data2) {
if (error)
console.log(error)
else
console.log(data1, data2);
});

@@ -127,3 +123,3 @@ ```

console.log(str);
callback();
callback(null, str);
}, time);

@@ -135,3 +131,3 @@ },

Util.exec.parallel([func1, func2], function(str1, str2) {
Util.exec.parallel([func1, func2], function(error, str1, str2) {
console.log(str1, str2);

@@ -138,0 +134,0 @@ });

@@ -759,4 +759,6 @@ (function(scope) {

exec.parallel = function(funcs, callback) {
var count = 0,
allData = [],
var errorWas,
count = 0,
allData = [null],
func = exec.ret(callback),
funcsCount = funcs.length;

@@ -766,3 +768,3 @@

exec(func, function() {
checkFunc(num, arguments);
checkFunc(num + 1, arguments);
});

@@ -772,13 +774,20 @@ });

function checkFunc(num, data) {
var length = data.length;
var args = Util.slice(data, 1),
error = data[0],
length = args.length;
++count;
if (length >= 2) {
allData[num] = data;
} else
allData[num] = data[0];
if (count === funcsCount)
exec.ret(callback).apply(null, allData);
if (error) {
errorWas = true;
func(error);
} else if (!errorWas) {
++count;
if (length >= 2)
allData[num] = args;
else
allData[num] = args[0];
if (count === funcsCount)
func.apply(null, allData);
}
}

@@ -892,8 +901,16 @@ };

array.some(function(item) {
var is = item.name === name;
var is = item.name === name,
isArray = Util.isArray(item);
if (is)
ret = item.data;
ret = item;
else if (isArray)
item.some(function(item) {
is = item.name === name;
if (is)
ret = item.data;
});
return is;
return is;
});

@@ -900,0 +917,0 @@ }

{
"name": "util-io",
"version": "1.1.2",
"version": "1.2.0",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -5,0 +5,0 @@ "description": "Util.io - utilites for vanila js",

@@ -1,6 +0,6 @@

# Util.io [![NPM version][NPMIMGURL]][NPMURL]
[NPMIMGURL]: https://badge.fury.io/js/util.io.png
[NPM_INFO_IMG]: https://nodei.co/npm/util.io.png?downloads=true&&stars
[NPMURL]: https://npmjs.org/package/util.io "npm"
# Util-io [![NPM version][NPMIMGURL]][NPMURL]
[NPMIMGURL]: https://badge.fury.io/js/util-io.png
[NPM_INFO_IMG]: https://nodei.co/npm/util-io.png?downloads=true&&stars
[NPMURL]: https://npmjs.org/package/util-io "npm"
[Util.io](http://coderaiser.github.io/util-io "Util.io") - utilites for vanila js. Consist of nice set of functions that works in node and browser.
[Util-io](http://coderaiser.github.io/util-io "Util-io") - utilites for vanila js. Consist of nice set of functions that works in node and browser.
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