@prismatic-io/spectral 10.0.1 → 10.0.2

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.
@@ -90,7 +90,11 @@ const computeRetryDelay = (retryDelay, useExponentialBackoff) => {
90
90
  };
91
91
  const toAxiosRetryConfig = (_a) => {
92
92
  var { retryDelay, retryAllErrors, retryCondition, useExponentialBackoff } = _a, rest = __rest(_a, ["retryDelay", "retryAllErrors", "retryCondition", "useExponentialBackoff"]);
93
- return (Object.assign(Object.assign({}, rest), { retryDelay: computeRetryDelay(retryDelay, useExponentialBackoff), retryCondition: retryAllErrors ? () => true : retryCondition }));
93
+ return (Object.assign(Object.assign({}, rest), { retryDelay: computeRetryDelay(retryDelay, useExponentialBackoff), retryCondition: retryAllErrors
94
+ ? () => true
95
+ : typeof retryCondition === "function"
96
+ ? retryCondition
97
+ : axios_retry_1.isNetworkOrIdempotentRequestError }));
94
98
  };
95
99
  const createClient = ({ baseUrl, responseType, headers, timeout, params, debug = false, retryConfig, }) => {
96
100
  const client = axios_1.default.create({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "Utility library for building Prismatic components and code-native integrations",
5
5
  "keywords": ["prismatic"],
6
6
  "main": "dist/index.js",