UNPKG

react-router-last-location

Version:

Provides access to the last location in react + react-router (v4.x) apps. Useful for handling internal routing. Easily prevent leaving your app by users.

99 lines (98 loc) 3.31 kB
{ "name": "react-router-last-location", "version": "2.0.1", "description": "Provides access to the last location in react + react-router (v4.x) apps. Useful for handling internal routing. Easily prevent leaving your app by users.", "main": "dist/index.js", "types": "dist/index.d.ts", "sideEffects": false, "repository": "git@github.com:hinok/react-router-last-location.git", "author": "Dawid Karabin <mail@hinok.net>", "license": "MIT", "files": [ "/dist", "/src" ], "keywords": [ "react", "router", "route", "routing", "history", "location", "entries", "link" ], "scripts": { "start": "webpack-dev-server --open --env.example", "serve": "serve ./example/dist", "clean": "rm -rf ./dist && rm -rf ./example/dist", "prebuild": "npm run clean", "build": "webpack --config webpack.config.js --env.prod", "prepublish": "npm run build", "test": "jest --config=jest.config.json", "test:watch": "jest --config=jest.config.json --watch", "test:coverage": "jest --config=jest.config.json --coverage", "lint": "eslint . --ext .js", "ci": "run-p lint build test:coverage", "postci": "cat ./coverage/lcov.info | coveralls" }, "peerDependencies": { "prop-types": "^15.6.0", "react": "^15.5.4 || ^16.0.0", "react-dom": "^15.5.4 || ^16.0.0", "react-router-dom": "^4.1.1 || ^5.0.1" }, "devDependencies": { "@babel/core": "^7.5.0", "@babel/plugin-proposal-class-properties": "^7.5.0", "@babel/plugin-proposal-decorators": "^7.4.4", "@babel/plugin-proposal-export-namespace-from": "^7.0.0", "@babel/plugin-proposal-function-sent": "^7.5.0", "@babel/plugin-proposal-json-strings": "^7.0.0", "@babel/plugin-proposal-numeric-separator": "^7.0.0", "@babel/plugin-proposal-throw-expressions": "^7.0.0", "@babel/plugin-syntax-dynamic-import": "^7.0.0", "@babel/plugin-syntax-import-meta": "^7.0.0", "@babel/plugin-transform-modules-commonjs": "^7.5.0", "@babel/preset-env": "^7.5.0", "@babel/preset-react": "^7.0.0", "@babel/preset-typescript": "^7.3.3", "@types/enzyme": "^3.10.1", "@types/jest": "^24.0.15", "@types/prop-types": "^15.7.1", "@types/react": "^16.8.23", "@types/react-dom": "^16.8.4", "@types/react-router-dom": "^4.3.4", "babel-core": "^7.0.0-bridge.0", "babel-eslint": "^10.0.2", "babel-jest": "^24.8.0", "babel-loader": "^8.0.6", "coveralls": "^3.0.4", "css-hot-loader": "^1.4.4", "css-loader": "^3.0.0", "enzyme": "^3.10.0", "enzyme-adapter-react-16": "^1.14.0", "eslint": "^5.3.0", "eslint-config-airbnb": "^17.1.0", "eslint-plugin-import": "^2.14.0", "eslint-plugin-jsx-a11y": "^6.1.1", "eslint-plugin-react": "^7.11.0", "html-webpack-plugin": "^3.2.0", "jest": "^24.8.0", "linaria": "^1.4.0-alpha.1", "mini-css-extract-plugin": "^0.7.0", "npm-run-all": "^4.1.5", "react": "^16.8.6", "react-dom": "^16.8.6", "react-router-dom": "^5.0.1", "react-test-renderer": "16.8.6", "serve": "^11.0.2", "ts-jest": "^24.0.2", "ts-loader": "^6.0.4", "typescript": "^3.5.2", "webpack": "^4.35.2", "webpack-cli": "^3.3.5", "webpack-dev-server": "^3.7.2", "webpack-merge": "^4.2.1" } }