Socket
Socket
Sign inDemoInstall

cookiejar

Package Overview
Dependencies
0
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.6 to 2.1.0

4

cookiejar.js

@@ -15,2 +15,3 @@ /* jshint node: true */

}
CookieAccessInfo.All = Object.freeze(Object.create(null));
exports.CookieAccessInfo = CookieAccessInfo;

@@ -122,2 +123,5 @@

Cookie.prototype.matches = function matches(access_info) {
if (access_info === CookieAccessInfo.All) {
return true;
}
if (this.noscript && access_info.script ||

@@ -124,0 +128,0 @@ this.secure && !access_info.secure ||

2

package.json
{
"name": "cookiejar",
"version": "2.0.6",
"version": "2.1.0",
"author": {

@@ -5,0 +5,0 @@ "name": "bradleymeck"

@@ -83,1 +83,6 @@ #!/usr/bin/env node

assert.equal(cookies.length, 3);
test_jar.setCookie(new Cookie("sub=5;path=/", "test.com", "/accounts"));
var cookie = test_jar.getCookie('sub', CookieAccessInfo.All);
assert(cookie);
assert.equal(cookie.name, 'sub');
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