Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
apollo-link-queue
Advanced tools
A link to queue requests when a certain condition is met (eg. device is offline)
An Apollo Link that acts as a gate and queues requests when the gate is closed. This can be used when there is no internet connection or when the user has explicitly set an app to offline mode.
npm install apollo-link-queue
or
yarn add apollo-link-queue
import QueueLink from 'apollo-link-queue';
const queueLink = new QueueLink();
// To start queueing requests
queueLink.close();
// To let requests pass (and execute all queued requests)
queueLink.open();
import { ApolloLink } from 'apollo-link';
import { HttpLink } from 'apollo-link-http';
import { RetryLink } from 'apollo-link-retry';
import QueueLink from 'apollo-link-queue';
const offlineLink = new QueueLink();
// Note: remove these listeners when your app is shut down to avoid leaking listeners.
window.addEventListener('offline', () => offlineLink.close());
window.addEventListener('online', () => offlineLink.open());
this.link = ApolloLink.from([
new RetryLink(),
offlineLink,
new HttpLink({ uri: URI_TO_YOUR_GRAPHQL_SERVER }),
]);
FAQs
A link to queue requests when a certain condition is met (eg. device is offline)
The npm package apollo-link-queue receives a total of 14,732 weekly downloads. As such, apollo-link-queue popularity was classified as popular.
We found that apollo-link-queue 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.