@nestjs/schematics 8.0.2 → 8.0.6

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.
Files changed (37) hide show
  1. package/dist/collection.json +34 -17
  2. package/dist/index.js +1 -1
  3. package/dist/lib/application/application.factory.js +6 -6
  4. package/dist/lib/application/files/js/package.json +11 -11
  5. package/dist/lib/application/files/ts/package.json +7 -6
  6. package/dist/lib/application/files/ts/tsconfig.json +6 -1
  7. package/dist/lib/application/schema.json +6 -1
  8. package/dist/lib/class/class.factory.js +6 -6
  9. package/dist/lib/client-app/angular/angular.factory.js +9 -9
  10. package/dist/lib/configuration/configuration.factory.js +4 -4
  11. package/dist/lib/controller/controller.factory.js +8 -8
  12. package/dist/lib/decorator/decorator.factory.js +5 -5
  13. package/dist/lib/filter/filter.factory.js +6 -6
  14. package/dist/lib/gateway/gateway.factory.js +8 -8
  15. package/dist/lib/guard/guard.factory.js +6 -6
  16. package/dist/lib/interceptor/interceptor.factory.js +6 -6
  17. package/dist/lib/interface/interface.factory.js +5 -5
  18. package/dist/lib/library/library.factory.js +19 -18
  19. package/dist/lib/middleware/middleware.factory.js +6 -6
  20. package/dist/lib/module/module.factory.js +7 -7
  21. package/dist/lib/pipe/pipe.factory.js +6 -6
  22. package/dist/lib/provider/provider.factory.js +8 -8
  23. package/dist/lib/resolver/resolver.factory.js +8 -8
  24. package/dist/lib/resource/resource.factory.js +13 -13
  25. package/dist/lib/service/service.factory.js +9 -9
  26. package/dist/lib/sub-app/files/ts/test/app.e2e-spec.ts +1 -1
  27. package/dist/lib/sub-app/sub-app.factory.js +28 -27
  28. package/dist/utils/index.js +1 -1
  29. package/dist/utils/json-file.util.js +7 -7
  30. package/dist/utils/metadata.manager.js +1 -1
  31. package/dist/utils/module-import.declarator.js +2 -2
  32. package/dist/utils/module.declarator.js +2 -2
  33. package/dist/utils/module.finder.js +1 -1
  34. package/dist/utils/name.parser.js +3 -3
  35. package/dist/utils/path.solver.js +2 -2
  36. package/dist/utils/source-root.helpers.js +2 -2
  37. package/package.json +18 -18
@@ -4,13 +4,13 @@ exports.NameParser = void 0;
4
4
  const core_1 = require("@angular-devkit/core");
5
5
  class NameParser {
6
6
  parse(options) {
7
- const nameWithoutPath = core_1.basename(options.name);
8
- const namePath = core_1.dirname((options.path === undefined ? '' : options.path)
7
+ const nameWithoutPath = (0, core_1.basename)(options.name);
8
+ const namePath = (0, core_1.dirname)((options.path === undefined ? '' : options.path)
9
9
  .concat('/')
10
10
  .concat(options.name));
11
11
  return {
12
12
  name: nameWithoutPath,
13
- path: core_1.normalize('/'.concat(namePath)),
13
+ path: (0, core_1.normalize)('/'.concat(namePath)),
14
14
  };
15
15
  }
16
16
  }
@@ -5,10 +5,10 @@ const core_1 = require("@angular-devkit/core");
5
5
  class PathSolver {
6
6
  relative(from, to) {
7
7
  const placeholder = '/placeholder';
8
- const relativeDir = core_1.relative(core_1.dirname((placeholder + from)), core_1.dirname((placeholder + to)));
8
+ const relativeDir = (0, core_1.relative)((0, core_1.dirname)((placeholder + from)), (0, core_1.dirname)((placeholder + to)));
9
9
  return (relativeDir.startsWith('.')
10
10
  ? relativeDir
11
- : './' + relativeDir).concat(relativeDir.length === 0 ? core_1.basename(to) : '/' + core_1.basename(to));
11
+ : './' + relativeDir).concat(relativeDir.length === 0 ? (0, core_1.basename)(to) : '/' + (0, core_1.basename)(to));
12
12
  }
13
13
  }
14
14
  exports.PathSolver = PathSolver;
@@ -17,8 +17,8 @@ function mergeSourceRoot(options) {
17
17
  const defaultSourceRoot = options.sourceRoot !== undefined ? options.sourceRoot : defaults_1.DEFAULT_PATH_NAME;
18
18
  options.path =
19
19
  options.path !== undefined
20
- ? core_1.join(core_1.normalize(defaultSourceRoot), options.path)
21
- : core_1.normalize(defaultSourceRoot);
20
+ ? (0, core_1.join)((0, core_1.normalize)(defaultSourceRoot), options.path)
21
+ : (0, core_1.normalize)(defaultSourceRoot);
22
22
  return host;
23
23
  };
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/schematics",
3
- "version": "8.0.2",
3
+ "version": "8.0.6",
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": "12.0.5",
44
- "@angular-devkit/schematics": "12.0.5",
43
+ "@angular-devkit/core": "13.2.2",
44
+ "@angular-devkit/schematics": "13.2.2",
45
45
  "fs-extra": "10.0.0",
46
46
  "jsonc-parser": "3.0.0",
47
47
  "pluralize": "8.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@commitlint/cli": "12.1.4",
51
- "@commitlint/config-angular": "12.1.4",
52
- "@types/fs-extra": "9.0.12",
53
- "@types/jest": "26.0.24",
54
- "@types/node": "16.0.0",
55
- "@typescript-eslint/eslint-plugin": "4.28.2",
56
- "@typescript-eslint/parser": "4.28.2",
50
+ "@commitlint/cli": "16.1.0",
51
+ "@commitlint/config-angular": "16.0.0",
52
+ "@types/fs-extra": "9.0.13",
53
+ "@types/jest": "27.4.0",
54
+ "@types/node": "16.11.22",
55
+ "@typescript-eslint/eslint-plugin": "5.11.0",
56
+ "@typescript-eslint/parser": "5.11.0",
57
57
  "cpx": "1.5.0",
58
- "eslint": "7.30.0",
58
+ "eslint": "8.8.0",
59
59
  "eslint-config-prettier": "8.3.0",
60
- "eslint-plugin-import": "2.23.4",
60
+ "eslint-plugin-import": "2.25.4",
61
61
  "gulp": "4.0.2",
62
62
  "gulp-clean": "0.4.0",
63
- "husky": "7.0.1",
64
- "jest": "27.0.6",
63
+ "husky": "7.0.4",
64
+ "jest": "27.5.1",
65
65
  "nyc": "15.1.0",
66
- "release-it": "14.10.0",
67
- "ts-jest": "27.0.3",
68
- "ts-node": "10.1.0",
69
- "typescript": "3.9.10"
66
+ "release-it": "14.12.4",
67
+ "ts-jest": "27.1.3",
68
+ "ts-node": "10.5.0",
69
+ "typescript": "4.5.5"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "typescript": "^3.4.5 || ^4.3.5"