Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
angular-async-tracker
Advanced tools
A port of angular-promise-tracker to angular 6+ that also supports observables
A port of angular-promise-tracker to angular 6+ that also supports observables
Install through npm:
npm install --save angular-async-tracker
Finally use in one of your apps components:
import { Component } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Subscription } from 'rxjs';
import { take } from 'rxjs/operators';
import { AsyncTrackerFactory, AsyncTracker } from 'angular-async-tracker';
@Component({
template: `
<span *ngIf="asyncTracker.active">Loading...</span>
<button *ngIf="!asyncTracker.active" (click)="save()">Save</button>
`
})
export class MyComponent {
asyncTracker: AsyncTracker;
constructor(
private http: HttpClient,
asyncTrackerFactory: AsyncTrackerFactory
) {
this.asyncTracker = asyncTrackerFactory.create();
}
save() {
const saved: Subscription = this.http
.post('/foo', { bar: 'bam' })
.pipe(take(1))
.subscribe(result => {
console.log(result);
});
// `asyncTracker.add` accepts promises or observable subscriptions
this.asyncTracker.add(saved);
}
}
All documentation is auto-generated from the source via compodoc and can be viewed here: https://mattlewis92.github.io/angular-async-tracker/docs/
npm
while current directory is this repoRun npm start
to start a development server on port 8000 with auto reload + tests.
Run npm test
to run tests once or npm run test:watch
to continually run tests.
npm run release
MIT
FAQs
A port of angular-promise-tracker to angular 6+ that also supports observables
The npm package angular-async-tracker receives a total of 13 weekly downloads. As such, angular-async-tracker popularity was classified as not popular.
We found that angular-async-tracker 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.