Skip to content

Commit 76f0f98

Browse files
authored
Fix typo (#375)
1 parent a3eee35 commit 76f0f98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/convict/MIGRATING_FROM_CONVICT_5_TO_6.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ New post-`[email protected]` code:
2222
const convict = require('convict')
2323
const convict_format_with_validator = require('convict-format-with-validator')
2424
const convict_format_with_moment = require('convict-format-with-moment')
25-
const json5 = require('json5')
25+
const JSON5 = require('json5')
2626

2727
// Use this only if you use the "email", "ipaddress" or "url" format
2828
convict.addFormats(convict_format_with_validator)
@@ -32,7 +32,7 @@ convict.addFormats(convict_format_with_moment)
3232

3333
// Use this only if you have a .json configuration file in JSON5 format
3434
// (i.e. with comments, etc.).
35-
convict.addParser({extension: 'json', parse: JSON.parse})
35+
convict.addParser({extension: 'json', parse: JSON5.parse})
3636

3737
const config = convict(config_schema)
3838
```

0 commit comments

Comments
 (0)