@volar/vue-language-core
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -224,8 +224,8 @@ "use strict"; | ||
if (oldText[start] !== newText[start]) { | ||
let end = start; | ||
for (let i = oldText.length - 1; i > start; i--) { | ||
if (oldText[i] !== newText[i + (newText.length - oldText.length)]) { | ||
end = i; | ||
let end = oldText.length; | ||
for (let i = 0; i < oldText.length - start && i < newText.length - start; i++) { | ||
if (oldText[oldText.length - i - 1] !== newText[newText.length - i - 1]) { | ||
break; | ||
} | ||
end--; | ||
} | ||
@@ -232,0 +232,0 @@ let length = end - start; |
@@ -44,3 +44,3 @@ "use strict"; | ||
catch (err) { | ||
console.warn('Failed to resolve tsconfig path:', tsConfigPath); | ||
console.warn('Failed to resolve tsconfig path:', tsConfigPath, err); | ||
return { | ||
@@ -57,11 +57,15 @@ fileNames: [], | ||
const extendConfigPaths = new Set(); | ||
const host = { | ||
...parseConfigHost, | ||
readFile: (fileName) => { | ||
if (!fileName.endsWith('/package.json')) { | ||
extendConfigPaths.add(fileName); | ||
const host = new Proxy(parseConfigHost, { | ||
get(target, key) { | ||
if (key === 'readFile') { | ||
return (fileName) => { | ||
if (!fileName.endsWith('/package.json')) { | ||
extendConfigPaths.add(fileName); | ||
} | ||
return target.readFile(fileName); | ||
}; | ||
} | ||
return parseConfigHost.readFile(fileName); | ||
}, | ||
}; | ||
return target[key]; | ||
} | ||
}); | ||
return { | ||
@@ -68,0 +72,0 @@ host, |
{ | ||
"name": "@volar/vue-language-core", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"main": "out/index.js", | ||
@@ -16,4 +16,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/language-core": "1.4.0-alpha.3", | ||
"@volar/source-map": "1.4.0-alpha.3", | ||
"@volar/language-core": "1.4.0-alpha.4", | ||
"@volar/source-map": "1.4.0-alpha.4", | ||
"@vue/compiler-dom": "^3.2.47", | ||
@@ -30,3 +30,3 @@ "@vue/compiler-sfc": "^3.2.47", | ||
}, | ||
"gitHead": "c189f8663d123629a864cf9878acca5ded37f903" | ||
"gitHead": "363cf5c4d68b15d75d7a9cb03632116e7f4fc60d" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
222696
4961
+ Added@volar/language-core@1.4.0-alpha.4(transitive)
+ Added@volar/source-map@1.4.0-alpha.4(transitive)
- Removed@volar/language-core@1.4.0-alpha.3(transitive)
- Removed@volar/source-map@1.4.0-alpha.3(transitive)