{"_id":"p-debounce","_rev":"15-2993ad8e849f4d0170103cb99f141e70","name":"p-debounce","dist-tags":{"latest":"6.0.0"},"versions":{"1.0.0":{"name":"p-debounce","version":"1.0.0","keywords":["promise","debounce","debounced","limit","limited","concurrency","throttle","throat","limited","interval","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-debounce@1.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-debounce#readme","bugs":{"url":"https://github.com/sindresorhus/p-debounce/issues"},"xo":{"esnext":true},"dist":{"shasum":"cb7f2cbeefd87a09eba861e112b67527e621e2fd","tarball":"https://registry.npmjs.org/p-debounce/-/p-debounce-1.0.0.tgz","integrity":"sha512-ttOxn4Yt0hzIsLLqKi/Ry9QRxW+UQKdoWHz7g99Ci57zPkqUU3kbWKAeHuv+HfRLe109acYLUY6kuVCOOqnt4g==","signatures":[{"sig":"MEQCIHONqC0LkXVuDYWHqn1HYXi6UD+Lk8w5Uwc46GYZYQxnAiAIoejzYraiSfu++qaul0URkT5GgjtmRC3Xy9vQomLL2Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"cb7f2cbeefd87a09eba861e112b67527e621e2fd","engines":{"node":">=4"},"gitHead":"5b1383be0d237965052bd59a26e6721da180f721","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-debounce.git","type":"git"},"_npmVersion":"2.15.9","description":"Debounce promise-returning & async functions","directories":{},"_nodeVersion":"4.6.0","devDependencies":{"xo":"*","ava":"*","delay":"^1.3.1","in-range":"^1.0.0","time-span":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/p-debounce-1.0.0.tgz_1477037298483_0.28452768875285983","host":"packages-18-east.internal.npmjs.com"}},"2.0.0":{"name":"p-debounce","version":"2.0.0","keywords":["promise","debounce","debounced","limit","limited","concurrency","throttle","throat","limited","interval","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-debounce@2.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-debounce#readme","bugs":{"url":"https://github.com/sindresorhus/p-debounce/issues"},"dist":{"shasum":"4c3465749891ddb432e8a86246392206fa30018e","tarball":"https://registry.npmjs.org/p-debounce/-/p-debounce-2.0.0.tgz","fileCount":5,"integrity":"sha512-CDfiUq7JoYDTukEIdyH5F+aBKM83aoquDN6Yf/eGyPuY9f7RLWMI+FqK8XlUx4Hskz9F0f4iVPHQOXsDVKkN1w==","signatures":[{"sig":"MEUCIGj+OvGPKM5itYW7k37UhFzGno+o3ryZqDVB3ppBknYGAiEAvfUPdcVg4SjM2joWo8WRWJLGk99dz7g9oazH59y3P6k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch+lhCRA9TVsSAnZWagAApVwQAIsGY5HrFJkjUkFEY2Qd\niucZ/deqv+lnZikNM9Aiy0emOje+w7sBCa7zBmOGH+PLAuzmvapTyL3ySsZx\ncRu7Y3OcH95eyt+tHU4jXWG4pZh5ESr5odBMQIlIL7uubGys7plGGOn+q1dR\nKbSHZ9u+p9FWYvlhH+tspOWus+a4GBwhIv7H6Av5JkG/Yu5hNtKxv/QUBmMi\nZ9K2c3lerr8YlVqLsjltbz4FXfM/gG+t40Pc0h2HJULQdoLiGTAshHaIE5i3\nmbR+KoJcpzbJ4tdBYkPi1qSS6jcDMxeMpyRGEcd8iYKrhPXroN4dfFo/Wnjm\n9d7ar8eKrLfEIRjGUExJGDn15bPClPZHxsWC71p3ZJDObAsB9f0ZrKy2ipuF\n63GQW80Hd+Vfd26lletxy633UUtgvRUmJCBW2eyYeGUpQpp8OUVGvcGojrMd\npgv8io09G5uj3nXRei6+pwVRAyYhV92GSn0LiljYLaVJeCZqP15+E0KvlxP+\ndC3f6SkKEm7yJi0L1AZYBOqJMoqcyK4Z7meQ5TVmre0Ym2WlIZcMUpRpHDsL\n3h87o4WsNf5SQgxCozywcazueZeL+6muwKZXKBd+Qh+9KhXNztlh68IQYpR0\nAw0sc4qi60xPosfjeXzvVjVHlK5D59lpwZwiExMPW2x/SwsIp3qAlGm2aMXH\nBFg9\r\n=Q9ew\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=6"},"gitHead":"7a7706e941366e61c5816b00f1acd6f0b99cefd9","scripts":{"test":"xo && ava && tsd-check"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-debounce.git","type":"git"},"_npmVersion":"6.9.0","description":"Debounce promise-returning & async functions","directories":{},"_nodeVersion":"8.15.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.24.0","ava":"^1.3.1","delay":"^4.1.0","in-range":"^1.0.0","time-span":"^3.0.0","tsd-check":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/p-debounce_2.0.0_1552410976359_0.4206259313205092","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"p-debounce","version":"2.1.0","keywords":["promise","debounce","debounced","limit","limited","concurrency","throttle","throat","limited","interval","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-debounce@2.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-debounce#readme","bugs":{"url":"https://github.com/sindresorhus/p-debounce/issues"},"dist":{"shasum":"e79f70c6e325cbb9bddbcbec0b81025084671ad3","tarball":"https://registry.npmjs.org/p-debounce/-/p-debounce-2.1.0.tgz","fileCount":5,"integrity":"sha512-M9bMt62TTnozdZhqFgs+V7XD2MnuKCaz+7fZdlu2/T7xruI3uIE5CicQ0vx1hV7HIUYF0jF+4/R1AgfOkl74Qw==","signatures":[{"sig":"MEUCIE2F7XempOwt9CRhm+lhHwTloLrZ/rrOqonM/oGSjM1IAiEAxZBQkNlb4sVfUZk9HByOTpKKRM6CB7ZmrSrSEZgMrCM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6139,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpv8yCRA9TVsSAnZWagAAGLUP/2x+rNO3vGDa9tJcn4Hf\njna4BphXI0Qa7gSaYAy2kqGp8j9qwEtVnF+2+gdEMSPzS8PSeyM+H0PDXR78\n9pSLZU8Z9fuubcbQJ/RhoD9NHpfIFTJX03bQ01nbm6J4KEEntIb0m2PDJIve\ng96sz/md+Kre/T3nd8+Fm2mMr4tcl9fS3bovV5wssMRpBXimmO6WFT+eyqhP\ni0yelo7SODCjvHJKBYur3yVx46IVI4/xeHH04ZLr3t2VrzLDtLMre/NaBXcA\nC+Jmeb5vDecvtU15SiVya5WGgxKfXXayDgQWbjE3B2KjJnR3pdTvUpVBVB5L\nPi96/sWPbwOCXNoRs2+JREcw7o7atRauSzxQOsOW8bLZ58H3SoZlEOWwj6RC\neCOa9x8R5CinsD0vUvKpuOzFzDu2aZcMUoOcPZIJtVEkWOq0pmoYdmEdsKwO\n1Xt5bOoDjd2Tt1OWXkbmE3DDWJqBgu+/hLQqEBkKo6FydGvZ/jQPntuTKLNF\nOMNQ1pQcbPwhUewOfV0STtCaLR3Cw0LGTdoBXzzvoYqOoBnrN0npUX8J6sfK\nSVXw/wSGSwpldUwBQHFWZGehOJfCqDq51VimB/8VPNweMgae5oAqexjNr5nu\nxinLSIIjB9gdMLSeHe/gBEkdkX3wDf3msMbsEgHBiCsRoDq/qWy5pCtvb3bP\nYmvF\r\n=OGQe\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=6"},"gitHead":"b213e791ad649af0347143561513ca2c54c1e552","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-debounce.git","type":"git"},"_npmVersion":"6.9.0","description":"Debounce promise-returning & async functions","directories":{},"_nodeVersion":"8.15.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.24.0","ava":"^1.4.1","tsd":"^0.7.2","delay":"^4.1.0","in-range":"^1.0.0","time-span":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/p-debounce_2.1.0_1554448177450_0.13740964293712787","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"p-debounce","version":"3.0.0","keywords":["promise","debounce","debounced","limit","limited","concurrency","throttle","throat","limited","interval","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-debounce@3.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-debounce#readme","bugs":{"url":"https://github.com/sindresorhus/p-debounce/issues"},"dist":{"shasum":"ae634b5be4a438297c31cbfdc3515ded21009d43","tarball":"https://registry.npmjs.org/p-debounce/-/p-debounce-3.0.0.tgz","fileCount":5,"integrity":"sha512-2dK8+78sCGkn4EUGoM8eZ6KrB9nvIRqQaFPjJcpXs6tz05Ad8cfsAy/VW2UAqJ+0IgMFT2Vwn1PKXFFuQa7cEQ==","signatures":[{"sig":"MEQCIHSuxNSvg2bEB7rfiZ4kImY38jFct+D5xIBZeB7QoMUOAiBAo/tTaNTUVGkTyeIQpqim8OZJsaZ4LRstGtnACDdCnQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBczGCRA9TVsSAnZWagAAJakQAIcHUix4WQnRrJFiw+Rg\nk/fj8f9Gj/OSk//sgFno8YrhQyZIemBu/RQMxIUuEUnJS2nnAMCA4DejuoVh\nDdqo0WY/YwimIJRMuGzxTpigyN+i8vY0YR9u4dqcjbZMOgoESJ0nw4F7Q04Z\nbZZyn2iHIAnP8rWqPeWpU9jinQBQj0b+oX3SKQ1gVCtkZrAX71KBM2IWbHHu\n7LwRuARcFuJUoVNTd2EL02b8Q0JZMdwjEcpYtw0hCqEXx9sHtYivNH0JtyDH\na9gISzmyDs9BTjEEhAIgjtz5/1+uazGmrw5lYxN6BgICcG+a6EyqVWcEvhyb\nRGk6BLwUBEyoXDjlIMfMczfukVEiqsiiCarzmVCI/E0Dyso4SfofbPVg6IMf\nX+bnKpr6/ZQZjTIjMa0E+Q09YhCIetu7ZprHmc5i3h4MK00XVBg1ik24LV+v\nj8hYmnF5eyByV0hwC5LVsuphiUVYN0SBoML+99GlPMtNtXbOaVu0LuBWAGpK\nv/EW9Xoy3mPb+GxvjV18MCanutEogO1sqsKCCGQ8uR7T6UxBezwPaz/nRfF3\nfdSZjlmjwWEzcNiYXOvPuHc6oIUbU+Xy5i5NmVuukN7I+TIvmx9LNQfcWukd\nMKk3UFZEDXrKdSB8rKyFqPNJ9NRKntRlH66xDUqPpZVTi/xar2nqHUXBc95Y\nXpsP\r\n=5Wkk\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","engines":{"node":">=12"},"exports":"./index.js","gitHead":"a9ad96b63eb741d9462530540c243e14a6d1cda7","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-debounce.git","type":"git"},"_npmVersion":"6.14.10","description":"Debounce promise-returning & async functions","directories":{},"_nodeVersion":"12.20.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.37.1","ava":"^3.15.0","tsd":"^0.14.0","in-range":"^2.0.0","time-span":"^4.0.0","yoctodelay":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/p-debounce_3.0.0_1610992837846_0.5550233853649027","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"p-debounce","version":"3.0.1","keywords":["promise","debounce","debounced","limit","limited","concurrency","throttle","throat","limited","interval","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-debounce@3.0.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-debounce#readme","bugs":{"url":"https://github.com/sindresorhus/p-debounce/issues"},"dist":{"shasum":"51c38b03aa09f319ec507f1d8aba831949c8bbf2","tarball":"https://registry.npmjs.org/p-debounce/-/p-debounce-3.0.1.tgz","fileCount":5,"integrity":"sha512-7n7FWY/f4gmVkd6BwC2EZRbTnAmZbL/Zdrc3qbJRnwkb3OUp4HbPlEN1XybpQk0MML6RDDdePMFIr4dOXXfPNw==","signatures":[{"sig":"MEUCIFKE/ahxF+h69SKc3nzgMU7S0Vju6xdwfa1ho2tkui2iAiEA1iIF6jjrEk2iFV5k75XAXs36c6xlBlytn88GHkPUZDo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCxXhCRA9TVsSAnZWagAAp1sQAIpCLM27eimfckm3YSU+\nQxvUK9Qd/zRZVnCBqbL+UTmNXdaUpJInAFqNfRBVyk6sRZpbkLKkvyYCt+NO\nc0AkISFa0Cht0gSpX8X0gr9vCY9sCC2CU64o7mxDg1jDA+YPNEKN9wIXewu/\nbOQ4QjrPcZJKRbt04XOi8NbLJQg3xWGgYuBV31tglcnc6m64OASpbhhwz9bB\n9ekzzCt8tQLQwPraHeX2YircqLAv3tluSYCt9gnQt57fCEx8Zc4ArDqEtYJv\nKFhawI6gZxNrA9b6qE7v1gehvBJyVagDoAV0EFGgVPsoXz5502VUCs1MlG+U\nS/gXPpqTbYs6ItETtJ6wQhIF89jXVGkzTuJw6hz/OBnoG2FDbYKLDJph7O2N\n7cgYPHIicLbRN6sakiW18ALlnfQ36Nb6lLZoRkwKGrtYCLbev0K53ShElCCw\ngAXO/Mcbt0arZKzRhmCByoX+M7TW7b+29jWEtNtLZmGgeLRW/N+mnvHn4tZA\nnnniSnV0CKEo833DNMYhqo8Oc6UbiOykcOz76LQd5jVsggxzGfuYHifu5Jdi\nnWR65Wp0JSZGseUyqK4Toz7VBhyR1D0q5my63c1yG9SJ0LeoHZsjxh/WJTv1\nfHLpudxadBzdM3wNn5nooEfx8JzgrQZ286CEdVfzK3pr0IQwLCAZ29Rpt3u8\nGmnb\r\n=clOp\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","engines":{"node":">=12"},"exports":"./index.js","gitHead":"e073518702b69db9637760a12717a7c99dd0a4b9","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-debounce.git","type":"git"},"_npmVersion":"6.14.10","description":"Debounce promise-returning & async functions","directories":{},"_nodeVersion":"12.20.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.37.1","ava":"^3.15.0","tsd":"^0.14.0","in-range":"^2.0.0","time-span":"^4.0.0","yoctodelay":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/p-debounce_3.0.1_1611339233180_0.34449890013638496","host":"s3://npm-registry-packages"}},"3.0.2":{"name":"p-debounce","version":"3.0.2","keywords":["promise","debounce","debounced","limit","limited","concurrency","throttle","throat","limited","interval","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-debounce@3.0.2","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-debounce#readme","bugs":{"url":"https://github.com/sindresorhus/p-debounce/issues"},"dist":{"shasum":"8bc7aa524e512b8572f75c6a41858b7a2222a1ee","tarball":"https://registry.npmjs.org/p-debounce/-/p-debounce-3.0.2.tgz","fileCount":5,"integrity":"sha512-I5Tswd6ow31zGbudKRtKBlgI85n6BQrXdsuv1cN7MjNP3xCRSVsX8L57SzIegEx+b77LXzvGt5GJcXr7gBsiXA==","signatures":[{"sig":"MEYCIQD0IwpZA1GCffXiVD/RKl58mxEIyeeAjxHCukP7/CSBlQIhAMR+PcKCEfP3KbEjmnlc2chTcuuIXz4f71yZOPssBum0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYXzzCRA9TVsSAnZWagAAnUcP/3uHHN5u1fQEXGZI0xuP\nwdpfqhHSikiH7Wsco7Mh2TYvZSX3jNBi6a++SiD9jJerJJuvADkTDMbkzYKt\nEbeq04+3YyjyDF8H0Mu7y1FH0jMwxsbnoJO4rB/IEmA7Smmto6Ex2EaBwgWo\neS2GGM7wNiBqJleScLaLiyZoAJOeOcmB3kD9tmh4o+579QCC8FJF12xtywGa\nfywPumZ/GQXIRBfBI/kWDJXNROyTmXGygjIbHRt47APFr1toGdxUSZ9++FAo\nf2sqjcSVQPn21zaKKJXFP+jFUISPrXRrUHrCg4ZN43WC+p3ha/U6/59sseDv\n2+sFL9VOXiTdz+0hETGy/e4PrKMkC6JG38G7NTymLYMkZ0819N7b6SJZ71lY\nsk7cZ/SHKR2NGJR/oe1QdK5Ijq18eZ5ZR9qYEknuHWzR8YHG5X84D212OsVW\nRMrmRgMf2ZC3YJFfBJJnHSusdNpaN5cA+i77VmUY3sy2ibV4f6JZ70fE05HO\na2TpU/m+3yr2mx4xUbX5IH+x1rxqFdfw64fedSJuowZpMAHgbjPcUigkNNCj\ntwPlDAjTFZi/Q0/4ekEY7iu/uMyinEDhIBT3zFSBnLjLmqJ9WwIwOQgGBYR9\nJ0C04QjybPLRyOSrkIz9HAuLJn42LmBzaAHKDej0ElMEPJhdtvLSvz+s3npa\n3VfT\r\n=pKEP\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","engines":{"node":">=12"},"exports":"./index.js","gitHead":"2eee95247f1dadb26a02ca328a2b44055fdc0caa","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-debounce.git","type":"git"},"_npmVersion":"6.14.10","description":"Debounce promise-returning & async functions","directories":{},"_nodeVersion":"12.20.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.37.1","ava":"^3.15.0","tsd":"^0.14.0","in-range":"^2.0.0","time-span":"^4.0.0","yoctodelay":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/p-debounce_3.0.2_1617001714866_0.7834370578263965","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"p-debounce","version":"4.0.0","keywords":["promise","debounce","debounced","limit","limited","concurrency","throttle","throat","limited","interval","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-debounce@4.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-debounce#readme","bugs":{"url":"https://github.com/sindresorhus/p-debounce/issues"},"dist":{"shasum":"348e3f44489baa9435cc7d807f17b3bb2fb16b24","tarball":"https://registry.npmjs.org/p-debounce/-/p-debounce-4.0.0.tgz","fileCount":5,"integrity":"sha512-4Ispi9I9qYGO4lueiLDhe4q4iK5ERK8reLsuzH6BPaXn53EGaua8H66PXIFGrW897hwjXp+pVLrm/DLxN0RF0A==","signatures":[{"sig":"MEUCIAuyX1XksmtcZ2mPEDU86Tbu7FqZXgrB8n7FcrQx7wA8AiEAreGGNW8hIA2bYrgpnUv6PYkpSwqjwJIDj29v01eBXkg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfqNfCRA9TVsSAnZWagAAQ4EP/3Q35fznsS1cpAcUTkOu\nvOvpCHf43NJhvJZis76WXFny+fhjjoGc3aQmKacYtiXv0ecZrpEktgnEJKox\nEZ4y/6mADtqT4jv68yNGUfMSYy/2jsqQXfKr0eivQabVe5qw70t+Ay5GBuQN\njcnZRXfw5Ysz0GJ2CcFLHwfbmc4xbhMLZExgZ2PEOppWEmer6/hp51LjghlZ\nVNOtB+8VaaJBpzzWASsNbz3gymMY1cDwaq2upcjsr3WoY07es+2s/rGWKDeG\neIb1Zk1wBTTqO6T3299FvX0AqQl4kD8t6zHyPAzRBrdMZ26G5BCOZiYOiu0T\ngYVdy+GphP7w4pxW+jq2yDOmnwsnpUuZARyJVQiWTTaJVxfuYCpVYsitt7/W\nJ3BMr1Txxcs1lNsRRTREX8EgMlfcE1/UaCjqqKj+5DPE3QQPSdOdyqqMTxUN\nHycwMaOCKtcE7MPlSiR2X6GJ3FRf1tcKqTnl9nPhgUZPC4Ur/cg36DzddxSl\nHvwXIi1MmYf0jINPpCBrNbaStyPtqjXT5seUcAvAXZUbtOdNmF1mICuOoK8G\nIC3pHR+etSGxpCfWc5/b2MwRYxWOWS/cni4Y525ABhG04vIeGtecaQLvD4Mw\nIAgTAfGAMOkNNrr4C0Efy4DaxGfwhNfCe++7jqSoOsAH0bGbhahwUKczwkdO\naYtE\r\n=q72I\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","engines":{"node":">=12"},"exports":"./index.js","gitHead":"1be433d4f1922d4e8496edb7eac5afa960625cb0","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-debounce.git","type":"git"},"_npmVersion":"6.14.10","description":"Debounce promise-returning & async functions","directories":{},"_nodeVersion":"12.20.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.37.1","ava":"^3.15.0","tsd":"^0.14.0","in-range":"^2.0.0","time-span":"^4.0.0","yoctodelay":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/p-debounce_4.0.0_1618912095435_0.21708815423302696","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"p-debounce","version":"5.0.0","keywords":["promise","debounce","debounced","limit","limited","concurrency","throttle","throat","interval","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-debounce@5.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-debounce#readme","bugs":{"url":"https://github.com/sindresorhus/p-debounce/issues"},"dist":{"shasum":"e9522163e159b8c72a19c40f3573aeabab86d8f1","tarball":"https://registry.npmjs.org/p-debounce/-/p-debounce-5.0.0.tgz","fileCount":5,"integrity":"sha512-rnaPSZtETbl75h6lcVFQxJ9LXJhkYhtVNie4Kj/nECazixDxrPYWl8I+DfY69C299HI4Of8NJDfR0ekrlcwAkA==","signatures":[{"sig":"MEUCIEeeqdi2+Nhn+EfSRorHTKNVKK9eOXlIEFEm66FntbJ8AiEA4wsXw8xOBHvV7jgjqQW2HpsOK6dXZ0v0zZ0CAwU8/vM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9165},"type":"module","types":"./index.d.ts","engines":{"node":">=20"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"45e69045b9d2f7b38356f6866ae1362044c7e772","scripts":{"test":"xo && node --test && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-debounce.git","type":"git"},"_npmVersion":"10.9.2","description":"Debounce promise-returning & async functions","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"devDependencies":{"xo":"^1.2.2","tsd":"^0.33.0"},"_npmOperationalInternal":{"tmp":"tmp/p-debounce_5.0.0_1758049714665_0.7965004228841555","host":"s3://npm-registry-packages-npm-production"}},"5.1.0":{"name":"p-debounce","version":"5.1.0","keywords":["promise","debounce","debounced","limit","limited","concurrency","throttle","throat","interval","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-debounce@5.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-debounce#readme","bugs":{"url":"https://github.com/sindresorhus/p-debounce/issues"},"dist":{"shasum":"86d96b5bb5efb8d941000b9502e9f48e4bbe24d6","tarball":"https://registry.npmjs.org/p-debounce/-/p-debounce-5.1.0.tgz","fileCount":5,"integrity":"sha512-3DNQmB7HPRMSuZ9P8JQFzEr7156s1S5Lqpi3mSrsZe5AHvl4ONfGrdB5azWqeOpNejQiemgQBkyU+IDKR5nwyg==","signatures":[{"sig":"MEUCIG4u+wPV4zc2JKeIardjn3pFVBoBJ5l6c/qL1+S/ySD8AiEAhgj4rXJSE2ksfIjrfivtnra1PD1oAHR/xcuctNNEZjk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12084},"type":"module","types":"./index.d.ts","engines":{"node":">=20"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"8964dd202004f49d7b814c0292b064287b70f2d8","scripts":{"test":"xo && node --test && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-debounce.git","type":"git"},"_npmVersion":"11.6.1","description":"Debounce promise-returning & async functions","directories":{},"sideEffects":false,"_nodeVersion":"24.9.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^1.2.2","tsd":"^0.33.0"},"_npmOperationalInternal":{"tmp":"tmp/p-debounce_5.1.0_1761411205776_0.5044053514136031","host":"s3://npm-registry-packages-npm-production"}},"5.1.1":{"name":"p-debounce","version":"5.1.1","keywords":["promise","debounce","debounced","limit","limited","concurrency","throttle","throat","interval","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-debounce@5.1.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-debounce#readme","bugs":{"url":"https://github.com/sindresorhus/p-debounce/issues"},"dist":{"shasum":"52f208e05938b1c29bc5be044be5fed39f1bf6b8","tarball":"https://registry.npmjs.org/p-debounce/-/p-debounce-5.1.1.tgz","fileCount":5,"integrity":"sha512-BHp4jJ6t45tLOWzC/m9X2LIbZJz2mlay+pAwQrm/oRJlvLJhxyJrwtTUW6bz/+99coiC+iNpnk1P0s8/RfXd0A==","signatures":[{"sig":"MEUCIHHwQPK/XUgd5IgScxwMfZd3VIZwsJuQsVi0q1oltxniAiEA7ytoAa0uc8WHyMZ0PXNfRyl19hdyeQzvYGzLEaQBcG4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQD7xDer01MKpi04BT+LBnqGV22n+ITb74WoMMxCp5gp5QIhAOO5PFJUVU8EC0+HdwYi/vyk/7PczX5CrlSzpW8c2hxZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12861},"type":"module","types":"./index.d.ts","engines":{"node":">=20"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"792115ea04019c720ddc8753010c758c55796f77","scripts":{"test":"xo && node --test && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-debounce.git","type":"git"},"_npmVersion":"12.0.1","description":"Debounce promise-returning & async functions","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^1.2.2","tsd":"^0.33.0"},"_npmOperationalInternal":{"tmp":"tmp/p-debounce_5.1.1_1789229041739_0.14614993567542656","host":"s3://npm-registry-packages-npm-production"}},"6.0.0":{"_id":"p-debounce@6.0.0","bugs":{"url":"https://github.com/sindresorhus/p-debounce/issues"},"dist":{"shasum":"a0fe033fdf2cbf971a0648c89ee3778b86294230","tarball":"https://registry.npmjs.org/p-debounce/-/p-debounce-6.0.0.tgz","fileCount":5,"integrity":"sha512-0US2ZjYKL4B24gEBXMUq3LPBGPY+R62s2ZA691BZcXftOqS6nbtQ/IpuP4TjZMacizzdCleR3yyyA4OnZcoHHA==","signatures":[{"sig":"MEUCIGoq/mTj/5rmtgiFqyuQPR/mVBJzLmZ418H6KN7M/wWdAiEA8mHDqoxwq9rkqmi8rLFR4p6ylB8ZsYgtIzLItXHJm7M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIH7eqDxpN+lDHmQwssWlTeJvyfAfceHYkWzqYbMqs5oxAiBM8HJqUv0kAWBUXj6BA5vkNWEeSnoCVVWmUKv9LXuicg=="}],"unpackedSize":15077},"name":"p-debounce","type":"module","types":"./index.d.ts","author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"engines":{"node":">=22"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"7fd1617e1ee9dac490fb659f59bd1e9f04d92c47","license":"MIT","scripts":{"test":"xo && node --test && tsd"},"version":"6.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"homepage":"https://github.com/sindresorhus/p-debounce#readme","keywords":["promise","debounce","debounced","limit","limited","concurrency","throttle","throat","interval","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"repository":{"url":"git+https://github.com/sindresorhus/p-debounce.git","type":"git"},"_npmVersion":"12.2.0","description":"Debounce promise-returning & async functions","directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"sideEffects":false,"_nodeVersion":"26.11.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^5.0.1","tsd":"^0.33.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/p-debounce_6.0.0_1792067938050_0.17991345276580106"}}},"time":{"created":"2016-10-21T08:08:20.618Z","modified":"2026-10-15T12:38:58.349Z","1.0.0":"2016-10-21T08:08:20.618Z","2.0.0":"2019-03-12T17:16:16.483Z","2.1.0":"2019-04-05T07:09:37.561Z","3.0.0":"2021-01-18T18:00:37.993Z","3.0.1":"2021-01-22T18:13:53.290Z","3.0.2":"2021-03-29T07:08:35.023Z","4.0.0":"2021-04-20T09:48:15.621Z","5.0.0":"2025-09-16T19:08:34.869Z","5.1.0":"2025-10-25T16:53:26.020Z","5.1.1":"2026-09-12T16:04:01.819Z","6.0.0":"2026-10-15T12:38:58.145Z"},"bugs":{"url":"https://github.com/sindresorhus/p-debounce/issues"},"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/p-debounce#readme","keywords":["promise","debounce","debounced","limit","limited","concurrency","throttle","throat","interval","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"repository":{"url":"git+https://github.com/sindresorhus/p-debounce.git","type":"git"},"description":"Debounce promise-returning & async functions","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"readme":"# p-debounce\n\n> [Debounce](https://css-tricks.com/debouncing-throttling-explained-examples/) promise-returning & async functions\n\n## Install\n\n```sh\nnpm install p-debounce\n```\n\n## Usage\n\n```js\nimport pDebounce from 'p-debounce';\n\nconst expensiveCall = async input => input;\n\nconst debouncedFunction = pDebounce(expensiveCall, 200);\n\nfor (const number of [1, 2, 3]) {\n\t(async () => {\n\t\tconsole.log(await debouncedFunction(number));\n\t})();\n}\n//=> 3\n//=> 3\n//=> 3\n```\n\n## API\n\n### pDebounce(fn, wait, options?)\n\nReturns a function that delays calling `fn` until after `wait` milliseconds have elapsed since the last time it was called.\n\n#### fn\n\nType: `Function`\n\nPromise-returning/async function to debounce.\n\n#### wait\n\nType: `number`\n\nMilliseconds to wait before calling `fn`. Must be at most `2147483647` (about 24.8 days).\n\n#### options\n\nType: `object`\n\n##### before\n\nType: `boolean`\\\nDefault: `false`\n\nCall the `fn` on the [leading edge of the timeout](https://css-tricks.com/debouncing-throttling-explained-examples/#article-header-id-1). Meaning immediately, instead of waiting for `wait` milliseconds.\n\nThe other calls in the same window resolve with the result of the leading call, so they settle only when the leading call settles.\n\n> [!NOTE]\n> `fn` must not wait for the promise of a call it makes to its own debounced function. That call waits for the leading call, so it never settles.\n\n##### signal\n\nType: `AbortSignal`\n\nAn [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to cancel the debounced function.\n\n### pDebounce.promise(function_, options?)\n\nExecute `function_` unless a previous call is still pending, in which case, return the pending promise. Useful, for example, to avoid processing extra button clicks if the previous one is not complete.\n\n> [!NOTE]\n> `function_` must not wait for the promise of a call it makes to its own debounced function. That call returns the pending promise (or is queued behind the running call with `after: true`), so it never settles.\n\n```js\nimport {setTimeout as delay} from 'timers/promises';\nimport pDebounce from 'p-debounce';\n\nconst expensiveCall = async value => {\n\tawait delay(200);\n\treturn value;\n};\n\nconst debouncedFunction = pDebounce.promise(expensiveCall);\n\nfor (const number of [1, 2, 3]) {\n\t(async () => {\n\t\tconsole.log(await debouncedFunction(number));\n\t})();\n}\n//=> 1\n//=> 1\n//=> 1\n```\n\n#### function_\n\nType: `Function`\n\nPromise-returning/async function to debounce.\n\n#### options\n\nType: `object`\n\n##### after\n\nType: `boolean`\\\nDefault: `false`\n\nIf a call is made while a previous call is still running, queue the latest arguments and run the function again after the current execution completes.\n\nEach caller settles as soon as the execution it is waiting for completes. Calls queued during the same execution share the result of the latest one.\n\nUse cases:\n- With `after: false` (default): API fetches, data loading, read operations - concurrent calls share the same result.\n- With `after: true`: Saving data, file writes, state updates - ensures latest data is never lost.\n\n```js\nimport {setTimeout as delay} from 'timers/promises';\nimport pDebounce from 'p-debounce';\n\nconst save = async data => {\n\tawait delay(200);\n\tconsole.log(`Saved: ${data}`);\n\treturn data;\n};\n\nconst debouncedSave = pDebounce.promise(save, {after: true});\n\n// If data changes while saving, it will save again with the latest data\ndebouncedSave('data1');\ndebouncedSave('data2'); // This will run after the first save completes\n//=> Saved: data1\n//=> Saved: data2\n```\n\n## Recipes\n\n### Autosave\n\nFor autosave, combine trailing debounce with serialization to prevent concurrent saves from racing:\n\n```js\nimport pDebounce from 'p-debounce';\n\nconst saveDocument = async content => {\n\tawait fetch('/api/save', {\n\t\tmethod: 'POST',\n\t\tbody: JSON.stringify({content}),\n\t});\n};\n\n// Serialize saves, then debounce keystrokes\nconst serializedSave = pDebounce.promise(saveDocument, {after: true});\nconst autosave = pDebounce(serializedSave, 1000);\n\ntextArea.addEventListener('input', () => {\n\tautosave(textArea.value);\n});\n\n// 1. Waits 1s after typing stops\n// 2. If user types during save, queues next save with latest content\n// 3. Prevents race conditions where slow saves overwrite newer data\n```\n\n## Related\n\n- [p-throttle](https://github.com/sindresorhus/p-throttle) - Throttle promise-returning & async functions\n- [p-limit](https://github.com/sindresorhus/p-limit) - Run multiple promise-returning & async functions with limited concurrency\n- [p-memoize](https://github.com/sindresorhus/p-memoize) - Memoize promise-returning & async functions\n- [debounce-fn](https://github.com/sindresorhus/debounce-fn) - Debounce a function\n- [More…](https://github.com/sindresorhus/promise-fun)\n","readmeFilename":"readme.md"}