@shopify/react-network
Advanced tools
Comparing version 3.4.1 to 3.5.0
@@ -8,4 +8,10 @@ # Changelog | ||
<!-- ## [Unreleased] --> | ||
<-- ## [Unreleased] --> | ||
## [3.5.0] - 2020-06-16 | ||
### Fixed | ||
- Do not set `set-cookie` headers for incoming request cookies | ||
## [3.4.0] - 2020-06-10 | ||
@@ -12,0 +18,0 @@ |
@@ -34,2 +34,8 @@ "use strict"; | ||
var value = options.value, cookieOptions = tslib_1.__rest(options, ["value"]); | ||
// only set cookies that have been changed | ||
// decode URI as the manager's cookie value is also decoded | ||
var rawCookieValue = ctx.cookies.get(cookie); | ||
if (rawCookieValue && decodeURIComponent(rawCookieValue) === value) { | ||
return; | ||
} | ||
// missing 'none` in `sameSite` | ||
@@ -36,0 +42,0 @@ // https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/cookies/index.d.ts#L91 |
{ | ||
"name": "@shopify/react-network", | ||
"version": "3.4.1", | ||
"version": "3.5.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A collection of components that allow you to set common HTTP headers from within your React application.", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58669
877