@nestjs/schematics 10.2.2 → 10.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@nestjs/testing": "^10.0.0",
|
|
25
|
-
"@babel/core": "7.
|
|
26
|
-
"@babel/node": "7.
|
|
27
|
-
"@babel/plugin-proposal-decorators": "7.25.
|
|
28
|
-
"@babel/plugin-transform-runtime": "7.25.
|
|
29
|
-
"@babel/preset-env": "7.
|
|
30
|
-
"@babel/register": "7.25.
|
|
31
|
-
"@babel/runtime": "7.
|
|
25
|
+
"@babel/core": "7.26.0",
|
|
26
|
+
"@babel/node": "7.26.0",
|
|
27
|
+
"@babel/plugin-proposal-decorators": "7.25.9",
|
|
28
|
+
"@babel/plugin-transform-runtime": "7.25.9",
|
|
29
|
+
"@babel/preset-env": "7.26.0",
|
|
30
|
+
"@babel/register": "7.25.9",
|
|
31
|
+
"@babel/runtime": "7.26.0",
|
|
32
32
|
"jest": "29.7.0",
|
|
33
33
|
"nodemon": "3.1.7",
|
|
34
34
|
"prettier": "3.3.3",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/supertest": "^6.0.0",
|
|
37
37
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
38
38
|
"@typescript-eslint/parser": "^8.0.0",
|
|
39
|
-
"eslint": "^
|
|
39
|
+
"eslint": "^8.0.0",
|
|
40
40
|
"eslint-config-prettier": "^9.0.0",
|
|
41
41
|
"eslint-plugin-prettier": "^5.0.0",
|
|
42
42
|
"jest": "^29.5.0",
|
|
@@ -3,12 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
-
const util_1 = require("util");
|
|
7
6
|
const formatting_1 = require("../../utils/formatting");
|
|
8
7
|
const module_declarator_1 = require("../../utils/module.declarator");
|
|
9
8
|
const module_finder_1 = require("../../utils/module.finder");
|
|
10
9
|
const name_parser_1 = require("../../utils/name.parser");
|
|
11
10
|
const source_root_helpers_1 = require("../../utils/source-root.helpers");
|
|
11
|
+
function isNullOrUndefined(value) {
|
|
12
|
+
return value === null || value === undefined;
|
|
13
|
+
}
|
|
12
14
|
function main(options) {
|
|
13
15
|
options = transform(options);
|
|
14
16
|
return (tree, context) => {
|
|
@@ -23,7 +25,7 @@ function transform(source) {
|
|
|
23
25
|
const target = Object.assign({}, source);
|
|
24
26
|
target.metadata = 'providers';
|
|
25
27
|
target.type = 'service';
|
|
26
|
-
if (
|
|
28
|
+
if (isNullOrUndefined(target.name)) {
|
|
27
29
|
throw new schematics_1.SchematicsException('Option (name) is required.');
|
|
28
30
|
}
|
|
29
31
|
const location = new name_parser_1.NameParser().parse(target);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/schematics",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.3",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@schematics)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
},
|
|
42
42
|
"homepage": "https://github.com/nestjs/schematics#readme",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@angular-devkit/core": "17.3.
|
|
45
|
-
"@angular-devkit/schematics": "17.3.
|
|
44
|
+
"@angular-devkit/core": "17.3.11",
|
|
45
|
+
"@angular-devkit/schematics": "17.3.11",
|
|
46
46
|
"comment-json": "4.2.5",
|
|
47
47
|
"jsonc-parser": "3.3.1",
|
|
48
48
|
"pluralize": "8.0.0"
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@commitlint/cli": "19.5.0",
|
|
52
52
|
"@commitlint/config-angular": "19.5.0",
|
|
53
|
-
"@types/jest": "29.5.
|
|
54
|
-
"@types/node": "20.
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
56
|
-
"@typescript-eslint/parser": "8.
|
|
53
|
+
"@types/jest": "29.5.14",
|
|
54
|
+
"@types/node": "20.17.1",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "8.11.0",
|
|
56
|
+
"@typescript-eslint/parser": "8.11.0",
|
|
57
57
|
"cpx2": "8.0.0",
|
|
58
|
-
"eslint": "9.
|
|
58
|
+
"eslint": "9.13.0",
|
|
59
59
|
"eslint-config-prettier": "9.1.0",
|
|
60
60
|
"eslint-plugin-import": "2.31.0",
|
|
61
61
|
"gulp": "5.0.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"husky": "9.1.6",
|
|
64
64
|
"jest": "29.7.0",
|
|
65
65
|
"nyc": "17.1.0",
|
|
66
|
-
"release-it": "17.
|
|
66
|
+
"release-it": "17.10.0",
|
|
67
67
|
"ts-jest": "29.2.5",
|
|
68
68
|
"ts-node": "10.9.2",
|
|
69
69
|
"typescript": "5.6.3"
|