dotenv-defaults 2.0.0 → 2.0.1

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
@@ -5,7 +5,7 @@ A dotenv system that supports defaults
5
5
  ### Status
6
6
 
7
7
  ![npm](https://img.shields.io/npm/v/dotenv-defaults.svg)
8
- [![Greenkeeper badge](https://badges.greenkeeper.io/mrsteele/dotenv-defaults.svg)](https://greenkeeper.io/)
8
+ [![dependabot badge](https://badgen.net/dependabot/mrsteele/dotenv-defaults?icon=dependabot)](https://dependabot.com/)
9
9
 
10
10
  ### Installation
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotenv-defaults",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "dotenv... but with defaults!",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "jest": "^25.0.0",
38
- "standard": "^13.0.1"
38
+ "standard": "^14.3.4"
39
39
  },
40
40
  "jest": {
41
41
  "coverageDirectory": "./coverage/",
package/src/index.test.js CHANGED
@@ -50,12 +50,12 @@ describe('dotenv-defaults', () => {
50
50
  })
51
51
 
52
52
  test('should read variables', () => {
53
- expect(Module.parse(`TEST=hello`)).toEqual({ TEST: 'hello' })
53
+ expect(Module.parse('TEST=hello')).toEqual({ TEST: 'hello' })
54
54
  })
55
55
 
56
56
  test('should include defaults', () => {
57
- const src = `TEST=hello`
58
- const defaults = `TEST2=goodbye`
57
+ const src = 'TEST=hello'
58
+ const defaults = 'TEST2=goodbye'
59
59
  expect(Module.parse(src, defaults)).toEqual({
60
60
  TEST: 'hello',
61
61
  TEST2: 'goodbye'
@@ -63,8 +63,8 @@ describe('dotenv-defaults', () => {
63
63
  })
64
64
 
65
65
  test('should not override defaults', () => {
66
- const src = `TEST=hello`
67
- const defaults = `TEST=goodbye`
66
+ const src = 'TEST=hello'
67
+ const defaults = 'TEST=goodbye'
68
68
  expect(Module.parse(src, defaults)).toEqual({ TEST: 'hello' })
69
69
  })
70
70
  })