-
Notifications
You must be signed in to change notification settings - Fork 208
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 incorrect string validation for URL #261
Fix incorrect string validation for URL #261
Conversation
Thanks for the contribution! Before we can merge this, we need @coditva to sign the Salesforce.com Contributor License Agreement. |
77defa6
to
90f2b38
Compare
90f2b38
to
cf6debd
Compare
Can you rebase your pull request against the 5.x branch? And resubmit? We are close to a release of that version of |
@coditva did you need this change backported for 4.x? the |
@colincasey @awaterma It'll be awesome if it was back-ported since it broke in 4.x and we're also using 4.x. But if that's not something that you're targeting/maintaining then I'll be open to getting this merged in 5.x. Thanks! |
This is a version of PR #261 that is compatible with our v5 TypeScript code.
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [tough-cookie](https://togithub.com/salesforce/tough-cookie) | [`4.1.3` -> `4.1.4`](https://renovatebot.com/diffs/npm/tough-cookie/4.1.3/4.1.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/tough-cookie/4.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tough-cookie/4.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tough-cookie/4.1.3/4.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tough-cookie/4.1.3/4.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>salesforce/tough-cookie (tough-cookie)</summary> ### [`v4.1.4`](https://togithub.com/salesforce/tough-cookie/releases/tag/v4.1.4) [Compare Source](https://togithub.com/salesforce/tough-cookie/compare/v4.1.3...v4.1.4) https://www.npmjs.com/package/tough-cookie/v/4.1.4 #### What's Changed - Add local alias for `toString` by [@​corvidism](https://togithub.com/corvidism) in [https://github.com/salesforce/tough-cookie/pull/409](https://togithub.com/salesforce/tough-cookie/pull/409) - Fix incorrect string validation for URL by [@​coditva](https://togithub.com/coditva) in [https://github.com/salesforce/tough-cookie/pull/261](https://togithub.com/salesforce/tough-cookie/pull/261) #### New Contributors - [@​corvidism](https://togithub.com/corvidism) made their first contribution in [https://github.com/salesforce/tough-cookie/pull/409](https://togithub.com/salesforce/tough-cookie/pull/409) - [@​coditva](https://togithub.com/coditva) made their first contribution in [https://github.com/salesforce/tough-cookie/pull/261](https://togithub.com/salesforce/tough-cookie/pull/261) **Full Changelog**: salesforce/tough-cookie@v4.1.3...v4.1.4 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am every weekday" in timezone Europe/Madrid, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/Unleash/unleash). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
The
getCookies
andsetCookie
functions can handle URL objects. They used to handle it in v4.0.0 but it seems since 4.1.1, validations were added which don't allow using URL object. PR: #193This change updates the validations to allow both string and object.