
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.
@jenyus-org/graphql-utils
Advanced tools
GraphQL utilities to make working with GraphQL queries and APIs simpler.
@jenyus-org/graphql-utils
is a collection of utilities to aid in working with GraphQL projects that have the graphql
library as a base.
The full documentation with live code sandboxes can be found here.
@jenyus-org/graphql-utils
can be installed from NPM by running one of the following commands:
NPM:
npm i --save @jenyus-org/graphql-utils
Yarn:
yarn add @jenyus-org/graphql-utils
This will install @jenyus-org/graphql-utils
and all its dependencies.
One of the most straightforward and common use-cases of GraphQL-Utils is checking if a query contains a certain path. We can do this using the hasFields()
utility:
import { hasFields } from "@jenyus-org/graphql-utils";
const resolvers = {
Query: {
posts(_, __, ___, info) {
const requestedAuthor = hasFields(info, "posts.author");
console.log(requestedAuthor);
},
},
};
This will output true
for the following query:
{
posts {
id
title
body
author {
id
username
firstName
lastName
}
}
}
FAQs
GraphQL utilities to make working with GraphQL queries and APIs simpler.
We found that @jenyus-org/graphql-utils 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
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.