Socket
Socket
Sign inDemoInstall

vue-tsc

Package Overview
Dependencies
Maintainers
1
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-tsc - npm Package Compare versions

Comparing version 2.1.5 to 2.1.6

24

index.js

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

const runTsc_1 = require("@volar/typescript/lib/quickstart/runTsc");
const path = require("path");
const vue = require("@vue/language-core");

@@ -20,24 +19,3 @@ const windowsPathReg = /\\/g;

&& runExtensions.every(ext => allExtensions.includes(ext))) {
let setupedGlobalTypes = false;
try {
let dir = typeof configFilePath === 'string'
? configFilePath
: options.host?.getCurrentDirectory() ?? ts.sys.getCurrentDirectory();
while (!ts.sys.directoryExists(path.resolve(dir, 'node_modules'))) {
const parentDir = path.resolve(dir, '..');
if (dir === parentDir) {
throw 0;
}
dir = parentDir;
}
const globalTypesPath = path.resolve(dir, `node_modules/.vue-global-types/${vueOptions.lib}_${vueOptions.target}_${vueOptions.strictTemplates}.d.ts`);
const globalTypesContents = vue.generateGlobalTypes('global', vueOptions.lib, vueOptions.target, vueOptions.strictTemplates);
ts.sys.writeFile(globalTypesPath, globalTypesContents);
setupedGlobalTypes = true;
}
catch { }
const vueLanguagePlugin = vue.createVueLanguagePlugin(ts, options.options, {
...vueOptions,
__setupedGlobalTypes: () => setupedGlobalTypes,
}, id => id);
const vueLanguagePlugin = vue.createVueLanguagePlugin(ts, options.options, vueOptions, id => id);
return { languagePlugins: [vueLanguagePlugin] };

@@ -44,0 +22,0 @@ }

6

package.json
{
"name": "vue-tsc",
"version": "2.1.5",
"version": "2.1.6",
"license": "MIT",

@@ -20,3 +20,3 @@ "files": [

"@volar/typescript": "~2.4.1",
"@vue/language-core": "2.1.5",
"@vue/language-core": "2.1.6",
"semver": "^7.5.4"

@@ -30,3 +30,3 @@ },

},
"gitHead": "a95b51ac0b0db8825f77fbba37e29932b5be61e4"
"gitHead": "fd61953ce9eb924eeaf4df0bf8d2237267321194"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc