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

fast-levenshtein-string

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-levenshtein-string - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

15

package.json
{
"name": "fast-levenshtein-string",
"version": "1.0.0",
"version": "1.0.1",
"description": "Implementation of the Levenshtein algorithm used to calculate distince between strings.",

@@ -8,5 +8,5 @@ "main": "./src/levenshtein.js",

"scripts": {
"lint": "eslint .",
"test": "mocha --recursive test",
"test-coverage": "istanbul cover ./node_modules/mocha/bin/_mocha test"
"lint": "node_modules/.bin/eslint .",
"test": "node_modules/.bin/mocha --recursive test",
"test-coverage": "node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha test"
},

@@ -31,3 +31,3 @@ "repository": {

"chai": "4.1.2",
"eslint": "4.9.0",
"eslint": "4.18.2",
"eslint-config-standard": "10.2.1",

@@ -39,7 +39,4 @@ "eslint-plugin-import": "2.7.0",

"istanbul": "0.4.5",
"mocha": "4.0.1"
},
"directories": {
"test": "test"
"mocha": "6.2.2"
}
}

4

src/levenshtein.js

@@ -17,3 +17,3 @@ 'use strict';

*/
compute(rawWord1, rawWord2) {
compute: function(rawWord1, rawWord2) {
const word1 = stringifyInput(rawWord1, 'rawWord1');

@@ -38,3 +38,3 @@ const word2 = stringifyInput(rawWord2, 'rawWord2');

*/
computeWithoutCheck(rawWord1, rawWord2) {
computeWithoutCheck: function(rawWord1, rawWord2) {
return fastLevenshtein(rawWord1, rawWord2);

@@ -41,0 +41,0 @@ }

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