Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
apollo-link-dedup
Advanced tools
An Apollo Link to deduplicate matching requests before making a request.
NOTE This link is included by default when using apollo-client.
npm install apollo-link-dedup --save
To use this package in a web browser or mobile app, you'll need a build system capable of loading NPM packages on the client. Some common choices include Browserify, Webpack, and Meteor +1.3.
import DedupLink from "apollo-link-dedup";
const link = new DedupLink();
The Dedup Link does not take any options when creating the link.
The Dedup Link can be overriden by using the context on a per opearation basis:
name | value | default | required |
---|---|---|---|
forceFetch | boolean | false | false |
import Link from "apollo-link-http";
import ApolloClient from "apollo-client";
import InMemoryCache from "apollo-cache-inmemory";
const client = new ApolloClient({
link: new Link({ uri: "/graphql" }),
cache: new InMemoryCache()
});
// a query with apollo-client that will not be deduped
client.query({
query: MY_QUERY,
context: {
forceFetch: true
}
})
FAQs
Deduplicates queries that are currently on the wire
The npm package apollo-link-dedup receives a total of 41,326 weekly downloads. As such, apollo-link-dedup popularity was classified as popular.
We found that apollo-link-dedup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.