Comparing version 0.9.1 to 1.0.0
{ | ||
"name": "app-conf", | ||
"version": "0.9.1", | ||
"version": "1.0.0", | ||
"license": "ISC", | ||
@@ -30,3 +30,3 @@ "author": "Julien Fontanet <julien.fontanet@isonoe.net> (http://julien.isonoe.net/)", | ||
"make-error": "^1.3.5", | ||
"promise-toolbox": "^0.19.0", | ||
"promise-toolbox": "^0.20.0", | ||
"xdg-basedir": "^4.0.0" | ||
@@ -44,3 +44,3 @@ }, | ||
"lint-staged": "^10", | ||
"mock-fs": "^4.7.0", | ||
"mock-fs": "^5.1.2", | ||
"prettier": "^2.2.1", | ||
@@ -47,0 +47,0 @@ "rimraf": "^3.0.0" |
@@ -49,2 +49,3 @@ # app-conf | ||
- [@iarna/toml](https://www.npmjs.com/package/@iarna/toml): to support [TOML files](https://github.com/toml-lang/toml); | ||
- [cson-parse](https://www.npmjs.com/package/cson-parser): to support CSON files; | ||
- [ini](https://www.npmjs.org/package/ini): to support INI files; | ||
@@ -51,0 +52,0 @@ - [js-yaml](https://www.npmjs.org/package/js-yaml): to support YAML files; |
@@ -54,2 +54,20 @@ "use strict"; | ||
// eslint-disable-next-line node/no-missing-require | ||
const CSON = require("cson-parse"); | ||
serializers.cson = { | ||
test: function (file) { | ||
return file.path && /\.cson$/i.test(file.path); | ||
}, | ||
unserialize: function (file) { | ||
return CSON.parse(String(file.content)); | ||
}, | ||
serialize: function (value) { | ||
return CSON.stringify(value); | ||
}, | ||
}; | ||
} catch (error) {} | ||
// Optional dependency. | ||
try { | ||
// eslint-disable-next-line node/no-missing-require | ||
const ini = require("ini"); | ||
@@ -56,0 +74,0 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
15341
340
0
101
+ Addedpromise-toolbox@0.20.0(transitive)
- Removedpromise-toolbox@0.19.2(transitive)
Updatedpromise-toolbox@^0.20.0