@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 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envelop/response-cache",
3
- "version": "9.3.3",
3
+ "version": "9.3.4",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",