-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
210 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[tools] | ||
node = "20" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/node_modules/@nestjs/core/helpers/external-context-creator.js b/node_modules/@nestjs/core/helpers/external-context-creator.js | ||
index e820c25..4c1b24f 100644 | ||
--- a/node_modules/@nestjs/core/helpers/external-context-creator.js | ||
+++ b/node_modules/@nestjs/core/helpers/external-context-creator.js | ||
@@ -133,16 +133,17 @@ class ExternalContextCreator { | ||
const resolveParamValue = async (param) => { | ||
const { index, extractValue, type, data, metatype, pipes: paramPipes, } = param; | ||
const value = extractValue(...params); | ||
- args[index] = await this.getParamValue(value, { metatype, type, data }, pipes.concat(paramPipes)); | ||
+ args[index] = (await this.getParamValue(value, { metatype, type, data }, pipes.concat(paramPipes))).value; | ||
}; | ||
await Promise.all(paramsOptions.map(resolveParamValue)); | ||
}; | ||
return paramsOptions.length ? pipesFn : null; | ||
} | ||
async getParamValue(value, { metatype, type, data }, pipes) { | ||
- return (0, shared_utils_1.isEmpty)(pipes) | ||
- ? value | ||
- : this.pipesConsumer.apply(value, { metatype, type, data }, pipes); | ||
+ return { | ||
+ value: (0, shared_utils_1.isEmpty)(pipes) ? value : | ||
+ this.pipesConsumer.apply(value, { metatype, type, data }, pipes) | ||
+ }; | ||
} | ||
async transformToResult(resultOrDeferred) { | ||
if ((0, rxjs_1.isObservable)(resultOrDeferred)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.