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

isomorphic-cookie

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isomorphic-cookie - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

2

package.json
{
"name": "isomorphic-cookie",
"version": "0.5.2",
"version": "0.5.3",
"description": "Load and save cookies on the client and server",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,5 +5,6 @@ # isomorphic-cookie

## Isomorphic cookies!
You can also plug it directly with a Node.js request by adding just before the renderToString: `var unplug = isomorphicCookie.plugToRequest(req, res);`<br />
*(require the cookieParser middleware)*
If using on Node.js with express or hapi, you can hook into the request and reply using `var unplug = isomorphicCookie.plugToRequest(req, res);`
*(require the cookieParser middleware for express)*
To ensure long running async operations do not attempt to alter cookies after the request has been sent, call the `unplug` function that is returned in a finally block in your router.

@@ -13,3 +14,3 @@

This supports Express and Hapi. If you need to support another framework, feel free to send a PR.
This currently supports Express and Hapi. If you need to support another framework, feel free to send a PR.

@@ -16,0 +17,0 @@ ## Download

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