@iamnnort/nestjs-serializer 2.0.0 → 2.0.1

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.d.mts CHANGED
@@ -48,6 +48,7 @@ declare class SerializerService {
48
48
  declare const SerializerInterceptor: (config: {
49
49
  scopes?: string[];
50
50
  extendedScopes?: string[];
51
+ limitedScopes?: string[];
51
52
  fields?: string[];
52
53
  }) => {
53
54
  new (serializerService: SerializerService): {
package/dist/index.d.ts CHANGED
@@ -48,6 +48,7 @@ declare class SerializerService {
48
48
  declare const SerializerInterceptor: (config: {
49
49
  scopes?: string[];
50
50
  extendedScopes?: string[];
51
+ limitedScopes?: string[];
51
52
  fields?: string[];
52
53
  }) => {
53
54
  new (serializerService: SerializerService): {
package/dist/index.js CHANGED
@@ -9214,6 +9214,9 @@ var SerializerInterceptor = /* @__PURE__ */ __name((config) => {
9214
9214
  if (request.query.extended) {
9215
9215
  return config.extendedScopes || config.scopes;
9216
9216
  }
9217
+ if (request.query.limited) {
9218
+ return config.limitedScopes || config.scopes;
9219
+ }
9217
9220
  return config.scopes;
9218
9221
  }
9219
9222
  };