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.
- package/dist/compilers/compilers.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/schema.json +1 -1
|
@@ -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.
|
|
1
|
+
export declare const version = "6.14.1";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '6.14.
|
|
1
|
+
export const version = '6.14.1';
|
package/package.json
CHANGED