
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@grafoo/http-transport
Advanced tools
@grafoo/http-transportA Simple HTTP Client for GraphQL Servers
$ npm i @grafoo/http-transport
@grafoo/http-transport default export is a factory that accepts as arguments uri and fetchOptions (that can be an object or a function):
import createTransport from "@grafoo/http-transport";
const request = createTransport("http://some.graphql.api", () => ({
headers: {
authorization: storage.getItem("authorization")
}
}));
const USER_QUERY = `
query($id: ID!) {
user(id: $id) {
name
}
}
`;
const variables = { id: 123 };
request(USER_QUERY, variables).then(({ data }) => {
console.log(data.user);
});
As this package uses fetch and Object.assign under the hood, make sure to install the proper polyfills if you want to use it in your project.
FAQs
grafoo client standard transport
We found that @grafoo/http-transport 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.