@nestjs/core 9.3.12 → 9.4.1

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.
package/Readme.md CHANGED
@@ -1,11 +1,11 @@
1
1
  <p align="center">
2
- <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
2
+ <a href="https://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
3
3
  </p>
4
4
 
5
5
  [circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
6
6
  [circleci-url]: https://circleci.com/gh/nestjs/nest
7
7
 
8
- <p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
8
+ <p align="center">A progressive <a href="https://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
9
9
  <p align="center">
10
10
  <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
11
11
  <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
@@ -132,7 +132,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
132
132
  <td align="center" valign="middle"><a href="https://klqc.de" target="_blank"><img src="https://nestjs.com/img/klcqcl-logo.png" width="120" valign="middle" /></a></td>
133
133
  <td align="center" valign="middle"><a href="https://thecasinowizard.com/bonuses/no-deposit-bonuses/" target="_blank"><img src="https://nestjs.com/img/casinowizard-logo.png" width="120" valign="middle" /></a></td></tr><tr>
134
134
  <td align="center" valign="middle"><a href="https://polygon-software.ch/" target="_blank"><img src="https://nestjs.com/img/polygon-logo.svg" width="120" valign="middle" /></a></td>
135
- <td align="center" valign="middle"><a href="https://mobilereality.pl/" target="_blank"><img src="https://nestjs.com/img/mobile-reality-logo.png" width="45" valign="middle" /></a></td>
135
+ <td align="center" valign="middle"><a href="https://themobilereality.com/" target="_blank"><img src="https://nestjs.com/img/mobile-reality-logo.png" width="45" valign="middle" /></a></td>
136
136
  <td align="center" valign="middle"><a href="https://boringowl.io/" target="_blank"><img src="https://nestjs.com/img/boringowl-logo.svg" width="120" valign="middle" /></a></td>
137
137
  <td align="center" valign="middle"><a href="https://www.mobilefactory.jp/" target="_blank"><img src="https://nestjs.com/img/mobilefactory-logo.png" width="100" valign="middle" /></a></td>
138
138
  <td align="center" valign="middle"><a href="https://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/nordbot-logo.png" width="120" valign="middle" /></a></td>
@@ -12,5 +12,5 @@ class ExceptionHandler {
12
12
  ExceptionHandler.logger.error(exception.what(), exception.stack);
13
13
  }
14
14
  }
15
- exports.ExceptionHandler = ExceptionHandler;
16
15
  ExceptionHandler.logger = new logger_service_1.Logger(ExceptionHandler.name);
16
+ exports.ExceptionHandler = ExceptionHandler;
@@ -30,5 +30,5 @@ class ExceptionsZone {
30
30
  }
31
31
  }
32
32
  }
33
- exports.ExceptionsZone = ExceptionsZone;
34
33
  ExceptionsZone.exceptionHandler = new exception_handler_1.ExceptionHandler();
34
+ exports.ExceptionsZone = ExceptionsZone;
@@ -10,5 +10,5 @@ class ExternalExceptionFilter {
10
10
  throw exception;
11
11
  }
12
12
  }
13
- exports.ExternalExceptionFilter = ExternalExceptionFilter;
14
13
  ExternalExceptionFilter.logger = new common_1.Logger('ExceptionsHandler');
14
+ exports.ExternalExceptionFilter = ExternalExceptionFilter;
@@ -286,6 +286,6 @@ class InstanceWrapper {
286
286
  return key ? uuid_factory_1.UuidFactory.get(key) : (0, random_string_generator_util_1.randomStringGenerator)();
287
287
  }
288
288
  }
289
- exports.InstanceWrapper = InstanceWrapper;
290
289
  _a = exports.INSTANCE_METADATA_SYMBOL;
291
290
  InstanceWrapper.logger = new common_1.Logger(InstanceWrapper.name);
291
+ exports.InstanceWrapper = InstanceWrapper;
@@ -20,5 +20,5 @@ class DeterministicUuidRegistry {
20
20
  return h.toString();
21
21
  }
22
22
  }
23
- exports.DeterministicUuidRegistry = DeterministicUuidRegistry;
24
23
  DeterministicUuidRegistry.registry = new Map();
24
+ exports.DeterministicUuidRegistry = DeterministicUuidRegistry;
@@ -9,5 +9,5 @@ class InitializeOnPreviewAllowlist {
9
9
  return this.allowlist.has(type);
10
10
  }
11
11
  }
12
- exports.InitializeOnPreviewAllowlist = InitializeOnPreviewAllowlist;
13
12
  InitializeOnPreviewAllowlist.allowlist = new WeakMap();
13
+ exports.InitializeOnPreviewAllowlist = InitializeOnPreviewAllowlist;
@@ -100,7 +100,6 @@ class SerializedGraph {
100
100
  return deterministic_uuid_registry_1.DeterministicUuidRegistry.get(JSON.stringify(edgeDefinition));
101
101
  }
102
102
  }
103
- exports.SerializedGraph = SerializedGraph;
104
103
  SerializedGraph.INTERNAL_PROVIDERS = [
105
104
  application_config_1.ApplicationConfig,
106
105
  module_ref_1.ModuleRef,
@@ -115,3 +114,4 @@ SerializedGraph.INTERNAL_PROVIDERS = [
115
114
  request_constants_1.REQUEST,
116
115
  inquirer_constants_1.INQUIRER,
117
116
  ];
117
+ exports.SerializedGraph = SerializedGraph;
@@ -18,5 +18,5 @@ class UuidFactory {
18
18
  : (0, random_string_generator_util_1.randomStringGenerator)();
19
19
  }
20
20
  }
21
- exports.UuidFactory = UuidFactory;
22
21
  UuidFactory._mode = UuidFactoryMode.Random;
22
+ exports.UuidFactory = UuidFactory;
@@ -0,0 +1,3 @@
1
+ import { DynamicModule, ForwardReference } from '@nestjs/common';
2
+ import { Type } from '@nestjs/common/interfaces';
3
+ export type ModuleDefinition = ForwardReference | Type<unknown> | DynamicModule | Promise<DynamicModule>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { ModuleDefinition } from './module-definition.interface';
2
+ export interface ModuleOverride {
3
+ moduleToReplace: ModuleDefinition;
4
+ newModule: ModuleDefinition;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -21,7 +21,6 @@ class MiddlewareBuilder {
21
21
  return this.httpAdapter;
22
22
  }
23
23
  }
24
- exports.MiddlewareBuilder = MiddlewareBuilder;
25
24
  MiddlewareBuilder.ConfigProxy = class {
26
25
  constructor(builder, middleware, routeInfoPathExtractor) {
27
26
  this.builder = builder;
@@ -54,3 +53,4 @@ MiddlewareBuilder.ConfigProxy = class {
54
53
  .toArray();
55
54
  }
56
55
  };
56
+ exports.MiddlewareBuilder = MiddlewareBuilder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/core",
3
- "version": "9.3.12",
3
+ "version": "9.4.1",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@core)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",
@@ -11,7 +11,8 @@
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "https://github.com/nestjs/nest"
14
+ "url": "https://github.com/nestjs/nest.git",
15
+ "directory": "packages/core"
15
16
  },
16
17
  "publishConfig": {
17
18
  "access": "public"
@@ -32,10 +33,10 @@
32
33
  "iterare": "1.2.1",
33
34
  "path-to-regexp": "3.2.0",
34
35
  "tslib": "2.5.0",
35
- "uid": "2.0.1"
36
+ "uid": "2.0.2"
36
37
  },
37
38
  "devDependencies": {
38
- "@nestjs/common": "9.3.12"
39
+ "@nestjs/common": "9.4.1"
39
40
  },
40
41
  "peerDependencies": {
41
42
  "@nestjs/common": "^9.0.0",
@@ -24,6 +24,6 @@ class HelpReplFn extends repl_function_1.ReplFunction {
24
24
  '\n');
25
25
  }
26
26
  }
27
- exports.HelpReplFn = HelpReplFn;
28
27
  HelpReplFn.buildHelpMessage = ({ name, description }) => cli_colors_util_1.clc.cyanBright(name) +
29
28
  (description ? ` ${cli_colors_util_1.clc.bold('-')} ${description}` : '');
29
+ exports.HelpReplFn = HelpReplFn;
@@ -14,9 +14,9 @@ class ReplLogger extends common_1.ConsoleLogger {
14
14
  return super.log.apply(this, Array.from(arguments));
15
15
  }
16
16
  }
17
- exports.ReplLogger = ReplLogger;
18
17
  ReplLogger.ignoredContexts = [
19
18
  routes_resolver_1.RoutesResolver.name,
20
19
  router_explorer_1.RouterExplorer.name,
21
20
  nest_application_1.NestApplication.name,
22
21
  ];
22
+ exports.ReplLogger = ReplLogger;
package/scanner.js CHANGED
@@ -191,7 +191,9 @@ class DependenciesScanner {
191
191
  const moduleImports = moduleRef.imports;
192
192
  moduleImports.forEach(importedModuleRef => {
193
193
  if (importedModuleRef) {
194
- importedModuleRef.distance = distance;
194
+ if (distance > importedModuleRef.distance) {
195
+ importedModuleRef.distance = distance;
196
+ }
195
197
  calculateDistance(importedModuleRef, distance + 1);
196
198
  }
197
199
  });