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

@blinkk/degu

Package Overview
Dependencies
Maintainers
3
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blinkk/degu - npm Package Compare versions

Comparing version 0.0.318 to 0.0.319

1

lib/dom/inview-progress.d.ts

@@ -8,3 +8,2 @@ import { ProgressWatcher } from '../dom/progress-watcher';

export declare class InviewProgress {
private currentProgress;
private progressWatcher;

@@ -11,0 +10,0 @@ constructor();

14

lib/dom/inview-progress.js

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

constructor() {
this.currentProgress = 0;
this.progressWatcher = new progress_watcher_1.ProgressWatcher();

@@ -18,13 +17,10 @@ }

this.progressWatcher.add({
range: inviewProgressItem.range[0],
range: inviewProgressItem.range,
callback: (progress, direction) => {
(direction == -1) ? setInactive() : setActive();
setActive();
},
inactiveCallback: (progress, direction) => {
setInactive();
}
});
this.progressWatcher.add({
range: inviewProgressItem.range[1],
callback: (progress, direction) => {
(direction == 1) ? setInactive() : setActive();
}
});
}

@@ -31,0 +27,0 @@ clear() {

export interface ProgressWatcherItem {
range: number | Array<number>;
callback: Function;
inactiveCallback?: Function;
runWhen?: Function;

@@ -5,0 +6,0 @@ }

@@ -42,2 +42,7 @@ "use strict";

}
else {
if (watcher.inactiveCallback) {
watcher.inactiveCallback(this.currentProgress, this.direction);
}
}
});

@@ -44,0 +49,0 @@ }

{
"name": "@blinkk/degu",
"version": "0.0.318",
"version": "0.0.319",
"description": "A general utility library for interactive websites, with a focus on performance.",

@@ -5,0 +5,0 @@ "author": "Blinkk <hello@blinkk.com>",

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