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.
angular-apollo
Advanced tools
An API client for the 7digital Apollo platform built for Angular 2 projects.
An API client for the 7digital Apollo platform built for Angular 2 projects.
npm install angular-apollo
import { bootstrap } from '@angular/platform-browser-dynamic';
import { HTTP_PROVIDERS } from '@angular/http';
import { ApiService, ListService, Config } from 'angular-apollo';
export class AppComponent {
constructor(private playlistService:ListService){
return this.playlistService.findById(10)
.subscribe((playlist) => {
this.apolloId = playlist.id;
}) ;
};
}
bootstrap(AppComponent, [
HTTP_PROVIDERS,
provideApollo({
baseUrl: 'http://www.example.com'
})
]);
import { ionicBootstrap } from 'ionic-angular';
import { HTTP_PROVIDERS } from '@angular/http';
import { ApiService, ListService, Config } from 'angular-apollo';
export class AppComponent {
constructor(private playlistService:ListService){
return this.playlistService.findById(10)
.subscribe((playlist) => {
this.apolloId = playlist.id;
}) ;
};
}
ionicBootstrap(AppComponent, [
provideApollo({
baseUrl: 'http://www.example.com',
useTokenStore: () => (
{provide: TokenStore, useClass: YourCustomTokenStore}
)
})
]);
You may want your app to react to failed authentication attempts, in this case, you can register a handler for the token store errors
export class AppComponent {
constructor(tokenStore:TokenStore){
tokenStore.events.subscribe(() => {}, () => {
redirectToLoginPage();
});
}
}
Running the E2E tests requires the following environment variables:
TEST_USER_NAME
TEST_PASSWORD
TEST_DEVICE_ID
TEST_DEVICE_NAME
TEST_API_URL
Currently all tests are run with the npm run test
command.
FAQs
An API client for the 7digital Apollo platform built for Angular 2 projects.
The npm package angular-apollo receives a total of 6 weekly downloads. As such, angular-apollo popularity was classified as not popular.
We found that angular-apollo 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.