
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Filters data by using a single search string and matching its value with all the filters. Only uses Text
and Number
filters.
Parameter | Type | Usage |
---|---|---|
data | any[] | List of objects that need to be filtered. |
filters | Filter[] | List of filters that will be used to filter data. |
search | string | What the user entered in the search box. |
Filters data by using the filters.
Parameter | Type | Usage |
---|---|---|
data | any[] | List of objects that need to be filtered. |
filters | Filter[] | List of filters that will be used to filter data. |
Returns all the filters that have a value.
Parameter | Type | Usage |
---|---|---|
filters | Filter[] | Filters to be evaluated. |
Resets the value of the filters to their original state.
Parameter | Type | Usage |
---|---|---|
filters | Filter[] | Filters to be reset. |
Restores filters from a JSON storage, converting each field to its original state.
Parameter | Type | Usage |
---|---|---|
storage | string | JSON storage. |
Field | Usage | Required |
---|---|---|
field | Must match the field name inside the filtered object. | ✓ |
label | Used to show the filter's name to the user. | |
inputType | Specifies the type of input that the user will interact with. Available types are Text , Number , Dropdown , MultiSelect , Calendar , CalendarRange and Checkbox | ✓ |
filterType | Specifies the method that will be used to filter. | |
value | Used to compare values with the filtered object. User input goes there. | |
options | Used to populate a filter with options. Should only be used with Dropdown and MultiSelect . | |
empty | Sets the empty value to be matched with when filtering using Dropdown and MultiSelect . | |
category | Used to group fields together in a form. |
Input Type | Associated Filter Types | Default |
---|---|---|
Number , Calendar | Less , LessOrEqual , Equal , GreaterOrEqual , Greater . | Equal |
Checkbox | True , False . | True |
FAQs
Easily filter any list of data with ready to use functions.
We found that pg-filters demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.