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

stringsoup

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stringsoup - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

lib/index.d.ts

@@ -1,1 +0,1 @@

export * from './stringSoup';
export { StringSoup, StringSoupResult, StringSoupMatchResult, } from './stringSoup';

@@ -1,17 +0,1 @@

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./stringSoup"), exports);
export { StringSoup, } from './stringSoup';

@@ -26,2 +26,2 @@ declare type StringSoupMatch = {

}
export { StringSoup, StringSoupMatchResult, StringSoupResult };
export { StringSoup, StringSoupResult, StringSoupMatchResult };

@@ -1,8 +0,2 @@

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringSoup = void 0;
const jaro_winkler_1 = __importDefault(require("jaro-winkler"));
import { default as jaroDistance } from 'jaro-winkler';
class StringSoup {

@@ -50,3 +44,2 @@ constructor(knownStrings) {

}
exports.StringSoup = StringSoup;
StringSoup.sanitize = (soup) => {

@@ -59,3 +52,3 @@ return soup;

StringSoup.scoreString = (known, guess) => {
return (0, jaro_winkler_1.default)(known, guess);
return jaroDistance(known, guess);
};

@@ -65,1 +58,2 @@ StringSoup.StringSoupMatchResultComparator = (result1, result2) => {

};
export { StringSoup };
{
"name": "stringsoup",
"version": "1.1.3",
"version": "1.1.4",
"description": "A package to help finding the best known string match amongst a soup of input strings",
"type": "module",
"main": "lib/index.js",
"main": "lib/stringSoup.js",
"types": "lib/index.d.ts",

@@ -39,3 +39,5 @@ "files": [

"devDependencies": {
"@babel/parser": "^7.18.5",
"@babel/preset-env": "^7.18.2",
"@babel/types": "^7.18.4",
"@types/jaro-winkler": "^0.2.0",

@@ -42,0 +44,0 @@ "@types/jest": "^28.1.1",

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