configorama 0.9.3 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/main.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "configorama",
3
- "version": "0.9.3",
3
+ "version": "0.9.5",
4
4
  "description": "Variable support for configuration files",
5
5
  "main": "src/index.js",
6
6
  "types": "index.d.ts",
package/src/main.js CHANGED
@@ -1255,8 +1255,8 @@ class Configorama {
1255
1255
  Config error:\n
1256
1256
  Path "${configValuePath}" resolved to "undefined".\n
1257
1257
  Verify the ${varDisplay} in config at "${configValuePath}".\n
1258
- ${leaf ? `See:\n ${leaf.originalValuePath}: ${leaf.originalSource} ` : ''}
1259
- ${leaf && leaf.isFileRef ? `\n The error could be deeper in the referenced file at ${configValuePath.replace(leaf.originalValuePath, '').replace(/^\./, '')} key.\n` : ''}`
1258
+ ${leaf ? `See:\n ${configValuePath}: ${leaf.originalSource} ` : ''}
1259
+ ${leaf && leaf.isFileRef ? `\n The error could be deeper in the referenced file at ${configValuePath.replace(leaf.originalValuePath || configValuePath, '').replace(/^\./, '')} key.\n` : ''}`
1260
1260
  throw new Error(errorMessage)
1261
1261
  }
1262
1262
  if (typeof rawValue === 'string') {