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

lynx-express

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lynx-express - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

5

index.js

@@ -69,5 +69,6 @@ /*

// and replace rest with _.
routeName = 'response_time.' + routeName.replace(/:/g, "").replace(/^\/|\/$/g, "").replace(/\//g, "_");
routeName = routeName.replace(/:/g, "").replace(/^\/|\/$/g, "").replace(/\//g, "_");
endTime = new Date();
client.timing(routeName, endTime - startTime);
client.timing('response_time.' + routeName, endTime - startTime);
client.increment("requests."+routeName);
} else {

@@ -74,0 +75,0 @@ endTime = new Date();

2

package.json
{
"name": "lynx-express",
"version": "0.1.0",
"version": "0.2.0",
"description": "Express middleware for sending response status counts and response times to statsd",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,3 +11,10 @@ lynx-express

Installation:
```
npm install lynx-express
```
Configuration:
```javascript

@@ -14,0 +21,0 @@

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