@iamnnort/nestjs-serializer 2.2.5 → 2.2.6

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 CHANGED
@@ -9242,12 +9242,12 @@ var SerializerInterceptor = /* @__PURE__ */ __name((config) => {
9242
9242
  }
9243
9243
  getScopes(ctx) {
9244
9244
  const request = ctx.switchToHttp().getRequest();
9245
- if (request.query.extended === "true") {
9246
- return config.extendedScopes || config.scopes;
9247
- }
9248
9245
  if (request.query.limited === "true") {
9249
9246
  return config.limitedScopes || this.serializerService.config.globalLimitedScopes || config.scopes;
9250
9247
  }
9248
+ if (request.query.extended === "true") {
9249
+ return config.extendedScopes || config.scopes;
9250
+ }
9251
9251
  if (request.query.secret === "true") {
9252
9252
  return config.secretScopes || this.serializerService.config.globalSecretScopes || config.scopes;
9253
9253
  }