@nestjs/schematics 8.0.10 → 8.0.11

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.
@@ -7,7 +7,7 @@ const path_1 = require("path");
7
7
  const formatting_1 = require("../../utils/formatting");
8
8
  const defaults_1 = require("../defaults");
9
9
  function main(options) {
10
- options.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(options.name);
10
+ options.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(options.name.toString());
11
11
  const path = !options.directory || options.directory === 'undefined'
12
12
  ? options.name
13
13
  : options.directory;
@@ -22,7 +22,7 @@ function transform(options) {
22
22
  ? target.description
23
23
  : defaults_1.DEFAULT_DESCRIPTION;
24
24
  target.language = !!target.language ? target.language : defaults_1.DEFAULT_LANGUAGE;
25
- target.name = resolvePackageName(target.name);
25
+ target.name = resolvePackageName(target.name.toString());
26
26
  target.version = !!target.version ? target.version : defaults_1.DEFAULT_VERSION;
27
27
  target.packageManager =
28
28
  !target.packageManager || target.packageManager === 'undefined'
@@ -22,17 +22,17 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@nestjs/testing": "^8.0.0",
25
- "@babel/core": "7.17.9",
26
- "@babel/node": "7.16.8",
25
+ "@babel/core": "7.17.10",
26
+ "@babel/node": "7.17.10",
27
27
  "@babel/plugin-proposal-decorators": "7.17.9",
28
- "@babel/plugin-transform-runtime": "7.17.0",
29
- "@babel/preset-env": "7.16.11",
28
+ "@babel/plugin-transform-runtime": "7.17.10",
29
+ "@babel/preset-env": "7.17.10",
30
30
  "@babel/register": "7.17.7",
31
31
  "@babel/runtime": "7.17.9",
32
- "jest": "27.5.1",
33
- "nodemon": "2.0.15",
32
+ "jest": "28.0.3",
33
+ "nodemon": "2.0.16",
34
34
  "prettier": "2.6.2",
35
- "supertest": "6.2.2"
35
+ "supertest": "6.2.3"
36
36
  },
37
37
  "jest": {
38
38
  "moduleFileExtensions": [
@@ -33,7 +33,7 @@
33
33
  "@nestjs/schematics": "^8.0.0",
34
34
  "@nestjs/testing": "^8.0.0",
35
35
  "@types/express": "^4.17.13",
36
- "@types/jest": "27.4.1",
36
+ "@types/jest": "27.5.0",
37
37
  "@types/node": "^16.0.0",
38
38
  "@types/supertest": "^2.0.11",
39
39
  "@typescript-eslint/eslint-plugin": "^5.0.0",
@@ -41,14 +41,14 @@
41
41
  "eslint": "^8.0.1",
42
42
  "eslint-config-prettier": "^8.3.0",
43
43
  "eslint-plugin-prettier": "^4.0.0",
44
- "jest": "^27.2.5",
44
+ "jest": "28.0.3",
45
45
  "prettier": "^2.3.2",
46
46
  "source-map-support": "^0.5.20",
47
47
  "supertest": "^6.1.3",
48
- "ts-jest": "^27.0.3",
48
+ "ts-jest": "28.0.1",
49
49
  "ts-loader": "^9.2.3",
50
50
  "ts-node": "^10.0.0",
51
- "tsconfig-paths": "^3.10.1",
51
+ "tsconfig-paths": "4.0.0",
52
52
  "typescript": "^4.3.5"
53
53
  },
54
54
  "jest": {
@@ -5,7 +5,10 @@
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "name": {
8
- "type": "string",
8
+ "oneOf": [
9
+ { "type": "string" },
10
+ { "type": "number" }
11
+ ],
9
12
  "description": "The name of the application.",
10
13
  "$default": {
11
14
  "$source": "argv",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/schematics",
3
- "version": "8.0.10",
3
+ "version": "8.0.11",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@schematics)",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -40,33 +40,33 @@
40
40
  },
41
41
  "homepage": "https://github.com/nestjs/schematics#readme",
42
42
  "dependencies": {
43
- "@angular-devkit/core": "13.3.2",
44
- "@angular-devkit/schematics": "13.3.2",
45
- "fs-extra": "10.0.1",
43
+ "@angular-devkit/core": "13.3.5",
44
+ "@angular-devkit/schematics": "13.3.5",
45
+ "fs-extra": "10.1.0",
46
46
  "jsonc-parser": "3.0.0",
47
47
  "pluralize": "8.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@commitlint/cli": "16.2.3",
51
- "@commitlint/config-angular": "16.2.3",
50
+ "@commitlint/cli": "16.2.4",
51
+ "@commitlint/config-angular": "16.2.4",
52
52
  "@types/fs-extra": "9.0.13",
53
- "@types/jest": "27.4.1",
54
- "@types/node": "16.11.26",
55
- "@typescript-eslint/eslint-plugin": "5.18.0",
56
- "@typescript-eslint/parser": "5.18.0",
53
+ "@types/jest": "27.5.0",
54
+ "@types/node": "16.11.33",
55
+ "@typescript-eslint/eslint-plugin": "5.22.0",
56
+ "@typescript-eslint/parser": "5.22.0",
57
57
  "cpx": "1.5.0",
58
- "eslint": "8.12.0",
58
+ "eslint": "8.14.0",
59
59
  "eslint-config-prettier": "8.5.0",
60
60
  "eslint-plugin-import": "2.26.0",
61
61
  "gulp": "4.0.2",
62
62
  "gulp-clean": "0.4.0",
63
63
  "husky": "7.0.4",
64
- "jest": "27.5.1",
64
+ "jest": "28.0.3",
65
65
  "nyc": "15.1.0",
66
- "release-it": "14.14.0",
67
- "ts-jest": "27.1.4",
66
+ "release-it": "15.0.0",
67
+ "ts-jest": "28.0.1",
68
68
  "ts-node": "10.7.0",
69
- "typescript": "4.6.3"
69
+ "typescript": "4.6.4"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "typescript": "^3.4.5 || ^4.3.5"