Socket
Socket
Sign inDemoInstall

@arkerlabs/es-schematics

Package Overview
Dependencies
35
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.10 to 1.2.11

12

dist/command/schema.json

@@ -24,10 +24,5 @@ {

},
"path": {
"type": "string",
"format": "path",
"description": "The path to create the command."
},
"sourceRoot": {
"type": "string",
"description": "Nest command source root directory."
"description": "Root dir of the source in the nest project, defaults to src."
},

@@ -38,7 +33,2 @@ "skipImport": {

},
"flat": {
"default": false,
"description": "Flag to indicate if a directory is created."
},
"spec": {

@@ -45,0 +35,0 @@ "default": true,

@@ -25,3 +25,2 @@ {

"createHandler": {
"type": "boolean",
"default": false,

@@ -31,14 +30,8 @@ "description": "Specifies if an event handler needs to be created."

"createUpdater": {
"type": "boolean",
"default": true,
"description": "Specifies if an event updater needs to be created."
},
"path": {
"type": "string",
"format": "path",
"description": "The path to create the event."
},
"sourceRoot": {
"type": "string",
"description": "Nest event source root directory."
"description": "Root dir of the source in the nest project, defaults to src."
},

@@ -49,7 +42,2 @@ "skipImport": {

},
"flat": {
"default": false,
"description": "Flag to indicate if a directory is created."
},
"spec": {

@@ -56,0 +44,0 @@ "default": true,

@@ -31,3 +31,3 @@ {

"type": "string",
"description": "Nest query source root directory."
"description": "Root dir of the source in the nest project, defaults to src."
},

@@ -38,7 +38,2 @@ "skipImport": {

},
"flat": {
"default": false,
"description": "Flag to indicate if a directory is created."
},
"spec": {

@@ -45,0 +40,0 @@ "default": true,

5

dist/utils/source-root.helpers.d.ts

@@ -24,4 +24,5 @@ import { Path } from '@angular-devkit/core';

sourceRoot?: string;
spec?: boolean;
flat?: boolean;
createHandler?: boolean | string;
createUpdater?: boolean | string;
spec?: boolean | string;
}>(type: ElementType, options: T): Rule;

@@ -34,2 +34,11 @@ "use strict";

options.elementType = type.toString();
if (options.createHandler === "true") {
options.createHandler = true;
}
if (options.createUpdater === "true") {
options.createUpdater = true;
}
if (options.spec === "true") {
options.spec = true;
}
switch (type) {

@@ -36,0 +45,0 @@ case element_type_enum_1.ElementType.command:

@@ -8,4 +8,4 @@ "use strict";

return (context) => schematics_1.apply(schematics_1.url(core_1.join('./files', options.fileType)), [
options.spec ? schematics_1.noop() : schematics_1.filter((path) => !path.endsWith('.spec.ts')),
options.createHandler
options.spec === true ? schematics_1.noop() : schematics_1.filter((path) => !path.endsWith('.spec.ts')),
options.createHandler === true
? schematics_1.noop()

@@ -18,3 +18,3 @@ : schematics_1.filter((path) => {

}),
options.createUpdater
options.createUpdater === true
? schematics_1.noop()

@@ -21,0 +21,0 @@ : schematics_1.filter((path) => !path.endsWith('.updater.ts') && !path.endsWith('.updater.spec.ts')),

{
"name": "@arkerlabs/es-schematics",
"version": "1.2.10",
"version": "1.2.11",
"description": "Event sourcing schematics by arkerlabs",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc