@jdeighan/env 5.1.13 → 6.0.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jdeighan/env",
3
3
  "type": "module",
4
- "version": "5.1.13",
4
+ "version": "6.0.3",
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": "^3.0.12",
35
- "@jdeighan/string-input": "^6.0.12",
34
+ "@jdeighan/coffee-utils": "^4.0.2",
35
+ "@jdeighan/string-input": "^7.0.2",
36
36
  "coffeescript": "^2.6.1",
37
37
  "cross-env": "^7.0.3"
38
38
  }
@@ -9,7 +9,7 @@ import {
9
9
  import {log} from '@jdeighan/coffee-utils/log'
10
10
  import {debug} from '@jdeighan/coffee-utils/debug'
11
11
  import {slurp, pathTo, mkpath} from '@jdeighan/coffee-utils/fs'
12
- import {hEnvLib, hEnvLibCallbacks} from '@jdeighan/coffee-utils/envlib'
12
+ import {hPrivEnv, hPrivEnvCallbacks} from '@jdeighan/coffee-utils/privenv'
13
13
  import {PLLParser} from '@jdeighan/string-input'
14
14
 
15
15
  hDefCallbacks = {
@@ -312,16 +312,16 @@ export loadEnvFrom = (searchDir, rootName='DIR_ROOT', hOptions={}) ->
312
312
 
313
313
  # ---------------------------------------------------------------------------
314
314
  # Instead of loading into process.env,
315
- # this loads into hEnvLib from '@jdeighan/coffee-utils/envlib'
315
+ # this loads into hPrivEnv from '@jdeighan/coffee-utils/privenv'
316
316
 
317
- export loadEnvLibFrom = (searchDir, rootName='DIR_ROOT', hInit=undef) ->
317
+ export loadPrivEnvFrom = (searchDir, rootName='DIR_ROOT', hInit=undef) ->
318
318
 
319
- hEnvLibCallbacks.clearAll()
319
+ hPrivEnvCallbacks.clearAll()
320
320
 
321
321
  # --- Load any vars found in hInit
322
322
  if hInit?
323
323
  for name,value of hInit
324
- hEnvLibCallbacks.setVar name, value
324
+ hPrivEnvCallbacks.setVar name, value
325
325
 
326
- loadEnvFrom(searchDir, rootName, {hCallbacks: hEnvLibCallbacks})
326
+ loadEnvFrom(searchDir, rootName, {hCallbacks: hPrivEnvCallbacks})
327
327
  return
@@ -38,9 +38,9 @@ import {
38
38
  } from '@jdeighan/coffee-utils/fs';
39
39
 
40
40
  import {
41
- hEnvLib,
42
- hEnvLibCallbacks
43
- } from '@jdeighan/coffee-utils/envlib';
41
+ hPrivEnv,
42
+ hPrivEnvCallbacks
43
+ } from '@jdeighan/coffee-utils/privenv';
44
44
 
45
45
  import {
46
46
  PLLParser
@@ -333,18 +333,18 @@ export var loadEnvFrom = function(searchDir, rootName = 'DIR_ROOT', hOptions = {
333
333
 
334
334
  // ---------------------------------------------------------------------------
335
335
  // Instead of loading into process.env,
336
- // this loads into hEnvLib from '@jdeighan/coffee-utils/envlib'
337
- export var loadEnvLibFrom = function(searchDir, rootName = 'DIR_ROOT', hInit = undef) {
336
+ // this loads into hPrivEnv from '@jdeighan/coffee-utils/privenv'
337
+ export var loadPrivEnvFrom = function(searchDir, rootName = 'DIR_ROOT', hInit = undef) {
338
338
  var name, value;
339
- hEnvLibCallbacks.clearAll();
339
+ hPrivEnvCallbacks.clearAll();
340
340
  // --- Load any vars found in hInit
341
341
  if (hInit != null) {
342
342
  for (name in hInit) {
343
343
  value = hInit[name];
344
- hEnvLibCallbacks.setVar(name, value);
344
+ hPrivEnvCallbacks.setVar(name, value);
345
345
  }
346
346
  }
347
347
  loadEnvFrom(searchDir, rootName, {
348
- hCallbacks: hEnvLibCallbacks
348
+ hCallbacks: hPrivEnvCallbacks
349
349
  });
350
350
  };