Comparing version 0.4.0 to 0.4.1
@@ -262,2 +262,3 @@ /* | ||
case 'array': v = v.split(','); break; | ||
case 'object': v = JSON.parse(v); break; | ||
case 'timestamp': v = moment(v).valueOf(); break; | ||
@@ -264,0 +265,0 @@ case 'duration': |
@@ -5,3 +5,3 @@ { | ||
"description": "Unruly configuration management for nodejs", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"homepage": "https://github.com/lloyd/node-convict", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -21,2 +21,7 @@ exports.conf = { | ||
env: 'ARRAY' | ||
}, | ||
object: { | ||
format: Object, | ||
default: {}, | ||
env: 'OBJECT' | ||
} | ||
@@ -29,3 +34,4 @@ }; | ||
NUM: 789.1011, | ||
ARRAY: "a,b,c" | ||
ARRAY: "a,b,c", | ||
OBJECT: '{"foo": "bar"}' | ||
}; |
Sorry, the diff of this file is not supported yet
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
35569
41
955