@pitcher/js-api 1.26.0-beta.10 → 1.26.0-beta.11

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/js-api.esm.js CHANGED
@@ -3453,7 +3453,7 @@ class LowLevelApi extends EventEmitter {
3453
3453
  throw new Error("unsupported response status");
3454
3454
  }
3455
3455
  };
3456
- const shouldSkipSnakeCase = type === "crm_create" || type === "crm_upsert" || type === "crm_smart_query" || type === "crm_smart_object_metadata" || type === "crm_smart_object_validation_rules" || type === "crm_smart_upsert_objects" || type === "crm_smart_delete_objects" || RAW_PAYLOAD_METHODS.includes(type);
3456
+ const shouldSkipSnakeCase = RAW_PAYLOAD_METHODS.includes(type);
3457
3457
  const payload = shouldSkipSnakeCase ? cloneDeep(body) : cloneDeep(snakeCaseKeys(body));
3458
3458
  this.callbacks[id] = {
3459
3459
  dispatched_at: Date.now(),