Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

yfnm

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yfnm - npm Package Compare versions

Comparing version
0.1.6
to
0.1.7
+3
-2
package.json
{
"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 @@