New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ngrx/schematics

Package Overview
Dependencies
Maintainers
4
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngrx/schematics - npm Package Compare versions

Comparing version 7.2.0 to 7.3.0

src/ng-add/index.d.ts

23

collection.json

@@ -5,3 +5,3 @@ {

"action": {
"aliases": [ "a" ],
"aliases": ["a"],
"factory": "./src/action",

@@ -13,3 +13,3 @@ "schema": "./src/action/schema.json",

"container": {
"aliases": [ "co" ],
"aliases": ["co"],
"factory": "./src/container",

@@ -21,3 +21,3 @@ "schema": "./src/container/schema.json",

"effect": {
"aliases": [ "ef" ],
"aliases": ["ef"],
"factory": "./src/effect",

@@ -29,3 +29,3 @@ "schema": "./src/effect/schema.json",

"entity": {
"aliases": [ "en" ],
"aliases": ["en"],
"factory": "./src/entity",

@@ -37,3 +37,3 @@ "schema": "./src/entity/schema.json",

"feature": {
"aliases": [ "f" ],
"aliases": ["f"],
"factory": "./src/feature",

@@ -45,3 +45,3 @@ "schema": "./src/feature/schema.json",

"reducer": {
"aliases": [ "r" ],
"aliases": ["r"],
"factory": "./src/reducer",

@@ -53,8 +53,15 @@ "schema": "./src/reducer/schema.json",

"store": {
"aliases": [ "st" ],
"aliases": ["st"],
"factory": "./src/store",
"schema": "./src/store/schema.json",
"description": "Adds initial setup for state managment"
"description": "Adds initial setup for state management"
},
"ng-add": {
"aliases": ["init"],
"factory": "./src/ng-add",
"schema": "./src/ng-add/schema.json",
"description": "Installs the NgRx schematics package"
}
}
}
{
"name": "@ngrx/schematics",
"version": "7.2.0",
"version": "7.3.0",
"description": "NgRx Schematics for Angular",

@@ -5,0 +5,0 @@ "repository": {

import { Injectable } from '@angular/core';
import { Actions, Effect<% if (feature) { %>, ofType<% } %> } from '@ngrx/effects';
<% if (feature && api) { %>import { catchError, map, concatMap } from 'rxjs/operators';<% } %>
<% if (feature && api) { %>import { EMPTY, of } from 'rxjs';<% } %>
<% if (feature && api) { %>import { Load<%= classify(name) %>sFailure, Load<%= classify(name) %>sSuccess, <%= classify(name) %>ActionTypes, <%= classify(name) %>Actions } from '<%= featurePath(group, flat, "actions", dasherize(name)) %><%= dasherize(name) %>.actions';<% } %>
<% if (feature && !api) { %>import { <%= classify(name) %>ActionTypes } from '<%= featurePath(group, flat, "actions", dasherize(name)) %><%= dasherize(name) %>.actions';<% } %>
<% if (feature && api) { %>import { catchError, map, concatMap } from 'rxjs/operators';
import { EMPTY, of } from 'rxjs';
import { Load<%= classify(name) %>sFailure, Load<%= classify(name) %>sSuccess, <%= classify(name) %>ActionTypes, <%= classify(name) %>Actions } from '<%= featurePath(group, flat, "actions", dasherize(name)) %><%= dasherize(name) %>.actions';
<% } %>
<% if (feature && !api) { %>import { concatMap } from 'rxjs/operators';
import { EMPTY } from 'rxjs';
import { <%= classify(name) %>ActionTypes, <%= classify(name) %>Actions } from '<%= featurePath(group, flat, "actions", dasherize(name)) %><%= dasherize(name) %>.actions';
<% } %>

@@ -20,9 +24,12 @@ @Injectable()

)
);
<% } %>
);<% } %>
<% if (feature && !api) { %>
@Effect()
load<%= classify(name) %>s$ = this.actions$.pipe(ofType(<%= classify(name) %>ActionTypes.Load<%= classify(name) %>s));
load<%= classify(name) %>s$ = this.actions$.pipe(
ofType(<%= classify(name) %>ActionTypes.Load<%= classify(name) %>s),
/** An EMPTY observable only emits completion. Replace with your own observable API request */
concatMap(() => EMPTY)
);
<% } %>
<% if (feature && api) { %>
<% if (feature) { %>
constructor(private actions$: Actions<<%= classify(name) %>Actions>) {}

@@ -29,0 +36,0 @@ <% } else { %>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc