cocoda-sdk 3.6.4 → 3.6.5

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.
@@ -439,9 +439,8 @@ var BaseProvider = class {
439
439
  return data3;
440
440
  }, (error) => {
441
441
  const count = error.config?._retryCount ?? 0;
442
- const method = error.config.method;
443
442
  const statusCode = error.response?.status;
444
- if (this._retryConfig.methods.includes(method) && this._retryConfig.statusCodes.includes(statusCode) && count < this._retryConfig.count) {
443
+ if (this._retryConfig.methods.includes(error.config?.method) && this._retryConfig.statusCodes.includes(statusCode) && count < this._retryConfig.count) {
445
444
  error.config._retryCount = count + 1;
446
445
  if (error.config.data) {
447
446
  error.config.data = JSON.parse(error.config.data);