@jdeighan/env 8.0.28 → 8.0.32

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jdeighan/env",
3
3
  "type": "module",
4
- "version": "8.0.28",
4
+ "version": "8.0.32",
5
5
  "description": "enhanced syntax for .env files",
6
6
  "main": "./src/EnvLoaderEx.js",
7
7
  "exports": {
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "homepage": "https://github.com/johndeighan/env#readme",
33
33
  "dependencies": {
34
- "@jdeighan/coffee-utils": "^4.1.16",
35
- "@jdeighan/string-input": "^8.0.40",
34
+ "@jdeighan/coffee-utils": "^4.1.17",
35
+ "@jdeighan/string-input": "^8.0.43",
36
36
  "coffeescript": "^2.6.1",
37
37
  "cross-env": "^7.0.3"
38
38
  }
@@ -299,19 +299,4 @@ export loadEnvFrom = (searchDir, hOptions={}) ->
299
299
  for path in lPaths
300
300
  loadEnvFile(path, hOptions)
301
301
  debug "return from loadEnvFrom()"
302
- return
303
-
304
- # ---------------------------------------------------------------------------
305
- # Load environment
306
-
307
- export loadEnv = (hOptions={}) ->
308
- # --- valid options:
309
- # onefile - load only the first file found
310
- # hCallbacks - getVar, setVar, clearVar, clearAll, names
311
-
312
- debug "enter loadEnv()"
313
- dir = process.env.DIR_ROOT
314
- if dir
315
- loadEnvFrom(dir, hOptions)
316
- else
317
- croak "env var DIR_ROOT not set!"
302
+ return lPaths
@@ -309,20 +309,5 @@ export var loadEnvFrom = function(searchDir, hOptions = {}) {
309
309
  loadEnvFile(path, hOptions);
310
310
  }
311
311
  debug("return from loadEnvFrom()");
312
- };
313
-
314
- // ---------------------------------------------------------------------------
315
- // Load environment
316
- export var loadEnv = function(hOptions = {}) {
317
- var dir;
318
- // --- valid options:
319
- // onefile - load only the first file found
320
- // hCallbacks - getVar, setVar, clearVar, clearAll, names
321
- debug("enter loadEnv()");
322
- dir = process.env.DIR_ROOT;
323
- if (dir) {
324
- return loadEnvFrom(dir, hOptions);
325
- } else {
326
- return croak("env var DIR_ROOT not set!");
327
- }
312
+ return lPaths;
328
313
  };