Installations
npm install effector-debounce
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
12.14.1
NPM Version
6.13.4
Score
60.8
Supply Chain
83.8
Quality
75
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (55.79%)
JavaScript (44.21%)
Developer
Download Statistics
Total Downloads
25,022
Last Day
6
Last Week
21
Last Month
75
Last Year
1,041
GitHub Statistics
5 Stars
17 Commits
1 Forks
2 Watching
1 Branches
1 Contributors
Bundle Size
1.02 kB
Minified
572.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.1.0
Package Id
effector-debounce@1.1.0
Unpacked Size
5.48 kB
Size
2.26 kB
File Count
7
NPM Version
6.13.4
Node Version
12.14.1
Total Downloads
Cumulative downloads
Total Downloads
25,022
Last day
500%
6
Compared to previous day
Last week
23.5%
21
Compared to previous week
Last month
0%
75
Compared to previous month
Last year
-52.9%
1,041
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Dev Dependencies
32
Effector Debounce
https://codesandbox.io/s/effector-throttle-debounce-w32tk
Installation
1npm install --save effector effector-debounce 2 3# or 4 5yarn add effector effector-debounce
Usage
Create event that should be debounced:
1import { createEvent } from 'effector'; 2 3const someHappened = createEvent<number>();
Create debounced event from it:
1import { createDebounce } from 'effector-debounce'; 2 3const DEBOUNCE_TIMEOUT_IN_MS = 200; 4 5const debounced = createDebounce(someHappened, DEBOUNCE_TIMEOUT_IN_MS);
To test that original event is correctly debounced you can add watcher:
1someHappened.watch((payload) => { 2 console.info('someHappened now', payload); 3}); 4 5debounced(1); 6debounced(2); 7debounced(3); 8debounced(4); 9 10// someHappened now 4
Also you can use Effect
and Store
as trigger. createDebounce
always returns Event
:
1const event = createEvent<number>(); 2const debouncedEvent: Event<number> = createDebounce(event, 100); 3 4const fx = createEffect<number, void>(); 5const debouncedEffect: Event<number> = createDebounce(fx, 100); 6 7const $store = createStore<number>(0); 8const debouncedStore: Event<number> = createDebounce($store, 100);
Change name
1const trigger = createEvent(); 2const debounced = createDebounce(trigger, 100); 3 4// Now debounced var has `triggerDebounceTick` name
To change name:
1const trigger = createEvent(); 2const debounced = createDebounce(trigger, 100, { name: 'Hello' }); 3 4// Now debounced var has `HelloDebounceTick` name
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
- Info: security policy file detected: github.com/sergeysova/.github/security.md:1
- Info: Found linked content: github.com/sergeysova/.github/security.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/sergeysova/.github/security.md:1
- Info: Found text in security policy: github.com/sergeysova/.github/security.md:1
Reason
Found 0/17 approved changesets -- score normalized to 0
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sergeysova/effector-debounce/nodejs.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/sergeysova/effector-debounce/nodejs.yml/master?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
41 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94
- Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6
- Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v
- Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
Score
2.8
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More