Socket
Socket
Sign inDemoInstall

cookiejar

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

.npmignore

13

cookiejar.js

@@ -36,3 +36,3 @@ /* jshint node: true */

}
return new Cookie(cookiestr);
return new Cookie(cookiestr, request_domain, request_path);
}

@@ -137,6 +137,4 @@ exports.Cookie = Cookie;

}
if (!this.explicit_path) {
if (this.path !== access_info.path) {
return false;
}
if (this.explicit_path && this.path !== access_info.path) {
return false;
}

@@ -214,2 +212,3 @@ var access_domain = access_info.domain && access_info.domain.replace(/^[\.]/,'');

}
if (cookie.matches(access_info)) {

@@ -254,3 +253,5 @@ return cookie;

cookie;
cookies = cookies.map(Cookie);
cookies = cookies.map(function(item){
return new Cookie(item, request_domain, request_path);
});
for (i = 0; i < cookies.length; i += 1) {

@@ -257,0 +258,0 @@ cookie = cookies[i];

{
"name": "cookiejar",
"version": "2.0.1",
"version": "2.0.2",
"author": {

@@ -14,4 +14,3 @@ "name": "bradleymeck"

"scripts": {
"prepublish": "jshint cookiejar.js && git tag $npm_package_version && git push origin master && git push origin --tags",
"test": "tests/test.js"
"test": "node tests/test.js"
},

@@ -21,3 +20,6 @@ "repository": {

"url": "https://github.com/bmeck/node-cookiejar.git"
},
"devDependencies": {
"jshint": "^2.8.0"
}
}

@@ -73,4 +73,4 @@ #!/usr/bin/env node

test_jar.setCookie(new Cookie("sub=4;", "test.com", "/accounts"));
var cookie = test_jar.getCookie("sub", CookieAccessInfo("test.com", "/"));
test_jar.setCookie(new Cookie("sub=4;path=/accounts", "test.com", "/accounts"));
var cookie = test_jar.getCookie("sub", CookieAccessInfo("test.com", "/foo"));
assert.equal(cookie, undefined);

@@ -77,0 +77,0 @@

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