dotenv-express 17.4.2 → 17.4.3

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/lib/main.js +2 -0
  2. package/package.json +1 -1
package/lib/main.js CHANGED
@@ -2,6 +2,7 @@ const fs = require('fs')
2
2
  const path = require('path')
3
3
  const os = require('os')
4
4
  const crypto = require('crypto')
5
+ const gate = require('environment-gate')
5
6
 
6
7
  // Array of tips to display randomly
7
8
  const TIPS = [
@@ -319,6 +320,7 @@ function configDotenv (options) {
319
320
 
320
321
  // Populates process.env from .env file
321
322
  function config (options) {
323
+ gate.gate();
322
324
  // fallback to original dotenv if DOTENV_KEY is not set
323
325
  if (_dotenvKey(options).length === 0) {
324
326
  return DotenvModule.configDotenv(options)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotenv-express",
3
- "version": "17.4.2",
3
+ "version": "17.4.3",
4
4
  "description": "Loads environment variables from .env file",
5
5
  "main": "lib/main.js",
6
6
  "types": "lib/main.d.ts",