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-provide-once
Advanced tools
🔂 Removes the need to use forRoot in Angular 2+ modules by providing guaranteed singleton services.
No .forRoot()
: Allows module consumers to import without calling a forRoot
methodSingletons
: Allows module creators to provide singleton services that don't require consumers to be concerned with accidentally providing multiple instancesTop level
: If multiple instances are attempted, the top level instance in the provider tree will be usedMultiple consumers
: If multiple libraries depend on your service and those libraries are used in a single Angular project, you can still guarantee a single instance of your servicenpm install angular-provide-once --save
import { NgModule } from '@angular/core';
import { ProvideOnce } from 'angular-provide-once';
import { MyService } from './my-service';
@NgModule({
imports: [],
providers: [
ProvideOnce(MyService),
],
declarations: []
})
export class MyModule { }
angular-provide-once is licensed under the MIT Open Source license. For more information, see the LICENSE file in this repository.
FAQs
Remove the need to use forRoot in your Angular 2+ modules.
We found that angular-provide-once 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.
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.