Installations
npm install @metamask/eth-json-rpc-filters
Developer
MetaMask
Developer Guide
Module System
CommonJS
Min. Node Version
^18.16 || ^20 || >=22
Typescript Support
No
Node Version
18.20.4
NPM Version
10.7.0
Statistics
30 Stars
202 Commits
38 Forks
49 Watching
7 Branches
266 Contributors
Updated on 08 Nov 2024
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
55,780
Last day
-12.3%
1,329
Compared to previous day
Last week
65.8%
6,594
Compared to previous week
Last month
195.4%
19,391
Compared to previous month
Last year
32,805.9%
55,611
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
@metamask/eth-json-rpc-filters
json-rpc-engine middleware implementing Ethereum filter methods.
Backed by an eth-block-tracker and web3 provider interface (web3.currentProvider
).
supported rpc methods
eth_newFilter
eth_newBlockFilter
eth_newPendingTransactionFilter
eth_uninstallFilter
eth_getFilterChanges
eth_getFilterLogs
usage
basic usage:
1const filterMiddleware = createFilterMiddleware({ blockTracker, provider }) 2engine.push(filterMiddleware)
cleanup:
1// remove blockTracker handler to free middleware for garbage collection 2filterMiddleware.destroy()
Running Tests
1yarn test
Changelog
No vulnerabilities found.
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: ISC License: LICENSE:0
Reason
security policy file detected
Details
- Info: security policy file detected: github.com/MetaMask/.github/SECURITY.md:1
- Info: Found linked content: github.com/MetaMask/.github/SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/MetaMask/.github/SECURITY.md:1
- Info: Found text in security policy: github.com/MetaMask/.github/SECURITY.md:1
Reason
8 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 6
Reason
SAST tool is not run on all commits -- score normalized to 6
Details
- Warn: 19 commits out of 30 are checked with a SAST tool
Reason
branch protection is not maximal on development and all release branches
Details
- Info: 'allow deletion' disabled on branch 'main'
- Info: 'force pushes' disabled on branch 'main'
- Info: 'branch protection settings apply to administrators' is required to merge on branch 'main'
- Info: 'stale review dismissal' is required to merge on branch 'main'
- Warn: required approving review count is 1 on branch 'main'
- Info: codeowner review is required on branch 'main'
- Warn: 'last push approval' is disabled on branch 'main'
- Info: status check found to merge onto on branch 'main'
- Info: PRs are required in order to make changes on branch 'main'
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/create-release-pr.yml:21
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/publish-release.yml:10
- Info: jobLevel 'actions' permission set to 'read': .github/workflows/security-code-scanner.yml:13
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/security-code-scanner.yml:14
- Warn: jobLevel 'security-events' permission set to 'write': .github/workflows/security-code-scanner.yml:15
- Warn: no topLevel permission defined: .github/workflows/build-test.yml:1
- Warn: no topLevel permission defined: .github/workflows/create-release-pr.yml:1
- Warn: no topLevel permission defined: .github/workflows/publish-release.yml:1
- Warn: no topLevel permission defined: .github/workflows/security-code-scanner.yml:1
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/MetaMask/eth-json-rpc-filters/build-test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/MetaMask/eth-json-rpc-filters/build-test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/MetaMask/eth-json-rpc-filters/build-test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-release-pr.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/MetaMask/eth-json-rpc-filters/create-release-pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-release-pr.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/MetaMask/eth-json-rpc-filters/create-release-pr.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-release-pr.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/MetaMask/eth-json-rpc-filters/create-release-pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-release-pr.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/MetaMask/eth-json-rpc-filters/create-release-pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/MetaMask/eth-json-rpc-filters/publish-release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-release.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/MetaMask/eth-json-rpc-filters/publish-release.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish-release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/MetaMask/eth-json-rpc-filters/publish-release.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/security-code-scanner.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/MetaMask/eth-json-rpc-filters/security-code-scanner.yml/main?enable=pin
- Info: 0 out of 8 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 3 third-party GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
12 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-434g-2637-qmqr
- Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m
- Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw
- Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p
- Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-584q-6j8j-r5pm
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Score
5.5
/10
Last Scanned on 2024-11-25
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