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.
apollo-server-types
Advanced tools
The `apollo-server-types` package provides TypeScript definitions and utility types for building GraphQL servers with Apollo Server. It includes types for server lifecycle events, request and response handling, and plugin development. This package is primarily used by developers to ensure type safety and to leverage IntelliSense in IDEs for better development experience when working with Apollo Server.
GraphQLRequestContext
Defines the context for a GraphQL request. Useful for passing request-specific information through the resolver chain, such as the current user.
{"context": (integrationContext) => { return { user: integrationContext.req.user }; }}
Plugin
Allows the creation of plugins to modify or extend the behavior of Apollo Server at different stages of the server lifecycle.
{"serverWillStart(service) { console.log(`GraphQL Server is starting!`); }}
ValueOrPromise
A utility type that represents a value that could either be returned directly or resolved from a Promise. Useful for functions that might need to perform asynchronous operations.
{"function possiblyAsyncFunction(): ValueOrPromise<string> { return new Promise(resolve => resolve('Hello World')); }}
A set of utilities to build and mock GraphQL.js schemas. Similar to `apollo-server-types`, it provides a wide range of tools for GraphQL schema definition and manipulation, but it focuses more on schema creation and stitching rather than server lifecycle and request handling.
Allows for creating GraphQL schema and resolvers with TypeScript, using classes and decorators. It's similar in its goal to provide type safety and development utilities for GraphQL servers, but it adopts a different approach by leveraging TypeScript's decorators for schema definition.
apollo-server-types
These are types which are shared across Apollo Server packages, but kept here to avoid circular dependencies.
FAQs
Apollo Server shared types
The npm package apollo-server-types receives a total of 671,110 weekly downloads. As such, apollo-server-types popularity was classified as popular.
We found that apollo-server-types 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.
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.