corebasic 1.0.41 → 1.0.42
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.
- package/libs/utils.js +1 -1
- package/package.json +1 -1
package/libs/utils.js
CHANGED
|
@@ -144,7 +144,7 @@ export function sum(array) { // Eg: sum([10,20,undefined, NaN, 40])
|
|
|
144
144
|
export async function fileToJson(url) {
|
|
145
145
|
let {createRequire} = await import('module')
|
|
146
146
|
const require = createRequire(url);
|
|
147
|
-
return require(url);
|
|
147
|
+
return require(url.replace('file://',''));
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
// ----------------
|