@volar/vue-language-core
Advanced tools
Comparing version 1.2.2-alpha.2 to 1.3.0
@@ -8,2 +8,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
function createLanguageModules(ts, compilerOptions, vueCompilerOptions) { | ||
const patchSnapshots = new WeakMap(); | ||
patchResolveModuleNames(ts, vueCompilerOptions); | ||
@@ -58,6 +59,9 @@ const vueLanguagePlugin = (0, plugins_1.getDefaultVueLanguagePlugins)(ts, compilerOptions, vueCompilerOptions); | ||
basename === 'jsx.d.ts')) { | ||
// allow arbitrary attributes | ||
let tsScriptText = snapshot.getText(0, snapshot.getLength()); | ||
tsScriptText = tsScriptText.replace('type ReservedProps = {', 'type ReservedProps = { [name: string]: any'); | ||
snapshot = ts.ScriptSnapshot.fromString(tsScriptText); | ||
if (!patchSnapshots.has(snapshot)) { | ||
// allow arbitrary attributes | ||
let tsScriptText = snapshot.getText(0, snapshot.getLength()); | ||
tsScriptText = tsScriptText.replace('type ReservedProps = {', 'type ReservedProps = { [name: string]: any'); | ||
patchSnapshots.set(snapshot, ts.ScriptSnapshot.fromString(tsScriptText)); | ||
} | ||
snapshot = patchSnapshots.get(snapshot); | ||
} | ||
@@ -64,0 +68,0 @@ } |
{ | ||
"name": "@volar/vue-language-core", | ||
"version": "1.2.2-alpha.2", | ||
"version": "1.3.0", | ||
"main": "out/index.js", | ||
@@ -16,4 +16,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/language-core": "1.4.0-alpha.1", | ||
"@volar/source-map": "1.4.0-alpha.1", | ||
"@volar/language-core": "1.4.0-alpha.2", | ||
"@volar/source-map": "1.4.0-alpha.2", | ||
"@vue/compiler-dom": "^3.2.47", | ||
@@ -30,3 +30,3 @@ "@vue/compiler-sfc": "^3.2.47", | ||
}, | ||
"gitHead": "2b2f0c453e04f9ada4a39154a3ef8edde664029c" | ||
"gitHead": "3b8071daeaef32a01bb3c3220a5e7897607914fc" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
219949
4880
1
+ Added@volar/language-core@1.4.0-alpha.2(transitive)
+ Added@volar/source-map@1.4.0-alpha.2(transitive)
- Removed@volar/language-core@1.4.0-alpha.1(transitive)
- Removed@volar/source-map@1.4.0-alpha.1(transitive)