knip 3.0.1 → 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 CHANGED
@@ -14,6 +14,6 @@ Special thanks to the wonderful people who have contributed to this project:
14
14
  [![Contributors][4]][3]
15
15
 
16
16
  [1]: https://knip.dev
17
- [2]: https://www.npmjs.com/package/knip
17
+ [2]: https://github.com/webpro/knip
18
18
  [3]: https://github.com/webpro/knip/graphs/contributors
19
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.1";
1
+ export declare const version = "3.0.2";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '3.0.1';
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.1",
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": {