+3
-2
| { | ||
| "name": "yfnm", | ||
| "version": "0.1.6", | ||
| "version": "0.1.7", | ||
| "description": "Learn to make an NPM module", | ||
@@ -31,4 +31,5 @@ "preferGlobal": true, | ||
| "lodash.sortby": "~2.2.1", | ||
| "semver": "~2.1.0" | ||
| "semver": "~2.1.0", | ||
| "fuzzy": "~0.1.0" | ||
| } | ||
| } |
+2
-5
| var readline = require('readline'); | ||
| var when = require('when'); | ||
| var fuzzy = require('fuzzy'); | ||
@@ -38,7 +39,3 @@ var solution = require('./solution'); | ||
| success = success || function(data){ | ||
| if(typeof data[0] === 'string' && typeof data[1] === 'string'){ | ||
| return data[0].replace(/\s/g, '') === data[1].replace(/\s/g, ''); | ||
| } else { | ||
| return data[0] === data[1]; | ||
| } | ||
| return fuzzy.test(data[0], data[1]); | ||
| }; | ||
@@ -45,0 +42,0 @@ |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
18528
-0.53%10
11.11%339
-0.88%+ Added
+ Added