Socket
Socket
Sign inDemoInstall

http-msgs

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-msgs - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

.npmignore

2

package.json
{
"name": "http-msgs",
"version": "1.0.3",
"version": "1.0.4",
"description": "Node module to handle to HTTP status codes",

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

# http-msgs
Node module to handle to HTTP status codes
![verson](https://img.shields.io/badge/version-1.0.3-green.svg)
![verson](https://img.shields.io/badge/version-1.0.4-green.svg)
![License](https://img.shields.io/badge/License-MIT-yellowgreen.svg)

@@ -6,0 +6,0 @@

@@ -25,14 +25,20 @@ /*

var cookies = req.headers.cookie;
var cookieArray = cookies.split(";");
for (let index = 0; index < cookieArray.length; index++) {
var curJson = queryString.parse(cookieArray[index]);
var key = Object.keys(curJson);
if (key[0].trim() == curCookie){
return curJson[key[0]];
if(util.isUndefined(cookies)){
return "";
}else{
var cookieArray = cookies.split(";");
for (let index = 0; index < cookieArray.length; index++) {
var curJson = queryString.parse(cookieArray[index]);
var key = Object.keys(curJson);
if (key[0].trim() == curCookie){
return curJson[key[0]];
}
}
}
}
exports.getCookie = getCookie;
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