New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@volar/vue-typescript

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/vue-typescript - npm Package Compare versions

Comparing version

to
0.38.5

4

out/documentRegistry.js

@@ -5,3 +5,3 @@ "use strict";

const reactivity_1 = require("@vue/reactivity");
const path_1 = require("path");
const path = require("path");
const localTypes = require("./utils/localTypes");

@@ -47,3 +47,3 @@ const untrack_1 = require("./utils/untrack");

});
const dirs = (0, reactivity_1.computed)(() => [...new Set(fileNames.value.map(path_1.posix.dirname))]);
const dirs = (0, reactivity_1.computed)(() => [...new Set(fileNames.value.map(path.dirname))]);
return {

@@ -50,0 +50,0 @@ get: (0, untrack_1.untrack)((fileName) => files[fileName.toLowerCase()]),

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createLanguageServiceContext = void 0;
const path_1 = require("path");
const path = require("path");
const localTypes = require("./utils/localTypes");

@@ -56,4 +56,4 @@ const sourceFile_1 = require("./sourceFile");

for (const vuePath of documentRegistry.getFileNames()) {
const vuePath2 = path_1.posix.join(_path, path_1.posix.basename(vuePath));
if (path_1.posix.relative(_path.toLowerCase(), vuePath.toLowerCase()).startsWith('..')) {
const vuePath2 = path.join(_path, path.basename(vuePath));
if (path.relative(_path.toLowerCase(), vuePath.toLowerCase()).startsWith('..')) {
continue;

@@ -73,3 +73,3 @@ }

return ts.ScriptKind.TSX; // can't use External, Unknown
switch (path_1.posix.extname(fileName)) {
switch (path.extname(fileName)) {
case '.js': return ts.ScriptKind.JS;

@@ -204,3 +204,3 @@ case '.jsx': return ts.ScriptKind.JSX;

function getScriptFileNames() {
const tsFileNames = documentRegistry.getDirs().map(dir => path_1.posix.join(dir, localTypes.typesFileName));
const tsFileNames = documentRegistry.getDirs().map(dir => path.join(dir, localTypes.typesFileName));
for (const mapped of documentRegistry.getAllEmbeddeds()) {

@@ -223,3 +223,3 @@ if (mapped.embedded.file.isTsHostFile) {

var _a, _b, _c;
const basename = path_1.posix.basename(fileName);
const basename = path.basename(fileName);
if (basename === localTypes.typesFileName) {

@@ -247,3 +247,3 @@ return '';

var _a;
const basename = path_1.posix.basename(fileName);
const basename = path.basename(fileName);
if (basename === localTypes.typesFileName) {

@@ -250,0 +250,0 @@ return sharedTypesScript;

@@ -7,3 +7,3 @@ "use strict";

const transform_1 = require("@volar/vue-code-gen/out/transform");
const path_1 = require("path");
const path = require("path");
const string_1 = require("../utils/string");

@@ -17,3 +17,3 @@ function default_1(ts, cssModuleClasses, cssScopedClasses, templateCodeGens, cssVars, scriptSetupRanges, scriptLang, compilerOptions, disableTemplateScript, useGlobalThisTypeInCtx) {

var _a, _b, _c, _d, _e, _f;
const baseFileName = path_1.posix.basename(fileName);
const baseFileName = path.basename(fileName);
if (i === 0 && !disableTemplateScript) {

@@ -20,0 +20,0 @@ let scriptLeadingComments = [];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createParsedCommandLine = void 0;
const path_1 = require("path");
const path = require("path");
function createParsedCommandLine(ts, parseConfigHost, tsConfig, extendsSet = new Set()) {

@@ -9,6 +9,6 @@ var _a;

const config = ts.readJsonConfigFile(tsConfigPath, ts.sys.readFile);
const content = ts.parseJsonSourceFileConfigFileContent(config, parseConfigHost, path_1.posix.dirname(tsConfigPath), {}, path_1.posix.basename(tsConfigPath));
const content = ts.parseJsonSourceFileConfigFileContent(config, parseConfigHost, path.dirname(tsConfigPath), {}, path.basename(tsConfigPath));
content.options.outDir = undefined; // TODO: patching ts server broke with outDir + rootDir + composite/incremental
let baseVueOptions = {};
const folder = path_1.posix.dirname(tsConfig);
const folder = path.dirname(tsConfig);
extendsSet.add(tsConfig);

@@ -33,3 +33,3 @@ if (content.raw.extends) {

if (templateOptionsPath) {
if (!path_1.posix.isAbsolute(templateOptionsPath)) {
if (!path.isAbsolute(templateOptionsPath)) {
templateOptionsPath = require.resolve(templateOptionsPath, { paths: [rootPath] });

@@ -36,0 +36,0 @@ }

{
"name": "@volar/vue-typescript",
"version": "0.38.4",
"version": "0.38.5",
"main": "out/index.js",

@@ -16,9 +16,9 @@ "license": "MIT",

"devDependencies": {
"@volar/pug-language-service": "0.38.4",
"@volar/pug-language-service": "0.38.5",
"typescript": "latest"
},
"dependencies": {
"@volar/code-gen": "0.38.4",
"@volar/source-map": "0.38.4",
"@volar/vue-code-gen": "0.38.4",
"@volar/code-gen": "0.38.5",
"@volar/source-map": "0.38.5",
"@volar/vue-code-gen": "0.38.5",
"@vue/compiler-sfc": "^3.2.37",

@@ -30,3 +30,3 @@ "@vue/reactivity": "^3.2.37"

},
"gitHead": "370eb02798030e3abd96427dd3f2b5d621fde4d7"
"gitHead": "537550bae4ac9bcbe021f23dd6a3f7880031a32b"
}