Comparing version 1.1.2 to 1.1.3
@@ -264,3 +264,6 @@ /** | ||
var o = traverseSchema(schema, path); | ||
return o ? (typeof o.format === 'string' ? o.format : typeof o.default) : null; | ||
if (o == null) return null; | ||
if (typeof o.format === 'string') return o.format; | ||
if (o.default != null) return typeof o.default; | ||
return null; | ||
} | ||
@@ -322,2 +325,4 @@ | ||
// TODO: Rename this `rv` variable (supposedly "return value") into something | ||
// more meaningful. | ||
var rv = { | ||
@@ -324,0 +329,0 @@ getProperties: function() { |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"license": "Apache-2.0", | ||
@@ -43,3 +43,3 @@ "homepage": "https://github.com/mozilla/node-convict", | ||
"depd": "1.1.0", | ||
"moment": "2.11.2", | ||
"moment": "2.12.0", | ||
"optimist": "0.6.1", | ||
@@ -50,7 +50,7 @@ "validator": "4.6.1", | ||
"devDependencies": { | ||
"coveralls": "2.11.6", | ||
"eslint": "1.10.3", | ||
"coveralls": "2.11.8", | ||
"eslint": "2.4.0", | ||
"istanbul": "0.4.2", | ||
"mocha": "2.4.5", | ||
"mocha-lcov-reporter": "1.0.0", | ||
"mocha-lcov-reporter": "1.2.0", | ||
"must": "0.13.1", | ||
@@ -57,0 +57,0 @@ "obj_diff": "0.3.0" |
@@ -74,2 +74,4 @@ # Node-convict | ||
Example `server.js`: | ||
```javascript | ||
@@ -91,2 +93,10 @@ var http = require('http'); | ||
To launch your example server, and set a port: | ||
```bash | ||
node ./server.js --port 8080 | ||
``` | ||
*Note*: arguments *must* be supplied with the double-hyphen `--arg`. (Single hypen's are not supported at this time.) | ||
## The Schema | ||
@@ -93,0 +103,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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
37526
427
394
0
+ Addedmoment@2.12.0(transitive)
- Removedmoment@2.11.2(transitive)
Updatedmoment@2.12.0