cf-nodejs-logging-support
Advanced tools
Comparing version 3.0.11 to 3.0.12
@@ -218,20 +218,2 @@ var util = require('util'); | ||
reduceFields(coreConfig, obj); | ||
// obj.component_type = "application"; | ||
// obj.component_id = !("application_id" in vcapEnvironment) ? "-" : vcapEnvironment.application_id; | ||
//obj.component_name = !("application_name" in vcapEnvironment) ? "-" : vcapEnvironment.application_name; | ||
//obj.component_instance = !("instance_index" in vcapEnvironment) ? "0" : vcapEnvironment.instance_index.toString(); | ||
//obj.source_instance = obj.component_instance; | ||
//obj.layer = "[NODEJS]"; | ||
//obj.organisation_id = "-"; | ||
//obj.organisation_name = "-"; | ||
//obj.space_name = !("space_name" in vcapEnvironment) ? "-" : vcapEnvironment.space_name; | ||
//obj.space_id = !("space_id" in vcapEnvironment) ? "-" : vcapEnvironment.space_id; | ||
//obj.container_id = !("CF_INSTANCE_IP" in process.env) ? "-" : process.env.CF_INSTANCE_IP; | ||
//obj.logger = "nodejs-logger"; | ||
return obj; | ||
@@ -238,0 +220,0 @@ }; |
@@ -123,10 +123,2 @@ var uuid = require("uuid/v4"); | ||
}, { | ||
name: "request_id", | ||
mandatory: true, | ||
source: { | ||
type: "header", | ||
name: "x-vcap-request-id" | ||
}, | ||
default: "-" | ||
}, { | ||
name: "type", | ||
@@ -289,3 +281,3 @@ mandatory: true, | ||
fallback: (req, res, logObject) => { | ||
return (logObject.request_id != null && logObject.request_id != "-") ? logObject.request_id : uuid(); | ||
return uuid(); | ||
} | ||
@@ -292,0 +284,0 @@ } |
{ | ||
"name": "cf-nodejs-logging-support", | ||
"version": "3.0.11", | ||
"version": "3.0.12", | ||
"description": "Logging tool for Cloud Foundry", | ||
@@ -23,16 +23,16 @@ "keywords": [ | ||
"dependencies": { | ||
"jsonwebtoken": "^8.1.1", | ||
"uuid": "^3.1.0" | ||
"jsonwebtoken": "^8.3.0", | ||
"uuid": "^3.3.2" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.1.2", | ||
"eslint": "latest", | ||
"eslint": "^5.4.0", | ||
"import-fresh": "^2.0.0", | ||
"istanbul": "^0.4.4", | ||
"mocha": "^4.0.1", | ||
"mocha": "^4.1.0", | ||
"mock-require": "^2.0.2", | ||
"node-mocks-http": "^1.6.4", | ||
"node-mocks-http": "^1.7.0", | ||
"rewire": "^3.0.2", | ||
"sinon": "latest", | ||
"winston": "^2.3.1" | ||
"sinon": "^6.1.5", | ||
"winston": "^2.4.4" | ||
}, | ||
@@ -39,0 +39,0 @@ "scripts": { |
@@ -0,0 +0,0 @@ { |
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
86030
1325
Updatedjsonwebtoken@^8.3.0
Updateduuid@^3.3.2