
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@qualifyze/airtable-formulator
Advanced tools
A library that allows you to formulate airtable formulas in a structured rather than unstructured notation.
Example AND({name}="Robert",{age}>35)
:
import { Formula } from "airtable-formulator";
const formula: Formula = [
"AND",
["=", { field: "name" }, "Robert"],
[">", { field: "age" }, 35],
];
npm install @qualifyze/airtable-formulator
Validate formula:
import { validate } from "airtable-formulator";
const validationErrors = validate(formula);
if (validationErrors.length > 0) {
throw new Error(
`Invalid Formula: ${JSON.stringify(validationErrors, null, 2)}`
);
}
Compile formula:
import { compile } from "airtable-formulator";
const formulaStr = compile(formula);
Parse a string formula (experimental):
import { parse } from "airtable-formulator";
const formula = parse("AND({name}=\"Robert\",{age}>35)");
The above will yield:
[
"AND",
["=", { field: "name" }, "Robert"],
[">", { field: "age" }, 35],
]
If Airtable expends their library of functions and operators that can be used in formulae, run:
npm run update-reference
This will update the JSON manifest that lists all available functions and operators.
The AST parser is still experimental in the sense it should not be used for critical applications.
import { ast } from "airtable-formulator";
const output = ast.parse("IF({name}='Robert',{age},0)");
The parser will for now only output an abstract syntax tree. It will not yet convert it into an object notation formula
The syntax tree for the parser above returns an object that matches this:
{
"type": "functionCall",
"reference": {
"value": "IF"
},
"argumentList": {
"args": [
{
"type": "operation",
"left": {
"type": "fieldReference",
"value": "name"
},
"operator": {
"value": "="
},
"right": {
"type": "string",
"value": "Robert"
}
},
{
"type": "fieldReference",
"value": "age"
},
{
"type": "number",
"value": 0
}
]
}
}
Note that each object above also contains positional information about the location of the token in the formula string.
{
"type": "operator",
"value": "=",
"start": 9,
"end": 10
}
FAQs
Airtable Formula Manipulator
We found that @qualifyze/airtable-formulator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.