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

@nestjs/schematics

Package Overview
Dependencies
Maintainers
4
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/schematics - npm Package Compare versions

Comparing version 5.7.0 to 5.7.1

21

lib/factories/controller.factory.js

@@ -15,6 +15,3 @@ "use strict";

return (tree, context) => {
return schematics_1.branchAndMerge(schematics_1.chain([
addDeclarationToModule(options),
schematics_1.mergeWith(generate(options))
]))(tree, context);
return schematics_1.branchAndMerge(schematics_1.chain([addDeclarationToModule(options), schematics_1.mergeWith(generate(options))]))(tree, context);
};

@@ -27,8 +24,11 @@ }

target.type = ELEMENT_TYPE;
target.path = target.path !== undefined ?
core_1.join(core_1.normalize(DEFAULT_PATH_NAME), target.path) : core_1.normalize(DEFAULT_PATH_NAME);
target.path =
target.path !== undefined
? core_1.join(core_1.normalize(DEFAULT_PATH_NAME), target.path)
: core_1.normalize(DEFAULT_PATH_NAME);
const location = new name_parser_1.NameParser().parse(target);
target.name = core_1.strings.dasherize(location.name);
target.path = core_1.join(core_1.strings.dasherize(location.path), target.name);
target.language = target.language !== undefined ? target.language : DEFAULT_LANGUAGE;
target.language =
target.language !== undefined ? target.language : DEFAULT_LANGUAGE;
return target;

@@ -39,3 +39,3 @@ }

schematics_1.template(Object.assign({}, core_1.strings, options)),
schematics_1.move(options.path)
schematics_1.move(options.path),
]);

@@ -50,4 +50,7 @@ }

name: options.name,
path: options.path
path: options.path,
});
if (!options.module) {
return tree;
}
const content = tree.read(options.module).toString();

@@ -54,0 +57,0 @@ const declarator = new module_declarator_1.ModuleDeclarator();

@@ -11,6 +11,3 @@ "use strict";

return (tree, context) => {
return schematics_1.branchAndMerge(schematics_1.chain([
addDeclarationToModule(options),
schematics_1.mergeWith(generate(options))
]))(tree, context);
return schematics_1.branchAndMerge(schematics_1.chain([addDeclarationToModule(options), schematics_1.mergeWith(generate(options))]))(tree, context);
};

@@ -23,3 +20,6 @@ }

target.type = 'module';
target.path = target.path !== undefined ? core_1.join(core_1.normalize('src'), target.path) : core_1.normalize('src');
target.path =
target.path !== undefined
? core_1.join(core_1.normalize('src'), target.path)
: core_1.normalize('src');
const location = new name_parser_1.NameParser().parse(target);

@@ -34,3 +34,3 @@ target.name = core_1.strings.dasherize(location.name);

schematics_1.template(Object.assign({}, core_1.strings, options)),
schematics_1.move(options.path)
schematics_1.move(options.path),
]);

@@ -45,4 +45,7 @@ }

name: options.name,
path: options.path
path: options.path,
});
if (!options.module) {
return tree;
}
const content = tree.read(options.module).toString();

@@ -49,0 +52,0 @@ const declarator = new module_declarator_1.ModuleDeclarator();

@@ -11,6 +11,3 @@ "use strict";

return (tree, context) => {
return schematics_1.branchAndMerge(schematics_1.chain([
addDeclarationToModule(options),
schematics_1.mergeWith(generate(options))
]))(tree, context);
return schematics_1.branchAndMerge(schematics_1.chain([addDeclarationToModule(options), schematics_1.mergeWith(generate(options))]))(tree, context);
};

@@ -22,3 +19,6 @@ }

target.metadata = 'providers';
target.path = target.path !== undefined ? core_1.join(core_1.normalize('src'), target.path) : core_1.normalize('src');
target.path =
target.path !== undefined
? core_1.join(core_1.normalize('src'), target.path)
: core_1.normalize('src');
const location = new name_parser_1.NameParser().parse(target);

@@ -33,3 +33,3 @@ target.name = core_1.strings.dasherize(location.name);

schematics_1.template(Object.assign({}, core_1.strings, options)),
schematics_1.move(options.path)
schematics_1.move(options.path),
]);

@@ -44,4 +44,7 @@ }

name: options.name,
path: options.path
path: options.path,
});
if (!options.module) {
return tree;
}
const content = tree.read(options.module).toString();

@@ -48,0 +51,0 @@ const declarator = new module_declarator_1.ModuleDeclarator();

@@ -11,6 +11,3 @@ "use strict";

return (tree, context) => {
return schematics_1.branchAndMerge(schematics_1.chain([
addDeclarationToModule(options),
schematics_1.mergeWith(generate(options))
]))(tree, context);
return schematics_1.branchAndMerge(schematics_1.chain([addDeclarationToModule(options), schematics_1.mergeWith(generate(options))]))(tree, context);
};

@@ -23,3 +20,6 @@ }

target.type = 'service';
target.path = target.path !== undefined ? core_1.join(core_1.normalize('src'), target.path) : core_1.normalize('src');
target.path =
target.path !== undefined
? core_1.join(core_1.normalize('src'), target.path)
: core_1.normalize('src');
const location = new name_parser_1.NameParser().parse(target);

@@ -34,3 +34,3 @@ target.name = core_1.strings.dasherize(location.name);

schematics_1.template(Object.assign({}, core_1.strings, options)),
schematics_1.move(options.path)
schematics_1.move(options.path),
]);

@@ -45,4 +45,7 @@ }

name: options.name,
path: options.path
path: options.path,
});
if (!options.module) {
return tree;
}
const content = tree.read(options.module).toString();

@@ -49,0 +52,0 @@ const declarator = new module_declarator_1.ModuleDeclarator();

{
"name": "@nestjs/schematics",
"version": "5.7.0",
"version": "5.7.1",
"description": "Nestjs schematics project for @nestjs/cli",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,2 +14,5 @@ "use strict";

findIn(directory) {
if (!directory) {
return null;
}
const moduleFilename = directory

@@ -16,0 +19,0 @@ .subfiles

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