🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

redux-auth-wrapper

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-auth-wrapper - npm Package Compare versions

Comparing version

to
3.0.0

{
"name": "redux-auth-wrapper",
"version": "2.1.0",
"version": "3.0.0",
"main": "index.js",

@@ -10,13 +10,13 @@ "description": "A utility library for handling authentication and authorization for redux and react-router",

"build:copyFiles": "cp -rf package.json LICENSE.txt README.md lib/.",
"dist": "cd lib && npm publish",
"dist:prepare": "npm run build:clean && npm run build && npm run build:copyFiles",
"dist": "cd lib && yarn publish",
"dist:prepare": "yarn run build:clean && yarn run build && yarn run build:copyFiles",
"lint": "eslint src test examples",
"test": "mocha --compilers js:babel-core/register --recursive --require test/init.js test/authWrapper-test.js",
"test:cov": "babel-node --max-old-space-size=4076 $(npm bin)/babel-istanbul cover $(npm bin)/_mocha -- --require test/init.js test/authWrapper-test.js",
"test:cov": "babel-node --max-old-space-size=4076 $(yarn bin)/babel-istanbul cover $(yarn bin)/_mocha -- --require test/init.js test/authWrapper-test.js",
"test:watch": "mocha --compilers js:babel-core/register --recursive --require test/init.js -w test/authWrapper-test.js",
"docs:clean": "rimraf _book",
"docs:prepare": "gitbook install",
"docs:build": "npm run docs:prepare && gitbook build",
"docs:watch": "npm run docs:prepare && gitbook serve",
"docs:publish": "npm run docs:clean && npm run docs:build && cp README.md _book && cd _book && git init && git commit --allow-empty -m 'update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'update book' && git push git@github.com:mjrussell/redux-auth-wrapper gh-pages --force"
"docs:build": "yarn run docs:prepare && gitbook build",
"docs:watch": "yarn run docs:prepare && gitbook serve",
"docs:publish": "yarn run docs:clean && yarn run docs:build && cp README.md _book && cd _book && git init && git commit --allow-empty -m 'update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'update book' && git push git@github.com:mjrussell/redux-auth-wrapper gh-pages --force"
},

@@ -32,32 +32,30 @@ "repository": {

"devDependencies": {
"babel-cli": "6.18.0",
"babel-core": "6.18.2",
"babel-eslint": "6.1.2",
"babel-istanbul": "0.11.0",
"babel-loader": "6.2.7",
"babel-plugin-transform-decorators-legacy": "1.3.4",
"babel-polyfill": "6.16.0",
"babel-preset-es2015": "6.18.0",
"babel-preset-react": "6.16.0",
"babel-preset-stage-0": "6.16.0",
"chai": "3.5.0",
"coveralls": "2.11.15",
"enzyme": "2.6.0",
"eslint": "1.7.1",
"eslint-config-rackt": "1.1.1",
"eslint-plugin-react": "3.16.0",
"expect": "1.20.2",
"gitbook-cli": "2.3.0",
"jsdom": "9.8.3",
"lodash": "4.16.6",
"babel-cli": "6.26.0",
"babel-core": "6.26.3",
"babel-eslint": "10.0.3",
"babel-istanbul": "0.12.2",
"babel-plugin-transform-decorators-legacy": "1.3.5",
"babel-polyfill": "6.26.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-react": "6.24.1",
"babel-preset-stage-0": "6.24.1",
"chai": "4.2.0",
"coveralls": "3.0.9",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.2",
"eslint": "6.8.0",
"eslint-plugin-react": "7.17.0",
"expect": "24.9.0",
"gitbook-cli": "2.3.2",
"jsdom": "15.2.1",
"lodash": "4.17.15",
"mkdirp": "0.5.1",
"mocha": "3.1.2",
"react": "15.3.2",
"react-addons-test-utils": "15.3.2",
"react-dom": "15.3.2",
"react-redux": "4.4.5",
"redux": "3.6.0",
"rimraf": "2.6.1",
"sinon": "1.17.6",
"webpack": "1.13.3"
"mocha": "6.2.2",
"prop-types": "^15.7.2",
"react": "16.12.0",
"react-dom": "16.12.0",
"react-redux": "7.1.3",
"redux": "4.0.5",
"rimraf": "3.0.0",
"sinon": "8.0.2"
},

@@ -68,5 +66,4 @@ "dependencies": {

"lodash.isempty": "^4.4.0",
"prop-types": "^15.5.0",
"query-string": "^5.1.1"
"query-string": "^6.9.0"
}
}

@@ -17,2 +17,5 @@ # redux-auth-wrapper

## Version 3
Version 3.x has the same external API as version 2, however it only supports React >= 16.3. It is also tested with react-router v5 and [connected-react-router](https://github.com/supasate/connected-react-router) which replaced [react-router-redux](https://github.com/reactjs/react-router-redux).
## Version 2

@@ -30,3 +33,3 @@

* [React Router 3](https://github.com/mjrussell/redux-auth-wrapper/tree/master/examples/react-router-3)
* [React Router 4](https://github.com/mjrussell/redux-auth-wrapper/tree/master/examples/react-router-4)
* [React Router 4/5](https://github.com/mjrussell/redux-auth-wrapper/tree/master/examples/react-router-4)

@@ -33,0 +36,0 @@ Other examples not yet updated to v2:

@@ -36,4 +36,4 @@ 'use strict';

_createClass(Redirect, [{
key: 'componentWillMount',
value: function componentWillMount() {
key: 'UNSAFE_componentWillMount',
value: function UNSAFE_componentWillMount() {
this.props.redirect(this.props, this.props.redirectPath);

@@ -40,0 +40,0 @@ }