isomorphic-cookie
Advanced tools
Comparing version 0.5.2 to 0.5.3
{ | ||
"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 |
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
20047
88