@nestjs/common 10.4.1 → 10.4.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.
Files changed (35) hide show
  1. package/Readme.md +3 -3
  2. package/decorators/core/apply-decorators.d.ts +1 -1
  3. package/decorators/core/apply-decorators.js +1 -2
  4. package/decorators/core/bind.decorator.js +1 -2
  5. package/decorators/core/catch.decorator.js +1 -2
  6. package/decorators/core/controller.decorator.js +1 -2
  7. package/decorators/core/dependencies.decorator.js +2 -2
  8. package/decorators/core/inject.decorator.js +1 -2
  9. package/decorators/core/injectable.decorator.js +2 -3
  10. package/decorators/core/optional.decorator.js +1 -2
  11. package/decorators/core/use-guards.decorator.js +1 -2
  12. package/decorators/core/use-interceptors.decorator.js +1 -2
  13. package/decorators/core/use-pipes.decorator.js +1 -2
  14. package/decorators/core/version.decorator.js +1 -2
  15. package/decorators/http/create-route-param-metadata.decorator.js +1 -2
  16. package/decorators/http/header.decorator.js +1 -2
  17. package/decorators/http/http-code.decorator.js +1 -2
  18. package/decorators/http/redirect.decorator.js +1 -2
  19. package/decorators/http/render.decorator.js +1 -2
  20. package/decorators/http/route-params.decorator.js +9 -9
  21. package/decorators/http/sse.decorator.js +1 -2
  22. package/decorators/modules/global.decorator.js +1 -2
  23. package/decorators/modules/module.decorator.js +1 -2
  24. package/file-stream/streamable-file.d.ts +0 -1
  25. package/interfaces/http/raw-body-request.interface.d.ts +0 -1
  26. package/module-utils/utils/generate-options-injection-token.util.js +1 -2
  27. package/module-utils/utils/get-injection-providers.util.js +1 -2
  28. package/package.json +2 -2
  29. package/services/utils/is-log-level-enabled.util.js +1 -2
  30. package/utils/assign-custom-metadata.util.js +1 -2
  31. package/utils/extend-metadata.util.js +1 -2
  32. package/utils/load-package.util.js +1 -2
  33. package/utils/shared.utils.d.ts +1 -1
  34. package/utils/validate-each.util.js +2 -2
  35. package/utils/validate-module-keys.util.js +2 -2
package/Readme.md CHANGED
@@ -95,6 +95,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
95
95
  <td><a href="https://www.dinii.jp/" target="_blank"><img src="https://nestjs.com/img/logos/dinii-logo.png" width="65" valign="middle" /></a></td>
96
96
  <td><a href="https://bloodycase.com/?promocode=NEST" target="_blank"><img src="https://nestjs.com/img/logos/bloodycase-logo.png" width="65" valign="middle" /></a></td>
97
97
  <td><a href="https://handsontable.com/docs/react-data-grid/?utm_source=NestJS_GH&utm_medium=sponsorship&utm_campaign=library_sponsorship_2024" target="_blank"><img src="https://nestjs.com/img/logos/handsontable-logo.svg" width="150" valign="middle" /></a></td>
98
+ <td align="center" valign="middle"><a href="https://www.itflashcards.com/" target="_blank"><img src="https://nestjs.com/img/logos/it_flashcards-logo.png" width="170" valign="middle" /></a></td>
98
99
  </tr>
99
100
  </table>
100
101
 
@@ -129,9 +130,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
129
130
  <td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/logos/julienferand-logo.jpeg" width="55" valign="middle" /></a></td>
130
131
  <td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/logos/tripoffice-logo.png" width="140" valign="middle" /></a></td>
131
132
  <td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/logos/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
132
- <td align="center" valign="middle"><a href="https://www.itflashcards.com/" target="_blank"><img src="https://nestjs.com/img/logos/it_flashcards-logo.png" width="150" valign="middle" /></a></td>
133
- <td align="center" valign="middle"><a href="https://www.route4me.com/" target="_blank"><img src="https://nestjs.com/img/logos/route4me-logo.svg" width="100" valign="middle" /></a></td>
134
- <td align="center" valign="middle"><a href="https://www.slotsup.com/" target="_blank"><img src="https://nestjs.com/img/logos/slotsup-logo.png" width="60" valign="middle" /></a></td>
133
+ <td align="center" valign="middle"><a href="https://www.route4me.com/" target="_blank"><img src="https://nestjs.com/img/logos/route4me-logo.svg" width="100" valign="middle" /></a></td>
134
+ <td align="center" valign="middle"><a href="https://www.slotsup.com/" target="_blank"><img src="https://nestjs.com/img/logos/slotsup-logo.png" width="60" valign="middle" /></a></td>
135
135
  </tr>
136
136
  </table>
137
137
 
@@ -7,4 +7,4 @@
7
7
  *
8
8
  * @publicApi
9
9
  */
10
- export declare function applyDecorators(...decorators: Array<ClassDecorator | MethodDecorator | PropertyDecorator>): <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
10
+ export declare function applyDecorators(...decorators: Array<ClassDecorator | MethodDecorator | PropertyDecorator>): <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.applyDecorators = void 0;
3
+ exports.applyDecorators = applyDecorators;
4
4
  /**
5
5
  * Function that returns a new decorator that applies all decorators provided by param
6
6
  *
@@ -21,4 +21,3 @@ function applyDecorators(...decorators) {
21
21
  }
22
22
  };
23
23
  }
24
- exports.applyDecorators = applyDecorators;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Bind = void 0;
3
+ exports.Bind = Bind;
4
4
  /**
5
5
  * Decorator that binds *parameter decorators* to the method that follows.
6
6
  *
@@ -17,4 +17,3 @@ function Bind(...decorators) {
17
17
  return descriptor;
18
18
  };
19
19
  }
20
- exports.Bind = Bind;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Catch = void 0;
3
+ exports.Catch = Catch;
4
4
  const constants_1 = require("../../constants");
5
5
  /**
6
6
  * Decorator that marks a class as a Nest exception filter. An exception filter
@@ -25,4 +25,3 @@ function Catch(...exceptions) {
25
25
  Reflect.defineMetadata(constants_1.FILTER_CATCH_EXCEPTIONS, exceptions, target);
26
26
  };
27
27
  }
28
- exports.Catch = Catch;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Controller = void 0;
3
+ exports.Controller = Controller;
4
4
  const constants_1 = require("../../constants");
5
5
  const shared_utils_1 = require("../../utils/shared.utils");
6
6
  /**
@@ -59,4 +59,3 @@ function Controller(prefixOrOptions) {
59
59
  Reflect.defineMetadata(constants_1.VERSION_METADATA, versionOptions, target);
60
60
  };
61
61
  }
62
- exports.Controller = Controller;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Dependencies = exports.flatten = void 0;
3
+ exports.Dependencies = void 0;
4
+ exports.flatten = flatten;
4
5
  const constants_1 = require("../../constants");
5
6
  function flatten(arr) {
6
7
  const flat = [].concat(...arr);
7
8
  return flat.some(Array.isArray) ? flatten(flat) : flat;
8
9
  }
9
- exports.flatten = flatten;
10
10
  /**
11
11
  * Decorator that sets required dependencies (required with a vanilla JavaScript objects)
12
12
  *
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Inject = void 0;
3
+ exports.Inject = Inject;
4
4
  const constants_1 = require("../../constants");
5
5
  const shared_utils_1 = require("../../utils/shared.utils");
6
6
  /**
@@ -51,4 +51,3 @@ function Inject(token) {
51
51
  Reflect.defineMetadata(constants_1.PROPERTY_DEPS_METADATA, properties, target.constructor);
52
52
  };
53
53
  }
54
- exports.Inject = Inject;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mixin = exports.Injectable = void 0;
3
+ exports.Injectable = Injectable;
4
+ exports.mixin = mixin;
4
5
  const uid_1 = require("uid");
5
6
  const constants_1 = require("../../constants");
6
7
  /**
@@ -37,7 +38,6 @@ function Injectable(options) {
37
38
  Reflect.defineMetadata(constants_1.SCOPE_OPTIONS_METADATA, options, target);
38
39
  };
39
40
  }
40
- exports.Injectable = Injectable;
41
41
  /**
42
42
  * @publicApi
43
43
  */
@@ -48,4 +48,3 @@ function mixin(mixinClass) {
48
48
  Injectable()(mixinClass);
49
49
  return mixinClass;
50
50
  }
51
- exports.mixin = mixin;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Optional = void 0;
3
+ exports.Optional = Optional;
4
4
  const constants_1 = require("../../constants");
5
5
  const shared_utils_1 = require("../../utils/shared.utils");
6
6
  /**
@@ -27,4 +27,3 @@ function Optional() {
27
27
  Reflect.defineMetadata(constants_1.OPTIONAL_PROPERTY_DEPS_METADATA, [...properties, key], target.constructor);
28
28
  };
29
29
  }
30
- exports.Optional = Optional;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UseGuards = void 0;
3
+ exports.UseGuards = UseGuards;
4
4
  const constants_1 = require("../../constants");
5
5
  const extend_metadata_util_1 = require("../../utils/extend-metadata.util");
6
6
  const shared_utils_1 = require("../../utils/shared.utils");
@@ -41,4 +41,3 @@ function UseGuards(...guards) {
41
41
  return target;
42
42
  };
43
43
  }
44
- exports.UseGuards = UseGuards;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UseInterceptors = void 0;
3
+ exports.UseInterceptors = UseInterceptors;
4
4
  const constants_1 = require("../../constants");
5
5
  const extend_metadata_util_1 = require("../../utils/extend-metadata.util");
6
6
  const shared_utils_1 = require("../../utils/shared.utils");
@@ -41,4 +41,3 @@ function UseInterceptors(...interceptors) {
41
41
  return target;
42
42
  };
43
43
  }
44
- exports.UseInterceptors = UseInterceptors;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UsePipes = void 0;
3
+ exports.UsePipes = UsePipes;
4
4
  const constants_1 = require("../../constants");
5
5
  const extend_metadata_util_1 = require("../../utils/extend-metadata.util");
6
6
  const shared_utils_1 = require("../../utils/shared.utils");
@@ -39,4 +39,3 @@ function UsePipes(...pipes) {
39
39
  return target;
40
40
  };
41
41
  }
42
- exports.UsePipes = UsePipes;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Version = void 0;
3
+ exports.Version = Version;
4
4
  const constants_1 = require("../../constants");
5
5
  /**
6
6
  * Sets the version of the endpoint to the passed version
@@ -17,4 +17,3 @@ function Version(version) {
17
17
  return descriptor;
18
18
  };
19
19
  }
20
- exports.Version = Version;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createParamDecorator = void 0;
3
+ exports.createParamDecorator = createParamDecorator;
4
4
  const uid_1 = require("uid");
5
5
  const constants_1 = require("../../constants");
6
6
  const assign_custom_metadata_util_1 = require("../../utils/assign-custom-metadata.util");
@@ -29,4 +29,3 @@ function createParamDecorator(factory, enhancers = []) {
29
29
  enhancers.forEach(fn => fn(target, key, index));
30
30
  };
31
31
  }
32
- exports.createParamDecorator = createParamDecorator;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Header = void 0;
3
+ exports.Header = Header;
4
4
  const constants_1 = require("../../constants");
5
5
  const extend_metadata_util_1 = require("../../utils/extend-metadata.util");
6
6
  /**
@@ -23,4 +23,3 @@ function Header(name, value) {
23
23
  return descriptor;
24
24
  };
25
25
  }
26
- exports.Header = Header;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HttpCode = void 0;
3
+ exports.HttpCode = HttpCode;
4
4
  const constants_1 = require("../../constants");
5
5
  /**
6
6
  * Request method Decorator. Defines the HTTP response status code. Overrides
@@ -18,4 +18,3 @@ function HttpCode(statusCode) {
18
18
  return descriptor;
19
19
  };
20
20
  }
21
- exports.HttpCode = HttpCode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Redirect = void 0;
3
+ exports.Redirect = Redirect;
4
4
  const constants_1 = require("../../constants");
5
5
  /**
6
6
  * Redirects request to the specified URL.
@@ -13,4 +13,3 @@ function Redirect(url = '', statusCode) {
13
13
  return descriptor;
14
14
  };
15
15
  }
16
- exports.Redirect = Redirect;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Render = void 0;
3
+ exports.Render = Render;
4
4
  const constants_1 = require("../../constants");
5
5
  /**
6
6
  * Route handler method Decorator. Defines a template to be rendered by the controller.
@@ -19,4 +19,3 @@ function Render(template) {
19
19
  return descriptor;
20
20
  };
21
21
  }
22
- exports.Render = Render;
@@ -1,6 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Res = exports.Req = exports.HostParam = exports.Param = exports.RawBody = exports.Body = exports.Query = exports.Headers = exports.UploadedFiles = exports.UploadedFile = exports.Session = exports.Ip = exports.Next = exports.Response = exports.Request = exports.assignMetadata = void 0;
3
+ exports.Res = exports.Req = exports.Headers = exports.Session = exports.Ip = exports.Next = exports.Response = exports.Request = void 0;
4
+ exports.assignMetadata = assignMetadata;
5
+ exports.UploadedFile = UploadedFile;
6
+ exports.UploadedFiles = UploadedFiles;
7
+ exports.Query = Query;
8
+ exports.Body = Body;
9
+ exports.RawBody = RawBody;
10
+ exports.Param = Param;
11
+ exports.HostParam = HostParam;
4
12
  const constants_1 = require("../../constants");
5
13
  const route_paramtypes_enum_1 = require("../../enums/route-paramtypes.enum");
6
14
  const shared_utils_1 = require("../../utils/shared.utils");
@@ -14,7 +22,6 @@ function assignMetadata(args, paramtype, index, data, ...pipes) {
14
22
  },
15
23
  };
16
24
  }
17
- exports.assignMetadata = assignMetadata;
18
25
  function createRouteParamDecorator(paramtype) {
19
26
  return (data) => (target, key, index) => {
20
27
  const args = Reflect.getMetadata(constants_1.ROUTE_ARGS_METADATA, target.constructor, key) || {};
@@ -103,7 +110,6 @@ exports.Session = createRouteParamDecorator(route_paramtypes_enum_1.RouteParamty
103
110
  function UploadedFile(fileKey, ...pipes) {
104
111
  return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.FILE)(fileKey, ...pipes);
105
112
  }
106
- exports.UploadedFile = UploadedFile;
107
113
  /**
108
114
  * Route handler parameter decorator. Extracts the `files` object
109
115
  * and populates the decorated parameter with the value of `files`.
@@ -123,7 +129,6 @@ exports.UploadedFile = UploadedFile;
123
129
  function UploadedFiles(...pipes) {
124
130
  return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.FILES)(undefined, ...pipes);
125
131
  }
126
- exports.UploadedFiles = UploadedFiles;
127
132
  /**
128
133
  * Route handler parameter decorator. Extracts the `headers`
129
134
  * property from the `req` object and populates the decorated
@@ -159,7 +164,6 @@ exports.Headers = createRouteParamDecorator(route_paramtypes_enum_1.RouteParamty
159
164
  function Query(property, ...pipes) {
160
165
  return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.QUERY)(property, ...pipes);
161
166
  }
162
- exports.Query = Query;
163
167
  /**
164
168
  * Route handler parameter decorator. Extracts the entire `body` object
165
169
  * property, or optionally a named property of the `body` object, from
@@ -183,7 +187,6 @@ exports.Query = Query;
183
187
  function Body(property, ...pipes) {
184
188
  return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.BODY)(property, ...pipes);
185
189
  }
186
- exports.Body = Body;
187
190
  /**
188
191
  * Route handler parameter decorator. Extracts the `rawBody` Buffer
189
192
  * property from the `req` object and populates the decorated parameter with that value.
@@ -206,7 +209,6 @@ exports.Body = Body;
206
209
  function RawBody(...pipes) {
207
210
  return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.RAW_BODY)(undefined, ...pipes);
208
211
  }
209
- exports.RawBody = RawBody;
210
212
  /**
211
213
  * Route handler parameter decorator. Extracts the `params`
212
214
  * property from the `req` object and populates the decorated
@@ -234,7 +236,6 @@ exports.RawBody = RawBody;
234
236
  function Param(property, ...pipes) {
235
237
  return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.PARAM)(property, ...pipes);
236
238
  }
237
- exports.Param = Param;
238
239
  /**
239
240
  * Route handler parameter decorator. Extracts the `hosts`
240
241
  * property from the `req` object and populates the decorated
@@ -259,6 +260,5 @@ exports.Param = Param;
259
260
  function HostParam(property) {
260
261
  return createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.HOST)(property);
261
262
  }
262
- exports.HostParam = HostParam;
263
263
  exports.Req = exports.Request;
264
264
  exports.Res = exports.Response;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Sse = void 0;
3
+ exports.Sse = Sse;
4
4
  const constants_1 = require("../../constants");
5
5
  const request_method_enum_1 = require("../../enums/request-method.enum");
6
6
  /**
@@ -17,4 +17,3 @@ function Sse(path) {
17
17
  return descriptor;
18
18
  };
19
19
  }
20
- exports.Sse = Sse;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Global = void 0;
3
+ exports.Global = Global;
4
4
  const constants_1 = require("../../constants");
5
5
  /**
6
6
  * Decorator that makes a module global-scoped.
@@ -18,4 +18,3 @@ function Global() {
18
18
  Reflect.defineMetadata(constants_1.GLOBAL_MODULE_METADATA, true, target);
19
19
  };
20
20
  }
21
- exports.Global = Global;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Module = void 0;
3
+ exports.Module = Module;
4
4
  const validate_module_keys_util_1 = require("../../utils/validate-module-keys.util");
5
5
  /**
6
6
  * Decorator that marks a class as a [module](https://docs.nestjs.com/modules).
@@ -27,4 +27,3 @@ function Module(metadata) {
27
27
  }
28
28
  };
29
29
  }
30
- exports.Module = Module;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { Readable } from 'stream';
3
2
  import { StreamableFileOptions, StreamableHandlerResponse } from './interfaces';
4
3
  import { Logger } from '../services';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /**
3
2
  * @publicApi
4
3
  */
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateOptionsInjectionToken = void 0;
3
+ exports.generateOptionsInjectionToken = generateOptionsInjectionToken;
4
4
  const random_string_generator_util_1 = require("../../utils/random-string-generator.util");
5
5
  function generateOptionsInjectionToken() {
6
6
  const hash = (0, random_string_generator_util_1.randomStringGenerator)();
7
7
  return `CONFIGURABLE_MODULE_OPTIONS[${hash}]`;
8
8
  }
9
- exports.generateOptionsInjectionToken = generateOptionsInjectionToken;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getInjectionProviders = void 0;
3
+ exports.getInjectionProviders = getInjectionProviders;
4
4
  /**
5
5
  * check if x is OptionalFactoryDependency, based on prototype presence
6
6
  * (to avoid classes with a static 'token' field)
@@ -32,4 +32,3 @@ function getInjectionProviders(providers, tokens) {
32
32
  }
33
33
  return result;
34
34
  }
35
- exports.getInjectionProviders = getInjectionProviders;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/common",
3
- "version": "10.4.1",
3
+ "version": "10.4.3",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@common)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "homepage": "https://nestjs.com",
@@ -19,7 +19,7 @@
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
21
  "iterare": "1.2.1",
22
- "tslib": "2.6.3",
22
+ "tslib": "2.7.0",
23
23
  "uid": "2.0.2"
24
24
  },
25
25
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isLogLevelEnabled = void 0;
3
+ exports.isLogLevelEnabled = isLogLevelEnabled;
4
4
  const LOG_LEVEL_VALUES = {
5
5
  verbose: 0,
6
6
  debug: 1,
@@ -27,4 +27,3 @@ function isLogLevelEnabled(targetLevel, logLevels) {
27
27
  const targetLevelValue = LOG_LEVEL_VALUES[targetLevel];
28
28
  return targetLevelValue >= highestLogLevelValue;
29
29
  }
30
- exports.isLogLevelEnabled = isLogLevelEnabled;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assignCustomParameterMetadata = void 0;
3
+ exports.assignCustomParameterMetadata = assignCustomParameterMetadata;
4
4
  const constants_1 = require("../constants");
5
5
  function assignCustomParameterMetadata(args, paramtype, index, factory, data, ...pipes) {
6
6
  return {
@@ -13,4 +13,3 @@ function assignCustomParameterMetadata(args, paramtype, index, factory, data, ..
13
13
  },
14
14
  };
15
15
  }
16
- exports.assignCustomParameterMetadata = assignCustomParameterMetadata;
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.extendArrayMetadata = void 0;
3
+ exports.extendArrayMetadata = extendArrayMetadata;
4
4
  function extendArrayMetadata(key, metadata, target) {
5
5
  const previousValue = Reflect.getMetadata(key, target) || [];
6
6
  const value = [...previousValue, ...metadata];
7
7
  Reflect.defineMetadata(key, value, target);
8
8
  }
9
- exports.extendArrayMetadata = extendArrayMetadata;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.loadPackage = void 0;
3
+ exports.loadPackage = loadPackage;
4
4
  const logger_service_1 = require("../services/logger.service");
5
5
  const MISSING_REQUIRED_DEPENDENCY = (name, reason) => `The "${name}" package is missing. Please, make sure to install it to take advantage of ${reason}.`;
6
6
  const logger = new logger_service_1.Logger('PackageLoader');
@@ -14,4 +14,3 @@ function loadPackage(packageName, context, loaderFn) {
14
14
  process.exit(1);
15
15
  }
16
16
  }
17
- exports.loadPackage = loadPackage;
@@ -8,6 +8,6 @@ export declare const isFunction: (val: any) => val is Function;
8
8
  export declare const isString: (val: any) => val is string;
9
9
  export declare const isNumber: (val: any) => val is number;
10
10
  export declare const isConstructor: (val: any) => boolean;
11
- export declare const isNil: (val: any) => val is null;
11
+ export declare const isNil: (val: any) => val is null | undefined;
12
12
  export declare const isEmpty: (array: any) => boolean;
13
13
  export declare const isSymbol: (val: any) => val is symbol;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateEach = exports.InvalidDecoratorItemException = void 0;
3
+ exports.InvalidDecoratorItemException = void 0;
4
+ exports.validateEach = validateEach;
4
5
  class InvalidDecoratorItemException extends Error {
5
6
  constructor(decorator, item, context) {
6
7
  const message = `Invalid ${item} passed to ${decorator}() decorator (${context}).`;
@@ -22,4 +23,3 @@ function validateEach(context, arr, predicate, decorator, item) {
22
23
  }
23
24
  return true;
24
25
  }
25
- exports.validateEach = validateEach;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateModuleKeys = exports.INVALID_MODULE_CONFIG_MESSAGE = void 0;
3
+ exports.INVALID_MODULE_CONFIG_MESSAGE = void 0;
4
+ exports.validateModuleKeys = validateModuleKeys;
4
5
  const constants_1 = require("../constants");
5
6
  const INVALID_MODULE_CONFIG_MESSAGE = (text, property) => `Invalid property '${property}' passed into the @Module() decorator.`;
6
7
  exports.INVALID_MODULE_CONFIG_MESSAGE = INVALID_MODULE_CONFIG_MESSAGE;
@@ -19,4 +20,3 @@ function validateModuleKeys(keys) {
19
20
  };
20
21
  keys.forEach(validateKey);
21
22
  }
22
- exports.validateModuleKeys = validateModuleKeys;