Socket
Socket
Sign inDemoInstall

izi-config

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

izi-config - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

18

index.js

@@ -11,3 +11,3 @@

const keywords = ['root', 'require', 'include', 'common', 'prod', 'phase'];
const keywords = ['root', 'require', 'phase', 'warnings'];

@@ -17,3 +17,4 @@ // Configuration object

root: ROOT_DIR,
require: module => require(path.join(ROOT_DIR, module))
require: module => require(path.join(ROOT_DIR, module)),
warnings: []
};

@@ -26,4 +27,13 @@

const phaseResolver = new PhaseResolver(main.json.phase);
main.resolve(phaseResolver.resolve(), modules);
_.merge(_conf, main.resolved);
_conf.phase = phaseResolver.resolve();
main.resolve(_conf.phase, modules);
let conf = main.resolved;
_.forEach(keywords, keyword => {
if(_.has(conf, keyword)) {
_.unset(conf, keyword);
_conf.warnings.push(`"${keyword}" is a reserved keyword and should not be used`);
}
});
_.merge(_conf, conf);
}

@@ -30,0 +40,0 @@

{
"name": "izi-config",
"version": "1.0.3",
"version": "1.0.4",
"description": "Configuration handler for izi-app",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

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