From 540c4d12ef71bac4641a60ea6870d72bc1e11d0f Mon Sep 17 00:00:00 2001 From: Igor Strebezhev Date: Sun, 10 May 2020 01:30:15 +0300 Subject: [PATCH] Fix typo --- packages/convict/MIGRATING_FROM_CONVICT_5_TO_6.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/convict/MIGRATING_FROM_CONVICT_5_TO_6.md b/packages/convict/MIGRATING_FROM_CONVICT_5_TO_6.md index 4c9edde..b92639c 100644 --- a/packages/convict/MIGRATING_FROM_CONVICT_5_TO_6.md +++ b/packages/convict/MIGRATING_FROM_CONVICT_5_TO_6.md @@ -22,7 +22,7 @@ New post-`convict@6.0.0` code: const convict = require('convict') const convict_format_with_validator = require('convict-format-with-validator') const convict_format_with_moment = require('convict-format-with-moment') -const json5 = require('json5') +const JSON5 = require('json5') // Use this only if you use the "email", "ipaddress" or "url" format convict.addFormats(convict_format_with_validator) @@ -32,7 +32,7 @@ convict.addFormats(convict_format_with_moment) // Use this only if you have a .json configuration file in JSON5 format // (i.e. with comments, etc.). -convict.addParser({extension: 'json', parse: JSON.parse}) +convict.addParser({extension: 'json', parse: JSON5.parse}) const config = convict(config_schema) ```