didyoumean2
Advanced tools
Comparing version 4.2.0 to 5.0.0
@@ -5,2 +5,11 @@ # Changelog | ||
## [5.0.0](https://github.com/foray1010/didyoumean2/compare/v4.2.0...v5.0.0) (2021-05-27) | ||
### ⚠ BREAKING CHANGES | ||
* drop node 10 | ||
* drop node 10 ([f676176](https://github.com/foray1010/didyoumean2/commit/f676176de6a2e54918198544909806996e4aec23)) | ||
## [4.2.0](https://github.com/foray1010/didyoumean2/compare/v4.1.0...v4.2.0) (2021-04-25) | ||
@@ -7,0 +16,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).didYouMean={})}(this,(function(e){"use strict";const t=[],r=[],n=(e,n)=>{if(e===n)return 0;const s=e;e.length>n.length&&(e=n,n=s);let o=e.length,u=n.length;for(;o>0&&e.charCodeAt(~-o)===n.charCodeAt(~-u);)o--,u--;let l,c,T,a,h=0;for(;h<o&&e.charCodeAt(h)===n.charCodeAt(h);)h++;if(o-=h,u-=h,0===o)return u;let f=0,i=0;for(;f<o;)r[f]=e.charCodeAt(h+f),t[f]=++f;for(;i<u;)for(l=n.charCodeAt(h+i),T=i++,c=i,f=0;f<o;f++)a=l===r[f]?T:T+1,T=t[f],c=t[f]=T>c?a>c?c+1:a:a>T?T+1:a;return c};var s,o,u=n,l=n;u.default=l,(s=e.ReturnTypeEnums||(e.ReturnTypeEnums={})).ALL_CLOSEST_MATCHES="all-closest-matches",s.ALL_MATCHES="all-matches",s.ALL_SORTED_MATCHES="all-sorted-matches",s.FIRST_CLOSEST_MATCH="first-closest-match",s.FIRST_MATCH="first-match",(o=e.ThresholdTypeEnums||(e.ThresholdTypeEnums={})).EDIT_DISTANCE="edit-distance",o.SIMILARITY="similarity";const c=new Error("unknown returnType"),T=new Error("unknown thresholdType");var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h="[object Symbol]",f=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]","g"),d="object"==typeof a&&a&&a.Object===Object&&a,p="object"==typeof self&&self&&self.Object===Object&&self,E=d||p||Function("return this")();var y,S=(y={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==y?void 0:y[e]}),A=Object.prototype.toString,I=E.Symbol,m=I?I.prototype:void 0,C=m?m.toString:void 0;function L(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&A.call(e)==h}(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}var b=function(e){var t;return(e=null==(t=e)?"":L(t))&&e.replace(f,S).replace(i,"")};const R=(e,t)=>{let r=e;return t.trimSpaces&&(r=r.trim().replace(/\s+/g," ")),t.deburr&&(r=b(r)),t.caseSensitive||(r=r.toLowerCase()),r},_=(e,t)=>{const{matchPath:r}=t,n=((e,t)=>{const r=t.length>0?t.reduce(((e,t)=>null==e?void 0:e[t]),e):e;return"string"!=typeof r?"":r})(e,r);return R(n,t)};e.default=function(t,r,n){const s=(t=>{const r={caseSensitive:!1,deburr:!0,matchPath:[],returnType:e.ReturnTypeEnums.FIRST_CLOSEST_MATCH,thresholdType:e.ThresholdTypeEnums.SIMILARITY,trimSpaces:!0,...t};switch(r.thresholdType){case e.ThresholdTypeEnums.EDIT_DISTANCE:return{threshold:20,...r};case e.ThresholdTypeEnums.SIMILARITY:return{threshold:.4,...r};default:throw T}})(n),{returnType:o,threshold:l,thresholdType:a}=s,h=R(t,s);let f,i;switch(a){case e.ThresholdTypeEnums.EDIT_DISTANCE:f=e=>e<=l,i=e=>u(h,_(e,s));break;case e.ThresholdTypeEnums.SIMILARITY:f=e=>e>=l,i=e=>((e,t)=>{if(!e||!t)return 0;if(e===t)return 1;const r=u(e,t),n=Math.max(e.length,t.length);return(n-r)/n})(h,_(e,s));break;default:throw T}const d=[],p=r.length;switch(o){case e.ReturnTypeEnums.ALL_CLOSEST_MATCHES:case e.ReturnTypeEnums.FIRST_CLOSEST_MATCH:{const t=[];let n;switch(a){case e.ThresholdTypeEnums.EDIT_DISTANCE:n=1/0;for(let e=0;e<p;e+=1){const s=i(r[e]);n>s&&(n=s),t.push(s)}break;case e.ThresholdTypeEnums.SIMILARITY:n=0;for(let e=0;e<p;e+=1){const s=i(r[e]);n<s&&(n=s),t.push(s)}break;default:throw T}const s=t.length;for(let e=0;e<s;e+=1){const r=t[e];f(r)&&r===n&&d.push(e)}break}case e.ReturnTypeEnums.ALL_MATCHES:for(let e=0;e<p;e+=1){f(i(r[e]))&&d.push(e)}break;case e.ReturnTypeEnums.ALL_SORTED_MATCHES:{const t=[];for(let e=0;e<p;e+=1){const n=i(r[e]);f(n)&&t.push({score:n,index:e})}switch(a){case e.ThresholdTypeEnums.EDIT_DISTANCE:t.sort(((e,t)=>e.score-t.score));break;case e.ThresholdTypeEnums.SIMILARITY:t.sort(((e,t)=>t.score-e.score));break;default:throw T}for(const e of t)d.push(e.index);break}case e.ReturnTypeEnums.FIRST_MATCH:for(let e=0;e<p;e+=1){if(f(i(r[e]))){d.push(e);break}}break;default:throw c}return((t,r,n)=>{switch(n){case e.ReturnTypeEnums.ALL_CLOSEST_MATCHES:case e.ReturnTypeEnums.ALL_MATCHES:case e.ReturnTypeEnums.ALL_SORTED_MATCHES:return r.map((e=>t[e]));case e.ReturnTypeEnums.FIRST_CLOSEST_MATCH:case e.ReturnTypeEnums.FIRST_MATCH:return r.length?t[r[0]]:null;default:throw c}})(r,d,o)},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).didYouMean={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};const r=new Uint32Array(65536),n=(e,t)=>{if(e.length>t.length){const r=t;t=e,e=r}return 0===e.length?t.length:e.length<=32?((e,t)=>{const n=e.length,o=t.length,s=1<<n-1;let u=-1,l=0,c=n,h=n;for(;h--;)r[e.charCodeAt(h)]|=1<<h;for(h=0;h<o;h++){let e=r[t.charCodeAt(h)];const n=e|l;e|=(e&u)+u^u,l|=~(e|u),u&=e,l&s&&c++,u&s&&c--,l=l<<1|1,u=u<<1|~(n|l),l&=n}for(h=n;h--;)r[e.charCodeAt(h)]=0;return c})(e,t):((e,t)=>{const n=e.length,o=t.length,s=[],u=[],l=Math.ceil(n/32),c=Math.ceil(o/32);let h=o;for(let e=0;e<l;e++)u[e]=-1,s[e]=0;let a=0;for(;a<c-1;a++){let l=0,c=-1;const T=32*a,i=Math.min(32,o)+T;for(let e=T;e<i;e++)r[t.charCodeAt(e)]|=1<<e;h=o;for(let t=0;t<n;t++){const n=r[e.charCodeAt(t)],o=u[t/32|0]>>>t&1,h=s[t/32|0]>>>t&1,a=n|l,T=((n|h)&c)+c^c|n|h;let i=l|~(T|c),f=c&T;i>>>31^o&&(u[t/32|0]^=1<<t),f>>>31^h&&(s[t/32|0]^=1<<t),i=i<<1|o,f=f<<1|h,c=f|~(a|i),l=i&a}for(let e=T;e<i;e++)r[t.charCodeAt(e)]=0}let T=0,i=-1;const f=32*a,d=Math.min(32,o-f)+f;for(let e=f;e<d;e++)r[t.charCodeAt(e)]|=1<<e;h=o;for(let t=0;t<n;t++){const n=r[e.charCodeAt(t)],l=u[t/32|0]>>>t&1,c=s[t/32|0]>>>t&1,a=n|T,f=((n|c)&i)+i^i|n|c;let d=T|~(f|i),p=i&f;h+=d>>>o-1&1,h-=p>>>o-1&1,d>>>31^l&&(u[t/32|0]^=1<<t),p>>>31^c&&(s[t/32|0]^=1<<t),d=d<<1|l,p=p<<1|c,i=p|~(a|d),T=d&a}for(let e=f;e<d;e++)r[t.charCodeAt(e)]=0;return h})(e,t)};var o,s,u=n;e.ReturnTypeEnums=void 0,(o=e.ReturnTypeEnums||(e.ReturnTypeEnums={})).ALL_CLOSEST_MATCHES="all-closest-matches",o.ALL_MATCHES="all-matches",o.ALL_SORTED_MATCHES="all-sorted-matches",o.FIRST_CLOSEST_MATCH="first-closest-match",o.FIRST_MATCH="first-match",e.ThresholdTypeEnums=void 0,(s=e.ThresholdTypeEnums||(e.ThresholdTypeEnums={})).EDIT_DISTANCE="edit-distance",s.SIMILARITY="similarity";const l=new Error("unknown returnType"),c=new Error("unknown thresholdType");var h="[object Symbol]",a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,T=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]","g"),i="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=i||f||Function("return this")();var p,E=(p={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==p?void 0:p[e]}),y=Object.prototype.toString,A=d.Symbol,S=A?A.prototype:void 0,m=S?S.toString:void 0;function I(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&y.call(e)==h}(e))return m?m.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}var C=function(e){var t;return(e=null==(t=e)?"":I(t))&&e.replace(a,E).replace(T,"")};const L=(e,t)=>{let r=e;return t.trimSpaces&&(r=r.trim().replace(/\s+/g," ")),t.deburr&&(r=C(r)),t.caseSensitive||(r=r.toLowerCase()),r},R=(e,t)=>{const{matchPath:r}=t,n=((e,t)=>{const r=t.length>0?t.reduce(((e,t)=>null==e?void 0:e[t]),e):e;return"string"!=typeof r?"":r})(e,r);return L(n,t)};e.default=function(t,r,n){const o=(t=>{const r={caseSensitive:!1,deburr:!0,matchPath:[],returnType:e.ReturnTypeEnums.FIRST_CLOSEST_MATCH,thresholdType:e.ThresholdTypeEnums.SIMILARITY,trimSpaces:!0,...t};switch(r.thresholdType){case e.ThresholdTypeEnums.EDIT_DISTANCE:return{threshold:20,...r};case e.ThresholdTypeEnums.SIMILARITY:return{threshold:.4,...r};default:throw c}})(n),{returnType:s,threshold:h,thresholdType:a}=o,T=L(t,o);let i,f;switch(a){case e.ThresholdTypeEnums.EDIT_DISTANCE:i=e=>e<=h,f=e=>u(T,R(e,o));break;case e.ThresholdTypeEnums.SIMILARITY:i=e=>e>=h,f=e=>((e,t)=>{if(!e||!t)return 0;if(e===t)return 1;const r=u(e,t),n=Math.max(e.length,t.length);return(n-r)/n})(T,R(e,o));break;default:throw c}const d=[],p=r.length;switch(s){case e.ReturnTypeEnums.ALL_CLOSEST_MATCHES:case e.ReturnTypeEnums.FIRST_CLOSEST_MATCH:{const t=[];let n;switch(a){case e.ThresholdTypeEnums.EDIT_DISTANCE:n=1/0;for(let e=0;e<p;e+=1){const o=f(r[e]);n>o&&(n=o),t.push(o)}break;case e.ThresholdTypeEnums.SIMILARITY:n=0;for(let e=0;e<p;e+=1){const o=f(r[e]);n<o&&(n=o),t.push(o)}break;default:throw c}const o=t.length;for(let e=0;e<o;e+=1){const r=t[e];i(r)&&r===n&&d.push(e)}break}case e.ReturnTypeEnums.ALL_MATCHES:for(let e=0;e<p;e+=1){i(f(r[e]))&&d.push(e)}break;case e.ReturnTypeEnums.ALL_SORTED_MATCHES:{const t=[];for(let e=0;e<p;e+=1){const n=f(r[e]);i(n)&&t.push({score:n,index:e})}switch(a){case e.ThresholdTypeEnums.EDIT_DISTANCE:t.sort(((e,t)=>e.score-t.score));break;case e.ThresholdTypeEnums.SIMILARITY:t.sort(((e,t)=>t.score-e.score));break;default:throw c}for(const e of t)d.push(e.index);break}case e.ReturnTypeEnums.FIRST_MATCH:for(let e=0;e<p;e+=1){if(i(f(r[e]))){d.push(e);break}}break;default:throw l}return((t,r,n)=>{switch(n){case e.ReturnTypeEnums.ALL_CLOSEST_MATCHES:case e.ReturnTypeEnums.ALL_MATCHES:case e.ReturnTypeEnums.ALL_SORTED_MATCHES:return r.map((e=>t[e]));case e.ReturnTypeEnums.FIRST_CLOSEST_MATCH:case e.ReturnTypeEnums.FIRST_MATCH:return r.length?t[r[0]]:null;default:throw l}})(r,d,s)},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"$schema": "https://json.schemastore.org/package", | ||
"name": "didyoumean2", | ||
"version": "4.2.0", | ||
"version": "5.0.0", | ||
"description": "a library for matching human-quality input to a list of potential matches using the Levenshtein distance algorithm", | ||
@@ -38,10 +38,11 @@ "keywords": [ | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs.js" | ||
"require": "./dist/index.cjs" | ||
}, | ||
"main": "./dist/index.cjs.js", | ||
"main": "./dist/index.cjs", | ||
"unpkg": "./dist/index.umd.js", | ||
"module": "./dist/index.esm.js", | ||
"module": "./dist/index.mjs", | ||
"typings": "./dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
"dist", | ||
"*.md" | ||
], | ||
@@ -68,41 +69,41 @@ "scripts": { | ||
"@babel/runtime": "^7.10.2", | ||
"leven": "^3.1.0", | ||
"fastest-levenshtein": "^1.0.12", | ||
"lodash.deburr": "^4.1.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.13.16", | ||
"@commitlint/cli": "12.1.1", | ||
"@commitlint/config-conventional": "12.1.1", | ||
"@foray1010/babel-preset": "6.2.0", | ||
"@foray1010/eslint-config": "4.9.0", | ||
"@foray1010/prettier-config": "4.3.0", | ||
"@foray1010/remark-preset": "3.4.2", | ||
"@foray1010/tsconfig": "4.1.2", | ||
"@babel/core": "7.14.3", | ||
"@commitlint/cli": "12.1.4", | ||
"@commitlint/config-conventional": "12.1.4", | ||
"@foray1010/babel-preset": "7.0.0", | ||
"@foray1010/eslint-config": "5.0.1", | ||
"@foray1010/prettier-config": "5.0.0", | ||
"@foray1010/remark-preset": "4.0.0", | ||
"@foray1010/tsconfig": "5.0.0", | ||
"@rollup/plugin-babel": "5.3.0", | ||
"@rollup/plugin-commonjs": "18.0.0", | ||
"@rollup/plugin-node-resolve": "11.2.1", | ||
"@size-limit/preset-small-lib": "4.10.2", | ||
"@types/jest": "26.0.22", | ||
"@rollup/plugin-commonjs": "19.0.0", | ||
"@rollup/plugin-node-resolve": "13.0.0", | ||
"@size-limit/preset-small-lib": "4.11.0", | ||
"@types/jest": "26.0.23", | ||
"@types/lodash.deburr": "4.1.6", | ||
"eslint": "7.24.0", | ||
"eslint": "7.27.0", | ||
"husky": "6.0.0", | ||
"ignore-sync": "3.1.0", | ||
"ignore-sync": "4.0.0", | ||
"jest": "26.6.3", | ||
"lint-staged": "10.5.4", | ||
"lint-staged": "11.0.0", | ||
"npm-run-all": "4.1.5", | ||
"pinst": "2.1.6", | ||
"prettier": "2.2.1", | ||
"prettier": "2.3.0", | ||
"remark-cli": "9.0.0", | ||
"rollup": "2.45.2", | ||
"rollup-plugin-dts": "2.0.1", | ||
"rollup": "2.48.0", | ||
"rollup-plugin-dts": "3.0.1", | ||
"rollup-plugin-terser": "7.0.2", | ||
"shx": "0.3.3", | ||
"size-limit": "4.10.2", | ||
"ts-node": "9.1.1", | ||
"type-coverage": "2.17.2", | ||
"size-limit": "4.11.0", | ||
"ts-node": "10.0.0", | ||
"type-coverage": "2.17.5", | ||
"typescript": "4.2.4" | ||
}, | ||
"engines": { | ||
"node": ">=10.13" | ||
"node": ">=12.13" | ||
} | ||
} |
@@ -15,3 +15,3 @@ # didyoumean2 | ||
1. Based on [leven](https://github.com/sindresorhus/leven), the fastest JS implementation of the [Levenshtein distance algorithm](https://en.wikipedia.org/wiki/Levenshtein_distance) | ||
1. Based on [fastest-levenshtein](https://github.com/ka-weihe/fastest-levenshtein), the fastest JS implementation of the [Levenshtein distance algorithm](https://en.wikipedia.org/wiki/Levenshtein_distance) | ||
@@ -18,0 +18,0 @@ 1. ~100% faster than [didyoumean.js](https://github.com/dcporter/didyoumean.js) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
90987
11
82
+ Addedfastest-levenshtein@^1.0.12
+ Addedfastest-levenshtein@1.0.16(transitive)
- Removedleven@^3.1.0
- Removedleven@3.1.0(transitive)