
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@lorefnon/tql
Advanced tools
🚧 This is fork is intended to be a continuation of @timkendall/tql which is no longer under development.
tql is a TypeScript GraphQL query builder.
graphql-js
is our single runtime (peer) dependency.Try out our pre-compiled Star Wars GraphQL SDK on CodeSandbox!
npm install @lorefnon/tql@beta
Generate an SDK with npx @lorefnon/tql-gen <schema> -o sdk.ts
<schema>
can be a path to local file or an http endpoint url.
Import selector functions to start defining queries 🎉
import { useQuery } from "@apollo/client";
// SDK generated in previous setup
import { $, character, query } from "./starwars";
// define reusable selections
const CHARACTER = character(t => [
t.id(),
t.name(),
t.appearsIn(),
]);
const QUERY = query((t) => [
t.reviews({ episode: Episode.EMPIRE }, (t) => [
t.stars(),
t.commentary(),
]),
t.human({ id: $("id") }, (t) => [
t.__typename(),
t.id(),
t.name(),
t.appearsIn(),
t.homePlanet(),
// deprecated field should be properly picked-up by your editor
t.mass(),
t.friends((t) =>
[
t.__typename(),
...CHARACTER,
// or
CHARACTER.toInlineFragment(),
t.on("Human", (t) => [t.homePlanet()]),
t.on("Droid", (t) => [t.primaryFunction()]),
] as const
),
t.starships((t) => [t.id(), t.name()]),
]),
]).build({ name: "Example" });
// type-safe result and variables 👍
const { data } = useQuery(QUERY, { variables: { id: "1011" } });
I was inspired by the features and DSL's of graphql-nexus, graphql_ppx, gqless, and caliban.
MIT
FAQs
Write GraphQL queries in TypeScript.
We found that @lorefnon/tql 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.