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.
ngrx-action-creator-factory
Advanced tools
An Action Creator Factory for creating ngrx action creator
This is an angular 2 provider based - read about the concept at Simple Action Creators for ngrx/store in Angular 2.
This component came out as a result of the open source project Echoes Player - an alternative player for watching and listening to media from youtube.
supports Angular 2 - Final - 2.2.1
MIT
npm install ngrx-action-creator-factory --save-dev
Currently supported:
First, import the ActionCreatorFactory to your module:
import { NgModule } from '@angular/core';
import { ActionCreatorFactory } from 'ngrx-action-creator-factory';
@NgModule({
imports:[ BrowserModule ],
providers: [ ActionCreatorFactory ],
declarations: [ AppComponent, ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
platformBrowserDynamic().bootstrapModule(AppModule);
Next, use the ngrx-action-creator-factory either as a static factory or as an injectable provider:
import { Injectable } from '@angular/core';
import { Action } from '@ngrx/store';
import { ActionCreatorFactory } from 'ngrx-action-creator-factory';
@Injectable()
export class NowPlaylistActions {
static MEDIA_ENDED = '[NOW PLAYLIST] MEDIA_ENDED';
static QUEUE = '[NOW PLAYLIST] QUEUE';
// as injectable
constructor(private acf: ActionCreatorFactory) {
this.queueVideo = this.acf.create(NowPlaylistActions.QUEUE);
}
// as a static method
mediaEnded = ActionCreatorFactory.create(NowPlaylistActions.MEDIA_ENDED);
}
To start developing tdd/bdd style: npm run dev
This will: compile ts files, watch for changes and start the test task. Whenever a ts file is changed, it will rerun the tests.
FAQs
An Action Creator Factory for creating ngrx action creator
The npm package ngrx-action-creator-factory receives a total of 6 weekly downloads. As such, ngrx-action-creator-factory popularity was classified as not popular.
We found that ngrx-action-creator-factory 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.