
Security News
npm Introduces minimumReleaseAge and Bulk OIDC Configuration
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.
apollo-angular-link-headers
Advanced tools
An Apollo Link to easily transform headers from being a key-value object to an instance of HttpHeaders. Great combination with apollo-angular-link-http.
An Apollo Link to easily transform headers from being a key-value object to an instance of HttpHeaders (@angular/common/http). Great combination with apollo-angular-link-http.
npm install apollo-angular-link-headers@beta --save
The httpHeaders function takes no arguments. Its only task is to take headers property (key-value object) of a operation context and transform it into an instance of HttpHeaders class (from @angular/common/http) to make it work with apollo-angular-link-http.
import { httpHeaders } from 'apollo-angular-link-headers';
import { HttpLink } from 'apollo-angular-link-http';
const headers = httpHeaders();
const http = http.create();
const link = headers.concat(http);
It creates a bridge between other Apollo Links that uses headers as a plain object, so you can do things like:
import { setContext } from 'apollo-link-context';
const middleware = setContext((request, previousContext) => ({
authorization: 'token'
}));
FAQs
An Apollo Link to easily transform headers from being a key-value object to an instance of HttpHeaders. Great combination with apollo-angular-link-http.
The npm package apollo-angular-link-headers receives a total of 1 weekly downloads. As such, apollo-angular-link-headers popularity was classified as not popular.
We found that apollo-angular-link-headers 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
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.

Security News
AI agents are writing more code than ever, and that's creating new supply chain risks. Feross joins the Risky Business Podcast to break down what that means for open source security.

Research
/Security News
Socket uncovered four malicious NuGet packages targeting ASP.NET apps, using a typosquatted dropper and localhost proxy to steal Identity data and backdoor apps.