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

vue-component-meta

Package Overview
Dependencies
Maintainers
1
Versions
197
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-component-meta - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

25

lib/base.js

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

const scriptSnapshots = new Map();
const resolvedVueOptions = vue.resolveVueCompilerOptions(parsedCommandLine.vueOptions);
const _host = {

@@ -59,6 +60,11 @@ getCurrentDirectory: () => rootPath,

},
getLanguageId: vue.resolveCommonLanguageId,
getLanguageId: fileName => {
if (resolvedVueOptions.extensions.some(ext => fileName.endsWith(ext))) {
return 'vue';
}
return vue.resolveCommonLanguageId(fileName);
},
};
return {
...baseCreate(ts, configFileName, _host, vue.resolveVueCompilerOptions(parsedCommandLine.vueOptions), checkerOptions, globalComponentName),
...baseCreate(ts, configFileName, _host, resolvedVueOptions, checkerOptions, globalComponentName),
updateFile(fileName, text) {

@@ -113,3 +119,16 @@ fileName = fileName.replace(windowsPathReg, '/');

};
const vueLanguagePlugin = vue.createVueLanguagePlugin(ts, id => id, host.getCompilationSettings(), vueCompilerOptions);
const vueLanguagePlugin = vue.createVueLanguagePlugin(ts, id => id, fileName => {
if (ts.sys.useCaseSensitiveFileNames) {
return host.getScriptFileNames().includes(fileName) ?? false;
}
else {
const lowerFileName = fileName.toLowerCase();
for (const rootFile of host.getScriptFileNames()) {
if (rootFile.toLowerCase() === lowerFileName) {
return true;
}
}
return false;
}
}, host.getCompilationSettings(), vueCompilerOptions);
const language = (0, typescript_1.createLanguage)(ts, ts.sys, [vueLanguagePlugin], configFileName, host, {

@@ -116,0 +135,0 @@ fileIdToFileName: id => id,

10

package.json
{
"name": "vue-component-meta",
"version": "2.0.4",
"version": "2.0.5",
"license": "MIT",

@@ -15,6 +15,6 @@ "files": [

"dependencies": {
"@volar/typescript": "~2.1.0",
"@vue/language-core": "2.0.4",
"@volar/typescript": "~2.1.1",
"@vue/language-core": "2.0.5",
"path-browserify": "^1.0.1",
"vue-component-type-helpers": "2.0.4"
"vue-component-type-helpers": "2.0.5"
},

@@ -33,3 +33,3 @@ "peerDependencies": {

},
"gitHead": "241300968fd3084c7c09139d05691a51a7800fdc"
"gitHead": "62b4fcb0d3f7153b5b2f5571af32f519117d8466"
}
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