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

webdetta

Package Overview
Dependencies
Maintainers
1
Versions
451
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webdetta - npm Package Compare versions

Comparing version 0.0.24 to 0.0.25

2

package.json
{
"name": "webdetta",
"version": "0.0.24",
"version": "0.0.25",
"author": "Fedot Kriutchenko <fodyadev@gmail.com>",

@@ -5,0 +5,0 @@ "description": "",

@@ -18,5 +18,18 @@ const AsyncFunction = (async () => {}).constructor;

let p;
return (...a) => (
p ??= Promise.resolve().then(() => p = null).then(() => f(...a))
);
return function () {
p ??= Promise.resolve()
.then(() => p = null)
.then(() => f.apply(this, arguments));
return p;
}
}
throttle.T = (delay, f) => {
let t;
return function () {
clearTimeout(t);
return new Promise((resolve) => {
t = setTimeout(() => resolve(f.apply(this, arguments)), delay);
});
}
}
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