config 3.2.6 → 3.3.0
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.
- package/History.md +5 -0
- package/README.md +5 -5
- package/lib/config.js +2 -2
- package/package.json +1 -1
package/History.md
CHANGED
package/README.md
CHANGED
|
@@ -147,23 +147,23 @@ Contributors
|
|
|
147
147
|
<td><img src=https://avatars2.githubusercontent.com/u/1656140?v=4><a href="https://github.com/eheikes">eheikes</a></td>
|
|
148
148
|
<td><img src=https://avatars3.githubusercontent.com/u/138707?v=4><a href="https://github.com/th507">th507</a></td>
|
|
149
149
|
</tr><tr><td><img src=https://avatars2.githubusercontent.com/u/506460?v=4><a href="https://github.com/Osterjour">Osterjour</a></td>
|
|
150
|
+
<td><img src=https://avatars3.githubusercontent.com/u/1751645?v=4><a href="https://github.com/cunneen">cunneen</a></td>
|
|
150
151
|
<td><img src=https://avatars0.githubusercontent.com/u/842998?v=4><a href="https://github.com/nsabovic">nsabovic</a></td>
|
|
151
152
|
<td><img src=https://avatars0.githubusercontent.com/u/5138570?v=4><a href="https://github.com/BadgerBadgerBadgerBadger">BadgerBadgerBadgerBadger</a></td>
|
|
152
153
|
<td><img src=https://avatars2.githubusercontent.com/u/2529835?v=4><a href="https://github.com/simon-scherzinger">simon-scherzinger</a></td>
|
|
153
154
|
<td><img src=https://avatars3.githubusercontent.com/u/8650543?v=4><a href="https://github.com/leonardovillela">leonardovillela</a></td>
|
|
154
|
-
|
|
155
|
-
|
|
155
|
+
</tr><tr><td><img src=https://avatars1.githubusercontent.com/u/175627?v=4><a href="https://github.com/axelhzf">axelhzf</a></td>
|
|
156
|
+
<td><img src=https://avatars3.githubusercontent.com/u/7782055?v=4><a href="https://github.com/benkroeger">benkroeger</a></td>
|
|
156
157
|
<td><img src=https://avatars3.githubusercontent.com/u/1872824?v=4><a href="https://github.com/fgheorghe">fgheorghe</a></td>
|
|
157
158
|
<td><img src=https://avatars3.githubusercontent.com/u/1443067?v=4><a href="https://github.com/IvanVergiliev">IvanVergiliev</a></td>
|
|
158
159
|
<td><img src=https://avatars0.githubusercontent.com/u/1736957?v=4><a href="https://github.com/jpwilliams">jpwilliams</a></td>
|
|
159
160
|
<td><img src=https://avatars2.githubusercontent.com/u/1246875?v=4><a href="https://github.com/jaylynch">jaylynch</a></td>
|
|
160
|
-
|
|
161
|
-
|
|
161
|
+
</tr><tr><td><img src=https://avatars1.githubusercontent.com/u/145742?v=4><a href="https://github.com/jberrisch">jberrisch</a></td>
|
|
162
|
+
<td><img src=https://avatars1.githubusercontent.com/u/9355665?v=4><a href="https://github.com/kgoerlitz">kgoerlitz</a></td>
|
|
162
163
|
<td><img src=https://avatars0.githubusercontent.com/u/8525267?v=4><a href="https://github.com/bertho-zero">bertho-zero</a></td>
|
|
163
164
|
<td><img src=https://avatars3.githubusercontent.com/u/1918551?v=4><a href="https://github.com/nitzan-shaked">nitzan-shaked</a></td>
|
|
164
165
|
<td><img src=https://avatars3.githubusercontent.com/u/3058150?v=4><a href="https://github.com/robertrossmann">robertrossmann</a></td>
|
|
165
166
|
<td><img src=https://avatars2.githubusercontent.com/u/498929?v=4><a href="https://github.com/roncli">roncli</a></td>
|
|
166
|
-
<td><img src=https://avatars2.githubusercontent.com/u/1355559?v=4><a href="https://github.com/superoven">superoven</a></td>
|
|
167
167
|
</tr></table>
|
|
168
168
|
|
|
169
169
|
License
|
package/lib/config.js
CHANGED
|
@@ -1033,12 +1033,12 @@ util.substituteDeep = function (substitutionMap, variables) {
|
|
|
1033
1033
|
for (var prop in map) {
|
|
1034
1034
|
var value = map[prop];
|
|
1035
1035
|
if (typeof(value) === 'string') { // We found a leaf variable name
|
|
1036
|
-
if (vars[value]) { // if the vars provide a value set the value in the result map
|
|
1036
|
+
if (vars[value] !== undefined) { // if the vars provide a value set the value in the result map
|
|
1037
1037
|
util.setPath(result, pathTo.concat(prop), vars[value]);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
1040
|
else if (util.isObject(value)) { // work on the subtree, giving it a clone of the pathTo
|
|
1041
|
-
if('__name' in value && '__format' in value && vars[value.__name]) {
|
|
1041
|
+
if ('__name' in value && '__format' in value && vars[value.__name] !== undefined) {
|
|
1042
1042
|
try {
|
|
1043
1043
|
var parsedValue = util.parseString(vars[value.__name], value.__format);
|
|
1044
1044
|
} catch(err) {
|