Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

next-persist

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-persist - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1-alpha.0

lib/cjs/getCookieProps.js

21

package.json
{
"name": "next-persist",
"version": "1.2.0",
"version": "1.2.1-alpha.0",
"description": "Bridging the gap between client-side persistence and server-side rendering",
"main": "index.js",
"main": "./lib/esm/index.js",
"types": "./types/nextpersist.d.ts",
"scripts": {
"test": "jest"
"test": "jest",
"lint": "eslint . --ext .ts",
"tsc": "npx tsc -p tsconfig.json",
"tsc2": "npx tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
"prepublish": "npm run tsc"
},

@@ -32,5 +37,13 @@ "repository": {

"devDependencies": {
"@types/cookie": "^0.4.0",
"@types/js-cookie": "^2.2.6",
"@types/next": "^9.0.0",
"@types/react-dom": "^17.0.3",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"eslint": "^7.24.0",
"jest": "^26.6.3",
"react": "^17.0.2",
"react-redux": "^7.2.3"
"react-redux": "^7.2.3",
"typescript": "^4.2.4"
},

@@ -37,0 +50,0 @@ "peerDependencies": {

4

README.md

@@ -61,3 +61,2 @@ <p align="center">

</li>
<!-- <li><a href="#roadmap">Roadmap</a></li> -->
<li><a href="#contributing">Contributing</a></li>

@@ -111,3 +110,4 @@ <li><a href="#license">License</a></li>

4. If utilizing cookies to persist client-state:<br>
Import `{ getCookieProps }` into your frontend at the top level of your Next.js app as well as importing `{ getCookieStore }` into any reducer(s) you plan to persist.
Import `{ getCookieProps }` into your frontend at the top level of your Next.js app<br>
Import `{ getCookieStore }` into any reducer(s) you plan to persist.

@@ -114,0 +114,0 @@ ```

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