-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: target tough-cookie 2.x to preserve node 6 support #33
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jasonmit if you update the peer dep here you will need to update the dev dep below too. but why did you update the peer dep in the first place? is it required for the fix to work? 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, removed! (Left over fragment as I was debugging the broken CI pipeline) |
||
}, | ||
"devDependencies": { | ||
"body-parser": "~1.15.2", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See: request/request-promise#277 Gets the CI back to being green for modern node versions. Likely a similar issue plagues Node 0.12.0 and iojs builds. |
||
}).to.not.throw(); | ||
|
||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix