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

express-stats

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-stats - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

8

lib/express-stats.js

@@ -19,3 +19,3 @@ 'use strict';

// GET /system/logs/{logType}
router.get(options.basePath + '/system/logs/:logType', function (req, res) {
router.get('/system/logs/:logType', function (req, res) {
var options = { headers: { 'Content-Type': 'text/html; charset=utf-8' }};

@@ -26,3 +26,3 @@ res.sendFile(logType(req.params.logType, options), options);

// DELETE /system/logs/{logType}
router.delete(options.basePath + '/system/logs/:logType', function (req, res) {
router.delete('/system/logs/:logType', function (req, res) {
fs.writeFile(logType(req.params.logType, options), 'Nothing here', function (err) {

@@ -35,3 +35,3 @@ if (err) { return res.status(500).send(err); }

// GET /system/swagger
router.get(options.basePath + '/system/swagger', function (req, res) {
router.get('/system/swagger', function (req, res) {
res.render('swagger.json', { hostname: options.hostname });

@@ -41,3 +41,3 @@ });

// GET /system/mem
router.get(options.basePath + '/system/mem', function (req, res) {
router.get('/system/mem', function (req, res) {
var mem = process.memoryUsage();

@@ -44,0 +44,0 @@ var used = (mem.heapUsed / mem.heapTotal).toFixed(2);

{
"name": "express-stats",
"version": "0.0.7",
"version": "0.0.8",
"description": "Runtime statics for express production servers",

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

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