Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
apollo-logger
Advanced tools
npm install --save-dev apollo-logger
For full logging you will need to attach Apollo Logger to:
import { LoggingLink, addApolloLogging } from 'apollo-logger';
const link = ApolloLink.from([
new LoggingLink(),
new HttpLink({uri: ...})
);
const pubsub = addApolloLogging(new PubSub());
On each example the result of operation comes after =>
{"data":{"post":{"id":20,"title":"Post title 20","content":"Post content 20","__typename":"Post","comments":[{"id":39,"content":"Comment title 1 for post 20","__typename":"Comment"},{"id":40,"content":"Comment title 2 for post 20","__typename":"Comment"}]}}} <= post({"id":"20"})
{"data":{"addCounter":{"amount":21,"__typename":"Counter"}}} <= addCounter({"amount":1})
subscribe <= onPostUpdated({"endCursor":11})
{"data":{"counterUpdated":{"amount":21,"__typename":"Counter"}}} <= onCounterUpdated
unsubscribe <= onPostUpdated({"endCursor":11})
pubsub publish [ 'countUpdated',
{ id: 1, created_at: null, updated_at: null, amount: 7 } ]
pubsub subscribe postsUpdated => 2
pubsub unsubscribe [ 2 ]
pubsub msg postsUpdated({"mutation":"CREATED","id":21,"node":{"id":21,"title":"New post 1"}})
Copyright © 2017 SysGears INC. This source code is licensed under the MIT license.
FAQs
Apollo GraphQL Logger
The npm package apollo-logger receives a total of 326 weekly downloads. As such, apollo-logger popularity was classified as not popular.
We found that apollo-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.