New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

access-log

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

access-log - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

test/user.js

6

index.js

@@ -53,2 +53,6 @@ var strftime = require('strftime');

var delta = end - start;
var userID;
try {
userID = new Buffer(req.headers.authorization.split(' ')[1], 'base64').toString().split(':')[0];
} catch(e) {}
var data = {

@@ -71,3 +75,3 @@ ':clfDate': strftime('%d/%b/%Y:%H:%M:%S %z', end),

':urlDecoded': encode(uriDecoded),
':userID': encode((req.session && (req.session.user || req.session.id)) || '-'),
':userID': encode(userID || '-'),
':userAgent': encode(req.headers['user-agent'] || '-')

@@ -74,0 +78,0 @@ };

2

package.json
{
"name": "access-log",
"description": "Add simple access logs to any http or https server",
"version": "0.3.4",
"version": "0.3.5",
"author": "Dave Eddy <dave@daveeddy.com> (http://www.daveeddy.com)",

@@ -6,0 +6,0 @@ "contributors": [],

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