Skip to content

Commit 11ef47e

Browse files
author
Andreas Hippler
authored
chore: update dependencies (#390)
1 parent 41e8c4a commit 11ef47e

File tree

7 files changed

+3952
-4296
lines changed

7 files changed

+3952
-4296
lines changed

package-lock.json

Lines changed: 3938 additions & 4282 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"convict-format-with-validator": "file:packages/convict-format-with-validator",
1818
"coveralls": "^3.1.0",
1919
"deep-object-diff": "^1.1.0",
20-
"eslint": "^7.0.0",
21-
"jest": "^26.0.1",
22-
"js-yaml": "^3.13.1",
23-
"json5": "^2.1.3",
24-
"lerna": "^3.20.2",
20+
"eslint": "^7.26.0",
21+
"jest": "^26.6.3",
22+
"js-yaml": "^4.1.0",
23+
"json5": "^2.2.0",
24+
"lerna": "^4.0.0",
2525
"toml": "^3.0.0"
2626
}
2727
}

packages/convict-format-with-moment/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
"src"
2626
],
2727
"dependencies": {
28-
"moment": "^2.24.0"
28+
"moment": "^2.29.1"
2929
}
3030
}

packages/convict-format-with-validator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"src"
2727
],
2828
"dependencies": {
29-
"validator": "^11.1.0"
29+
"validator": "^13.6.0"
3030
}
3131
}

packages/convict/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,11 @@ For this specify the corresponding parsers with the associated file extensions.
373373

374374
```javascript
375375
convict.addParser({ extension: 'toml', parse: toml.parse });
376-
convict.addParser({ extension: ['yml', 'yaml'], parse: yaml.safeLoad });
376+
convict.addParser({ extension: ['yml', 'yaml'], parse: yaml.load });
377377
convict.addParser([
378378
{ extension: 'json', parse: JSON.parse },
379379
{ extension: 'json5', parse: json5.parse },
380-
{ extension: ['yml', 'yaml'], parse: yaml.safeLoad },
380+
{ extension: ['yml', 'yaml'], parse: yaml.load },
381381
{ extension: 'toml', parse: toml.parse }
382382
]);
383383

packages/convict/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
],
3535
"dependencies": {
3636
"lodash.clonedeep": "^4.5.0",
37-
"yargs-parser": "^18.1.3"
37+
"yargs-parser": "^20.2.7"
3838
}
3939
}

packages/convict/test/loadFile.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ describe('convict', function() {
1717
convict.addParser({extension: 'json', parse: JSON.parse})
1818
}).not.toThrow()
1919
expect(function() {
20-
convict.addParser({extension: ['yml', 'yaml'], parse: yaml.safeLoad})
20+
convict.addParser({extension: ['yml', 'yaml'], parse: yaml.load})
2121
}).not.toThrow()
2222
})
2323

2424
test('must not throw on valid array of parsers', function() {
2525
expect(function() {
2626
convict.addParser([
2727
{extension: 'json', parse: JSON.parse},
28-
{extension: ['yml', 'yaml'], parse: yaml.safeLoad}
28+
{extension: ['yml', 'yaml'], parse: yaml.load}
2929
])
3030
}).not.toThrow()
3131
})
@@ -117,7 +117,7 @@ describe('convict', function() {
117117
})
118118

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

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

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

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

0 commit comments

Comments
 (0)