use-debounce
Advanced tools
Comparing version 7.0.1 to 8.0.0-beta
{ | ||
"name": "use-debounce", | ||
"version": "7.0.1", | ||
"version": "8.0.0-beta", | ||
"description": "Debounce hook for react", | ||
"main": "lib/index.js", | ||
"module": "esm/index.js", | ||
"types": "./lib", | ||
"source": "src/index.ts", | ||
"main": "dist/index.js", | ||
"module": "dist/index.module.js", | ||
"esmodule": "dist/index.modern.js", | ||
"umd:main": "dist/index.umd.js", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"import": "./esm/index.js", | ||
"require": "./lib/index.js" | ||
"browser": "./dist/index.module.js", | ||
"umd": "./dist/index.umd.js", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js", | ||
"default": "./dist/index.module.js" | ||
} | ||
@@ -17,7 +21,6 @@ }, | ||
"scripts": { | ||
"size": "yarn build:es && size-limit", | ||
"size": "yarn build-only && size-limit", | ||
"test": "yarn jest && eslint \"src/**.ts\"", | ||
"build": "rm -rf ./lib/* ./esm/* && yarn test && yarn size && yarn build:cjs && yarn build:es", | ||
"build:cjs": "tsc", | ||
"build:es": "tsc -m esNext --outDir esm", | ||
"build-only": "rm -rf ./dist/*; microbundle build --entry src/index.ts --name use-debounce --tsconfig tsconfig.json", | ||
"build": "yarn test && yarn size && yarn build-only", | ||
"prepublishOnly": "yarn build" | ||
@@ -43,4 +46,3 @@ }, | ||
"files": [ | ||
"esm", | ||
"lib" | ||
"dist" | ||
], | ||
@@ -73,2 +75,3 @@ "peerDependencies": { | ||
"jest": "^26.4.2", | ||
"microbundle": "^0.15.0", | ||
"prettier": "^1.17.1", | ||
@@ -86,7 +89,19 @@ "react": "16.8.3", | ||
{ | ||
"path": "esm/index.js", | ||
"path": "dist/index.js", | ||
"limit": "1 KB" | ||
}, | ||
{ | ||
"path": "esm/index.js", | ||
"path": "dist/index.modern.js", | ||
"limit": "1 KB" | ||
}, | ||
{ | ||
"path": "dist/index.module.js", | ||
"limit": "1 KB" | ||
}, | ||
{ | ||
"path": "dist/index.umd.js", | ||
"limit": "1 KB" | ||
}, | ||
{ | ||
"path": "dist/index.js", | ||
"import": "{ useDebounce }", | ||
@@ -96,3 +111,3 @@ "limit": "1 KB" | ||
{ | ||
"path": "esm/index.js", | ||
"path": "dist/index.js", | ||
"import": "{ useDebouncedCallback }", | ||
@@ -102,3 +117,3 @@ "limit": "1 KB" | ||
{ | ||
"path": "esm/index.js", | ||
"path": "dist/index.js", | ||
"import": "{ useThrottledCallback }", | ||
@@ -105,0 +120,0 @@ "limit": "1 KB" |
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
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
100428
28
15
183
3
1