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

@zodash/logger

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zodash/logger - npm Package Compare versions

Comparing version 0.2.13 to 0.2.14

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.2.14](https://github.com/zcorky/zodash/compare/@zodash/logger@0.2.13...@zodash/logger@0.2.14) (2021-03-24)
**Note:** Version bump only for package @zodash/logger
## [0.2.13](https://github.com/zcorky/zodash/compare/@zodash/logger@0.2.12...@zodash/logger@0.2.13) (2021-03-23)

@@ -8,0 +16,0 @@

8

lib/format/nginx.js

@@ -13,8 +13,8 @@ "use strict";

function format(data) {
return (`${data.addr} - ${data.user || '-'} [${data.datetime}] "${data.method} ${data.path} HTTP/${data.version || '-'}" ` +
`${data.requestTime} ${data.contentLength} ` +
`${data.status} ${data.bodyBytesSent} "${data.referer || '-'}" ` +
`"${data.userAgent || '-'}"`);
return (`${data.addr} - ${data.user || '-'} [${data.datetime}] "${data.method} ${data.path} HTTP/${data.version || '-'}" `
+ `${data.requestTime} ${data.contentLength} `
+ `${data.status} ${data.bodyBytesSent} "${data.referer || '-'}" `
+ `"${data.userAgent || '-'}"`);
}
exports.format = format;
//# sourceMappingURL=nginx.js.map

@@ -49,5 +49,3 @@ "use strict";

}
const message = pattern.replace(/%s/g, (_, index) => {
return dataMap[index];
});
const message = pattern.replace(/%s/g, (_, index) => dataMap[index]);
return [message];

@@ -94,7 +92,7 @@ }

return (ctx) => __awaiter(this, void 0, void 0, function* () {
const input = ctx.input;
const { input } = ctx;
if (this.options.console === false) {
return;
}
const engine = input.engine;
const { engine } = input;
const message = formatMessage(this.name, input.datetime, input.message, input.level);

@@ -101,0 +99,0 @@ const isUseDevConsole = Array.isArray(message);

{
"name": "@zodash/logger",
"version": "0.2.13",
"version": "0.2.14",
"description": "simple logger model",

@@ -69,6 +69,6 @@ "keywords": [

"@zcorky/moment": "^1.0.12",
"@zodash/format": "^1.2.5",
"@zodash/onion": "^0.1.4"
"@zodash/format": "^1.2.6",
"@zodash/onion": "^0.1.5"
},
"gitHead": "36ae103b292f402d459b7c9eb6e63fe6ea93eb2b"
"gitHead": "476cc71bdf3cc5914d55495eaa9e3d07472885d9"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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