dotenv-webpack 1.5.0 → 1.5.4

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/README.md CHANGED
@@ -6,7 +6,7 @@ A secure webpack plugin that supports dotenv and other environment variables and
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/dotenv-webpack.svg?maxAge=0&style=flat)](https://www.npmjs.com/package/dotenv-webpack)
8
8
  [![Travis](https://travis-ci.org/mrsteele/dotenv-webpack.svg?branch=master)](https://travis-ci.org/mrsteele/dotenv-webpack)
9
- [![Coverage Status](https://coveralls.io/repos/github/mrsteele/dotenv-webpack/badge.svg?branch=master)](https://coveralls.io/github/mrsteele/dotenv-webpack?branch=master)
9
+ [![codecov](https://codecov.io/gh/mrsteele/dotenv-webpack/branch/master/graph/badge.svg)](https://codecov.io/gh/mrsteele/dotenv-webpack)
10
10
  [![Dependency Status](https://david-dm.org/mrsteele/dotenv-webpack.svg)](https://david-dm.org/mrsteele/dotenv-webpack)
11
11
  [![devDependency Status](https://david-dm.org/mrsteele/dotenv-webpack/dev-status.svg)](https://david-dm.org/mrsteele/dotenv-webpack?type=dev)
12
12
  [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
@@ -88,6 +88,7 @@ Use the following properties to configure your instance.
88
88
  * **path** (`'./.env'`) - The path to your environment variables.
89
89
  * **safe** (`false`) - If false ignore safe-mode, if true load `'./.env.example'`, if a string load that file as the sample.
90
90
  * **systemvars** (`false`) - Set to true if you would rather load all system variables as well (useful for CI purposes).
91
+ * **silent** (`false`) - If true, all warnings will be surpressed.
91
92
 
92
93
  ### LICENSE
93
94
 
package/dist/index.js CHANGED
@@ -69,7 +69,7 @@ var Dotenv = function () {
69
69
  }
70
70
 
71
71
  Object.keys(blueprint).map(function (key) {
72
- var value = env[key];
72
+ var value = vars.hasOwnProperty(key) ? vars[key] : env[key];
73
73
  if (!value && options.safe) {
74
74
  throw new Error('Missing environment variable: ' + key);
75
75
  } else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dotenv-webpack",
3
3
  "description": "A simple webpack plugin to support dotenv.",
4
- "version": "1.5.0",
4
+ "version": "1.5.4",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "lint": "standard",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "homepage": "https://github.com/mrsteele/dotenv-webpack#readme",
41
41
  "peerDependencies": {
42
- "webpack": ">=1.14.0"
42
+ "webpack": "^1 || ^2 || ^3"
43
43
  },
44
44
  "dependencies": {
45
45
  "dotenv": "^4.0.0"
@@ -50,17 +50,17 @@
50
50
  "babel-plugin-transform-object-assign": "^6.22.0",
51
51
  "babel-preset-es2015": "^6.24.1",
52
52
  "babel-register": "^6.24.1",
53
- "chai": "^3.5.0",
53
+ "chai": "^4.0.0",
54
54
  "esdoc": "^0.5.2",
55
55
  "ghooks": "^2.0.0",
56
56
  "mocha": "^3.4.1",
57
- "nyc": "^10.3.2",
57
+ "nyc": "^11.0.3",
58
58
  "rimraf": "^2.6.1",
59
59
  "semantic-release": "^6.3.6",
60
60
  "sinon": "^2.3.2",
61
61
  "standard": "^10.0.2",
62
62
  "validate-commit-msg": "^2.12.1",
63
- "webpack": "^2.5.1"
63
+ "webpack": "^3.1.0"
64
64
  },
65
65
  "files": [
66
66
  "dist",