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

@cdellacqua/debounce

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cdellacqua/debounce - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

dist/index.es.js
function makeSignal() {
const subscribers = [];
function emit(v) {
for (const subscriber of subscribers) {
for (const subscriber of [...subscribers]) {
subscriber(v);

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

@@ -1,2 +0,2 @@

(function(f,m){typeof exports=="object"&&typeof module!="undefined"?m(exports):typeof define=="function"&&define.amd?define(["exports"],m):(f=typeof globalThis!="undefined"?globalThis:f||self,m(f.debounce={}))})(this,function(f){"use strict";function m(){const e=[];function i(n){for(const s of e)s(n)}function c(n){const s=e.indexOf(n);s!==-1&&e.splice(s,1)}function r(n){return e.indexOf(n)===-1&&e.push(n),()=>c(n)}function o(n){const s=r(a=>{s(),n(a)});return s}return{emit:i,subscribe:r,subscribeOnce:o,get nOfSubscriptions(){return e.length}}}/**
(function(f,m){typeof exports=="object"&&typeof module!="undefined"?m(exports):typeof define=="function"&&define.amd?define(["exports"],m):(f=typeof globalThis!="undefined"?globalThis:f||self,m(f.debounce={}))})(this,function(f){"use strict";function m(){const e=[];function i(n){for(const s of[...e])s(n)}function c(n){const s=e.indexOf(n);s!==-1&&e.splice(s,1)}function r(n){return e.indexOf(n)===-1&&e.push(n),()=>c(n)}function o(n){const s=r(a=>{s(),n(a)});return s}return{emit:i,subscribe:r,subscribeOnce:o,get nOfSubscriptions(){return e.length}}}/**
* @license

@@ -3,0 +3,0 @@ * Copyright (c) 2016-22 [these people](https://github.com/sveltejs/svelte/graphs/contributors)

@@ -5,3 +5,3 @@ {

"description": "Debounce a function with requestAnimationFrame or a custom interval",
"version": "1.1.0",
"version": "1.1.1",
"type": "module",

@@ -72,4 +72,4 @@ "types": "dist/index.d.ts",

"dependencies": {
"universal-stores": "^1.1.0"
"universal-stores": "^1.1.2"
}
}

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