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

browser-cookies-compatible

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-cookies-compatible - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

package.json
{
"name": "browser-cookies-compatible",
"description": "Tiny cookies library for the browser",
"version": "1.2.0",
"version": "1.2.1",
"main": "src/browser-cookies.js",

@@ -58,2 +58,2 @@ "files": [

]
}
}

@@ -51,7 +51,12 @@ exports.defaults = {};

var cookie_name = decodeURIComponent(cookie.slice(0, separatorIndex).replace(/^\s+/, ''));
// if cannot decode cookie value then skip it
try {
var cookie_name = decodeURIComponent(cookie.slice(0, separatorIndex).replace(/^\s+/, ''));
// Return cookie value if the name matches
if (cookie_name === name) {
return decodeURIComponent(cookie.slice(separatorIndex + 1));
// Return cookie value if the name matches
if (cookie_name === name) {
return decodeURIComponent(cookie.slice(separatorIndex + 1));
}
} catch (e) {
console.warn('Decode cookie error', e);
}

@@ -89,5 +94,10 @@ }

// if cannot decode cookie value then skip it
try {
// add the cookie name and value to the `all` object
var cookie_name = decodeURIComponent(cookie.slice(0, separatorIndex).replace(/^\s+/, ''));
all[cookie_name] = decodeURIComponent(cookie.slice(separatorIndex + 1));
var cookie_name = decodeURIComponent(cookie.slice(0, separatorIndex).replace(/^\s+/, ''));
all[cookie_name] = decodeURIComponent(cookie.slice(separatorIndex + 1));
} catch (e) {
console.warn('Decode cookie error', e);
}
}

@@ -94,0 +104,0 @@

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