Socket
Socket
Sign inDemoInstall

cookie-master

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

15

cookies.js

@@ -32,7 +32,18 @@ const _ = require('lodash');

return str;
}, "");
}, "");
}
else if (_.isObject(cookies))
{
return (new Cookie(cookies)).toString();
if ((cookies.name != null) && (cookies.value != null))
{
return (new Cookie(cookies)).toString();
}
else
{
let newCookies = [];
_.forEach(cookies, (value, key) => {
newCookies.push(new Cookie(`${key}=${value}`));
});
return this.toCookieString(newCookies);
}
}

@@ -39,0 +50,0 @@ }

2

package.json
{
"name": "cookie-master",
"version": "0.1.2",
"version": "0.1.3",
"description": "HTTP cookie parser tool",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc