@bluelilo/node-core
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -32,2 +32,8 @@ "use strict"; | ||
} | ||
const ipAddress = (0, _middleware.getIpAddress)(); | ||
if (ipAddress) { | ||
config.headers[_middleware.IP_ADDRESS_HEADER] = ipAddress; | ||
} | ||
} | ||
@@ -34,0 +40,0 @@ |
@@ -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": { |
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
15732
12
412