Sorry, the diff of this file is not supported yet
| "use strict"; | ||
| var util = require('util'); | ||
| var startsWith = require('mout/string/startsWith'); | ||
| var isFinite = require('mout/lang/isFinite'); | ||
| var isArray = require('mout/lang/isArray'); | ||
| module.exports = function(argv){ | ||
| /* istanbul ignore if */ | ||
| if(arguments.length == 0) | ||
| argv = process.argv.slice(2); | ||
| var args = [], dict = {}, | ||
| r, e = new RegExp("^--?([a-z_0-9/:-]+)(?:=(.*))?", "i"); | ||
| argv.forEach(function(arg){ | ||
| var k, v; | ||
| if(!startsWith(arg, '-')) { | ||
| args.push(arg); | ||
| } else if(e.test(arg)) { | ||
| r = e.exec(arg); | ||
| k = r[1], v = r[2] === undefined ? true : r[2]; | ||
| if(isFinite(v)) | ||
| v = parseFloat(v); | ||
| if(dict[k] !== undefined) { | ||
| if(!isArray(dict[k])) | ||
| dict[k] = [dict[k]]; | ||
| dict[k].push(v); | ||
| } else dict[k] = v; | ||
| } | ||
| }); | ||
| return {args:args, dict:dict}; | ||
| } |
| "use strict"; | ||
| var mapLimit = require('async/mapLimit'); | ||
| var async = require('async'); | ||
@@ -7,3 +7,3 @@ | ||
| var out = {}, errs = []; | ||
| mapLimit(keys, tasks, function(item, chain) { | ||
| async.mapLimit(keys, tasks, function(item, chain) { | ||
| iterator(item, function(err, result) { | ||
@@ -10,0 +10,0 @@ out[item] = err ? null : result; |
| "use strict"; | ||
| var fs = require('fs'); | ||
| var path = require('path'); | ||
| var queue = require('async/queue'); | ||
| var async = require('async'); | ||
| var forEach = require('mout/array/forEach'); | ||
@@ -43,3 +43,3 @@ var debounce= require('mout/function/debounce'); | ||
| module.exports = function(dir_path, taskcb, endcb){ | ||
| var q = queue(function(stat, cb){ | ||
| var q = async.queue(function(stat, cb){ | ||
| if(stat) | ||
@@ -46,0 +46,0 @@ taskcb(stat); |
+2
-2
| { | ||
| "name": "nyks", | ||
| "version": "2.14.0", | ||
| "version": "2.15.0", | ||
| "description": "nodejs exupery style", | ||
@@ -11,3 +11,3 @@ "keywords": [ | ||
| "dependencies": { | ||
| "async": "^2.0.0-rc.2", | ||
| "async": "^1.5.2", | ||
| "crc-32": "^0.3.0", | ||
@@ -14,0 +14,0 @@ "mout": "^1.0.0", |
| "use strict"; | ||
| var forIn = require('mout/object/forIn'); | ||
| module.exports = function(that, key){ | ||
| var out = {}; | ||
| forIn(that, function(v, k){ | ||
| out[v[key]] = v; | ||
| }); | ||
| return out; | ||
| } |
| "use strict"; | ||
| var fs = require('fs'); | ||
| module.exports = function(file_path){ | ||
| return JSON.parse(fs.readFileSync(file_path)); | ||
| } |
| "use strict"; | ||
| var fs = require('fs'); | ||
| module.exports = function(file_path){ | ||
| return JSON.parse(fs.readFileSync(file_path)); | ||
| } |
| "use strict"; | ||
| var util = require('util'); | ||
| var startsWith = require('mout/string/startsWith'); | ||
| var isFinite = require('mout/lang/isFinite'); | ||
| var isArray = require('mout/lang/isArray'); | ||
| module.exports = function(argv){ | ||
| /* istanbul ignore if */ | ||
| if(arguments.length == 0) | ||
| argv = process.argv.slice(2); | ||
| var args = [], dict = {}, | ||
| r, e = new RegExp("^--?([a-z_0-9/:-]+)(?:=(.*))?", "i"); | ||
| argv.forEach(function(arg){ | ||
| var k, v; | ||
| if(!startsWith(arg, '-')) { | ||
| args.push(arg); | ||
| } else if(e.test(arg)) { | ||
| r = e.exec(arg); | ||
| k = r[1], v = r[2] === undefined ? true : r[2]; | ||
| if(isFinite(v)) | ||
| v = parseFloat(v); | ||
| if(dict[k] !== undefined) { | ||
| if(!isArray(dict[k])) | ||
| dict[k] = [dict[k]]; | ||
| dict[k].push(v); | ||
| } else dict[k] = v; | ||
| } | ||
| }); | ||
| return {args:args, dict:dict}; | ||
| } |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
20
-9.09%46013
-0.91%71
-2.74%1259
-1.25%12
20%+ Added
- Removed
- Removed
Updated