knip 6.14.0 → 6.14.1

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.
@@ -3,7 +3,7 @@ export const inlineCodeMatcher = /`[^`]+`/g;
3
3
  const scriptExtractor = /<script\b(?:[^>"']|"[^"]*"|'[^']*')*>([\s\S]*?)<\/script>/gm;
4
4
  const blockCommentMatcher = /\/\*[\s\S]*?\*\//g;
5
5
  const lineCommentMatcher = /^[ \t]*\/\/.*$/gm;
6
- export const importMatcher = /import[^'"]+['"][^'"]+['"]/g;
6
+ export const importMatcher = /import(?:\s*\(\s*['"][^'"]+['"][^)]*\)|(?!\s*\()[^'"]+['"][^'"]+['"])/g;
7
7
  export const importsWithinScripts = (text) => {
8
8
  const scripts = [];
9
9
  let scriptMatch;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "6.14.0";
1
+ export declare const version = "6.14.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '6.14.0';
1
+ export const version = '6.14.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "6.14.0",
3
+ "version": "6.14.1",
4
4
  "description": "Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects",
5
5
  "keywords": [
6
6
  "analysis",
package/schema.json CHANGED
@@ -928,7 +928,7 @@
928
928
  },
929
929
  "paths": {
930
930
  "type": "object",
931
- "additionalProperty": {
931
+ "additionalProperties": {
932
932
  "type": "array",
933
933
  "items": {
934
934
  "type": "string"