@nestjs/core 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.
- package/Readme.md +3 -3
- package/discovery/discoverable-meta-host-collection.js +1 -1
- package/helpers/context-id-factory.js +2 -2
- package/helpers/get-class-scope.js +1 -2
- package/helpers/handler-metadata-storage.d.ts +0 -1
- package/helpers/is-durable.js +1 -2
- package/helpers/load-adapter.js +1 -2
- package/helpers/optional-require.js +1 -2
- package/hooks/before-app-shutdown.hook.js +1 -2
- package/hooks/on-app-bootstrap.hook.js +1 -2
- package/hooks/on-app-shutdown.hook.js +1 -2
- package/hooks/on-module-destroy.hook.js +1 -2
- package/hooks/on-module-init.hook.js +1 -2
- package/injector/container.js +1 -1
- package/injector/helpers/provider-classifier.js +3 -4
- package/injector/helpers/transient-instances.js +2 -3
- package/inspector/serialized-graph.d.ts +2 -2
- package/inspector/serialized-graph.js +1 -1
- package/middleware/utils.js +4 -4
- package/package.json +4 -4
- package/repl/assign-to-object.util.js +1 -2
- package/repl/repl-native-commands.d.ts +0 -1
- package/repl/repl-native-commands.js +1 -2
- package/repl/repl.d.ts +0 -1
- package/repl/repl.js +1 -2
- package/router/router-response-controller.d.ts +0 -1
- package/router/sse-stream.d.ts +0 -3
- package/router/utils/exclude-route.util.js +2 -2
- package/router/utils/flatten-route-paths.util.js +1 -2
- package/scanner.js +1 -1
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.
|
|
133
|
-
|
|
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
|
|
|
@@ -77,7 +77,7 @@ class DiscoverableMetaHostCollection {
|
|
|
77
77
|
// But since calling `wrapper.instance` could degrade overall performance
|
|
78
78
|
// we must defer it as much we can.
|
|
79
79
|
instanceWrapper.metatype || instanceWrapper.inject
|
|
80
|
-
? instanceWrapper.instance?.constructor ?? instanceWrapper.metatype
|
|
80
|
+
? (instanceWrapper.instance?.constructor ?? instanceWrapper.metatype)
|
|
81
81
|
: instanceWrapper.metatype);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContextIdFactory =
|
|
3
|
+
exports.ContextIdFactory = void 0;
|
|
4
|
+
exports.createContextId = createContextId;
|
|
4
5
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
5
6
|
const request_constants_1 = require("../router/request/request-constants");
|
|
6
7
|
function createContextId() {
|
|
@@ -14,7 +15,6 @@ function createContextId() {
|
|
|
14
15
|
*/
|
|
15
16
|
return { id: Math.random() };
|
|
16
17
|
}
|
|
17
|
-
exports.createContextId = createContextId;
|
|
18
18
|
class ContextIdFactory {
|
|
19
19
|
/**
|
|
20
20
|
* Generates a context identifier based on the request object.
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getClassScope =
|
|
3
|
+
exports.getClassScope = getClassScope;
|
|
4
4
|
const constants_1 = require("@nestjs/common/constants");
|
|
5
5
|
function getClassScope(provider) {
|
|
6
6
|
const metadata = Reflect.getMetadata(constants_1.SCOPE_OPTIONS_METADATA, provider);
|
|
7
7
|
return metadata && metadata.scope;
|
|
8
8
|
}
|
|
9
|
-
exports.getClassScope = getClassScope;
|
package/helpers/is-durable.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isDurable =
|
|
3
|
+
exports.isDurable = isDurable;
|
|
4
4
|
const constants_1 = require("@nestjs/common/constants");
|
|
5
5
|
function isDurable(provider) {
|
|
6
6
|
const metadata = Reflect.getMetadata(constants_1.SCOPE_OPTIONS_METADATA, provider);
|
|
7
7
|
return metadata && metadata.durable;
|
|
8
8
|
}
|
|
9
|
-
exports.isDurable = isDurable;
|
package/helpers/load-adapter.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loadAdapter =
|
|
3
|
+
exports.loadAdapter = loadAdapter;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
5
|
const MISSING_REQUIRED_DEPENDENCY = (defaultPlatform, transport) => `No driver (${transport}) has been selected. In order to take advantage of the default driver, please, ensure to install the "${defaultPlatform}" package ($ npm install ${defaultPlatform}).`;
|
|
6
6
|
const logger = new common_1.Logger('PackageLoader');
|
|
@@ -13,4 +13,3 @@ function loadAdapter(defaultPlatform, transport, loaderFn) {
|
|
|
13
13
|
process.exit(1);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
exports.loadAdapter = loadAdapter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.optionalRequire =
|
|
3
|
+
exports.optionalRequire = optionalRequire;
|
|
4
4
|
function optionalRequire(packageName, loaderFn) {
|
|
5
5
|
try {
|
|
6
6
|
return loaderFn ? loaderFn() : require(packageName);
|
|
@@ -9,4 +9,3 @@ function optionalRequire(packageName, loaderFn) {
|
|
|
9
9
|
return {};
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
exports.optionalRequire = optionalRequire;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.callBeforeAppShutdownHook =
|
|
3
|
+
exports.callBeforeAppShutdownHook = callBeforeAppShutdownHook;
|
|
4
4
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
5
5
|
const iterare_1 = require("iterare");
|
|
6
6
|
const transient_instances_1 = require("../injector/helpers/transient-instances");
|
|
@@ -49,4 +49,3 @@ async function callBeforeAppShutdownHook(module, signal) {
|
|
|
49
49
|
await moduleClassInstance.beforeApplicationShutdown(signal);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
exports.callBeforeAppShutdownHook = callBeforeAppShutdownHook;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.callModuleBootstrapHook =
|
|
3
|
+
exports.callModuleBootstrapHook = callModuleBootstrapHook;
|
|
4
4
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
5
5
|
const iterare_1 = require("iterare");
|
|
6
6
|
const transient_instances_1 = require("../injector/helpers/transient-instances");
|
|
@@ -51,4 +51,3 @@ async function callModuleBootstrapHook(module) {
|
|
|
51
51
|
await moduleClassInstance.onApplicationBootstrap();
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
exports.callModuleBootstrapHook = callModuleBootstrapHook;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.callAppShutdownHook =
|
|
3
|
+
exports.callAppShutdownHook = callAppShutdownHook;
|
|
4
4
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
5
5
|
const iterare_1 = require("iterare");
|
|
6
6
|
const transient_instances_1 = require("../injector/helpers/transient-instances");
|
|
@@ -52,4 +52,3 @@ async function callAppShutdownHook(module, signal) {
|
|
|
52
52
|
await moduleClassInstance.onApplicationShutdown(signal);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
exports.callAppShutdownHook = callAppShutdownHook;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.callModuleDestroyHook =
|
|
3
|
+
exports.callModuleDestroyHook = callModuleDestroyHook;
|
|
4
4
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
5
5
|
const iterare_1 = require("iterare");
|
|
6
6
|
const transient_instances_1 = require("../injector/helpers/transient-instances");
|
|
@@ -51,4 +51,3 @@ async function callModuleDestroyHook(module) {
|
|
|
51
51
|
await moduleClassInstance.onModuleDestroy();
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
exports.callModuleDestroyHook = callModuleDestroyHook;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.callModuleInitHook =
|
|
3
|
+
exports.callModuleInitHook = callModuleInitHook;
|
|
4
4
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
5
5
|
const iterare_1 = require("iterare");
|
|
6
6
|
const transient_instances_1 = require("../injector/helpers/transient-instances");
|
|
@@ -51,4 +51,3 @@ async function callModuleInitHook(module) {
|
|
|
51
51
|
await moduleClassInstance.onModuleInit();
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
exports.callModuleInitHook = callModuleInitHook;
|
package/injector/container.js
CHANGED
|
@@ -196,7 +196,7 @@ class NestContainer {
|
|
|
196
196
|
}
|
|
197
197
|
getDynamicMetadataByToken(token, metadataKey) {
|
|
198
198
|
const metadata = this.dynamicModulesMetadata.get(token);
|
|
199
|
-
return metadataKey ? metadata?.[metadataKey] ?? [] : metadata;
|
|
199
|
+
return metadataKey ? (metadata?.[metadataKey] ?? []) : metadata;
|
|
200
200
|
}
|
|
201
201
|
registerCoreModuleRef(moduleRef) {
|
|
202
202
|
this.internalCoreModule = moduleRef;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isClassProvider = isClassProvider;
|
|
4
|
+
exports.isValueProvider = isValueProvider;
|
|
5
|
+
exports.isFactoryProvider = isFactoryProvider;
|
|
4
6
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
5
7
|
function isClassProvider(provider) {
|
|
6
8
|
return Boolean(provider?.useClass);
|
|
7
9
|
}
|
|
8
|
-
exports.isClassProvider = isClassProvider;
|
|
9
10
|
function isValueProvider(provider) {
|
|
10
11
|
const providerValue = provider?.useValue;
|
|
11
12
|
return !(0, shared_utils_1.isUndefined)(providerValue);
|
|
12
13
|
}
|
|
13
|
-
exports.isValueProvider = isValueProvider;
|
|
14
14
|
function isFactoryProvider(provider) {
|
|
15
15
|
return Boolean(provider.useFactory);
|
|
16
16
|
}
|
|
17
|
-
exports.isFactoryProvider = isFactoryProvider;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getTransientInstances = getTransientInstances;
|
|
4
|
+
exports.getNonTransientInstances = getNonTransientInstances;
|
|
4
5
|
const iterare_1 = require("iterare");
|
|
5
6
|
/**
|
|
6
7
|
* Returns the instances which are transient
|
|
@@ -15,7 +16,6 @@ function getTransientInstances(instances) {
|
|
|
15
16
|
.map(({ instance }) => instance)
|
|
16
17
|
.toArray();
|
|
17
18
|
}
|
|
18
|
-
exports.getTransientInstances = getTransientInstances;
|
|
19
19
|
/**
|
|
20
20
|
* Returns the instances which are not transient
|
|
21
21
|
* @param instances The instances which should be checked whether they are transient
|
|
@@ -26,4 +26,3 @@ function getNonTransientInstances(instances) {
|
|
|
26
26
|
.map(([key, { instance }]) => instance)
|
|
27
27
|
.toArray();
|
|
28
28
|
}
|
|
29
|
-
exports.getNonTransientInstances = getNonTransientInstances;
|
|
@@ -20,6 +20,8 @@ export declare class SerializedGraph {
|
|
|
20
20
|
insertNode(nodeDefinition: Node): Node;
|
|
21
21
|
insertEdge(edgeDefinition: WithOptionalId<Edge>): {
|
|
22
22
|
id: string;
|
|
23
|
+
source: string;
|
|
24
|
+
target: string;
|
|
23
25
|
metadata: ({
|
|
24
26
|
type: "module-to-module";
|
|
25
27
|
} & {
|
|
@@ -38,8 +40,6 @@ export declare class SerializedGraph {
|
|
|
38
40
|
sourceModuleName: string;
|
|
39
41
|
targetModuleName: string;
|
|
40
42
|
});
|
|
41
|
-
source: string;
|
|
42
|
-
target: string;
|
|
43
43
|
};
|
|
44
44
|
insertEntrypoint<T>(definition: Entrypoint<T>, parentId: string): void;
|
|
45
45
|
insertOrphanedEnhancer(entry: OrphanedEnhancerDefinition): void;
|
|
@@ -99,7 +99,7 @@ class SerializedGraph {
|
|
|
99
99
|
if (typeof value === 'symbol') {
|
|
100
100
|
return value.toString();
|
|
101
101
|
}
|
|
102
|
-
return typeof value === 'function' ? value.name ?? 'Function' : value;
|
|
102
|
+
return typeof value === 'function' ? (value.name ?? 'Function') : value;
|
|
103
103
|
};
|
|
104
104
|
return JSON.stringify(this.toJSON(), replacer, 2);
|
|
105
105
|
}
|
package/middleware/utils.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.mapToClass = exports.filterMiddleware = exports.mapToExcludeRoute = void 0;
|
|
4
|
+
exports.isMiddlewareClass = isMiddlewareClass;
|
|
5
|
+
exports.assignToken = assignToken;
|
|
6
|
+
exports.isMiddlewareRouteExcluded = isMiddlewareRouteExcluded;
|
|
4
7
|
const common_1 = require("@nestjs/common");
|
|
5
8
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
6
9
|
const iterare_1 = require("iterare");
|
|
@@ -74,12 +77,10 @@ function isMiddlewareClass(middleware) {
|
|
|
74
77
|
/[A-Z]/.test(middlewareArr[1]?.[0]) &&
|
|
75
78
|
(0, shared_utils_1.isFunction)(middleware.prototype?.use));
|
|
76
79
|
}
|
|
77
|
-
exports.isMiddlewareClass = isMiddlewareClass;
|
|
78
80
|
function assignToken(metatype, token = (0, uid_1.uid)(21)) {
|
|
79
81
|
Object.defineProperty(metatype, 'name', { value: token });
|
|
80
82
|
return metatype;
|
|
81
83
|
}
|
|
82
|
-
exports.assignToken = assignToken;
|
|
83
84
|
function isMiddlewareRouteExcluded(req, excludedRoutes, httpAdapter) {
|
|
84
85
|
if (excludedRoutes.length <= 0) {
|
|
85
86
|
return false;
|
|
@@ -92,4 +93,3 @@ function isMiddlewareRouteExcluded(req, excludedRoutes, httpAdapter) {
|
|
|
92
93
|
: originalUrl;
|
|
93
94
|
return (0, utils_1.isRouteExcluded)(excludedRoutes, pathname, common_1.RequestMethod[reqMethod]);
|
|
94
95
|
}
|
|
95
|
-
exports.isMiddlewareRouteExcluded = isMiddlewareRouteExcluded;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/core",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.3",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"@nuxtjs/opencollective": "0.3.2",
|
|
32
32
|
"fast-safe-stringify": "2.1.1",
|
|
33
33
|
"iterare": "1.2.1",
|
|
34
|
-
"path-to-regexp": "3.
|
|
35
|
-
"tslib": "2.
|
|
34
|
+
"path-to-regexp": "3.3.0",
|
|
35
|
+
"tslib": "2.7.0",
|
|
36
36
|
"uid": "2.0.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@nestjs/common": "10.4.
|
|
39
|
+
"@nestjs/common": "10.4.3"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@nestjs/common": "^10.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assignToObject =
|
|
3
|
+
exports.assignToObject = assignToObject;
|
|
4
4
|
/**
|
|
5
5
|
* Similar to `Object.assign` but copying properties descriptors from `source`
|
|
6
6
|
* as well.
|
|
@@ -12,4 +12,3 @@ function assignToObject(target, source) {
|
|
|
12
12
|
}, Object.create(null)));
|
|
13
13
|
return target;
|
|
14
14
|
}
|
|
15
|
-
exports.assignToObject = assignToObject;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defineDefaultCommandsOnRepl =
|
|
3
|
+
exports.defineDefaultCommandsOnRepl = defineDefaultCommandsOnRepl;
|
|
4
4
|
/**
|
|
5
5
|
* Displays a list of available commands in the REPL alongside with their
|
|
6
6
|
* descriptions.
|
|
@@ -44,4 +44,3 @@ function defineDefaultCommandsOnRepl(replServer) {
|
|
|
44
44
|
},
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
exports.defineDefaultCommandsOnRepl = defineDefaultCommandsOnRepl;
|
package/repl/repl.d.ts
CHANGED
package/repl/repl.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.repl =
|
|
3
|
+
exports.repl = repl;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
5
|
const cli_colors_util_1 = require("@nestjs/common/utils/cli-colors.util");
|
|
6
6
|
const nest_factory_1 = require("../nest-factory");
|
|
@@ -27,4 +27,3 @@ async function repl(module, replOptions = {}) {
|
|
|
27
27
|
(0, repl_native_commands_1.defineDefaultCommandsOnRepl)(replServer);
|
|
28
28
|
return replServer;
|
|
29
29
|
}
|
|
30
|
-
exports.repl = repl;
|
package/router/sse-stream.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isRequestMethodAll = void 0;
|
|
4
|
+
exports.isRouteExcluded = isRouteExcluded;
|
|
4
5
|
const common_1 = require("@nestjs/common");
|
|
5
6
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
6
7
|
const isRequestMethodAll = (method) => {
|
|
@@ -16,4 +17,3 @@ function isRouteExcluded(excludedRoutes, path, requestMethod) {
|
|
|
16
17
|
return false;
|
|
17
18
|
});
|
|
18
19
|
}
|
|
19
|
-
exports.isRouteExcluded = isRouteExcluded;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.flattenRoutePaths =
|
|
3
|
+
exports.flattenRoutePaths = flattenRoutePaths;
|
|
4
4
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
5
5
|
function flattenRoutePaths(routes) {
|
|
6
6
|
const result = [];
|
|
@@ -23,4 +23,3 @@ function flattenRoutePaths(routes) {
|
|
|
23
23
|
});
|
|
24
24
|
return result;
|
|
25
25
|
}
|
|
26
|
-
exports.flattenRoutePaths = flattenRoutePaths;
|
package/scanner.js
CHANGED
|
@@ -288,7 +288,7 @@ class DependenciesScanner {
|
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
insertExportedProvider(
|
|
291
|
-
// TODO: improve the type definition
|
|
291
|
+
// TODO: improve the type definition below because it doesn't reflects the real usage of this method
|
|
292
292
|
exportedProvider, token) {
|
|
293
293
|
const fulfilledProvider = this.isForwardReference(exportedProvider)
|
|
294
294
|
? exportedProvider.forwardRef()
|