Comparing version 1.31.7 to 1.31.8
@@ -14,3 +14,3 @@ /* | ||
var util = require('util') | ||
var RC = require('rc-yaml') | ||
var RC = require('rc-yaml-2') | ||
var spmDefaultConfig = { | ||
@@ -34,3 +34,3 @@ tokens: { | ||
console: process.env.SPM_LOG_TO_CONSOLE || false, | ||
maxfiles: Number(process.env.SPM_LOG_MAX_FILES) || '2', | ||
maxfiles: Number(process.env.SPM_LOG_MAX_FILES) || '2', | ||
maxsize: Number(process.env.SPM_LOG_MAX_FILE_SIZE) || '524288', | ||
@@ -44,3 +44,3 @@ filename: process.env.SPM_LOG_FILE_PREFIX || 'spm', | ||
var rc = new RC(appType, spmDefaultConfig) | ||
util._extend (this, rc) | ||
util._extend(this, rc) | ||
this.rcFlat = flatten(this) | ||
@@ -51,5 +51,5 @@ return this | ||
SpmConfig.prototype.get = function (key) { | ||
return this.rcFlat [key] | ||
return this.rcFlat[key] | ||
} | ||
module.exports = new SpmConfig(process.env.SPM_AGENT_APP_TYPE||'spmagent') | ||
module.exports = new SpmConfig(process.env.SPM_AGENT_APP_TYPE || 'spmagent') |
{ | ||
"name": "spm-agent", | ||
"version": "1.31.7", | ||
"version": "1.31.8", | ||
"description": "Node.js agent framework for SPM by Sematext", | ||
@@ -49,3 +49,3 @@ "main": "lib/index.js", | ||
"nedb": "^1.8.0", | ||
"rc-yaml": "^1.0.0", | ||
"rc-yaml-2": "^1.0.0", | ||
"request": "^2.79.0", | ||
@@ -52,0 +52,0 @@ "winston": "^2.3.1" |
Sorry, the diff of this file is not supported yet
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
56646
259
+ Addedrc-yaml-2@^1.0.0
+ Addedargparse@1.0.10(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedrc-yaml-2@1.0.2(transitive)
+ Addedsprintf-js@1.0.3(transitive)
- Removedrc-yaml@^1.0.0
- Removedrc-yaml@1.0.0(transitive)
- Removedyaml-js@0.1.5(transitive)