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

@odopod/odo-window-events

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@odopod/odo-window-events - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "@odopod/odo-window-events",
"description": "Reusable, throttled events on the window object.",
"version": "1.0.1",
"version": "1.0.2",
"main": "dist/odo-window-events.js",

@@ -6,0 +6,0 @@ "odoModule": "src/window-events.js",

@@ -129,10 +129,18 @@ import throttle from 'throttleit';

const resize = debounce(WindowEvents._callbacks.resize,
WindowEvents.Timing.DEBOUNCE_TIME);
const leadingResize = debounce(WindowEvents._callbacks.leadingResize,
WindowEvents.Timing.DEBOUNCE_TIME, true);
const scrolled = throttle(WindowEvents._callbacks.scroll,
WindowEvents.Timing.THROTTLE_TIME_DEFAULT);
const fastScroll = throttle(WindowEvents._callbacks.fastScroll,
WindowEvents.Timing.THROTTLE_TIME_FAST);
const resize = debounce(
WindowEvents._callbacks.resize,
WindowEvents.Timing.DEBOUNCE_TIME,
);
const leadingResize = debounce(
WindowEvents._callbacks.leadingResize,
WindowEvents.Timing.DEBOUNCE_TIME, true,
);
const scrolled = throttle(
WindowEvents._callbacks.scroll,
WindowEvents.Timing.THROTTLE_TIME_DEFAULT,
);
const fastScroll = throttle(
WindowEvents._callbacks.fastScroll,
WindowEvents.Timing.THROTTLE_TIME_FAST,
);

@@ -139,0 +147,0 @@ WindowEvents._resizeCallback = () => {

Sorry, the diff of this file is not supported yet

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