File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2222const convict = require (' convict' )
2323const convict_format_with_validator = require (' convict-format-with-validator' )
2424const 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
2828convict .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
3737const config = convict (config_schema)
3838```
You can’t perform that action at this time.
0 commit comments