
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@bufbuild/empty-test-package
Advanced tools
This package provides a CEL evaluator for ECMAScript.
Let's evaluate a CEL expression that has the variable name and uses the strings extension functions:
import { run } from "@bufbuild/cel";
import { strings } from "@bufbuild/cel/ext";
run(
`name.indexOf('taco') == 0`, // CEL expression to run
{ name: "tacocat" }, // Bind a value to the variable `name`
{ funcs: strings }, // Register `indexOf` and other string extensions
); // true
That's it!
For an example of creating resusable evaluator and more, refer to example.ts.
The table below maps JS types to CEL types.
Input column is any value that can be passed to the evaluator as input. (CelInput)CEL Type column is the CEL type it will represent at runtime. (CelType)Output column is the type of values that are returned by the evaluator, either as returned from eval or as arguments to function implementations. (CelValue)| Input (JS Type) | CEL Type (runtime) | Output (JS Type) |
|---|---|---|
| number, {Float,Double}Value | double | number |
| bigint, all signed int wrappers | int | bigint |
| CelUint, all unsigned int wrappers | uint | CelUint |
| string, StringValue | string | string |
| Uint8Array, BytesValue | bytes | Uint8Array |
| Map, ReflectMap | map | CelMap |
| any[], ReflectList | list | CelList |
| boolean, BoolValue | bool | boolean |
| null | null_type | null |
| CelType | type | CelType |
| Timestamp, ReflectMessage | timestamp | ReflectMessage |
| Duration, ReflectMessage | duration | ReflectMessage |
| Message, ReflectMessage, Any | <typeName> | ReflectMessage |
| google.protobuf.Value and friends | double/bool/string/list/map/null | number/boolean/string/CelList/CelMap |
FAQs
A CEL evaluator for ECMAScript
The npm package @bufbuild/empty-test-package receives a total of 0 weekly downloads. As such, @bufbuild/empty-test-package popularity was classified as not popular.
We found that @bufbuild/empty-test-package demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.