Socket
Socket
Sign inDemoInstall

app-conf

Package Overview
Dependencies
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-conf - npm Package Compare versions

Comparing version 0.9.1 to 1.0.0

6

package.json
{
"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 @@

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