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

cf-nodejs-logging-support

Package Overview
Dependencies
Maintainers
4
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-nodejs-logging-support - npm Package Compare versions

Comparing version 3.0.11 to 3.0.12

18

cf-nodejs-logging-support-core/log-core.js

@@ -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 @@ };

10

config.js

@@ -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 @@ }

16

package.json
{
"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": {

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