You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@shopify/react-cookie

Package Overview
Dependencies
Maintainers
13
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.6 to 0.0.7

4

dist/types.d.ts

@@ -6,5 +6,5 @@ import { CookieSerializeOptions } from 'cookie';

} & CookieSerializeOptions;
export declare type Cookie = {
export interface Cookie {
[key: string]: CookieValue;
};
}
export interface CookieManager {

@@ -11,0 +11,0 @@ getCookie(name: string): string | undefined;

{
"name": "@shopify/react-cookie",
"version": "0.0.6",
"version": "0.0.7",
"license": "MIT",

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

"@shopify/react-effect": "^3.2.5",
"@shopify/react-hooks": "^1.2.5",
"@shopify/react-html": "^9.2.5",
"@shopify/react-hooks": "^1.3.0",
"@shopify/react-html": "^9.2.6",
"@shopify/react-network": "^3.3.4",

@@ -32,0 +32,0 @@ "cookie": "^0.4.0",

@@ -114,8 +114,8 @@ # `@shopify/react-cookie`

#### createCookies()
#### `createCookies()`
This utility can be used to create an initial set of cookies in the `document.cookie`. This can be useful in test set up.
#### clearCookies()
#### `clearCookies()`
This utility can be used to clear a set of cookies from the `document.cookie`. This can be useful when you need to clear the cookies between tests, such as in an `afterEach` block.
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc