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

@bluelilo/node-core

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bluelilo/node-core - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

lib/middleware/ipAddress.js

6

lib/axios.js

@@ -32,2 +32,8 @@ "use strict";

}
const ipAddress = (0, _middleware.getIpAddress)();
if (ipAddress) {
config.headers[_middleware.IP_ADDRESS_HEADER] = ipAddress;
}
}

@@ -34,0 +40,0 @@

4

lib/index.js

@@ -30,6 +30,6 @@ "use strict";

});
Object.defineProperty(exports, "SESSION_ID_HEADER", {
Object.defineProperty(exports, "getSessionId", {
enumerable: true,
get: function () {
return _middleware.SESSION_ID_HEADER;
return _middleware.getSessionId;
}

@@ -36,0 +36,0 @@ });

@@ -63,4 +63,10 @@ "use strict";

const ipAddress = (0, _middleware.getIpAddress)();
if (ipAddress) {
info.ipAddress = ipAddress;
}
return info;
});
exports.correlationFormat = correlationFormat;

@@ -30,2 +30,14 @@ "use strict";

});
Object.defineProperty(exports, "getIpAddress", {
enumerable: true,
get: function () {
return _ipAddress.getIpAddress;
}
});
Object.defineProperty(exports, "IP_ADDRESS_HEADER", {
enumerable: true,
get: function () {
return _ipAddress.IP_ADDRESS_HEADER;
}
});
exports.expressMiddleware = void 0;

@@ -43,2 +55,4 @@

var _ipAddress = _interopRequireWildcard(require("./ipAddress"));
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }

@@ -50,3 +64,3 @@

const expressMiddleware = (0, _composeMiddleware.compose)([_correlationId.default, _sessionId.default, _logger.default, _prometheus.default]);
const expressMiddleware = (0, _composeMiddleware.compose)([_correlationId.default, _sessionId.default, _ipAddress.default, _logger.default, _prometheus.default]);
exports.expressMiddleware = expressMiddleware;
{
"name": "@bluelilo/node-core",
"version": "1.3.0",
"version": "1.4.0",
"description": "",

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