
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@emerbrito/expression-builder
Advanced tools
An expression builder built with Angular Material components.

A simple to use expression builder created with Angular Material components.
Outputs a data structure (JSON) representing the expression which you can use to build queries and filters.
npm install @emerbrito/expression-builder
The first step is to configure the fields available to the end user when building expressions.
A field is defined by the Field interface:
export interface Field {
label: string,
name: string,
type: FieldType,
values?: OptionValue[]
}
Field type is used for input validation and to render the appropriated control.
Property values is optional. When specified a dropdown with the options will be rendered indifferent of the field type, which still applies to validation.
Bellow is an example of some field definitions:
const fields = [
{
name: "firstName",
label: "First Name",
type: FieldType.Text
},
{
"name": "married",
"label": "Married",
"type": FieldType.Boolean,
"values": [
{
"value": "true ",
"label ": "Yes"
},
{
"value": "false ",
"label ": "No"
}
]
}
];
Use the component's input property to pass the field configurations:
<expression-builder
[fields]="fields"
[data]="exp"
(valuechange)="changeHandler($event)">
</expression-builder>
Type: Field[]
Required. Array containing the fields available trough the expression builder.
Type: QueryExpression
Optional.
Initial expression.
Argument: ExpressionChangeEvent
Fires every time the expression changes.
Contains the current expression and a flag indicating whether or not it is in a valid state.
Bellow is a sample of the expression produce by the component:
{
"operator": "and",
"rules": [
{
"fieldName": "voter",
"condition": "eq",
"value": "true"
},
{
"operator": "or",
"rules": [
{
"fieldName": "married",
"condition": "eq",
"value": "true"
},
{
"fieldName": "age",
"condition": "ge",
"value": "21"
}
]
}
]
}
This package dependens on Angular Material.
Before you start make sure you add it to your project.
ng add @angular/material
More details on Angular Material installation can be found here.
FAQs
An expression builder built with Angular Material components.
We found that @emerbrito/expression-builder 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.