Socket
Socket
Sign inDemoInstall

fast-levenshtein

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.4 to 2.0.5

9

levenshtein.js
(function() {
'use strict';
// language-sensitive collator
var collator = (typeof Intl !== "undefined" && typeof Intl.Collator !== "undefined") ? Intl.Collator("generic", { sensitivity: "base" }) : null;
var collator;
try {
collator = (typeof Intl !== "undefined" && typeof Intl.Collator !== "undefined") ? Intl.Collator("generic", { sensitivity: "base" }) : null;
} catch (err){
console.log("Collator could not be initialized and wouldn't be used");
}
// arrays to re-use

@@ -8,0 +11,0 @@ var prevRow = [],

{
"name": "fast-levenshtein",
"version": "2.0.4",
"version": "2.0.5",
"description": "Efficient implementation of Levenshtein algorithm with locale-specific collator support.",

@@ -19,2 +19,3 @@ "main": "levenshtein.js",

"grunt-benchmark": "~0.2.0",
"grunt-cli": "^1.2.0",
"grunt-contrib-jshint": "~0.4.3",

@@ -21,0 +22,0 @@ "grunt-contrib-uglify": "~0.2.0",

@@ -91,3 +91,2 @@ # fast-levenshtein - Levenshtein algorithm in Javascript

```bash
$ npm install -g grunt-cli
$ npm install

@@ -94,0 +93,0 @@ $ npm run build

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc