🚀 Socket Launch Week 🚀 Day 2: Introducing Repository Labels and Security Policies.Learn More
Socket
Sign inDemoInstall
Socket

react-router-prompt

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router-prompt - npm Package Compare versions

Comparing version

to
0.2.0-beta-3

dist/hooks/use-blocker.d.ts

70

package.json
{
"name": "react-router-prompt",
"version": "0.2.0-beta-2",
"version": "0.2.0-beta-3",
"description": "React Router Navigation Prompt for v6",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"author": "Shyam Gupta (shyamm@outlook.com)",

@@ -24,36 +23,57 @@ "license": "MIT",

"scripts": {
"build": "yarn clean && node build.js && tsc --emitDeclarationOnly --outDir dist",
"clean": "rimraf dist",
"dev": "PORT=5000 node serve.js",
"prepublishOnly": "yarn build"
"start": "tsdx watch",
"build": "yarn clean && tsdx build",
"test": "tsdx test",
"lint": "tsdx lint",
"prepare": "tsdx build",
"size": "size-limit",
"prepublishOnly": "yarn build",
"example": "cd example && yarn start"
},
"husky": {
"hooks": {
"pre-commit": "tsdx lint src"
}
},
"devDependencies": {
"@size-limit/preset-small-lib": "^7.0.8",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.30.6",
"@typescript-eslint/parser": "^5.30.6",
"chokidar": "^3.5.3",
"esbuild": "^0.14.49",
"eslint": "^8.19.0",
"eslint-plugin-react": "^7.30.1",
"live-server": "^1.2.2",
"husky": "^8.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^3.1.4",
"react-router-dom": "^6.3.0",
"rimraf": "^3.0.2",
"serve-handler": "^6.1.3",
"size-limit": "^7.0.8",
"tsdx": "^0.14.1",
"tslib": "^2.4.0",
"typescript": "^4.7.4"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"react-router": ">=6.x",
"react-router-dom": ">=6.x"
"react": ">=16.8",
"react-router": ">=6.x"
},
"files": [
"dist"
"dist",
"src"
],
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^3.1.4",
"react-router-dom": "^6.3.0"
}
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": false,
"trailingComma": "es5"
},
"size-limit": [
{
"path": "dist/react-router-prompt.cjs.production.min.js",
"limit": "10 KB"
},
{
"path": "dist/react-router-prompt.esm.js",
"limit": "10 KB"
}
]
}

@@ -15,3 +15,3 @@ <h1 align="center">react-router-prompt 🚨</h1>

### ✨ [Codesandbox example](https://codesandbox.io/s/react-router-prompt-example-zv3zt5)
### ✨ [Demo](https://react-router-prompt.netlify.app/)

@@ -18,0 +18,0 @@ ## Install