knip 3.0.0 → 3.0.2

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 ADDED
@@ -0,0 +1,19 @@
1
+ # ✂️ Knip
2
+
3
+ Knip finds **unused files, dependencies and exports** in your JavaScript and TypeScript projects. Less code and
4
+ dependencies lead to improved performance, less maintenance and easier refactorings.
5
+
6
+ The documentation is available at [knip.dev][1].
7
+
8
+ This package is part of [the Knip monorepo][2].
9
+
10
+ ## Contributors
11
+
12
+ Special thanks to the wonderful people who have contributed to this project:
13
+
14
+ [![Contributors][4]][3]
15
+
16
+ [1]: https://knip.dev
17
+ [2]: https://github.com/webpro/knip
18
+ [3]: https://github.com/webpro/knip/graphs/contributors
19
+ [4]: https://contrib.rocks/image?repo=webpro/knip
@@ -17,7 +17,7 @@ export default visit(() => true, (node, options) => {
17
17
  if (node.importClause?.namedBindings) {
18
18
  if (ts.isNamespaceImport(node.importClause.namedBindings)) {
19
19
  const symbol = node.importClause.namedBindings.symbol;
20
- imports.push({ symbol, specifier, identifier: '*', pos: symbol.declarations[0].pos ?? node.pos });
20
+ imports.push({ symbol, specifier, identifier: '*', pos: symbol?.declarations[0]?.pos ?? node.pos });
21
21
  }
22
22
  if (ts.isNamedImports(node.importClause.namedBindings)) {
23
23
  node.importClause.namedBindings.elements.forEach(element => {
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "3.0.0";
1
+ export declare const version = "3.0.2";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '3.0.0';
1
+ export const version = '3.0.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://knip.dev",
6
6
  "repository": {