@nestjs/schematics
Advanced tools
Comparing version 8.0.7 to 8.0.8
@@ -7,5 +7,6 @@ "use strict"; | ||
const path_1 = require("path"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const defaults_1 = require("../defaults"); | ||
function main(options) { | ||
options.name = core_1.strings.dasherize(options.name); | ||
options.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(options.name); | ||
const path = !options.directory || options.directory === 'undefined' | ||
@@ -12,0 +13,0 @@ ? options.name |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const name_parser_1 = require("../../utils/name.parser"); | ||
@@ -21,3 +22,3 @@ const source_root_helpers_1 = require("../../utils/source-root.helpers"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
if (target.name.includes('.')) { | ||
@@ -31,3 +32,3 @@ target.className = core_1.strings.classify(target.name).replace('.', ''); | ||
target.language !== undefined ? target.language : defaults_1.DEFAULT_LANGUAGE; | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.path = target.flat | ||
@@ -40,3 +41,3 @@ ? target.path | ||
return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)('./files', options.language)), [ | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.endsWith('.spec.ts')), | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)((path) => !path.endsWith('.spec.ts')), | ||
(0, schematics_1.template)(Object.assign(Object.assign({}, core_1.strings), options)), | ||
@@ -43,0 +44,0 @@ (0, schematics_1.move)(options.path), |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const module_declarator_1 = require("../../utils/module.declarator"); | ||
@@ -30,4 +31,4 @@ const module_finder_1 = require("../../utils/module.finder"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = | ||
@@ -42,3 +43,3 @@ target.language !== undefined ? target.language : defaults_1.DEFAULT_LANGUAGE; | ||
return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)('./files', options.language)), [ | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.endsWith('.spec.ts')), | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)((path) => !path.endsWith('.spec.ts')), | ||
(0, schematics_1.template)(Object.assign(Object.assign({}, core_1.strings), options)), | ||
@@ -45,0 +46,0 @@ (0, schematics_1.move)(options.path), |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const name_parser_1 = require("../../utils/name.parser"); | ||
@@ -20,4 +21,4 @@ const source_root_helpers_1 = require("../../utils/source-root.helpers"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = target.language !== undefined ? target.language : 'ts'; | ||
@@ -24,0 +25,0 @@ target.path = target.flat |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const name_parser_1 = require("../../utils/name.parser"); | ||
@@ -20,4 +21,4 @@ const source_root_helpers_1 = require("../../utils/source-root.helpers"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = target.language !== undefined ? target.language : 'ts'; | ||
@@ -31,3 +32,3 @@ target.path = target.flat | ||
return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)('./files', options.language)), [ | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.endsWith('.spec.ts')), | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)((path) => !path.endsWith('.spec.ts')), | ||
(0, schematics_1.template)(Object.assign(Object.assign({}, core_1.strings), options)), | ||
@@ -34,0 +35,0 @@ (0, schematics_1.move)(options.path), |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const module_declarator_1 = require("../../utils/module.declarator"); | ||
@@ -30,4 +31,4 @@ const module_finder_1 = require("../../utils/module.finder"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = target.language !== undefined ? target.language : 'ts'; | ||
@@ -41,3 +42,3 @@ target.path = target.flat | ||
return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)('./files', options.language)), [ | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.endsWith('.spec.ts')), | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)((path) => !path.endsWith('.spec.ts')), | ||
(0, schematics_1.template)(Object.assign(Object.assign({}, core_1.strings), options)), | ||
@@ -44,0 +45,0 @@ (0, schematics_1.move)(options.path), |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const name_parser_1 = require("../../utils/name.parser"); | ||
@@ -20,4 +21,4 @@ const source_root_helpers_1 = require("../../utils/source-root.helpers"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = target.language !== undefined ? target.language : 'ts'; | ||
@@ -24,0 +25,0 @@ target.path = target.flat |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const name_parser_1 = require("../../utils/name.parser"); | ||
@@ -20,4 +21,4 @@ const source_root_helpers_1 = require("../../utils/source-root.helpers"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = target.language !== undefined ? target.language : 'ts'; | ||
@@ -31,3 +32,3 @@ target.path = target.flat | ||
return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)('./files', options.language)), [ | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.endsWith('.spec.ts')), | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)((path) => !path.endsWith('.spec.ts')), | ||
(0, schematics_1.template)(Object.assign(Object.assign({}, core_1.strings), options)), | ||
@@ -34,0 +35,0 @@ (0, schematics_1.move)(options.path), |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const name_parser_1 = require("../../utils/name.parser"); | ||
@@ -20,4 +21,4 @@ const source_root_helpers_1 = require("../../utils/source-root.helpers"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.path = target.flat | ||
@@ -24,0 +25,0 @@ ? target.path |
@@ -7,2 +7,3 @@ "use strict"; | ||
const jsonc_parser_1 = require("jsonc-parser"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const defaults_1 = require("../defaults"); | ||
@@ -27,3 +28,3 @@ function main(options) { | ||
target.language = !!target.language ? target.language : defaults_1.DEFAULT_LANGUAGE; | ||
target.name = core_1.strings.dasherize(target.name); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(target.name); | ||
target.path = | ||
@@ -30,0 +31,0 @@ target.path !== undefined |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const name_parser_1 = require("../../utils/name.parser"); | ||
@@ -20,4 +21,4 @@ const source_root_helpers_1 = require("../../utils/source-root.helpers"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = target.language !== undefined ? target.language : 'ts'; | ||
@@ -31,3 +32,3 @@ target.path = target.flat | ||
return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)('./files', options.language)), [ | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.endsWith('.spec.ts')), | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)((path) => !path.endsWith('.spec.ts')), | ||
(0, schematics_1.template)(Object.assign(Object.assign({}, core_1.strings), options)), | ||
@@ -34,0 +35,0 @@ (0, schematics_1.move)(options.path), |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const module_declarator_1 = require("../../utils/module.declarator"); | ||
@@ -27,5 +28,5 @@ const module_finder_1 = require("../../utils/module.finder"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = target.language !== undefined ? target.language : 'ts'; | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.path = target.flat | ||
@@ -32,0 +33,0 @@ ? target.path |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const name_parser_1 = require("../../utils/name.parser"); | ||
@@ -20,4 +21,4 @@ const source_root_helpers_1 = require("../../utils/source-root.helpers"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = target.language !== undefined ? target.language : 'ts'; | ||
@@ -31,3 +32,3 @@ target.path = target.flat | ||
return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)('./files', options.language)), [ | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.endsWith('.spec.ts')), | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)((path) => !path.endsWith('.spec.ts')), | ||
(0, schematics_1.template)(Object.assign(Object.assign({}, core_1.strings), options)), | ||
@@ -34,0 +35,0 @@ (0, schematics_1.move)(options.path), |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const module_declarator_1 = require("../../utils/module.declarator"); | ||
@@ -29,3 +30,3 @@ const module_finder_1 = require("../../utils/module.finder"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
if (target.name.includes('.')) { | ||
@@ -37,3 +38,3 @@ target.className = core_1.strings.classify(target.name).replace('.', ''); | ||
} | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = target.language !== undefined ? target.language : 'ts'; | ||
@@ -40,0 +41,0 @@ target.path = target.flat |
@@ -6,2 +6,3 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const module_declarator_1 = require("../../utils/module.declarator"); | ||
@@ -30,4 +31,4 @@ const module_finder_1 = require("../../utils/module.finder"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = target.language !== undefined ? target.language : 'ts'; | ||
@@ -41,3 +42,3 @@ target.path = target.flat | ||
return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)('./files', options.language)), [ | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.endsWith('.spec.ts')), | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)((path) => !path.endsWith('.spec.ts')), | ||
(0, schematics_1.template)(Object.assign(Object.assign({}, core_1.strings), options)), | ||
@@ -44,0 +45,0 @@ (0, schematics_1.move)(options.path), |
@@ -5,10 +5,11 @@ "use strict"; | ||
const core_1 = require("@angular-devkit/core"); | ||
const strings_1 = require("@angular-devkit/core/src/utils/strings"); | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const name_parser_1 = require("../../utils/name.parser"); | ||
const source_root_helpers_1 = require("../../utils/source-root.helpers"); | ||
const strings_1 = require("@angular-devkit/core/src/utils/strings"); | ||
const tasks_1 = require("@angular-devkit/schematics/tasks"); | ||
const pluralize = require("pluralize"); | ||
const __1 = require("../.."); | ||
const dependencies_utils_1 = require("../../utils/dependencies.utils"); | ||
const tasks_1 = require("@angular-devkit/schematics/tasks"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const name_parser_1 = require("../../utils/name.parser"); | ||
const source_root_helpers_1 = require("../../utils/source-root.helpers"); | ||
function main(options) { | ||
@@ -34,4 +35,4 @@ options = transform(options); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = target.language !== undefined ? target.language : 'ts'; | ||
@@ -38,0 +39,0 @@ if (target.language === 'js') { |
@@ -7,2 +7,3 @@ "use strict"; | ||
const util_1 = require("util"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const module_declarator_1 = require("../../utils/module.declarator"); | ||
@@ -31,4 +32,4 @@ const module_finder_1 = require("../../utils/module.finder"); | ||
const location = new name_parser_1.NameParser().parse(target); | ||
target.name = core_1.strings.dasherize(location.name); | ||
target.path = core_1.strings.dasherize(location.path); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.name); | ||
target.path = (0, formatting_1.normalizeToKebabOrSnakeCase)(location.path); | ||
target.language = target.language !== undefined ? target.language : 'ts'; | ||
@@ -42,3 +43,3 @@ target.path = target.flat | ||
return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)('./files', options.language)), [ | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.endsWith('.spec.ts')), | ||
options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)((path) => !path.endsWith('.spec.ts')), | ||
(0, schematics_1.template)(Object.assign(Object.assign({}, core_1.strings), options)), | ||
@@ -45,0 +46,0 @@ (0, schematics_1.move)(options.path), |
@@ -6,4 +6,5 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const fse = require("fs-extra"); | ||
const jsonc_parser_1 = require("jsonc-parser"); | ||
const fse = require("fs-extra"); | ||
const formatting_1 = require("../../utils/formatting"); | ||
const defaults_1 = require("../defaults"); | ||
@@ -51,3 +52,3 @@ function main(options) { | ||
target.language = !!target.language ? target.language : defaults_1.DEFAULT_LANGUAGE; | ||
target.name = core_1.strings.dasherize(target.name); | ||
target.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(target.name); | ||
target.path = | ||
@@ -54,0 +55,0 @@ target.path !== undefined |
{ | ||
"name": "@nestjs/schematics", | ||
"version": "8.0.7", | ||
"version": "8.0.8", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@schematics)", | ||
@@ -43,4 +43,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@angular-devkit/core": "13.2.4", | ||
"@angular-devkit/schematics": "13.2.4", | ||
"@angular-devkit/core": "13.2.5", | ||
"@angular-devkit/schematics": "13.2.5", | ||
"fs-extra": "10.0.1", | ||
@@ -55,8 +55,8 @@ "jsonc-parser": "3.0.0", | ||
"@types/jest": "27.4.1", | ||
"@types/node": "16.11.25", | ||
"@typescript-eslint/eslint-plugin": "5.12.1", | ||
"@typescript-eslint/parser": "5.12.1", | ||
"@types/node": "16.11.26", | ||
"@typescript-eslint/eslint-plugin": "5.13.0", | ||
"@typescript-eslint/parser": "5.13.0", | ||
"cpx": "1.5.0", | ||
"eslint": "8.9.0", | ||
"eslint-config-prettier": "8.4.0", | ||
"eslint": "8.10.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-plugin-import": "2.25.4", | ||
@@ -70,4 +70,4 @@ "gulp": "4.0.2", | ||
"ts-jest": "27.1.3", | ||
"ts-node": "10.5.0", | ||
"typescript": "4.5.5" | ||
"ts-node": "10.7.0", | ||
"typescript": "4.6.2" | ||
}, | ||
@@ -74,0 +74,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
177839
228
4374
+ Added@angular-devkit/core@13.2.5(transitive)
+ Added@angular-devkit/schematics@13.2.5(transitive)
- Removed@angular-devkit/core@13.2.4(transitive)
- Removed@angular-devkit/schematics@13.2.4(transitive)
Updated@angular-devkit/core@13.2.5