Skip to content

Commit

Permalink
fix: target tough-cookie 2.x to preserve node 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmit committed Jan 9, 2019
1 parent 1874877 commit 049152b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
},
"dependencies": {
"request-promise-core": "1.1.1",
"stealthy-require": "^1.1.0",
"tough-cookie": ">=2.3.3"
"stealthy-require": "^1.1.1",
"tough-cookie": "^2.5.0"
},
"peerDependencies": {
"request": "^2.34"
"request": "^2.88.0"
},
"devDependencies": {
"body-parser": "~1.15.2",
Expand Down
2 changes: 1 addition & 1 deletion test/spec/request-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ describe('Request-Promise-Native', function () {
var cookiejar = rp.jar();

expect(function () {
cookiejar.setCookie(sessionCookie, 'https://api.mydomain.com');
cookiejar.setCookie(sessionCookie.toString(), 'https://api.mydomain.com');
}).to.not.throw();

});
Expand Down

0 comments on commit 049152b

Please sign in to comment.