@mablhq/mabl-cli 1.23.5 → 1.25.1

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/README.md CHANGED
@@ -345,10 +345,10 @@ mabl config delete http.sslVerify
345
345
 
346
346
  ## Installation Troubleshooting
347
347
 
348
- If you receive the following error message, you need to ensure you have Node 12+
348
+ If you receive the following error message, you need to ensure you have Node 14+
349
349
  installed.
350
350
 
351
351
  ```bash
352
- npm WARN notsup Unsupported engine for @mablhq/mabl-cli@0.1.13: wanted: {"node":">= 12.0.0"} (current: {"node":"8.15.1","npm":"6.13.4"})
352
+ npm WARN notsup Unsupported engine for @mablhq/mabl-cli@0.1.13: wanted: {"node":">= 14.0.0"} (current: {"node":"8.15.1","npm":"6.13.4"})
353
353
  npm WARN notsup Not compatible with your version of node/npm: @mablhq/mabl-cli@0.1.13
354
354
  ```
@@ -59,6 +59,9 @@ class BasicApiClient {
59
59
  sslVerify: (_a = options.sslVerify) !== null && _a !== void 0 ? _a : DEFAULT_SSL_VERIFY,
60
60
  proxyHost: options.proxyUrl,
61
61
  });
62
+ if (!config.headers) {
63
+ config.headers = {};
64
+ }
62
65
  config.timeout =
63
66
  (_d = (_b = options.requestTimeoutMillis) !== null && _b !== void 0 ? _b : (_c = options.retryConfig) === null || _c === void 0 ? void 0 : _c.requestTimeoutMillis) !== null && _d !== void 0 ? _d : DEFAULT_RETRYABLE_REQUEST_TIMEOUT_MILLISECONDS;
64
67
  switch (options.authType) {
@@ -87,6 +90,7 @@ class BasicApiClient {
87
90
  }
88
91
  this.httpRequestConfig = config;
89
92
  this.httpClient = axios_1.default.create(config);
93
+ this.httpClient.defaults.headers.common = { ...config.headers };
90
94
  this.retryConfig = options.retryConfig;
91
95
  this.debugLogger = (_e = options.debugLogger) !== null && _e !== void 0 ? _e : logUtils_1.logInternal;
92
96
  }