Socket
Socket
Sign inDemoInstall

@shopify/react-cookie

Package Overview
Dependencies
Maintainers
19
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-cookie - npm Package Compare versions

Comparing version 0.0.33 to 0.0.34

4

dist/src/hooks.js

@@ -16,5 +16,3 @@ "use strict";

}
var _a = tslib_1.__read(react_1.useState(function () {
return manager ? manager.getCookie(key) : undefined;
}), 2), cookie = _a[0], setCookieValue = _a[1];
var _a = tslib_1.__read(react_1.useState(function () { var _a; return (_a = manager) === null || _a === void 0 ? void 0 : _a.getCookie(key); }), 2), cookie = _a[0], setCookieValue = _a[1];
var setCookie = react_1.useCallback(function (value, options) {

@@ -21,0 +19,0 @@ if (!value) {

{
"name": "@shopify/react-cookie",
"version": "0.0.33",
"version": "0.0.34",
"license": "MIT",

@@ -28,3 +28,3 @@ "description": "Cookies in React for the server and client",

"@shopify/react-hooks": "^1.11.1",
"@shopify/react-network": "^3.5.4",
"@shopify/react-network": "^3.5.5",
"cookie": "^0.4.0",

@@ -31,0 +31,0 @@ "tslib": "^1.9.3"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc