Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@metrichor/epi2me-client-node
Advanced tools
This library is for performing authenticated operations with the EPI2ME GraphQL API. It is published in 2 flavours: node and web. They each provide specific networking and crypto implementations for their platforms, to better meet your requirements.
This library is for performing authenticated operations with the EPI2ME GraphQL API. It is published in 2 flavours: node and web. They each provide specific networking and crypto implementations for their platforms, to better meet your requirements.
npm i @metrichor/epi2me-client-web
# OR
npm i @metrichor/epi2me-client-node
Both flavours support authentication via key/secret or JWTs. Exposed via separate client factories.
import { create_epi2me_client } from '@metrichor/epi2me-client-node';
const graphql = create_epi2me_client({
client: { name: 'my platform', version: '1.0.0' },
credentials: { key: 'my api key', secret: 'my api secret' },
});
async function main () {
const { data } = await graphql.query({
query: gql`query MyQuery {
allWorkflowInstances {
results {
idWorkflowInstance
}
}
}`
});
console.log(data.allWorkflowInstances.results);
}
void main();
Client constructors return instances of ApolloClient, with their caches pre-configured. It's often easier to use the clients by wrapping them with helper functions. But this is left as an exercise for the user, to maximise compatibility with existing code.
In addition to the 2 authenticated clients we also provide a simple mock client for writing tests.
const client = create_mock_client(
{ name: 'example client', version: '1.0.0' },
(op) => ({ data: { id: 42} }) // request handler
);
expect(
await client.query({ query: gql`query CustomQuery { id }` })
).toStrictEqual(
expect.objectContaining({ data: { id: 42 } })
);
FAQs
This library is for performing authenticated operations with the EPI2ME GraphQL API. It is published in 2 flavours: node and web. They each provide specific networking and crypto implementations for their platforms, to better meet your requirements.
The npm package @metrichor/epi2me-client-node receives a total of 29 weekly downloads. As such, @metrichor/epi2me-client-node popularity was classified as not popular.
We found that @metrichor/epi2me-client-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.