diff-leven 0.3.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/index.js +11 -11
- package/dist/index.mjs +11 -11
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
[](https://www.jsdelivr.com/package/npm/diff-leven)
|
|
8
8
|

|
|
9
9
|
|
|
10
|
+
**Try now:** [link](https://kushalshit27.github.io/diff-leven/)
|
|
11
|
+
|
|
10
12
|
---
|
|
11
13
|
|
|
12
14
|
## ✨ Features
|
|
@@ -14,7 +16,7 @@
|
|
|
14
16
|
- **Advanced Diff Generation**: Uses the Levenshtein distance algorithm for meaningful diffs
|
|
15
17
|
- **Multiple Data Type Support**:
|
|
16
18
|
- Objects (including nested structures)
|
|
17
|
-
- Arrays (
|
|
19
|
+
- Arrays (positional comparison; no reordering/LCS)
|
|
18
20
|
- Strings (character-level differences)
|
|
19
21
|
- Numbers, Booleans, and any serializable value
|
|
20
22
|
- **Rich Output Options**:
|
|
@@ -59,6 +61,8 @@ console.log(diff({ foo: 'bar' }, { foo: 'baz' }));
|
|
|
59
61
|
|
|
60
62
|
Compare two values (strings, objects, arrays, etc.) and return a formatted diff string.
|
|
61
63
|
|
|
64
|
+
> **Note on arrays:** comparison is positional only (index-by-index). Reordered elements are treated as removals/additions rather than matched by similarity.
|
|
65
|
+
|
|
62
66
|
#### **Parameters**
|
|
63
67
|
|
|
64
68
|
- `a`, `b`: Anything serializable (object, array, string, number, etc.)
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _leven = require('leven'); var _leven2 = _interopRequireDefault(_leven);var p=(
|
|
2
|
-
${
|
|
3
|
-
${i}`}function m(e,t,
|
|
4
|
-
`,
|
|
5
|
-
`),n+=l,n+=
|
|
6
|
-
`),i.type){case"added":n+=r?`${l}${
|
|
7
|
-
`),n+=`${
|
|
8
|
-
`,
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _leven = require('leven'); var _leven2 = _interopRequireDefault(_leven);var p=(u=>(u.ADDED="added",u.REMOVED="removed",u.CHANGED="changed",u.UNCHANGED="unchanged",u))(p||{});function y(e,t,s={},r=[]){let{keysOnly:u=!1,ignoreValues:g=!1}=s;if(e===void 0&&t===void 0)return{type:"unchanged"};if(e===void 0)return{type:"added",path:r,newValue:t};if(t===void 0)return{type:"removed",path:r,oldValue:e};if(typeof e!="object"||typeof t!="object"||e===null||t===null){if(u||g)return{type:"unchanged",path:r,oldValue:e,newValue:t,meta:{ignored:!0}};if(e===t)return{type:"unchanged",path:r,oldValue:e,newValue:t};if(typeof e=="string"&&typeof t=="string"){let o=_leven2.default.call(void 0, e,t),l=Math.max(e.length,t.length),n=l>0?1-o/l:1;return{type:"changed",path:r,oldValue:e,newValue:t,meta:{levenDistance:o,similarity:n}}}return{type:"changed",path:r,oldValue:e,newValue:t}}return Array.isArray(e)&&Array.isArray(t)?C(e,t,s,r):A(e,t,s,r)}function A(e,t,s,r){let{ignoreKeys:u=[]}=s,g=new Set([...Object.keys(e).filter(n=>!u.includes(n)),...Object.keys(t).filter(n=>!u.includes(n))]),o=[],l=!1;for(let n of g){let f=[...r,n],D=e[n],i=t[n],c=y(D,i,s,f);c.type!=="unchanged"&&(l=!0),o.push(c)}return l?{type:"changed",path:r,oldValue:e,newValue:t,children:o}:{type:"unchanged",path:r,oldValue:e,newValue:t}}function C(e,t,s,r){if(e.length!==t.length){let o=[],l=Math.max(e.length,t.length);for(let n=0;n<l;n++){let f=[...r,n.toString()];n>=e.length?o.push({type:"added",path:f,newValue:t[n]}):n>=t.length?o.push({type:"removed",path:f,oldValue:e[n]}):o.push(y(e[n],t[n],s,f))}return{type:"changed",path:r,oldValue:e,newValue:t,children:o}}let u=[],g=!1;for(let o=0;o<e.length;o++){let l=[...r,o.toString()],n=e[o],f=t[o],D=y(n,f,s,l);D.type!=="unchanged"&&(g=!0),u.push(D)}return g?{type:"changed",path:r,oldValue:e,newValue:t,children:u}:{type:"unchanged",path:r,oldValue:e,newValue:t}}var a={reset:"\x1B[0m",red:"\x1B[31m",green:"\x1B[32m",gray:"\x1B[90m"};function V(e,t={}){let{color:s=!0,full:r=!1,withSimilarity:u=!1}=t;return e.type==="unchanged"&&!r&&(!e.children||e.children.length===0)?"":!e.children||e.children.length===0?G(e,s,u):H(e,t,0)}function G(e,t,s=!1){let r=O(e.type),u="";switch(e.type){case"added":return u=$(e.newValue),t?`${a.green}${r} ${u}${a.reset}`:`${r} ${u}`;case"removed":return u=$(e.oldValue),t?`${a.red}${r} ${u}${a.reset}`:`${r} ${u}`;case"changed":let g=$(e.oldValue),o=$(e.newValue),l="";if(s&&_optionalChain([e, 'access', _ => _.meta, 'optionalAccess', _2 => _2.similarity])!==void 0&&typeof e.oldValue=="string"&&typeof e.newValue=="string"){let D=Math.round(e.meta.similarity*100);l=t?`${a.gray} (${D}% similar)${a.reset}`:` (${D}% similar)`}let n=t?`${a.green}+ ${o}${l}${a.reset}`:`+ ${o}${l}`,f=t?`${a.red}- ${g}${a.reset}`:`- ${g}`;return`${n}
|
|
2
|
+
${f}`;default:return u=$(_nullishCoalesce(e.newValue, () => (e.oldValue))),t?`${a.gray}${r} ${u}${a.reset}`:`${r} ${u}`}}function H(e,t,s=0){let{full:r=!1}=t;return e.type==="unchanged"&&!r&&(!e.children||e.children.length===0||typeof e.oldValue!="object"&&typeof e.newValue!="object")?"":Array.isArray(e.oldValue)||Array.isArray(e.newValue)?m(e,t,s):b(e,t,s)}function E(e,t,s,r,u,g){let{color:o,withSimilarity:l}=s,n="";l&&u!==void 0&&(n=o?`${a.gray} (${Math.round(u*100)}% similar)${a.reset}`:` (${Math.round(u*100)}% similar)`);let f=g?`${g}: `:"",D=o?`${r}${a.green}+ ${f}${$(e)}${n}${a.reset}`:`${r}+ ${f}${$(e)}${n}`,i=o?`${r}${a.red}- ${f}${$(t)}${a.reset}`:`${r}- ${f}${$(t)}`;return`${D}
|
|
3
|
+
${i}`}function m(e,t,s=0){let{color:r=!0,full:u=!1,withSimilarity:g=!1}=t,o=" ".repeat(s),l=" ".repeat(s+2),n=`[
|
|
4
|
+
`,f=0;if(e.children)for(let D=0;D<e.children.length;D++){let i=e.children[D];if(!(i.type==="unchanged"&&!u&&(!i.children||i.children.length===0)))if(i.children&&i.children.length>0){let c=Array.isArray(i.newValue||i.oldValue)?m(i,t,s+2):b(i,t,s+2);c.trim().length>2&&(f>0&&(n+=`,
|
|
5
|
+
`),n+=l,n+=c,f++)}else switch(f>0&&(n+=`,
|
|
6
|
+
`),i.type){case"added":n+=r?`${l}${a.green}+ ${$(i.newValue)}${a.reset}`:`${l}+ ${$(i.newValue)}`,f++;break;case"removed":n+=r?`${l}${a.red}- ${$(i.oldValue)}${a.reset}`:`${l}- ${$(i.oldValue)}`,f++;break;case"unchanged":_optionalChain([i, 'access', _3 => _3.meta, 'optionalAccess', _4 => _4.ignored])&&i.path?n+=r?`${l}${a.gray} ${i.path[i.path.length-1]||""}${a.reset}`:`${l} ${i.path[i.path.length-1]||""}`:n+=r?`${l}${a.gray} ${$(i.newValue)}${a.reset}`:`${l} ${$(i.newValue)}`,f++;break;case"changed":n+=E(i.newValue,i.oldValue,{color:r,withSimilarity:g},l,_optionalChain([i, 'access', _5 => _5.meta, 'optionalAccess', _6 => _6.similarity])),f++;break}}return f>0&&(n+=`
|
|
7
|
+
`),n+=`${o}]`,n}function b(e,t,s=0){let{color:r=!0,full:u=!1,withSimilarity:g=!1}=t,o=" ".repeat(s),l=" ".repeat(s+2),n=`{
|
|
8
|
+
`,f=0;if(e.children){let D=e.children.filter(i=>{if(i.type!=="unchanged"||u||i.children&&i.children.length>0)return!0;let c=_optionalChain([i, 'access', _7 => _7.path, 'optionalAccess', _8 => _8[i.path.length-1]])||"";return!!_optionalChain([t, 'access', _9 => _9.outputKeys, 'optionalAccess', _10 => _10.includes, 'call', _11 => _11(c)])});for(let i=0;i<D.length;i++){let c=D[i],h=_optionalChain([c, 'access', _12 => _12.path, 'optionalAccess', _13 => _13[c.path.length-1]])||"",R=i===D.length-1;if(f>0&&!n.endsWith(`
|
|
9
9
|
`)&&(n+=`,
|
|
10
|
-
`),
|
|
10
|
+
`),c.children&&c.children.length>0){let d=Array.isArray(c.newValue||c.oldValue)?m(c,t,s+2):b(c,t,s+2);d.trim().length>2&&(n+=`${l}${h}: `,n+=d,f++)}else switch(c.type){case"added":n+=r?`${l}${a.green}+ ${h}: ${$(c.newValue)}${a.reset}`:`${l}+ ${h}: ${$(c.newValue)}`,f++;break;case"removed":n+=r?`${l}${a.red}- ${h}: ${$(c.oldValue)}${a.reset}`:`${l}- ${h}: ${$(c.oldValue)}`,f++;break;case"changed":n+=E(c.newValue,c.oldValue,{color:r,withSimilarity:g},l,_optionalChain([c, 'access', _14 => _14.meta, 'optionalAccess', _15 => _15.similarity]),h),f++;break;case"unchanged":(u||_optionalChain([t, 'access', _16 => _16.outputKeys, 'optionalAccess', _17 => _17.includes, 'call', _18 => _18(h)]))&&(_optionalChain([c, 'access', _19 => _19.meta, 'optionalAccess', _20 => _20.ignored])?n+=r?`${l}${a.gray} ${h}${a.reset}`:`${l} ${h}`:n+=r?`${l}${a.gray} ${h}: ${$(c.newValue)}${a.reset}`:`${l} ${h}: ${$(c.newValue)}`,f++);break}!R&&!n.endsWith(`
|
|
11
11
|
`)&&(n+=","),n.endsWith(`
|
|
12
12
|
`)||(n+=`
|
|
13
|
-
`)}}return
|
|
13
|
+
`)}}return f>0&&!n.endsWith(`
|
|
14
14
|
`)&&(n+=`
|
|
15
|
-
`),n+=`${
|
|
15
|
+
`),n+=`${o}}`,n}function O(e){switch(e){case"added":return"+";case"removed":return"-";case"changed":return"!";default:return" "}}function $(e){return e===void 0?"undefined":e===null?"null":typeof e=="string"?`'${e}'`:typeof e=="number"||typeof e=="boolean"?e.toString():typeof e=="object"?JSON.stringify(e,null,2):String(e)}function N(e,t,s={}){return y(e,t,s)}function Q(e,t,s={}){let r=N(e,t,s);return V(r,s)}function X(e,t,s={}){return N(e,t,s).type!=="unchanged"}exports.DiffType = p; exports.diff = Q; exports.diffRaw = N; exports.isDiff = X;
|
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
${
|
|
3
|
-
${i}`}function m(e,t,
|
|
4
|
-
`,
|
|
5
|
-
`),n+=l,n+=
|
|
6
|
-
`),i.type){case"added":n+=r?`${l}${
|
|
7
|
-
`),n+=`${
|
|
8
|
-
`,
|
|
1
|
+
import S from"leven";var p=(u=>(u.ADDED="added",u.REMOVED="removed",u.CHANGED="changed",u.UNCHANGED="unchanged",u))(p||{});function y(e,t,s={},r=[]){let{keysOnly:u=!1,ignoreValues:g=!1}=s;if(e===void 0&&t===void 0)return{type:"unchanged"};if(e===void 0)return{type:"added",path:r,newValue:t};if(t===void 0)return{type:"removed",path:r,oldValue:e};if(typeof e!="object"||typeof t!="object"||e===null||t===null){if(u||g)return{type:"unchanged",path:r,oldValue:e,newValue:t,meta:{ignored:!0}};if(e===t)return{type:"unchanged",path:r,oldValue:e,newValue:t};if(typeof e=="string"&&typeof t=="string"){let o=S(e,t),l=Math.max(e.length,t.length),n=l>0?1-o/l:1;return{type:"changed",path:r,oldValue:e,newValue:t,meta:{levenDistance:o,similarity:n}}}return{type:"changed",path:r,oldValue:e,newValue:t}}return Array.isArray(e)&&Array.isArray(t)?C(e,t,s,r):A(e,t,s,r)}function A(e,t,s,r){let{ignoreKeys:u=[]}=s,g=new Set([...Object.keys(e).filter(n=>!u.includes(n)),...Object.keys(t).filter(n=>!u.includes(n))]),o=[],l=!1;for(let n of g){let f=[...r,n],D=e[n],i=t[n],c=y(D,i,s,f);c.type!=="unchanged"&&(l=!0),o.push(c)}return l?{type:"changed",path:r,oldValue:e,newValue:t,children:o}:{type:"unchanged",path:r,oldValue:e,newValue:t}}function C(e,t,s,r){if(e.length!==t.length){let o=[],l=Math.max(e.length,t.length);for(let n=0;n<l;n++){let f=[...r,n.toString()];n>=e.length?o.push({type:"added",path:f,newValue:t[n]}):n>=t.length?o.push({type:"removed",path:f,oldValue:e[n]}):o.push(y(e[n],t[n],s,f))}return{type:"changed",path:r,oldValue:e,newValue:t,children:o}}let u=[],g=!1;for(let o=0;o<e.length;o++){let l=[...r,o.toString()],n=e[o],f=t[o],D=y(n,f,s,l);D.type!=="unchanged"&&(g=!0),u.push(D)}return g?{type:"changed",path:r,oldValue:e,newValue:t,children:u}:{type:"unchanged",path:r,oldValue:e,newValue:t}}var a={reset:"\x1B[0m",red:"\x1B[31m",green:"\x1B[32m",gray:"\x1B[90m"};function V(e,t={}){let{color:s=!0,full:r=!1,withSimilarity:u=!1}=t;return e.type==="unchanged"&&!r&&(!e.children||e.children.length===0)?"":!e.children||e.children.length===0?G(e,s,u):H(e,t,0)}function G(e,t,s=!1){let r=O(e.type),u="";switch(e.type){case"added":return u=$(e.newValue),t?`${a.green}${r} ${u}${a.reset}`:`${r} ${u}`;case"removed":return u=$(e.oldValue),t?`${a.red}${r} ${u}${a.reset}`:`${r} ${u}`;case"changed":let g=$(e.oldValue),o=$(e.newValue),l="";if(s&&e.meta?.similarity!==void 0&&typeof e.oldValue=="string"&&typeof e.newValue=="string"){let D=Math.round(e.meta.similarity*100);l=t?`${a.gray} (${D}% similar)${a.reset}`:` (${D}% similar)`}let n=t?`${a.green}+ ${o}${l}${a.reset}`:`+ ${o}${l}`,f=t?`${a.red}- ${g}${a.reset}`:`- ${g}`;return`${n}
|
|
2
|
+
${f}`;default:return u=$(e.newValue??e.oldValue),t?`${a.gray}${r} ${u}${a.reset}`:`${r} ${u}`}}function H(e,t,s=0){let{full:r=!1}=t;return e.type==="unchanged"&&!r&&(!e.children||e.children.length===0||typeof e.oldValue!="object"&&typeof e.newValue!="object")?"":Array.isArray(e.oldValue)||Array.isArray(e.newValue)?m(e,t,s):b(e,t,s)}function E(e,t,s,r,u,g){let{color:o,withSimilarity:l}=s,n="";l&&u!==void 0&&(n=o?`${a.gray} (${Math.round(u*100)}% similar)${a.reset}`:` (${Math.round(u*100)}% similar)`);let f=g?`${g}: `:"",D=o?`${r}${a.green}+ ${f}${$(e)}${n}${a.reset}`:`${r}+ ${f}${$(e)}${n}`,i=o?`${r}${a.red}- ${f}${$(t)}${a.reset}`:`${r}- ${f}${$(t)}`;return`${D}
|
|
3
|
+
${i}`}function m(e,t,s=0){let{color:r=!0,full:u=!1,withSimilarity:g=!1}=t,o=" ".repeat(s),l=" ".repeat(s+2),n=`[
|
|
4
|
+
`,f=0;if(e.children)for(let D=0;D<e.children.length;D++){let i=e.children[D];if(!(i.type==="unchanged"&&!u&&(!i.children||i.children.length===0)))if(i.children&&i.children.length>0){let c=Array.isArray(i.newValue||i.oldValue)?m(i,t,s+2):b(i,t,s+2);c.trim().length>2&&(f>0&&(n+=`,
|
|
5
|
+
`),n+=l,n+=c,f++)}else switch(f>0&&(n+=`,
|
|
6
|
+
`),i.type){case"added":n+=r?`${l}${a.green}+ ${$(i.newValue)}${a.reset}`:`${l}+ ${$(i.newValue)}`,f++;break;case"removed":n+=r?`${l}${a.red}- ${$(i.oldValue)}${a.reset}`:`${l}- ${$(i.oldValue)}`,f++;break;case"unchanged":i.meta?.ignored&&i.path?n+=r?`${l}${a.gray} ${i.path[i.path.length-1]||""}${a.reset}`:`${l} ${i.path[i.path.length-1]||""}`:n+=r?`${l}${a.gray} ${$(i.newValue)}${a.reset}`:`${l} ${$(i.newValue)}`,f++;break;case"changed":n+=E(i.newValue,i.oldValue,{color:r,withSimilarity:g},l,i.meta?.similarity),f++;break}}return f>0&&(n+=`
|
|
7
|
+
`),n+=`${o}]`,n}function b(e,t,s=0){let{color:r=!0,full:u=!1,withSimilarity:g=!1}=t,o=" ".repeat(s),l=" ".repeat(s+2),n=`{
|
|
8
|
+
`,f=0;if(e.children){let D=e.children.filter(i=>{if(i.type!=="unchanged"||u||i.children&&i.children.length>0)return!0;let c=i.path?.[i.path.length-1]||"";return!!t.outputKeys?.includes(c)});for(let i=0;i<D.length;i++){let c=D[i],h=c.path?.[c.path.length-1]||"",R=i===D.length-1;if(f>0&&!n.endsWith(`
|
|
9
9
|
`)&&(n+=`,
|
|
10
|
-
`),
|
|
10
|
+
`),c.children&&c.children.length>0){let d=Array.isArray(c.newValue||c.oldValue)?m(c,t,s+2):b(c,t,s+2);d.trim().length>2&&(n+=`${l}${h}: `,n+=d,f++)}else switch(c.type){case"added":n+=r?`${l}${a.green}+ ${h}: ${$(c.newValue)}${a.reset}`:`${l}+ ${h}: ${$(c.newValue)}`,f++;break;case"removed":n+=r?`${l}${a.red}- ${h}: ${$(c.oldValue)}${a.reset}`:`${l}- ${h}: ${$(c.oldValue)}`,f++;break;case"changed":n+=E(c.newValue,c.oldValue,{color:r,withSimilarity:g},l,c.meta?.similarity,h),f++;break;case"unchanged":(u||t.outputKeys?.includes(h))&&(c.meta?.ignored?n+=r?`${l}${a.gray} ${h}${a.reset}`:`${l} ${h}`:n+=r?`${l}${a.gray} ${h}: ${$(c.newValue)}${a.reset}`:`${l} ${h}: ${$(c.newValue)}`,f++);break}!R&&!n.endsWith(`
|
|
11
11
|
`)&&(n+=","),n.endsWith(`
|
|
12
12
|
`)||(n+=`
|
|
13
|
-
`)}}return
|
|
13
|
+
`)}}return f>0&&!n.endsWith(`
|
|
14
14
|
`)&&(n+=`
|
|
15
|
-
`),n+=`${
|
|
15
|
+
`),n+=`${o}}`,n}function O(e){switch(e){case"added":return"+";case"removed":return"-";case"changed":return"!";default:return" "}}function $(e){return e===void 0?"undefined":e===null?"null":typeof e=="string"?`'${e}'`:typeof e=="number"||typeof e=="boolean"?e.toString():typeof e=="object"?JSON.stringify(e,null,2):String(e)}function N(e,t,s={}){return y(e,t,s)}function Q(e,t,s={}){let r=N(e,t,s);return V(r,s)}function X(e,t,s={}){return N(e,t,s).type!=="unchanged"}export{p as DiffType,Q as diff,N as diffRaw,X as isDiff};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "diff-leven",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Git like diff between two strings, using the Levenshtein distance algorithm",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -52,20 +52,20 @@
|
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://github.com/kushalshit27/diff-leven#readme",
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"eslint": "^9.
|
|
55
|
+
"eslint": "^9.39.2",
|
|
56
56
|
"husky": "9.1.7",
|
|
57
|
-
"prettier": "^3.
|
|
57
|
+
"prettier": "^3.7.4",
|
|
58
58
|
"ts-node": "^10.9.2",
|
|
59
|
-
"tsup": "^8.5.
|
|
60
|
-
"typescript": "^5.
|
|
61
|
-
"typescript-eslint": "^8.
|
|
62
|
-
"vitest": "^
|
|
59
|
+
"tsup": "^8.5.1",
|
|
60
|
+
"typescript": "^5.9.3",
|
|
61
|
+
"typescript-eslint": "^8.50.1",
|
|
62
|
+
"vitest": "^4.0.16"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=18"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"leven": "^4.
|
|
68
|
+
"leven": "^4.1.0"
|
|
69
69
|
},
|
|
70
70
|
"optionalDependencies": {
|
|
71
71
|
"@rollup/rollup-linux-x64-gnu": "^4.44.1"
|