Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ahippler committed May 17, 2021
1 parent 41e8c4a commit 465625a
Show file tree
Hide file tree
Showing 7 changed files with 3,952 additions and 4,296 deletions.
8,220 changes: 3,938 additions & 4,282 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"convict-format-with-validator": "file:packages/convict-format-with-validator",
"coveralls": "^3.1.0",
"deep-object-diff": "^1.1.0",
"eslint": "^7.0.0",
"jest": "^26.0.1",
"js-yaml": "^3.13.1",
"json5": "^2.1.3",
"lerna": "^3.20.2",
"eslint": "^7.26.0",
"jest": "^26.6.3",
"js-yaml": "^4.1.0",
"json5": "^2.2.0",
"lerna": "^4.0.0",
"toml": "^3.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/convict-format-with-moment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"src"
],
"dependencies": {
"moment": "^2.24.0"
"moment": "^2.29.1"
}
}
2 changes: 1 addition & 1 deletion packages/convict-format-with-validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"src"
],
"dependencies": {
"validator": "^11.1.0"
"validator": "^13.6.0"
}
}
4 changes: 2 additions & 2 deletions packages/convict/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,11 @@ For this specify the corresponding parsers with the associated file extensions.

```javascript
convict.addParser({ extension: 'toml', parse: toml.parse });
convict.addParser({ extension: ['yml', 'yaml'], parse: yaml.safeLoad });
convict.addParser({ extension: ['yml', 'yaml'], parse: yaml.load });
convict.addParser([
{ extension: 'json', parse: JSON.parse },
{ extension: 'json5', parse: json5.parse },
{ extension: ['yml', 'yaml'], parse: yaml.safeLoad },
{ extension: ['yml', 'yaml'], parse: yaml.load },
{ extension: 'toml', parse: toml.parse }
]);

Expand Down
2 changes: 1 addition & 1 deletion packages/convict/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
],
"dependencies": {
"lodash.clonedeep": "^4.5.0",
"yargs-parser": "^18.1.3"
"yargs-parser": "^20.2.7"
}
}
8 changes: 4 additions & 4 deletions packages/convict/test/loadFile.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ describe('convict', function() {
convict.addParser({extension: 'json', parse: JSON.parse})
}).not.toThrow()
expect(function() {
convict.addParser({extension: ['yml', 'yaml'], parse: yaml.safeLoad})
convict.addParser({extension: ['yml', 'yaml'], parse: yaml.load})
}).not.toThrow()
})

test('must not throw on valid array of parsers', function() {
expect(function() {
convict.addParser([
{extension: 'json', parse: JSON.parse},
{extension: ['yml', 'yaml'], parse: yaml.safeLoad}
{extension: ['yml', 'yaml'], parse: yaml.load}
])
}).not.toThrow()
})
Expand Down Expand Up @@ -117,7 +117,7 @@ describe('convict', function() {
})

test('must work with custom yaml parser', function() {
convict.addParser({extension: ['yml', 'yaml'], parse: yaml.safeLoad})
convict.addParser({extension: ['yml', 'yaml'], parse: yaml.load})

const conf = convict(schema)
conf.loadFile(path.join(__dirname, 'cases/formats/data.yaml'))
Expand Down Expand Up @@ -153,7 +153,7 @@ describe('convict', function() {
})

test('must not break when parsing an empty file', function() {
convict.addParser({extension: ['yml', 'yaml'], parse: yaml.safeLoad})
convict.addParser({extension: ['yml', 'yaml'], parse: yaml.load})

const conf = convict(schema)
conf.loadFile(path.join(__dirname, 'cases/formats/data.empty.yaml'))
Expand Down

0 comments on commit 465625a

Please sign in to comment.