@iamnnort/nestjs-serializer 2.2.1 → 2.2.2
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/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9221,7 +9221,9 @@ var SerializerInterceptor = /* @__PURE__ */ __name((config) => {
|
|
|
9221
9221
|
this.serializerService = serializerService;
|
|
9222
9222
|
}
|
|
9223
9223
|
intercept(ctx, next) {
|
|
9224
|
+
const request = ctx.switchToHttp().getRequest();
|
|
9224
9225
|
const scopes = this.getScopes(ctx);
|
|
9226
|
+
request.query.scopes = scopes;
|
|
9225
9227
|
return next.handle().pipe((0, import_operators.map)(async (responsePromise) => {
|
|
9226
9228
|
const response = await responsePromise;
|
|
9227
9229
|
if (!scopes && !config.fields) {
|