@heliyos/heliyos-api-core 1.0.15 → 1.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.
Files changed (2) hide show
  1. package/dist/mongoose.js +3 -3
  2. package/package.json +1 -1
package/dist/mongoose.js CHANGED
@@ -98,10 +98,10 @@ const mongooseConnected = () => __awaiter(void 0, void 0, void 0, function* () {
98
98
  }
99
99
  let mongoUrl;
100
100
  const nodeEnv = process.env.NODE_ENV;
101
- if (nodeEnv === "local" || nodeEnv === "development") {
102
- mongoUrl = process.env.MONGO_DATABASE_URL;
101
+ if (nodeEnv === "local") {
102
+ mongoUrl = process.env.MONGO_DATABASE_URL || "";
103
103
  // Add logging to debug URL
104
- logger_1.logger.info(`Connecting to MongoDB URL: ${mongoUrl.replace(/\/\/[^@]*@/, "//****:****@")}`);
104
+ logger_1.logger.info(`Connecting to MongoDB URL: ${mongoUrl === null || mongoUrl === void 0 ? void 0 : mongoUrl.replace(/\/\/[^@]*@/, "//****:****@")}`);
105
105
  }
106
106
  else if (["development", "production"].includes(nodeEnv)) {
107
107
  const secrets = yield (0, ssm_1.getSecretsManagerSecret)(process.env.ENV_SECRET_NAME);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heliyos/heliyos-api-core",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Heliyos's core api functions and middlewares. Its a private package hosted on npm.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {