Socket
Socket
Sign inDemoInstall

fuzzyset.js

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fuzzyset.js - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

7

dist/fuzzyset.common.js

@@ -53,4 +53,9 @@ 'use strict';

};
var _nonWordRe = /[^a-zA-Z0-9\u00C0-\u00FF, ]+/g;
// u00C0-u00FF is latin characters
// u0621-u064a is arabic letters
// u0660-u0669 is arabic numerals
// TODO: figure out way to do this for more languages
var _nonWordRe = /[^a-zA-Z0-9\u00C0-\u00FF\u0621-\u064A\u0660-\u0669, ]+/g;
var _iterateGrams = function(value, gramSize) {

@@ -57,0 +62,0 @@ gramSize = gramSize || 2;

@@ -51,4 +51,9 @@ const FuzzySet = function(arr, useLevenshtein, gramSizeLower, gramSizeUpper) {

};
var _nonWordRe = /[^a-zA-Z0-9\u00C0-\u00FF, ]+/g;
// u00C0-u00FF is latin characters
// u0621-u064a is arabic letters
// u0660-u0669 is arabic numerals
// TODO: figure out way to do this for more languages
var _nonWordRe = /[^a-zA-Z0-9\u00C0-\u00FF\u0621-\u064A\u0660-\u0669, ]+/g;
var _iterateGrams = function(value, gramSize) {

@@ -55,0 +60,0 @@ gramSize = gramSize || 2;

@@ -54,4 +54,9 @@ var FuzzySet = (function () {

};
var _nonWordRe = /[^a-zA-Z0-9\u00C0-\u00FF, ]+/g;
// u00C0-u00FF is latin characters
// u0621-u064a is arabic letters
// u0660-u0669 is arabic numerals
// TODO: figure out way to do this for more languages
var _nonWordRe = /[^a-zA-Z0-9\u00C0-\u00FF\u0621-\u064A\u0660-\u0669, ]+/g;
var _iterateGrams = function(value, gramSize) {

@@ -58,0 +63,0 @@ gramSize = gramSize || 2;

2

package.json
{
"name": "fuzzyset.js",
"description": "A fast fuzzy string set for JavaScript",
"version": "1.0.6",
"version": "1.0.7",
"homepage": "http://Glench.github.com/fuzzyset.js",

@@ -6,0 +6,0 @@ "repository": "git://github.com/Glench/fuzzyset.js.git",

@@ -1,9 +0,5 @@

fuzzyset - A fuzzy string set for javascript.
=============================================
Fuzzyset - A fuzzy string set for javascript
============================================
**Version 1.0.0 involves a license change but no API changes. See the bottom of this document for details.**
**Version 1.0.6 December 12, 2020: involves a module restructuring but no API changes. Should now work with TypeScript, ESM, CommonJS, and web (IIFE).**
fuzzyset is a data structure that performs something akin to fulltext search
Fuzzyset is a data structure that performs something akin to fulltext search
against data to determine likely mispellings and approximate string matching.

@@ -35,3 +31,3 @@

```javascript
import FuzzySet from 'FuzzySet'
import FuzzySet from 'fuzzyset'

@@ -48,2 +44,4 @@ // or, depending on your JavaScript environment...

This library should work just fine with TypeScript, too.
Construction Arguments

@@ -85,6 +83,6 @@ ----------------------

That means that this package is free to use for *non-commercial projects* — personal projects, public benefit projects, research, education, etc. (see the [license](LICENSE.md) for full details). If your project is commercial (even for internal use at your company), you have 30 days to try this package for free before you have to pay a one-time licensing fee of $49 (~one hour of a junior developer's time).
That means that this package is free to use for *non-commercial projects* — personal projects, public benefit projects, research, education, etc. (see the [license](LICENSE.md) for full details). If your project is commercial (even for internal use at your company), you have 30 days to try this package for free before you have to pay a one-time licensing fee of $42.
You can **<a href="https://licensezero.com/offers/562c0ffe-df98-4348-87b7-e60e3c37c534#buy">purchase a commercial license instantly here</a>**.
You can **<a href="https://buy.stripe.com/4gw6rm6jw9xy05G144">purchase a commercial license instantly here</a>**.
Why this license scheme? Since I [quit tech to become a therapist](http://glench.com/WhyIQuitTechAndBecameATherapist/), my income is much lower (due to the unjust costs of mental health care in the US, but don't get me started). I'm asking for paid licenses for Fuzzyset.js to support all the free work I've done on this project over the past 8 years (!) and so I can live a sustainable life in service of my therapy clients. If you're a small operation that would like to use Fuzzyset.js but can't swing the license cost, please reach out to me and we can work something out.
Why this license scheme? Since I [quit tech to become a therapist](http://glench.com/WhyIQuitTechAndBecameATherapist/), my income is much lower (due to the unjust costs of mental health care in the US, but don't get me started). I'm asking for paid licenses for Fuzzyset.js to support all the free work I've done on this project over the past 10 years (!) and so I can live a sustainable life in service of my therapy clients. If you're a small operation that would like to use Fuzzyset.js but can't swing the license cost, please reach out to me and we can work something out.
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