qcobjects 2.5.117-beta → 2.5.119-beta
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/VERSION +1 -1
- package/build/componentLoader.js +3 -2
- package/build-esbuild.js +1 -1
- package/package.json +1 -1
- package/public/browser/QCObjects.js +2 -2
- package/public/browser/QCObjects.js.map +2 -2
- package/public/cjs/QCObjects.cjs +2 -2
- package/public/cjs/QCObjects.cjs.map +2 -2
- package/public/esm/QCObjects.mjs +2 -2
- package/public/esm/QCObjects.mjs.map +2 -2
- package/src/componentLoader.ts +4 -3
package/src/componentLoader.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { asyncLoad } from "./asyncLoad";
|
|
|
3
3
|
import { ComplexStorageCache } from "./ComplexStorageCache";
|
|
4
4
|
import { _DataStringify } from "./DataStringify";
|
|
5
5
|
import { logger } from "./Logger";
|
|
6
|
-
import {
|
|
6
|
+
import { is_phonegap, isBrowser } from "./platform";
|
|
7
7
|
import { _top } from "./top";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -188,9 +188,10 @@ export const componentLoader = function (component: IComponent, _async: boolean)
|
|
|
188
188
|
} else {
|
|
189
189
|
logger.debug("Loading the component as a local file in server...");
|
|
190
190
|
const _directLoad = function () {
|
|
191
|
-
|
|
191
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
192
|
+
const {readFile} = require("node:fs");
|
|
192
193
|
logger.debug("SENDING THE NORMAL REQUEST ");
|
|
193
|
-
|
|
194
|
+
readFile(component.url, _componentLoaded);
|
|
194
195
|
};
|
|
195
196
|
|
|
196
197
|
if (component.cached) {
|