
Research
/Security News
Coruna Respawned: Compromised art-template npm Package Leads to iOS Browser Exploit Kit
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.
@graphql-ez/client
Advanced tools
Fully feature GraphQL Client for Node.js
By default if you only use the traditional GraphQL over HTTP, any other external dependency is not imported
import { EZClient } from '@graphql-ez/client';
export const ezClient = EZClient({
endpoint: 'http://localhost:8080/api/graphql',
});
await ezClient.query('query($n: Int!) { hello(n: $n) }', {
variables: {
n: 10,
},
// "POST" by default
method: 'GET',
});
await ezClient.mutation('mutation { hello }', {
headers: {
authorization: 'foo',
},
});
// Automatically throw if any error is returned
await ezClient.assertedQuery('mutation { hello }', {
// ...
});
const { iterator, unsubscribe } = ezClient.websockets.subscribe('subscription{ping}');
for await (const value of iterator) {
console.log(value);
}
await unsubscribe();
(await ezClient.websockets.client).dispose();
const { iterator, unsubscribe } = ezClient.websockets.legacy.subscribe('subscription{ping}');
for await (const value of iterator) {
console.log(value);
}
await unsubscribe();
(await ezClient.websockets.legacy.client).close();
const { iterator } = ezClient.stream('{stream @stream(initialCount: 1)}');
let i = 0;
for await (const value of iterator) {
switch (++i) {
case 1:
expect(value).toContain(`{"data":{"stream":["A"]},"hasNext":true}`);
break;
case 2:
expect(value).toContain(`{"data":"B","path":["stream",1],"hasNext":true}`);
break;
case 3:
expect(value).toContain(`{"data":"C","path":["stream",2],"hasNext":true}`);
break;
}
}
const { iterator, unsubscribe } = ezClient.sseSubscribe('subscription{ping}');
for await (const value of iterator) {
console.log(value);
}
await unsubscribe();
const { data, errors } = await ezClient.uploadQuery('mutation($file: Upload!) { uploadFile(file:$file) }', {
variables: {
file: Buffer.from('hello-world'),
},
});
MIT
FAQs
Fully feature GraphQL Client for Node.js
The npm package @graphql-ez/client receives a total of 60 weekly downloads. As such, @graphql-ez/client popularity was classified as not popular.
We found that @graphql-ez/client 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
/Security News
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.

Company News
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.