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-multipart-fetch
Advanced tools
An exchange that allows regular fetch and will transition to multipart when files are included
DEPRECATION NOTICE: The
multipartFetchExchange
has been deprecated, and@urql/core
now supports GraphQL Multipart Requests natively. This won't break the behaviour of your existing apps, however, it's recommended to remove themultipartFetchExchange
from your apps.
The multipartFetchExchange
is an exchange that builds on the regular fetchExchange
but adds the multipart file upload capability.
First install @urql/exchange-multipart-fetch
alongside urql
:
yarn add @urql/exchange-multipart-fetch
# or
npm install --save @urql/exchange-multipart-fetch
You'll then need to add the multipartFetchExchange
method, that this package exposes,
to your exchanges
.
import { createClient, dedupExchange, cacheExchange } from 'urql';
import { multipartFetchExchange } from '@urql/exchange-multipart-fetch';
const client = createClient({
url: 'http://localhost:1234/graphql',
exchanges: [dedupExchange, cacheExchange, multipartFetchExchange],
});
Now we can start uploading files to our server!
FAQs
An exchange that allows regular fetch and will transition to multipart when files are included
The npm package @urql/exchange-multipart-fetch receives a total of 7,924 weekly downloads. As such, @urql/exchange-multipart-fetch popularity was classified as popular.
We found that @urql/exchange-multipart-fetch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 25 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.