@vue/language-core
Advanced tools
Comparing version 1.8.22 to 1.9.0-alpha.0
@@ -7,3 +7,3 @@ "use strict"; | ||
const muggle = require("muggle-string"); | ||
const path_1 = require("path"); | ||
const path = require("path-browserify"); | ||
const shared_1 = require("../utils/shared"); | ||
@@ -678,3 +678,3 @@ const transform_1 = require("../utils/transform"); | ||
else if (script) { | ||
codes.push(`let __VLS_internalComponent!: typeof import('./${path_1.posix.basename(fileName)}')['default'];\n`); | ||
codes.push(`let __VLS_internalComponent!: typeof import('./${path.basename(fileName)}')['default'];\n`); | ||
} | ||
@@ -714,3 +714,3 @@ else { | ||
else if (scriptSetup) { | ||
codes.push(`let __VLS_name!: '${path_1.posix.basename(fileName.substring(0, fileName.lastIndexOf('.')))}';\n`); | ||
codes.push(`let __VLS_name!: '${path.basename(fileName.substring(0, fileName.lastIndexOf('.')))}';\n`); | ||
} | ||
@@ -717,0 +717,0 @@ else { |
@@ -9,3 +9,3 @@ import type { Language } from '@volar/language-core'; | ||
*/ | ||
export declare function createLanguages(compilerOptions?: ts.CompilerOptions, vueCompilerOptions?: Partial<VueCompilerOptions>, ts?: typeof import('typescript/lib/tsserverlibrary'), codegenStack?: boolean): Language[]; | ||
export declare function createLanguages(ts: typeof import('typescript/lib/tsserverlibrary'), compilerOptions?: ts.CompilerOptions, vueCompilerOptions?: Partial<VueCompilerOptions>, codegenStack?: boolean): Language[]; | ||
//# sourceMappingURL=languageModule.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createLanguages = exports.createVueLanguage = void 0; | ||
const path_1 = require("path"); | ||
const path = require("path-browserify"); | ||
const plugins_1 = require("./plugins"); | ||
@@ -63,3 +63,3 @@ const vueFile_1 = require("./virtualFile/vueFile"); | ||
const sharedTypesSnapshot = ts.ScriptSnapshot.fromString(sharedTypes.getTypesCode(vueCompilerOptions)); | ||
const sharedTypesFileName = path_1.posix.join(host.rootPath, sharedTypes.baseName); | ||
const sharedTypesFileName = path.join(host.rootPath, sharedTypes.baseName); | ||
return { | ||
@@ -93,3 +93,3 @@ ...host, | ||
*/ | ||
function createLanguages(compilerOptions = {}, vueCompilerOptions = {}, ts = require('typescript'), codegenStack = false) { | ||
function createLanguages(ts, compilerOptions = {}, vueCompilerOptions = {}, codegenStack = false) { | ||
return [ | ||
@@ -96,0 +96,0 @@ createVueLanguage(ts, compilerOptions, vueCompilerOptions, codegenStack), |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolveVueCompilerOptions = exports.createParsedCommandLine = exports.createParsedCommandLineByJson = void 0; | ||
const path = require("path"); | ||
const path = require("path-browserify"); | ||
function createParsedCommandLineByJson(ts, parseConfigHost, rootDir, json, configFileName = rootDir + '/jsconfig.json') { | ||
@@ -6,0 +6,0 @@ const proxyHost = proxyParseConfigHostForExtendConfigPaths(parseConfigHost); |
{ | ||
"name": "@vue/language-core", | ||
"version": "1.8.22", | ||
"version": "1.9.0-alpha.0", | ||
"main": "out/index.js", | ||
@@ -16,4 +16,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/language-core": "~1.10.5", | ||
"@volar/source-map": "~1.10.5", | ||
"@volar/language-core": "~1.10.9", | ||
"@volar/source-map": "~1.10.9", | ||
"@vue/compiler-dom": "^3.3.0", | ||
@@ -24,2 +24,3 @@ "@vue/shared": "^3.3.0", | ||
"muggle-string": "^0.3.1", | ||
"path-browserify": "^1.0.1", | ||
"vue-template-compiler": "^2.7.14" | ||
@@ -29,2 +30,4 @@ }, | ||
"@types/minimatch": "^5.1.2", | ||
"@types/node": "latest", | ||
"@types/path-browserify": "^1.0.1", | ||
"@vue/compiler-sfc": "^3.3.0" | ||
@@ -40,3 +43,3 @@ }, | ||
}, | ||
"gitHead": "1e8d09af0282c42dd816671ffcd5a2321276e3c3" | ||
"gitHead": "d6905e4d4d1208f560a544509494f33f431b602a" | ||
} |
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
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
250008
10
4
2
+ Addedpath-browserify@^1.0.1
+ Addedpath-browserify@1.0.1(transitive)
Updated@volar/language-core@~1.10.9
Updated@volar/source-map@~1.10.9