knip 5.73.2 → 5.73.4
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.
|
@@ -6,17 +6,27 @@ import { resolveX } from './bunx.js';
|
|
|
6
6
|
const commands = [
|
|
7
7
|
'add',
|
|
8
8
|
'audit',
|
|
9
|
+
'build',
|
|
9
10
|
'ci',
|
|
10
11
|
'create',
|
|
12
|
+
'exec',
|
|
13
|
+
'feedback',
|
|
14
|
+
'info',
|
|
11
15
|
'init',
|
|
12
16
|
'install',
|
|
13
17
|
'link',
|
|
18
|
+
'outdated',
|
|
19
|
+
'patch',
|
|
14
20
|
'pm',
|
|
21
|
+
'publish',
|
|
15
22
|
'remove',
|
|
23
|
+
'repl',
|
|
16
24
|
'run',
|
|
17
25
|
'test',
|
|
26
|
+
'unlink',
|
|
18
27
|
'update',
|
|
19
28
|
'upgrade',
|
|
29
|
+
'why',
|
|
20
30
|
'x',
|
|
21
31
|
];
|
|
22
32
|
export const resolve = (_binary, args, options) => {
|
|
@@ -202,6 +202,7 @@ export const isConsiderReferencedNS = (node) => ts.isPropertyAssignment(node.par
|
|
|
202
202
|
ts.isSpreadAssignment(node.parent) ||
|
|
203
203
|
ts.isArrayLiteralExpression(node.parent) ||
|
|
204
204
|
ts.isExportAssignment(node.parent) ||
|
|
205
|
+
(ts.isBindingElement(node.parent) && node.parent.initializer === node) ||
|
|
205
206
|
ts.isTypeQueryNode(node.parent.parent);
|
|
206
207
|
export const isInOpaqueExpression = (node) => ts.isAwaitExpression(node.parent)
|
|
207
208
|
? isInOpaqueExpression(node.parent)
|
package/dist/util/errors.js
CHANGED
|
@@ -16,6 +16,8 @@ export const getKnownErrors = (error) => {
|
|
|
16
16
|
details.push(`location: ${error.path.join('.')}`);
|
|
17
17
|
if (typeof error.expected === 'string')
|
|
18
18
|
details.push(`expected: ${error.expected}`);
|
|
19
|
+
if (Array.isArray(error.keys))
|
|
20
|
+
details.push(`${error.code}: ${error.keys.join(', ')}`);
|
|
19
21
|
if (details.length > 0)
|
|
20
22
|
message += ` (${details.join(', ')})`;
|
|
21
23
|
return new Error(message);
|
package/dist/util/resolve.js
CHANGED
|
@@ -40,5 +40,5 @@ const createSyncResolver = (extensions) => {
|
|
|
40
40
|
catch (_error) { }
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
-
const resolveSync = createSyncResolver(DEFAULT_EXTENSIONS);
|
|
43
|
+
const resolveSync = createSyncResolver([...DEFAULT_EXTENSIONS, '.d.ts', '.d.mts', '.d.cts']);
|
|
44
44
|
export const _resolveSync = timerify(resolveSync);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.73.
|
|
1
|
+
export declare const version = "5.73.4";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.73.
|
|
1
|
+
export const version = '5.73.4';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knip",
|
|
3
|
-
"version": "5.73.
|
|
3
|
+
"version": "5.73.4",
|
|
4
4
|
"description": "Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects",
|
|
5
5
|
"homepage": "https://knip.dev",
|
|
6
6
|
"repository": {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@wdio/types": "^9.20.0",
|
|
86
86
|
"codeclimate-types": "^0.3.1",
|
|
87
87
|
"glob-bin": "^1.0.0",
|
|
88
|
-
"release-it": "^19.0
|
|
88
|
+
"release-it": "^19.1.0",
|
|
89
89
|
"tsx": "^4.20.3",
|
|
90
90
|
"typescript": "^5.5.2"
|
|
91
91
|
},
|