@budibase/backend-core 3.2.6 → 3.2.7

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 CHANGED
@@ -64207,6 +64207,11 @@ function isJest() {
64207
64207
  function isDev() {
64208
64208
  return process.env.NODE_ENV !== "production";
64209
64209
  }
64210
+ function parseIntSafe(number) {
64211
+ if (number) {
64212
+ return parseInt(number);
64213
+ }
64214
+ }
64210
64215
  var LOADED = false;
64211
64216
  if (!LOADED && isDev() && !isTest()) {
64212
64217
  require("dotenv").config();
@@ -64376,7 +64381,8 @@ var environment = {
64376
64381
  BB_ADMIN_USER_PASSWORD: process.env.BB_ADMIN_USER_PASSWORD,
64377
64382
  OPENAI_API_KEY: process.env.OPENAI_API_KEY,
64378
64383
  MIN_VERSION_WITHOUT_POWER_ROLE: process.env.MIN_VERSION_WITHOUT_POWER_ROLE || "3.0.0",
64379
- DISABLE_CONTENT_SECURITY_POLICY: process.env.DISABLE_CONTENT_SECURITY_POLICY
64384
+ DISABLE_CONTENT_SECURITY_POLICY: process.env.DISABLE_CONTENT_SECURITY_POLICY,
64385
+ BSON_BUFFER_SIZE: parseIntSafe(process.env.BSON_BUFFER_SIZE)
64380
64386
  };
64381
64387
  function setEnv(newEnvVars) {
64382
64388
  const oldEnv = (0, import_lodash4.cloneDeep)(environment);