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

http-methods

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-methods - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

form.js

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

function notFound(req, res, opts, cb) {
var err = new Error('405 Method Not Allowed ' + req.url);
var err = new Error('405 Method Not Allowed');
err.statusCode = 405;

@@ -49,0 +49,0 @@

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

function notFound(req, res, opts, cb) {
var err = new Error('405 Method Not Allowed ' + req.url);
var err = new Error('405 Method Not Allowed');
err.statusCode = 405;

@@ -26,0 +26,0 @@

{
"name": "http-methods",
"version": "1.0.0",
"version": "1.1.0",
"description": "Handle multiple methods elegantly",

@@ -5,0 +5,0 @@ "keywords": [],

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

t.equal(res.statusCode, 405)
t.equal(body, '405 Method Not Allowed /')
t.equal(body, '405 Method Not Allowed')

@@ -140,0 +140,0 @@ t.end()

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