Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

use-debounce

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-debounce - npm Package Compare versions

Comparing version 7.0.1 to 8.0.0-beta

dist/index.d.ts

49

package.json
{
"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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc