forked from mozilla/node-convict
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously nested constructs containing dot-paths as keys would lead to a crash like "cannot find configuration param 'dot.path'". With some careful hacking around paths we can at least enable this use-case for dynamic objects - it is completely untested/unsupported for regular overlaying. Previous PR that was not merged: mozilla#315
- Loading branch information
1 parent
95f4ab3
commit 6dd05c8
Showing
8 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
"packages": [ | ||
"packages/*" | ||
], | ||
"version": "6.0.0" | ||
"version": "6.0.1-alpha.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"author": "Lloyd Hilaiel <[email protected]> (http://lloyd.io)", | ||
"name": "convict", | ||
"name": "@atlassian/convict", | ||
"description": "Featureful configuration management library for Node.js (nested structure, schema validation, etc.)", | ||
"keywords": [ | ||
"configuration", | ||
|
@@ -17,7 +17,7 @@ | |
"yaml", | ||
"toml" | ||
], | ||
"version": "6.0.0", | ||
"version": "6.0.1-alpha.1", | ||
"license": "Apache-2.0", | ||
"homepage": "https://github.com/mozilla/node-convict", | ||
"repository": { | ||
|
@@ -35,5 +35,6 @@ | |
"dependencies": { | ||
"lodash.clonedeep": "^4.5.0", | ||
"yargs-parser": "^18.1.3" | ||
} | ||
}, | ||
"gitHead": "d345d374498df65397206426d3753fcf5f9701e2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict' | ||
|
||
exports.conf = { | ||
dynamic: {format: Object, default: null} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"dynamic": { | ||
"dot.path": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"dynamic": { | ||
"dot.path": {} | ||
} | ||
} |