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

cog

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cog - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

test/throttle.js

4

package.json

@@ -5,6 +5,6 @@ {

"author": "Damon Oehlman <damon.oehlman@gmail.com>",
"version": "0.4.1",
"version": "0.5.0",
"dependencies": {},
"devDependencies": {
"tape": "~2.3.0"
"tape": "~2.4.2"
},

@@ -11,0 +11,0 @@ "repository": {

@@ -235,2 +235,9 @@ # cog

### throttle(fn, delay)
A cherry-pickable throttle function. Used to throttle `fn` to ensure
that it can be called at most once every `delay` milliseconds. Will
fire first event immediately, ensuring the next event fired will occur
at least `delay` milliseconds after the first, and so on.
## License(s)

@@ -240,3 +247,3 @@

Copyright (c) 2013 Damon Oehlman <damon.oehlman@gmail.com>
Copyright (c) 2014 Damon Oehlman <damon.oehlman@gmail.com>

@@ -243,0 +250,0 @@ Permission is hereby granted, free of charge, to any person obtaining

@@ -5,2 +5,3 @@ require('./defaults');

require('./logger');
require('./jsonparse');
require('./jsonparse');
require('./throttle');
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