react-cookie
Advanced tools
Comparing version 0.1.8 to 0.2.0
{ | ||
"name": "react-cookie", | ||
"version": "0.1.8", | ||
"version": "0.2.0", | ||
"description": "Load and save cookies within your React application", | ||
"main": "dist/react-cookie.min.js", | ||
"files": [ | ||
"index.js" | ||
"dist/react-cookie.js", | ||
"dist/react-cookie.min.js" | ||
], | ||
@@ -24,3 +25,4 @@ "repository": { | ||
"scripts": { | ||
"build": "mkdir dist & browserify index.js > dist/react-cookie.js & uglifyjs dist/react-cookie.js -o dist/react-cookie.min.js" | ||
"build": "mkdir dist & browserify index.js > dist/react-cookie.js & uglifyjs dist/react-cookie.js -o dist/react-cookie.min.js", | ||
"test": "node_modules/.bin/minijasminenode2 test.js" | ||
}, | ||
@@ -32,4 +34,5 @@ "dependencies": { | ||
"browserify": "^9.0.3", | ||
"minijasminenode2": "^1.0.0", | ||
"uglify-js": "^2.4.17" | ||
} | ||
} |
# react-cookie | ||
Load, save and remove cookies within your React application | ||
If you are within a non-browser environment, it will do nothing and not crash. | ||
If you are within a non-browser environment, you can use `reactCookie.setRawCookie(req.headers.cookie)` | ||
@@ -81,5 +81,6 @@ ## Download | ||
### `reactCookie.load(name)` | ||
### `reactCookie.load(name, [doNotParse])` | ||
### `reactCookie.save(name, val, [opt])` | ||
### `reactCookie.remove(name)` | ||
### `reactCookie.setRawCookie(cookies)` | ||
@@ -86,0 +87,0 @@ ## opt |
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
10436
5
115
109
3
3
4