Comparing version 1.25.1 to 1.26.1
@@ -0,1 +1,14 @@ | ||
1.26.1 / 2017-05-03 | ||
=================== | ||
* Fix: failed while merging from RegExp @XadillaX | ||
* Chore: reduce package size. @evilebottnawi | ||
1.26.0 / 2017-03-30 | ||
=================== | ||
* Added tests for extendDeep @IvanVergiliev | ||
* Added TypeScript support @cypherq | ||
* Update config.js with correctly cased type def @ScionOfBytes | ||
1.25.1 / 2017-02-01 | ||
@@ -2,0 +15,0 @@ =================== |
@@ -141,3 +141,3 @@ // config.js (c) 2010-2015 Loren West and other contributors | ||
* @param property {string | array[string]} - The property name to get (as an array or '.' delimited string) | ||
* @return value {mixed} - Property value, including undefined if not defined. | ||
* @return value {*} - Property value, including undefined if not defined. | ||
*/ | ||
@@ -171,3 +171,3 @@ var getImpl= function(object, property) { | ||
* @param property {string} - The configuration property to get. Can include '.' sub-properties. | ||
* @return value {mixed} - The property value | ||
* @return value {*} - The property value | ||
*/ | ||
@@ -461,3 +461,3 @@ Config.prototype.get = function(property) { | ||
* @param property {string} - The name of the property to make hidden. | ||
* @param value {mixed} - (optional) Set the property value to this (otherwise leave alone) | ||
* @param value {*} - (optional) Set the property value to this (otherwise leave alone) | ||
* @return object {object} - The original object is returned - for chaining. | ||
@@ -515,3 +515,3 @@ */ | ||
* If not provided, all owned properties of the object are made immutable. | ||
* @param [value] {mixed | [mixed]} - Property value (or array of values) to set | ||
* @param [value] {* | [*]} - Property value (or array of values) to set | ||
* the property to before making immutable. Only used when setting a single | ||
@@ -694,3 +694,3 @@ * property. Retained for backward compatibility. | ||
var extNames = ['js', 'json', 'json5', 'hjson', 'toml', 'coffee', 'iced', 'yaml', 'yml', 'cson', 'properties', 'xml']; | ||
var extNames = ['js', 'ts', 'json', 'json5', 'hjson', 'toml', 'coffee', 'iced', 'yaml', 'yml', 'cson', 'properties', 'xml']; | ||
baseNames.forEach(function(baseName) { | ||
@@ -875,2 +875,14 @@ extNames.forEach(function(extName) { | ||
configObject = require(fullFilename); | ||
} | ||
else if (extension === 'ts') { | ||
require('ts-node').register({ | ||
lazy: true, | ||
compilerOptions: { | ||
allowJs: true, | ||
} | ||
}); | ||
// Because of ES6 modules usage, `default` is treated as named export (like any other) | ||
// Therefore config is a value of `default` key. | ||
configObject = require(fullFilename).default; | ||
} | ||
@@ -1221,3 +1233,3 @@ else if (extension === 'coffee') { | ||
* @param path {array[string]} - Array path to the property | ||
* @param value {mixed} - value to set, ignoring null | ||
* @param value {*} - value to set, ignoring null | ||
*/ | ||
@@ -1464,2 +1476,4 @@ util.setPath = function (object, path, value) { | ||
mergeInto[prop] = mergeFrom[prop]; | ||
} if (mergeFrom[prop] instanceof RegExp) { | ||
mergeInto[prop] = mergeFrom[prop]; | ||
} else if (util.isObject(mergeInto[prop]) && util.isObject(mergeFrom[prop]) && !isDeferredFunc) { | ||
@@ -1577,3 +1591,3 @@ util.extendDeep(mergeInto[prop], mergeFrom[prop], depth - 1); | ||
* @method isObject | ||
* @param arg {MIXED} An argument of any type. | ||
* @param arg {*} An argument of any type. | ||
* @return {boolean} TRUE if the arg is an object, FALSE if not | ||
@@ -1620,4 +1634,4 @@ */ | ||
* @method getCmdLineArg | ||
* @param searchFor {STRING} The argument name to search for | ||
* @return {MIXED} FALSE if the argument was not found, the argument value if found | ||
* @param searchFor {String} The argument name to search for | ||
* @return {*} false if the argument was not found, the argument value if found | ||
*/ | ||
@@ -1646,4 +1660,4 @@ util.getCmdLineArg = function (searchFor) { | ||
* @method getEnv | ||
* @param varName {STRING} The environment variable name | ||
* @return value {String} The value of the environment variable | ||
* @param varName {String} The environment variable name | ||
* @return {String} The value of the environment variable | ||
*/ | ||
@@ -1650,0 +1664,0 @@ util.getEnv = function (varName) { |
{ | ||
"name": "config", | ||
"version": "1.25.1", | ||
"version": "1.26.1", | ||
"main": "./lib/config.js", | ||
@@ -22,5 +22,7 @@ "description": "Configuration control for production node deployments", | ||
"dependencies": { | ||
"json5": "0.4.0" | ||
"json5": "0.4.0", | ||
"os-homedir": "1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^7.0.8", | ||
"coffee-script": ">=1.7.0", | ||
@@ -31,3 +33,6 @@ "cson": "^3.0.1", | ||
"properties": "~1.2.1", | ||
"semver": "5.3.0", | ||
"toml": "^2.0.6", | ||
"ts-node": "^2.1.0", | ||
"typescript": "^2.2.1", | ||
"underscore": "^1.8.3", | ||
@@ -34,0 +39,0 @@ "vows": ">=0.8.1", |
@@ -127,3 +127,3 @@ Configure your Node.js Applications | ||
------------ | ||
<table id="contributors"><tr><td><img src=https://avatars.githubusercontent.com/u/373538?v=3><a href="https://github.com/lorenwest">lorenwest</a></td><td><img src=https://avatars.githubusercontent.com/u/25829?v=3><a href="https://github.com/markstos">markstos</a></td><td><img src=https://avatars.githubusercontent.com/u/447151?v=3><a href="https://github.com/elliotttf">elliotttf</a></td><td><img src=https://avatars.githubusercontent.com/u/66902?v=3><a href="https://github.com/leachiM2k">leachiM2k</a></td><td><img src=https://avatars.githubusercontent.com/u/791137?v=3><a href="https://github.com/josx">josx</a></td><td><img src=https://avatars.githubusercontent.com/u/133277?v=3><a href="https://github.com/enyo">enyo</a></td></tr><tr><td><img src=https://avatars.githubusercontent.com/u/1077378?v=3><a href="https://github.com/arthanzel">arthanzel</a></td><td><img src=https://avatars.githubusercontent.com/u/2675698?v=3><a href="https://github.com/rundef">rundef</a></td><td><img src=https://avatars.githubusercontent.com/u/1656140?v=3><a href="https://github.com/eheikes">eheikes</a></td><td><img src=https://avatars.githubusercontent.com/u/355800?v=3><a href="https://github.com/diversario">diversario</a></td><td><img src=https://avatars.githubusercontent.com/u/138707?v=3><a href="https://github.com/th507">th507</a></td><td><img src=https://avatars.githubusercontent.com/u/506460?v=3><a href="https://github.com/Osterjour">Osterjour</a></td></tr><tr><td><img src=https://avatars.githubusercontent.com/u/842998?v=3><a href="https://github.com/nsabovic">nsabovic</a></td><td><img src=https://avatars.githubusercontent.com/u/2529835?v=3><a href="https://github.com/simon-scherzinger">simon-scherzinger</a></td><td><img src=https://avatars.githubusercontent.com/u/175627?v=3><a href="https://github.com/axelhzf">axelhzf</a></td><td><img src=https://avatars.githubusercontent.com/u/7782055?v=3><a href="https://github.com/benkroeger">benkroeger</a></td><td><img src=https://avatars.githubusercontent.com/u/1246875?v=3><a href="https://github.com/jaylynch">jaylynch</a></td><td><img src=https://avatars.githubusercontent.com/u/145742?v=3><a href="https://github.com/jberrisch">jberrisch</a></td></tr><tr><td><img src=https://avatars.githubusercontent.com/u/1918551?v=3><a href="https://github.com/nitzan-shaked">nitzan-shaked</a></td><td><img src=https://avatars.githubusercontent.com/u/3058150?v=3><a href="https://github.com/Alaneor">Alaneor</a></td><td><img src=https://avatars.githubusercontent.com/u/498929?v=3><a href="https://github.com/roncli">roncli</a></td><td><img src=https://avatars.githubusercontent.com/u/1355559?v=3><a href="https://github.com/superoven">superoven</a></td><td><img src=https://avatars.githubusercontent.com/u/54934?v=3><a href="https://github.com/wmertens">wmertens</a></td><td><img src=https://avatars.githubusercontent.com/u/4425455?v=3><a href="https://github.com/ncuillery">ncuillery</a></td></tr><tr><td><img src=https://avatars.githubusercontent.com/u/618330?v=3><a href="https://github.com/adityabansod">adityabansod</a></td><td><img src=https://avatars.githubusercontent.com/u/270632?v=3><a href="https://github.com/thetalecrafter">thetalecrafter</a></td><td><img src=https://avatars.githubusercontent.com/u/16861?v=3><a href="https://github.com/abh">abh</a></td><td><img src=https://avatars.githubusercontent.com/u/57770?v=3><a href="https://github.com/bertrandom">bertrandom</a></td><td><img src=https://avatars.githubusercontent.com/u/959858?v=3><a href="https://github.com/laktak">laktak</a></td><td><img src=https://avatars.githubusercontent.com/u/157303?v=3><a href="https://github.com/cmcculloh">cmcculloh</a></td></tr></table> | ||
<table id="contributors"><tr><td><img src=https://avatars1.githubusercontent.com/u/373538?v=3><a href="https://github.com/lorenwest">lorenwest</a></td><td><img src=https://avatars2.githubusercontent.com/u/25829?v=3><a href="https://github.com/markstos">markstos</a></td><td><img src=https://avatars0.githubusercontent.com/u/447151?v=3><a href="https://github.com/elliotttf">elliotttf</a></td><td><img src=https://avatars3.githubusercontent.com/u/66902?v=3><a href="https://github.com/leachiM2k">leachiM2k</a></td><td><img src=https://avatars2.githubusercontent.com/u/791137?v=3><a href="https://github.com/josx">josx</a></td><td><img src=https://avatars1.githubusercontent.com/u/133277?v=3><a href="https://github.com/enyo">enyo</a></td></tr><tr><td><img src=https://avatars0.githubusercontent.com/u/1077378?v=3><a href="https://github.com/arthanzel">arthanzel</a></td><td><img src=https://avatars1.githubusercontent.com/u/1656140?v=3><a href="https://github.com/eheikes">eheikes</a></td><td><img src=https://avatars3.githubusercontent.com/u/355800?v=3><a href="https://github.com/diversario">diversario</a></td><td><img src=https://avatars0.githubusercontent.com/u/138707?v=3><a href="https://github.com/th507">th507</a></td><td><img src=https://avatars1.githubusercontent.com/u/506460?v=3><a href="https://github.com/Osterjour">Osterjour</a></td><td><img src=https://avatars3.githubusercontent.com/u/842998?v=3><a href="https://github.com/nsabovic">nsabovic</a></td></tr><tr><td><img src=https://avatars3.githubusercontent.com/u/5138570?v=3><a href="https://github.com/ScionOfBytes">ScionOfBytes</a></td><td><img src=https://avatars1.githubusercontent.com/u/2529835?v=3><a href="https://github.com/simon-scherzinger">simon-scherzinger</a></td><td><img src=https://avatars2.githubusercontent.com/u/175627?v=3><a href="https://github.com/axelhzf">axelhzf</a></td><td><img src=https://avatars0.githubusercontent.com/u/7782055?v=3><a href="https://github.com/benkroeger">benkroeger</a></td><td><img src=https://avatars0.githubusercontent.com/u/1443067?v=3><a href="https://github.com/IvanVergiliev">IvanVergiliev</a></td><td><img src=https://avatars1.githubusercontent.com/u/1246875?v=3><a href="https://github.com/jaylynch">jaylynch</a></td></tr><tr><td><img src=https://avatars2.githubusercontent.com/u/145742?v=3><a href="https://github.com/jberrisch">jberrisch</a></td><td><img src=https://avatars0.githubusercontent.com/u/1918551?v=3><a href="https://github.com/nitzan-shaked">nitzan-shaked</a></td><td><img src=https://avatars0.githubusercontent.com/u/3058150?v=3><a href="https://github.com/robertrossmann">robertrossmann</a></td><td><img src=https://avatars1.githubusercontent.com/u/498929?v=3><a href="https://github.com/roncli">roncli</a></td><td><img src=https://avatars1.githubusercontent.com/u/1355559?v=3><a href="https://github.com/superoven">superoven</a></td><td><img src=https://avatars1.githubusercontent.com/u/54934?v=3><a href="https://github.com/wmertens">wmertens</a></td></tr><tr><td><img src=https://avatars0.githubusercontent.com/u/2842176?v=3><a href="https://github.com/XadillaX">XadillaX</a></td><td><img src=https://avatars2.githubusercontent.com/u/4425455?v=3><a href="https://github.com/ncuillery">ncuillery</a></td><td><img src=https://avatars2.githubusercontent.com/u/618330?v=3><a href="https://github.com/adityabansod">adityabansod</a></td><td><img src=https://avatars0.githubusercontent.com/u/270632?v=3><a href="https://github.com/thetalecrafter">thetalecrafter</a></td><td><img src=https://avatars3.githubusercontent.com/u/16861?v=3><a href="https://github.com/abh">abh</a></td><td><img src=https://avatars1.githubusercontent.com/u/57770?v=3><a href="https://github.com/bertrandom">bertrandom</a></td></tr></table> | ||
@@ -130,0 +130,0 @@ License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81754
2
13
7
1577
+ Addedos-homedir@1.0.2
+ Addedos-homedir@1.0.2(transitive)