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

http-const

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-const - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

15

index.js
var httpConst = {
methods: {
get: 'GET',
head: 'HEAD',
post: 'POST',
put: 'PUT',
'delete': 'DELETE'
del: 'DELETE',
trace: 'TRACE',
options: 'OPTIONS',
connect: 'CONNECT',
patch: 'PATCH'
},

@@ -29,2 +34,3 @@

xWwwFormUrlencoded: 'application/x-www-form-urlencoded',
json: 'application/json',
plain: 'text/plain'

@@ -39,5 +45,10 @@ },

httpConst.methods.get,
httpConst.methods.head,
httpConst.methods.post,
httpConst.methods.put,
httpConst.methods['delete']
httpConst.methods.del,
httpConst.methods.trace,
httpConst.methods.options,
httpConst.methods.connect,
httpConst.methods.patch
],

@@ -44,0 +55,0 @@

2

package.json
{
"name": "http-const",
"version": "1.0.0",
"version": "1.0.1",
"description": "HTTP constants: methods, protocols, headers, etc.",

@@ -5,0 +5,0 @@ "main": "index.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