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

json-config-generator

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-config-generator - npm Package Compare versions

Comparing version 0.1.0-1 to 0.1.0-2

4

lib/fs.js

@@ -109,4 +109,4 @@ 'use strict';

return _fs4.default.writeFile(filepath, JSON.stringify(config), 2);
return _fs4.default.writeFile(filepath, JSON.stringify(config, null, 2));
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9mcy5qcyJdLCJuYW1lcyI6WyJzdGF0IiwiZW5zdXJlRGlyZWN0b3J5RXhpc3RlbmNlIiwiZGlyZWN0b3J5RXhpc3RzIiwiZmlsZUV4aXN0cyIsInJlYWRKc29uRmlsZSIsIndyaXRlSnNvbkZpbGUiLCJmaWxlUGF0aCIsIlByb21pc2UiLCJyZXNvbHZlIiwicmVqZWN0IiwiZXJyIiwicmVzcG9uc2UiLCJjb2RlIiwiZGlybmFtZSIsIm1rZGlyIiwiZGlyUGF0aCIsImRpclN0YXQiLCJpc0RpcmVjdG9yeSIsIkVycm9yIiwiZmlsZVN0YXQiLCJpc0ZpbGUiLCJjb250ZW50cyIsInJlYWRGaWxlIiwibGVuZ3RoIiwiSlNPTiIsInBhcnNlIiwiZSIsImZpbGVwYXRoIiwiY29uZmlnIiwid3JpdGVGaWxlIiwic3RyaW5naWZ5Il0sIm1hcHBpbmdzIjoiOzs7OztRQUlnQkEsSSxHQUFBQSxJO1FBZ0JNQyx3QixHQUFBQSx3QjtRQWlCQUMsZSxHQUFBQSxlO1FBYUFDLFUsR0FBQUEsVTtRQWFBQyxZLEdBQUFBLFk7UUFrQkFDLGEsR0FBQUEsYTs7QUFqRnRCOzs7O0FBQ0E7Ozs7QUFDQTs7Ozs7O0FBRU8sU0FBU0wsSUFBVCxDQUFj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hc3luYyBmdW5jdGlvbiByZWFkSnNvbkZpbGUoZmlsZVBhdGgpIHtcbiAgaWYgKCFhd2FpdCBmaWxlRXhpc3RzKGZpbGVQYXRoKSkge1xuICAgIHJldHVybiB7fTtcbiAgfVxuXG4gIGNvbnN0IGNvbnRlbnRzID0gYXdhaXQgZnMucmVhZEZpbGUoZmlsZVBhdGgpO1xuXG4gIGlmIChjb250ZW50cy5sZW5ndGggPT09IDApIHtcbiAgICByZXR1cm4ge307XG4gIH1cblxuICB0cnkge1xuICAgIHJldHVybiBKU09OLnBhcnNlKGNvbnRlbnRzKTtcbiAgfSBjYXRjaCAoZSkge1xuICAgIHRocm93IG5ldyBFcnJvcihgRmlsZSBcIiR7ZmlsZVBhdGh9XCIgYWxyZWFkeSBoYXMgY29udGVudCwgd2hpY2ggaXMgbm90IEpTT04uYCk7XG4gIH1cbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHdyaXRlSnNvbkZpbGUoZmlsZXBhdGgsIGNvbmZpZykge1xuICBpZiAoIWF3YWl0IGZpbGVFeGlzdHMoZmlsZXBhdGgpKSB7XG4gICAgYXdhaXQgZW5zdXJlRGlyZWN0b3J5RXhpc3RlbmNlKGZpbGVwYXRoKTtcbiAgfVxuXG4gIHJldHVybiBmcy53cml0ZUZpbGUoZmlsZXBhdGgsIEpTT04uc3RyaW5naWZ5KGNvbmZpZywgbnVsbCwgMikpO1xufVxuIl19

@@ -17,2 +17,8 @@ 'use strict';

process.on('unhandledRejection', err => {
console.error('An unhandledRejection occurred');
console.error(err);
process.exit(1);
});
const dialects = ['mariadb', 'mysql', 'postgres', 'sqlite', 'mssql'];

@@ -73,7 +79,7 @@

(0, _2.default)({
// file: `${__dirname}/../app/config.json`,
useEnv: true,
file: `${__dirname}/../app/config.json`,
useEnv: false,
envPrefix: 'APP_',
schema
}).then(console.log.bind(console));
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4u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biAgICAgIHBvcnQ6IHBvcnQoeyBkZWZhdWx0VmFsdWU6IDU0MzIgfSksXG4gICAgfSksXG4gIH0pLFxufSk7XG5cbk9iamVjdC5hc3NpZ24ocHJvY2Vzcy5lbnYsIHtcbiAgQVBQX0FQSV9KV1RfU0VDUkVUOiAnMTIzNDU2Nzg5MTAnLFxuICBBUFBfQVBJX1BPUlQ6IDgwODAsXG4gIEFQUF9IQVNIX1JPVU5EUzogOCxcbiAgQVBQX0xPR19ESVJFQ1RPUlk6IG51bGwsXG4gIEFQUF9EQVRBQkFTRV9EQVRBQkFTRTogJ3RoZV9kYicsXG4gIEFQUF9EQVRBQkFTRV9VU0VSTkFNRTogJ2VwaHlzJyxcbiAgQVBQX0RBVEFCQVNFX09QVElPTlNfRElBTEVDVDogJ3Bvc3RncmVzJyxcbiAgQVBQX0RBVEFCQVNFX09QVElPTlNfSE9TVDogJ3Rlc3QubmV0JyxcbiAgQVBQX0RBVEFCQVNFX09QVElPTlNfUE9SVDogNTQzMixcbn0pO1xuXG5idWlsZENvbmZpZyh7XG4gIGZpbGU6IGAke19fZGlybmFtZX0vLi4vYXBwL2NvbmZpZy5qc29uYCxcbiAgdXNlRW52OiBmYWxzZSxcbiAgZW52UHJlZml4OiAnQVBQXycsXG4gIHNjaGVtYSxcbn0pLnRoZW4oY29uc29sZS5sb2cuYmluZChjb25zb2xlKSk7XG5cbiJdfQ==
{
"name": "json-config-generator",
"version": "0.1.0-1",
"version": "0.1.0-2",
"description": "Generates and validates JSON configuration files from a programmable JavaScript definition.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -87,3 +87,3 @@ import path from 'path';

return fs.writeFile(filepath, JSON.stringify(config), 2);
return fs.writeFile(filepath, JSON.stringify(config, null, 2));
}

@@ -10,2 +10,8 @@ import path from 'path';

process.on('unhandledRejection', err => {
console.error('An unhandledRejection occurred');
console.error(err);
process.exit(1);
});
const dialects = ['mariadb', 'mysql', 'postgres', 'sqlite', 'mssql'];

@@ -67,4 +73,4 @@

buildConfig({
// file: `${__dirname}/../app/config.json`,
useEnv: true,
file: `${__dirname}/../app/config.json`,
useEnv: false,
envPrefix: 'APP_',

@@ -71,0 +77,0 @@ schema,

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