@art-ws/common 2.0.14 → 2.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,8 +30,9 @@ export function saveJsonableFile(obj, filename) {
|
|
30
30
|
}
|
31
31
|
export async function loadJsonableFile(filename) {
|
32
32
|
if (isJsFile(filename)) {
|
33
|
-
|
34
|
-
|
33
|
+
// https://github.com/vitejs/vite/issues/14850#issuecomment-1791534118
|
34
|
+
const jsModule = await import(/* @vite-ignore */ filename);
|
35
|
+
return jsModule.default || jsModule;
|
35
36
|
}
|
36
37
|
else if (isYamlFile(filename)) {
|
37
38
|
return loadAndParseFile(filename, parseYaml);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@art-ws/common",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.16",
|
4
4
|
"description": "common",
|
5
5
|
"license": "UNLICENSED",
|
6
6
|
"type": "module",
|
@@ -20,7 +20,7 @@
|
|
20
20
|
"reflect-metadata": "^0.2.2",
|
21
21
|
"rxjs": "^7.8.2",
|
22
22
|
"tslib": "^2.8.1",
|
23
|
-
"@art-ws/slf": "2.0.
|
23
|
+
"@art-ws/slf": "2.0.9"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
26
|
"@types/bluebird": "^3.5.42",
|