Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@subql/apollo-links
Advanced tools
This package contains an extended version of apollo-link and various utilities to perform authentication with our network services.
This package is use to authenticate with the subquery network's auth center.
For example of usage see our test cases
import { ApolloClient, from, HttpLink, InMemoryCache } from '@apollo/client/core';
import { authHttpLink } from '@subql/apollo-links';
import fetch from 'cross-fetch'; // doesn't need to be this fetch library
const options = {
authUrl: `http://example-url.com/token`,
sk: '<insert secret key here>',
indexer: '<insert indexer address here>',
consumer: '<insert consumer address here>',
chainId: 1287,
deploymentId: '<insert deployment id here>',
agreement: '<insert agreement id here>',
};
const { link } = await authHttpLink(options);
const client = new ApolloClient({
cache: new InMemoryCache({ resultCaching: true }),
link: from([authLink, new HttpLink({ uri, fetch })]),
});
const metadataQuery = gql`
query Metadata {
_metadata {
indexerHealthy
indexerNodeVersion
}
}
`
await client.query({ query: metadataQuery });
## ChangeLogs
[CHANGELOG.md](./CHANGELOG.md)
FAQs
SubQuery Network - graphql links
The npm package @subql/apollo-links receives a total of 0 weekly downloads. As such, @subql/apollo-links popularity was classified as not popular.
We found that @subql/apollo-links demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.