Comparing version 0.4.1 to 0.4.2
@@ -257,2 +257,3 @@ /* | ||
case 'port': | ||
case 'nat': | ||
case 'integer': | ||
@@ -259,0 +260,0 @@ case 'int': v = parseInt(v, 10); break; |
@@ -5,7 +5,7 @@ { | ||
"description": "Unruly configuration management for nodejs", | ||
"version": "0.4.1", | ||
"homepage": "https://github.com/lloyd/node-convict", | ||
"version": "0.4.2", | ||
"homepage": "https://github.com/mozilla/node-convict", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/lloyd/node-convict.git" | ||
"url": "https://github.com/mozilla/node-convict.git" | ||
}, | ||
@@ -17,15 +17,20 @@ "main": "lib/convict.js", | ||
"dependencies": { | ||
"cjson": "0.2.1", | ||
"validator": "0.4.24", | ||
"moment": "1.7.2", | ||
"optimist": "0.5.0" | ||
"cjson": "0.3.0", | ||
"validator": "1.5.1", | ||
"moment": "2.3.1", | ||
"optimist": "0.6.0" | ||
}, | ||
"devDependencies": { | ||
"obj_diff": "0.3.0", | ||
"should": "1.2.2", | ||
"mocha": "1.8.1" | ||
"should": "2.0.1", | ||
"mocha": "1.13.0" | ||
}, | ||
"scripts": { | ||
"test": "mocha -R spec" | ||
}, | ||
"bugs": "https://github.com/mozilla/node-convict/issues", | ||
"licenses": { | ||
"type": "Apache", | ||
"url": "https://raw.github.com/mozilla/node-convict/master/LICENSE" | ||
} | ||
} |
@@ -1,3 +0,6 @@ | ||
# node-convict | ||
# node-convict [!['Build status'][travis_image_url]][travis_page_url] | ||
[travis_image_url]: https://api.travis-ci.org/mozilla/node-convict.png | ||
[travis_page_url]: https://travis-ci.org/mozilla/node-convict | ||
Convict expands on the standard pattern of configuring node.js applications in a way that is more robust and accessible to collaborators, who may have less interest in digging through imperative code in order to inspect or modify settings. By introducting a configuration schema, convict gives project collaborators more **context** on each setting and enables **validation and early failures** for when configuration goes wrong. | ||
@@ -4,0 +7,0 @@ |
@@ -12,2 +12,7 @@ exports.conf = { | ||
}, | ||
nat: { | ||
default: 333, | ||
format: 'nat', | ||
env: "NAT" | ||
}, | ||
num: { | ||
@@ -33,2 +38,3 @@ default: 10.1, | ||
INT: 77, | ||
NAT: 666, | ||
NUM: 789.1011, | ||
@@ -35,0 +41,0 @@ ARRAY: "a,b,c", |
@@ -112,3 +112,3 @@ const should = require('should'); | ||
var val = conf.get('foo.date'); | ||
should.equal(val, 1367737200000); | ||
should.equal(val, new Date('May 5, 2013').getTime()); | ||
}); | ||
@@ -115,0 +115,0 @@ |
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
36114
42
962
195
1
+ AddedJSV@4.0.2(transitive)
+ Addedansi-styles@1.0.0(transitive)
+ Addedchalk@0.4.0(transitive)
+ Addedcjson@0.3.0(transitive)
+ Addedhas-color@0.1.7(transitive)
+ Addedjsonlint@1.6.0(transitive)
+ Addedminimist@0.0.10(transitive)
+ Addedmoment@2.3.1(transitive)
+ Addednomnom@1.8.1(transitive)
+ Addedoptimist@0.6.0(transitive)
+ Addedstrip-ansi@0.1.1(transitive)
+ Addedunderscore@1.6.0(transitive)
+ Addedvalidator@1.5.1(transitive)
- Removedcjson@0.2.1(transitive)
- Removedmoment@1.7.2(transitive)
- Removedoptimist@0.5.0(transitive)
- Removedvalidator@0.4.24(transitive)
Updatedcjson@0.3.0
Updatedmoment@2.3.1
Updatedoptimist@0.6.0
Updatedvalidator@1.5.1