
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.
@fauna-labs/fql-parser
Advanced tools
This repository contains unofficial patterns, sample code, or tools to help developers build more effectively with Fauna. All Fauna Labs repositories are provided “as-is” and without support. By using this repository or its contents, you agree that this repository may never be officially supported and moved to the Fauna organization.
This is a Rust crate and NPM package that parses raw FQL queries into the wire protocol format.
To use the parser, add the following to your Cargo.toml
:
[dependencies]
fql-parser = "0.2.0"
Then, in your code, import the crate:
use crate::fql_parser;
fn main() {
/* ... */
}
The se
module contains the function to serialize FQL strings to JSON
let fql = "Add(2, 2)";
let json = fql_parser::se::serialize_fql_query(fql);
println!("{}", json);
{"add":[2,2]}
The des
module contains functions to deserialize JSON into special Fauna types or FQL strings
let json = r#"{
"@ref": {
"id":"101",
"collection": {
"@ref":{
"id": "things",
"collection": {
"@ref": { "id": "collections"}
}
}
}
}
}"#;
let fql = fql_parser::des::to_fql_string(json);
println!("{}", fql);
Ref(Collection("things"),"101")
TODO
cargo build
# Publish to https://crates.io/crates/fql-parser
cargo publish
make build
npm publish
FAQs
A parser for the Fauna Query Language (FQL).
The npm package @fauna-labs/fql-parser receives a total of 0 weekly downloads. As such, @fauna-labs/fql-parser popularity was classified as not popular.
We found that @fauna-labs/fql-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.