New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@factor/app-config

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@factor/app-config - npm Package Compare versions

Comparing version 0.1.4 to 0.2.0

4

package.json
{
"name": "@factor/app-config",
"version": "0.1.4",
"version": "0.2.0",
"main": "plugin.js",

@@ -12,3 +12,3 @@ "license": "GPL-3.0",

},
"gitHead": "614ba7ab077176f89c2b41ebb8ce72e14085b4dd"
"gitHead": "37aba4a3ad87359530be2743d82cb4f4a79398ce"
}

@@ -5,27 +5,18 @@ const merge = require("deepmerge")

return new (class {
constructor() {}
getPublicConfig() {
let out = {}
try {
out = require("~/factor-config")
} catch (error) {
console.error(`Cant Find Public Config`)
console.error(error)
}
return out
}
settings() {
let publicConfig = this.getPublicConfig()
const publicSettings = process.env.FACTOR_APP_CONFIG
const configObjects = [
Factor.FACTOR_CONFIG,
publicConfig[env],
publicConfig.config,
{
env
}
].filter(_ => _)
return publicSettings
// let publicConfig = this.getPublicConfig()
return merge.all(configObjects)
// const configObjects = [
// Factor.FACTOR_CONFIG,
// publicConfig[env],
// publicConfig.config,
// {
// env
// }
// ].filter(_ => _)
// return merge.all(configObjects)
}

@@ -32,0 +23,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