@dbcube/core 4.0.3 → 4.0.4
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/dist/index.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -653,7 +653,12 @@ var Engine = class {
|
|
|
653
653
|
const configFilePath = import_path.default.resolve(process.cwd(), "dbcube.config.js");
|
|
654
654
|
const requireUrl = typeof __filename !== "undefined" ? __filename : process.cwd();
|
|
655
655
|
const require2 = (0, import_module.createRequire)(requireUrl);
|
|
656
|
-
|
|
656
|
+
if (require2.cache && require2.resolve) {
|
|
657
|
+
try {
|
|
658
|
+
delete require2.cache[require2.resolve(configFilePath)];
|
|
659
|
+
} catch (e) {
|
|
660
|
+
}
|
|
661
|
+
}
|
|
657
662
|
const configModule = require2(configFilePath);
|
|
658
663
|
const configFn = configModule.default || configModule;
|
|
659
664
|
if (typeof configFn === "function") {
|
|
@@ -857,7 +862,12 @@ var QueryEngine = class {
|
|
|
857
862
|
const configFilePath = import_path2.default.resolve(process.cwd(), "dbcube.config.js");
|
|
858
863
|
const requireUrl = typeof __filename !== "undefined" ? __filename : process.cwd();
|
|
859
864
|
const require2 = (0, import_module2.createRequire)(requireUrl);
|
|
860
|
-
|
|
865
|
+
if (require2.cache && require2.resolve) {
|
|
866
|
+
try {
|
|
867
|
+
delete require2.cache[require2.resolve(configFilePath)];
|
|
868
|
+
} catch (e) {
|
|
869
|
+
}
|
|
870
|
+
}
|
|
861
871
|
const configModule = require2(configFilePath);
|
|
862
872
|
const configFn = configModule.default || configModule;
|
|
863
873
|
if (typeof configFn === "function") {
|