
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.