pruny 1.44.6 → 1.44.8
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/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15465,7 +15465,7 @@ function deleteDeclaration(lines, startLine, name) {
|
|
|
15465
15465
|
let foundMethodDefinition = false;
|
|
15466
15466
|
let foundBodyOpening = false;
|
|
15467
15467
|
let foundClosing = false;
|
|
15468
|
-
const declRegex = /^(?:export\s+)?(?:(?:public|private|protected|static|async|readonly|abstract|override)\s+)*(?:(?:class|interface|type|enum|function|const|let|var)\s+)?[a-zA-Z0-9_$]+(?:<[^>]+>)?\s*(?:\(|=[^=])/;
|
|
15468
|
+
const declRegex = /^(?:export\s+)?(?:(?:public|private|protected|static|async|readonly|abstract|override)\s+)*(?:(?:class|interface|type|enum|function|const|let|var)\s+)?[a-zA-Z0-9_$]+(?:<[^>]+>)?(?:\s*:[^=\n(]+)?\s*(?:\(|=[^=])/;
|
|
15469
15469
|
const classDeclRegex = /^(?:export\s+)?(?:default\s+)?(?:abstract\s+)?(?:class|interface|type|enum)\s+[a-zA-Z0-9_$]+/;
|
|
15470
15470
|
const methodRefRegex = name ? new RegExp(`^\\s*(?:export\\s+)?(?:(?:async|static|readonly)\\s+)*(?:function\\s+)?\\b${name}\\b\\s*\\(`) : null;
|
|
15471
15471
|
let currentDecoratorParenDepth = 0;
|
|
@@ -16188,6 +16188,8 @@ async function scanBrokenLinks(config) {
|
|
|
16188
16188
|
const extracted = extractPath(match2);
|
|
16189
16189
|
if (!extracted)
|
|
16190
16190
|
continue;
|
|
16191
|
+
if (/\$\{/.test(extracted))
|
|
16192
|
+
continue;
|
|
16191
16193
|
const rawPath = normalizePath(extracted);
|
|
16192
16194
|
if (shouldSkipPath(rawPath))
|
|
16193
16195
|
continue;
|
|
@@ -16665,7 +16667,7 @@ function findImport(ident, source) {
|
|
|
16665
16667
|
return null;
|
|
16666
16668
|
}
|
|
16667
16669
|
function resolveModulePath(spec, fromFile, appDir, aliasMap) {
|
|
16668
|
-
|
|
16670
|
+
const candidates = [];
|
|
16669
16671
|
if (spec.startsWith(".")) {
|
|
16670
16672
|
candidates.push(resolve3(dirname5(fromFile), spec));
|
|
16671
16673
|
} else if (aliasMap.size > 0) {
|