Comparing version 0.6.1 to 0.7.0
@@ -53,3 +53,3 @@ /** | ||
duration: function(x) { | ||
var err_msg = 'must be a positive integer or human readable string (e.g. "3000", "5 days")'; | ||
var err_msg = 'must be a positive integer or human readable string (e.g. 3000, "5 days")'; | ||
if (validator.isInt(x)) { | ||
@@ -438,5 +438,5 @@ assert(x >= 0, err_msg); | ||
if (typeof name === 'object') { | ||
name = name.name; | ||
validate = name.validate; | ||
coerce = name.coerce; | ||
name = name.name; | ||
} | ||
@@ -443,0 +443,0 @@ if (typeof validate !== 'function') { |
@@ -5,3 +5,3 @@ { | ||
"description": "Unruly configuration management for nodejs", | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"homepage": "https://github.com/mozilla/node-convict", | ||
@@ -19,13 +19,14 @@ "repository": { | ||
"depd": "1.0.0", | ||
"moment": "2.8.4", | ||
"moment": "2.9.0", | ||
"optimist": "0.6.1", | ||
"validator": "3.26.0" | ||
"validator": "3.33.0", | ||
"varify": "0.1.1" | ||
}, | ||
"devDependencies": { | ||
"istanbul": "0.3.5", | ||
"jshint": "2.5.11", | ||
"mocha": "2.0.1", | ||
"istanbul": "0.3.6", | ||
"jshint": "2.6.3", | ||
"mocha": "2.1.0", | ||
"must": "0.12.0", | ||
"obj_diff": "0.3.0", | ||
"should": "4.4.1" | ||
"blanket": "1.1.6" | ||
}, | ||
@@ -42,5 +43,10 @@ "jshintConfig": { | ||
"test": "jshint *.json lib/*.js test/*.js test/cases/*.js test/cases/*.json && mocha --check-leaks -R spec", | ||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", | ||
"test-cov": "mocha --require blanket -R html-cov > test/coverage.html", | ||
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" | ||
}, | ||
"config": { | ||
"blanket": { | ||
"pattern": "lib/convict.js" | ||
} | ||
}, | ||
"bugs": "https://github.com/mozilla/node-convict/issues", | ||
@@ -50,3 +56,8 @@ "licenses": { | ||
"url": "https://raw.github.com/mozilla/node-convict/master/LICENSE" | ||
}, | ||
"browserify": { | ||
"transform": [ | ||
"varify" | ||
] | ||
} | ||
} |
# Node-convict | ||
[![NPM version](http://img.shields.io/npm/v/convict.svg)](https://www.npmjs.org/package/convict) | ||
[![Build status][travis_img_url]][travis_page_url] [![Dependency Status](https://david-dm.org/mozilla/node-convict.svg)](https://david-dm.org/mozilla/node-convict) [![devDependency Status](https://david-dm.org/mozilla/node-convict/dev-status.svg)](https://david-dm.org/mozilla/node-convict#info=devDependencies) [![Coverage Status](https://img.shields.io/coveralls/mozilla/node-convict.svg)](https://coveralls.io/r/mozilla/node-convict) | ||
@@ -118,3 +119,3 @@ | ||
* `ipaddress` - IPv4 and IPv6 addresses | ||
* `duration` - milliseconds or a human readable string (e.g. "3000", "5 days") | ||
* `duration` - milliseconds or a human readable string (e.g. 3000, "5 days") | ||
* `timestamp` - Unix timestamps or date strings recognized by [moment.js](http://momentjs.com/) | ||
@@ -121,0 +122,0 @@ * `nat` - positive integer (natural number) |
Sorry, the diff of this file is not supported yet
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
26615
220
6
+ Addedvarify@0.1.1
+ Addedesprima@1.0.4(transitive)
+ Addedmoment@2.9.0(transitive)
+ Addedredeyed@0.4.4(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedvalidator@3.33.0(transitive)
+ Addedvarify@0.1.1(transitive)
- Removedmoment@2.8.4(transitive)
- Removedvalidator@3.26.0(transitive)
Updatedmoment@2.9.0
Updatedvalidator@3.33.0