New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

segal-decorators

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

segal-decorators - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

6

decorators/throttle/throttle.js

@@ -9,3 +9,2 @@ "use strict";

function decorator(fn, timeMs) {
let timeout;
let nextCall;

@@ -18,9 +17,4 @@ return function (...args) {

}
else {
const remaining = nextCall - now;
timeout && clearTimeout(timeout);
timeout = setTimeout(() => fn.apply(this, args), remaining);
}
};
}
//# sourceMappingURL=throttle.js.map

2

package.json
{
"name": "segal-decorators",
"version": "0.1.1",
"version": "0.2.0",
"description": "Bunch of useful decorators",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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