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.
@urql/exchange-refocus
Advanced tools
An exchange that dispatches active operations when the window regains focus
@urql/exchange-refocus
is an exchange for the urql
GraphQL client that tracks currently active operations and redispatches them when the
window regains focus
First install @urql/exchange-refocus
alongside urql
:
yarn add @urql/exchange-refocus
# or
npm install --save @urql/exchange-refocus
Then add it to your Client
, preferably before the cacheExchange
and in front of any asynchronous
exchanges, like the fetchExchange
:
import { createClient, cacheExchange, fetchExchange } from 'urql';
import { refocusExchange } from '@urql/exchange-refocus';
const client = createClient({
url: 'http://localhost:3000/graphql',
exchanges: [refocusExchange(), cacheExchange, fetchExchange],
});
FAQs
An exchange that dispatches active operations when the window regains focus
We found that @urql/exchange-refocus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 19 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
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.