@iamnnort/nestjs-serializer 1.1.7 → 1.1.8
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 +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9062,6 +9062,9 @@ var SerializerService = class {
|
|
|
9062
9062
|
this.globalEntityNames = config.globalEntityNames || [];
|
|
9063
9063
|
}
|
|
9064
9064
|
async transform(response, config) {
|
|
9065
|
+
if (!response) {
|
|
9066
|
+
return response;
|
|
9067
|
+
}
|
|
9065
9068
|
if (!config.scopes && !config.fields) {
|
|
9066
9069
|
return response;
|
|
9067
9070
|
}
|