config 3.3.4 → 3.3.6

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/History.md CHANGED
@@ -1,3 +1,13 @@
1
+ 3.3.6 / 2021-03-08
2
+ ==================
3
+
4
+ * Added publishConfig element to package.json to prevent publishing to the wrong repository - @lorenwest
5
+
6
+ 3.3.5 / 2021-03-05
7
+ ==================
8
+
9
+ * FIX [#628](https://github.com/lorenwest/node-config/issues/628) Uncaught ReferenceError: node_env_var_name is not defined @prnake
10
+
1
11
  3.3.4 / 2021-02-26
2
12
  ==================
3
13
 
package/lib/config.js CHANGED
@@ -542,7 +542,7 @@ util.loadFileConfigs = function(configDir, options) {
542
542
  var node_env_var_names = ['NODE_CONFIG_ENV', 'NODE_ENV'];
543
543
 
544
544
  // Loop through the variables to try and set environment
545
- for (node_env_var_name of node_env_var_names) {
545
+ for (const node_env_var_name of node_env_var_names) {
546
546
  NODE_ENV = util.initParam(node_env_var_name);
547
547
  if (!!NODE_ENV) {
548
548
  NODE_ENV_VAR_NAME = node_env_var_name;
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "config",
3
- "version": "3.3.4",
3
+ "version": "3.3.6",
4
4
  "main": "./lib/config.js",
5
5
  "description": "Configuration control for production node deployments",
6
6
  "author": "Loren West <open_source@lorenwest.com>",
7
7
  "homepage": "http://lorenwest.github.com/node-config",
8
+ "publishConfig": {
9
+ "registry": "https://registry.npmjs.org/"
10
+ },
8
11
  "keywords": [
9
12
  "conf",
10
13
  "config",