Skip to content

Commit 049152b

Browse files
committedJan 9, 2019
fix: target tough-cookie 2.x to preserve node 6 support
1 parent 1874877 commit 049152b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
},
3535
"dependencies": {
3636
"request-promise-core": "1.1.1",
37-
"stealthy-require": "^1.1.0",
38-
"tough-cookie": ">=2.3.3"
37+
"stealthy-require": "^1.1.1",
38+
"tough-cookie": "^2.5.0"
3939
},
4040
"peerDependencies": {
41-
"request": "^2.34"
41+
"request": "^2.88.0"
4242
},
4343
"devDependencies": {
4444
"body-parser": "~1.15.2",

‎test/spec/request-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ describe('Request-Promise-Native', function () {
146146
var cookiejar = rp.jar();
147147

148148
expect(function () {
149-
cookiejar.setCookie(sessionCookie, 'https://api.mydomain.com');
149+
cookiejar.setCookie(sessionCookie.toString(), 'https://api.mydomain.com');
150150
}).to.not.throw();
151151

152152
});

0 commit comments

Comments
 (0)