Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

convict

Package Overview
Dependencies
Maintainers
9
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convict - npm Package Compare versions

Comparing version 4.4.1 to 5.0.0

17

CHANGELOG.md

@@ -8,2 +8,13 @@ # Change Log

## [5.0.0] - 2019-05-06
### Changed
- Drop long deprecated `strict: true`/`strict: false` option, which has been replaced by the
`allowed: 'strict`/`allowed: 'warn` option (Marc-Aurèle Darche @madarche)
- Update runtime deps (json5, moment, validator, yargs-parser) (Marc-Aurèle Darche @madarche)
- Update dev deps (coveralls, eslint, js-yaml, mocha, toml) (Marc-Aurèle Darche @madarche)
- Replaced dev deps (istanbul replaced by nyc, obj_diff replaced by
deep-object-diff) (Marc-Aurèle Darche @madarche)
- Drop Node.js < 6 support due to dep requirements (Marc-Aurèle Darche @madarche)
## [4.4.1] - 2018-12-15

@@ -26,3 +37,3 @@ ### Fixed

- Pass the name of the property being assigned to the custom coerce function #262 (Dan Allen mojavelinux)
- Pass the name of the property being assigned to the custom coerce function #262 (Dan Allen @mojavelinux)

@@ -199,3 +210,3 @@ ## [4.3.2] - 2018-07-19

- Update cjson dependency to 0.3.2
This removes the transitive dependency on 'jsonlint' (in favor of json-parse-helpfulerror), which avoids its problems with unstated depdendencies on 'file' and 'system'.
This removes the transitive dependency on 'jsonlint' (in favor of json-parse-helpfulerror), which avoids its problems with unstated dependencies on 'file' and 'system'.
- Coerce values loaded from a file

@@ -340,3 +351,3 @@ Previously values were coerced if added through

- Coerce 'nat' formatted values #26
- Updat canonical package.json URLs #24
- Update canonical package.json URLs #24
- Fix 'should handle timestamp' failing test #21

@@ -343,0 +354,0 @@ - Update package.json #43

12

lib/convict.js

@@ -14,3 +14,2 @@ /**

const cloneDeep = require('lodash.clonedeep');
const deprecate = require('depd')('node-convict')

@@ -342,3 +341,3 @@ function assert(assertion, err_msg) {

function importArguments(o) {
const argv = parseArgs(o.getArgs(), {
const argv = parseArgs(o.getArgs(), {
configuration: {

@@ -630,11 +629,2 @@ 'dot-notation': false

if ('strict' in options) {
if(options.strict){
options.allowed = ALLOWED_OPTION_STRICT
deprecate('this syntax is outdated: validate({strict: true}), you must use: validate({allowed: \'' + ALLOWED_OPTION_STRICT + '\'})')
}else{
deprecate('this syntax is outdated: validate({strict: false}), you must just use: validate()')
}
}
options.allowed = options.allowed || ALLOWED_OPTION_WARN;

@@ -641,0 +631,0 @@ let errors = validate(this._instance, this._schema, options.allowed);

@@ -13,3 +13,3 @@ {

],
"version": "4.4.1",
"version": "5.0.0",
"license": "Apache-2.0",

@@ -23,16 +23,13 @@ "homepage": "https://github.com/mozilla/node-convict",

"engines": {
"node": ">=4"
"node": ">=6"
},
"scripts": {
"test": "mocha --check-leaks -R spec test/*-tests.js",
"posttest": "npm run lint",
"pretest:coverage": "rm -f test/coverage/coverage-*.json",
"test:coverage": "istanbul cover --print none --report none --include-pid _mocha -- --check-leaks test/*-tests.js && istanbul report text-summary lcov",
"test": "mocha --check-leaks test/*-tests.js",
"posttest:coverage": "npm run lint",
"pretest:ci": "rm -f test/coverage/coverage-*.json",
"test:ci": "istanbul cover --print none --report none --include-pid _mocha -- --check-leaks test/*-tests.js && istanbul report text-summary lcov && cat test/coverage/lcov.info | coveralls",
"posttest:ci": "npm run lint",
"test:coverage": "nyc --nycrc-path=nycrc.json --cache-dir=/tmp/nyc_cache_convict mocha test/*-tests.js",
"pretest:ci": "npm run lint",
"test:ci": "npm run test:coverage && cat /tmp/nyc_report_convict/lcov.info | coveralls",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"clean": "rm -rf test/coverage",
"version": "./assert_changelog_ready $npm_package_version"

@@ -45,19 +42,18 @@ },

"dependencies": {
"depd": "1.1.2",
"json5": "1.0.1",
"json5": "2.1.0",
"lodash.clonedeep": "4.5.0",
"moment": "2.22.2",
"validator": "10.8.0",
"yargs-parser": "11.0.0"
"moment": "2.24.0",
"validator": "10.11.0",
"yargs-parser": "13.0.0"
},
"devDependencies": {
"coveralls": "3.0.2",
"eslint": "4.19.1",
"istanbul": "0.4.5",
"js-yaml": "^3.11.0",
"mocha": "5.2.0",
"coveralls": "3.0.3",
"deep-object-diff": "1.1.0",
"eslint": "5.16.0",
"js-yaml": "3.13.1",
"mocha": "6.1.4",
"must": "0.13.4",
"obj_diff": "0.3.0",
"toml": "^2.3.3"
"nyc": "14.0.0",
"toml": "3.0.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc