@vuedx/projectconfig
Advanced tools
Comparing version 0.7.2-next-1646032139.0 to 0.7.2-next-1646814663.0
@@ -72,4 +72,3 @@ 'use strict'; | ||
const add = (name, source) => { | ||
var _a; | ||
const sources = (_a = components[name]) !== null && _a !== void 0 ? _a : (components[name] = []); | ||
const sources = components[name] ?? (components[name] = []); | ||
if (sources.some((item) => item.moduleName === source.moduleName && | ||
@@ -105,4 +104,3 @@ item.exportName === source.exportName)) { | ||
const add = (name, source) => { | ||
var _a; | ||
const sources = (_a = directives[name]) !== null && _a !== void 0 ? _a : (directives[name] = []); | ||
const sources = directives[name] ?? (directives[name] = []); | ||
if (sources.some((item) => item.moduleName === source.moduleName && | ||
@@ -178,5 +176,5 @@ item.exportName === source.exportName)) { | ||
} | ||
catch (error) { | ||
console.error(error); | ||
// FIXME: Store error for diagnostics usage. | ||
catch (e) { | ||
const error = e; | ||
console.error(`[VueDX] (ProjectConfig) ${error.message} ${error.stack ?? ''}`); | ||
} | ||
@@ -197,5 +195,5 @@ } | ||
} | ||
catch (error) { | ||
console.error(error); | ||
// FIXME: Store error for diagnostics usage. | ||
catch (e) { | ||
const error = e; | ||
console.error(`[VueDX] (ProjectConfig) ${error.message} ${error.stack ?? ''}`); | ||
} | ||
@@ -215,3 +213,10 @@ const vueVersion = this._dependencies['vue']; | ||
if (this.fs.fileExists(fileName)) { | ||
this._dependencies[packageName] = JSON.parse(fileName).version; | ||
try { | ||
this._dependencies[packageName] = JSON.parse(this.fs.readFile(fileName) ?? '{}').version; | ||
} | ||
catch (e) { | ||
const error = e; | ||
console.error(`[VueDX] (ProjectConfig) ${error.message} in ${fileName} ${error.stack ?? ''}`); | ||
this._dependencies[packageName] = '0.0.0'; | ||
} | ||
} | ||
@@ -218,0 +223,0 @@ }); |
{ | ||
"name": "@vuedx/projectconfig", | ||
"version": "0.7.2-next-1646032139.0", | ||
"version": "0.7.2-next-1646814663.0", | ||
"description": "TypeScript plugin for Vue", | ||
@@ -36,5 +36,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@vuedx/shared": "0.7.4-next-1646032139.0", | ||
"@vuedx/shared": "0.7.4-next-1646814663.0", | ||
"json5": "^2.2.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
40378
653
+ Added@vuedx/shared@0.7.4-next-1646814663.0(transitive)
- Removed@vuedx/shared@0.7.4-next-1646032139.0(transitive)