react-router-prompt
Advanced tools
Comparing version
{ | ||
"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 |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
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
77910
286.59%2
-75%16
45.45%1203
1938.98%14
16.67%1
Infinity%1
Infinity%+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed