
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@mailchain/http-helpers-angular
Advanced tools
Mailchain HTTP Helpers - useful for calling the Mailchain API from Angular
This package is an Angular service that helps set httpOptions for headers and queryParams. It is helpful for calls to the Mailchain API.
npm install @mailchain/http-helpers-angular --save
In an Angular service file, eg. my-service.service, add the following:
// import the service
import { HttpHelpersAngularService } from '@mailchain/http-helpers-angular';
// add to constructor
constructor(
private httpHelpersService: HttpHelpersAngularService,
) { }
// add to function, e.g. calling Mailchain api /messages local endpoint:
myFunction() {
const protocol = "ethereum" // change accordingly or use function params
const network = "mainnet" // change accordingly or use function params
const url = "http://127.0.0.1/messages" // change accordingly or use function params
const body = outboundMail
const httpOptions = this.httpHelpersService.getHttpOptions([
['protocol', protocol],
['network', network]
])
return this.http.post(url, body, httpOptions);
}
This library was generated with Angular CLI version 8.2.14.
Run ng generate component component-name --project http-helpers-angular to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project http-helpers-angular.
Note: Don't forget to add
--project http-helpers-angularor else it will be added to the default project in yourangular.jsonfile.
Run ng build http-helpers-angular to build the project. The build artifacts will be stored in the dist/ directory.
After building your library with ng build http-helpers-angular, go to the dist folder cd dist/http-helpers-angular and run npm publish.
Run ng test http-helpers-angular to execute the unit tests via Karma.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
FAQs
Mailchain HTTP Helpers - useful for calling the Mailchain API from Angular
We found that @mailchain/http-helpers-angular demonstrated a not healthy version release cadence and project activity because the last version was released 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.