Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ngrx/schematics

Package Overview
Dependencies
Maintainers
4
Versions
122
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.1.0 to 7.2.0

2

package.json
{
"name": "@ngrx/schematics",
"version": "7.1.0",
"version": "7.2.0",
"description": "NgRx Schematics for Angular",

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

/// <amd-module name="@ngrx/schematics/schematics-core/utility/libs-version" />
export declare const platformVersion = "^6.0.0";
export declare const platformVersion = "^7.0.0";

@@ -12,4 +12,4 @@ (function (factory) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.platformVersion = '^6.0.0';
exports.platformVersion = '^7.0.0';
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlicy12ZXJzaW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NjaGVtYXRpY3MtY29yZS91dGlsaXR5L2xpYnMtdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztJQUFhLFFBQUEsZUFBZSxHQUFHLFFBQVEsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBwbGF0Zm9ybVZlcnNpb24gPSAnXjYuMC4wJztcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlicy12ZXJzaW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NjaGVtYXRpY3MtY29yZS91dGlsaXR5L2xpYnMtdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztJQUFhLFFBQUEsZUFBZSxHQUFHLFFBQVEsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBwbGF0Zm9ybVZlcnNpb24gPSAnXjcuMC4wJztcbiJdfQ==
import { Action } from '@ngrx/store';
export enum <%= classify(name) %>ActionTypes {
Load<%= classify(name) %>s = '[<%= classify(name) %>] Load <%= classify(name) %>s'
Load<%= classify(name) %>s = '[<%= classify(name) %>] Load <%= classify(name) %>s',
<% if (api) { %>Load<%= classify(name) %>sSuccess = '[<%= classify(name) %>] Load <%= classify(name) %>s Success',<% } %>
<% if (api) { %>Load<%= classify(name) %>sFailure = '[<%= classify(name) %>] Load <%= classify(name) %>s Failure',<% } %>
}

@@ -10,3 +12,14 @@

}
<% if (api) { %>
export class Load<%= classify(name) %>sSuccess implements Action {
readonly type = <%= classify(name) %>ActionTypes.Load<%= classify(name) %>sSuccess;
constructor(public payload: { data: any }) { }
}
export type <%= classify(name) %>Actions = Load<%= classify(name) %>s;
export class Load<%= classify(name) %>sFailure implements Action {
readonly type = <%= classify(name) %>ActionTypes.Load<%= classify(name) %>sFailure;
constructor(public payload: { error: any }) { }
}
<% } %>
<% if (api) { %>export type <%= classify(name) %>Actions = Load<%= classify(name) %>s | Load<%= classify(name) %>sSuccess | Load<%= classify(name) %>sFailure;<% } %>
<% if (!api) { %>export type <%= classify(name) %>Actions = Load<%= classify(name) %>s;<% } %>

@@ -27,2 +27,7 @@ /// <amd-module name="@ngrx/schematics/src/action/schema" />

group?: boolean;
/**
* Specifies if api success and failure actions
* should be generated.
*/
api?: boolean;
}

@@ -13,2 +13,2 @@ (function (factory) {

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0a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AgbmFtZTogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgcGF0aCB0byBjcmVhdGUgdGhlIGNvbXBvbmVudC5cbiAgICovXG4gIHBhdGg/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFRoZSBuYW1lIG9mIHRoZSBwcm9qZWN0LlxuICAgKi9cbiAgcHJvamVjdD86IHN0cmluZztcblxuICAvKipcbiAgICogU3BlY2lmaWVzIGlmIGEgc3BlYyBmaWxlIGlzIGdlbmVyYXRlZC5cbiAgICovXG4gIHNwZWM/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiBGbGFnIHRvIGluZGljYXRlIGlmIGEgZGlyIGlzIGNyZWF0ZWQuXG4gICAqL1xuXG4gIGZsYXQ/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiBHcm91cCBhY3Rpb25zIGZpbGUgd2l0aGluICdhY3Rpb25zJyBmb2xkZXJcbiAgICovXG4gIGdyb3VwPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogU3BlY2lmaWVzIGlmIGFwaSBzdWNjZXNzIGFuZCBmYWlsdXJlIGFjdGlvbnNcbiAgICogc2hvdWxkIGJlIGdlbmVyYXRlZC5cbiAgICovXG4gIGFwaT86IGJvb2xlYW47XG59XG4iXX0=

@@ -41,2 +41,9 @@ {

"aliases": ["g"]
},
"api": {
"type": "boolean",
"default": false,
"description":
"Specifies if api success and failure actions should be generated.",
"aliases": ["a"]
}

@@ -43,0 +50,0 @@ },

import { Injectable } from '@angular/core';
import { Actions, Effect<% if (feature) { %>, ofType<% } %> } from '@ngrx/effects';
<% if (feature) { %>import { <%= classify(name) %>ActionTypes } from '<%= featurePath(group, flat, "actions", dasherize(name)) %><%= dasherize(name) %>.actions';<% } %>
<% 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';<% } %>
@Injectable()
export class <%= classify(name) %>Effects {
<% if (feature) { %>
<% if (feature && api) { %>
@Effect()
load<%= classify(name) %>s$ = this.actions$.pipe(
ofType(<%= classify(name) %>ActionTypes.Load<%= classify(name) %>s),
concatMap(() =>
/** An EMPTY observable only emits completion. Replace with your own observable API request */
EMPTY.pipe(
map(data => new Load<%= classify(name) %>sSuccess({ data })),
catchError(error => of(new Load<%= classify(name) %>sFailure({ error }))))
)
);
<% } %>
<% if (feature && !api) { %>
@Effect()
load<%= classify(name) %>s$ = this.actions$.pipe(ofType(<%= classify(name) %>ActionTypes.Load<%= classify(name) %>s));
<% } %>
<% if (feature && api) { %>
constructor(private actions$: Actions<<%= classify(name) %>Actions>) {}
<% } else { %>
constructor(private actions$: Actions) {}
<% } %>
}

@@ -39,2 +39,6 @@ /// <amd-module name="@ngrx/schematics/src/effect/schema" />

group?: boolean;
/**
* Specifies if effect has api success and failure actions wired up
*/
api?: boolean;
}

@@ -13,2 +13,2 @@ (function (factory) {

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NyYy9lZmZlY3Qvc2NoZW1hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFNjaGVtYSB7XG4gIC8qKlxuICAgKiBUaGUgbmFtZSBvZiB0aGUgY29tcG9uZW50LlxuICAgKi9cblxuICBuYW1lOiBzdHJpbm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BzdWNjZXNzIGFuZCBmYWlsdXJlIGFjdGlvbnMgd2lyZWQgdXBcbiAgICovXG4gIGFwaT86IGJvb2xlYW47XG59XG4iXX0=

@@ -59,2 +59,9 @@ {

"aliases": ["g"]
},
"api": {
"type": "boolean",
"default": false,
"description":
"Specifies if effect has api success and failure actions wired up",
"aliases": ["a"]
}

@@ -61,0 +68,0 @@ },

@@ -23,2 +23,3 @@ (function (factory) {

spec: false,
api: options.api,
}),

@@ -35,2 +36,3 @@ schematics_1.schematic('reducer', {

feature: true,
api: options.api,
}),

@@ -46,2 +48,3 @@ schematics_1.schematic('effect', {

feature: true,
api: options.api,
}),

@@ -53,2 +56,2 @@ ])(host, context);

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL3NjaGVtYXRpY3Mvc3JjL2ZlYXR1cmUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7SUFBQSx5REFNb0M7SUFHcEMsbUJBQXdCLE9BQXVCO1FBQzdDLE9BQU8sVUFBQyxJQUFVLEVBQUUsT0FBeUI7WUFDM0MsT0FBTyxrQkFBSyxDQUFDO2dCQUNYLHNCQUFTLENBQUMsUUFBUSxFQUFFO29CQUNsQixJQUFJLEVBQUUsT0FBTyxDQUFDLElBQUk7b0JBQ2xCLEtBQUssRUFBRSxPQUFPLENBQUMsS0FBSztvQkFDcEIsSUFBSSxFQUFFLE9BQU8sQ0FBQyxJQUFJO29CQUNsQixJQUFJLEVBQUUsT0FBTyxDQUFDLElBQUk7b0JBQ2xCLE9BQU8sRUFBRSxPQUFPLENBQUMsT0FBTztvQkFDeEIsSUFBSSxFQUFFLEtBQUs7aUJBQ1osQ0FBQztnQkFDRixzQkFBUyxDQUFDLFNBQVMsRUFBRTtvQkFDbkIs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3JvdXAsXG4gICAgICAgIG1vZHVsZTogb3B0aW9ucy5tb2R1bGUsXG4gICAgICAgIG5hbWU6IG9wdGlvbnMubmFtZSxcbiAgICAgICAgcGF0aDogb3B0aW9ucy5wYXRoLFxuICAgICAgICBwcm9qZWN0OiBvcHRpb25zLnByb2plY3QsXG4gICAgICAgIHNwZWM6IG9wdGlvbnMuc3BlYyxcbiAgICAgICAgZmVhdHVyZTogdHJ1ZSxcbiAgICAgICAgYXBpOiBvcHRpb25zLmFwaSxcbiAgICAgIH0pLFxuICAgIF0pKGhvc3QsIGNvbnRleHQpO1xuICB9O1xufVxuIl19

@@ -35,2 +35,7 @@ /// <amd-module name="@ngrx/schematics/src/feature/schema" />

group?: boolean;
/**
* Specifies if api success and failure actions, reducer, and effects
* should be generated as part of this feature.
*/
api?: boolean;
}

@@ -13,2 +13,2 @@ (function (factory) {

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NyYy9mZWF0dXJlL3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBTY2hlbWEge1xuICAvKipcbiAgICogVGhlIG5hbWUgb2YgdGhlIGZlYXR1cmUuXG4gICAqL1xuICBuYW1lOiBzdHJpbmc7XG4gIC8qKlxuICAgKiBUaGUgcGF0aCB0byBjcmVhdGUgdGhlIGZlYXR1cmUuXG4gICAqL1xuICBwYXRoPzogc3RyaW5nO1xuICAvKipcbiAgICogVGhlIG5hbWUgb2YgdGhlIHByb2plY3QuXG4gICAqL1xuICBwcm9qZWN0Pzogc3RyaW5nO1xuICAvKipcbiAgICogRmxhZyB0byBpbmRpY2F0ZSBpZiBhIGRpciBpcyBjcmVhdGVkL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oZSBuYW1lIG9mIHRoZSBwcm9qZWN0LlxuICAgKi9cbiAgcHJvamVjdD86IHN0cmluZztcblxuICAvKipcbiAgICogRmxhZyB0byBpbmRpY2F0ZSBpZiBhIGRpciBpcyBjcmVhdGVkLlxuICAgKi9cbiAgZmxhdD86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIFNwZWNpZmllcyBpZiBhIHNwZWMgZmlsZSBpcyBnZW5lcmF0ZWQuXG4gICAqL1xuICBzcGVjPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogQWxsb3dzIHNwZWNpZmljYXRpb24gb2YgdGhlIGRlY2xhcmluZyBtb2R1bGUuXG4gICAqL1xuICBtb2R1bGU/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIEFsbG93cyBzcGVjaWZpY2F0aW9uIG9mIHRoZSBkZWNsYXJpbmcgcmVkdWNlcnMuXG4gICAqL1xuICByZWR1Y2Vycz86IHN0cmluZztcblxuICAvKipcbiAgICogU3BlY2lmaWVzIGlmIHRoaXMgaXMgZ3JvdXBlZCB3aXRoaW4gc3ViIGZvbGRlcnNcbiAgICovXG4gIGdyb3VwPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogU3BlY2lmaWVzIGlmIGFwaSBzdWNjZXNzIGFuZCBmYWlsdXJlIGFjdGlvbnMsIHJlZHVjZXIsIGFuZCBlZmZlY3RzXG4gICAqIHNob3VsZCBiZSBnZW5lcmF0ZWQgYXMgcGFydCBvZiB0aGlzIGZlYXR1cmUuXG4gICAqL1xuICBhcGk/OiBib29sZWFuO1xufVxuIl19

@@ -52,2 +52,9 @@ {

"aliases": ["g"]
},
"api": {
"type": "boolean",
"default": false,
"description":
"Specifies if api success and failure actions, reducer, and effects should be generated as part of this feature.",
"aliases": ["a"]
}

@@ -54,0 +61,0 @@ },

@@ -1,2 +0,2 @@

import { Action } from '@ngrx/store';
<% if(!feature) { %>import { Action } from '@ngrx/store';<% } %>
<% if(feature) { %>import { <%= classify(name) %>Actions, <%= classify(name) %>ActionTypes } from '<%= featurePath(group, flat, "actions", dasherize(name)) %><%= dasherize(name) %>.actions';<% } %>

@@ -17,4 +17,9 @@

return state;
<% if(api) { %>
case <%= classify(name) %>ActionTypes.Load<%= classify(name) %>sSuccess:
return state;
<% } %>
case <%= classify(name) %>ActionTypes.Load<%= classify(name) %>sFailure:
return state;
<% } %><% } %>
default:

@@ -21,0 +26,0 @@ return state;

@@ -39,2 +39,7 @@ /// <amd-module name="@ngrx/schematics/src/reducer/schema" />

feature?: boolean;
/**
* Specifies if api success and failure actions
* should be added to the reducer.
*/
api?: boolean;
}

@@ -13,2 +13,2 @@ (function (factory) {

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NyYy9yZWR1Y2VyL3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBTY2hlbWEge1xuICAvKipcbiAgICogVGhlIG5hbWUgb2YgdGhlIGNvbXBvbmVudC5cbiAgICovXG4gIG5hbWU6IHN0cmluZztcbiAgLyoqXG4gICAqIFRoZSBwYXRoIHRvIGNyZWF0ZSB0aGUgZWZmZWN0LlxuICAgKi9cblxuICBwYXRoPzogc3RyaW5nO1xuICAvKipcbiAgICogVGhlIG5hbWUgb2YgdGhlIHByb2plY3QuXG4gICAqL1xuICBwcm9qZWN0Pzogc3RyaW5nO1xuICAvKipcbiAgICogRmxhZyB0byBpbmRpY2F0ZSBpZiBhIGRpciBpcyBjcmVhdGVkLlxuICAgKi9cbiAgZmxhdD86IGJvb2xlYW47XG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgaWYgYSBzcGVjIGZpbGUgaXMgZ2VuZXJhdGVkLlxuICAgKi9cbiAgc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gaW5kaWNhdGUgaWYgYSBkaXIgaXMgY3JlYXRlZC5cbiAgICovXG4gIGZsYXQ/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgaWYgYSBzcGVjIGZpbGUgaXMgZ2VuZXJhdGVkLlxuICAgKi9cbiAgc3BlYz86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIEFsbG93cyBzcGVjaWZpY2F0aW9uIG9mIHRoZSBkZWNsYXJpbmcgbW9kdWxlLlxuICAgKi9cbiAgbW9kdWxlPzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBBbGxvd3Mgc3BlY2lmaWNhdGlvbiBvZiB0aGUgZGVjbGFyaW5nIHJlZHVjZXJzLlxuICAgKi9cbiAgcmVkdWNlcnM/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFNwZWNpZmllcyBpZiB0aGlzIGlzIGdyb3VwZWQgd2l0aGluIHN1YiBmb2xkZXJzXG4gICAqL1xuICBncm91cD86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIFNwZWNpZmllcyBpZiB0aGlzIGlzIGdyb3VwZWQgd2l0aGluIGEgZmVhdHVyZVxuICAgKi9cbiAgZmVhdHVyZT86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIFNwZWNpZmllcyBpZiBhcGkgc3VjY2VzcyBhbmQgZmFpbHVyZSBhY3Rpb25zXG4gICAqIHNob3VsZCBiZSBhZGRlZCB0byB0aGUgcmVkdWNlci5cbiAgICovXG4gIGFwaT86IGJvb2xlYW47XG59XG4iXX0=

@@ -56,2 +56,9 @@ {

"aliases": ["g"]
},
"api": {
"type": "boolean",
"default": false,
"description":
"Specifies if api success and failure actions should be added to the reducer",
"aliases": ["a"]
}

@@ -58,0 +65,0 @@ },

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