Comparing version 1.1.3 to 1.1.4
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
17677
9
84