@envelop/response-cache 9.3.3 → 9.3.4
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/cjs/plugin.js +1 -1
- package/esm/plugin.js +1 -1
- package/package.json +1 -1
package/cjs/plugin.js
CHANGED
|
@@ -458,7 +458,7 @@ function removeMetadataFieldsFromResult(data, onEntity) {
|
|
|
458
458
|
if (Array.isArray(value)) {
|
|
459
459
|
data[key] = removeMetadataFieldsFromResult(value, onEntity);
|
|
460
460
|
}
|
|
461
|
-
if (value !== null && typeof value === 'object') {
|
|
461
|
+
else if (value !== null && typeof value === 'object') {
|
|
462
462
|
data[key] = removeMetadataFieldsFromResult(value, onEntity);
|
|
463
463
|
}
|
|
464
464
|
}
|
package/esm/plugin.js
CHANGED
|
@@ -449,7 +449,7 @@ function removeMetadataFieldsFromResult(data, onEntity) {
|
|
|
449
449
|
if (Array.isArray(value)) {
|
|
450
450
|
data[key] = removeMetadataFieldsFromResult(value, onEntity);
|
|
451
451
|
}
|
|
452
|
-
if (value !== null && typeof value === 'object') {
|
|
452
|
+
else if (value !== null && typeof value === 'object') {
|
|
453
453
|
data[key] = removeMetadataFieldsFromResult(value, onEntity);
|
|
454
454
|
}
|
|
455
455
|
}
|