@prismatic-io/spectral 6.6.0 → 6.6.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.
@@ -13,11 +13,12 @@ export interface ClientProps {
13
13
  baseUrl?: string;
14
14
  responseType?: AxiosRequestConfig["responseType"];
15
15
  headers?: AxiosRequestConfig["headers"];
16
+ params?: Record<string, any>;
16
17
  timeout?: number;
17
18
  debug?: boolean;
18
19
  retryConfig?: RetryConfig;
19
20
  }
20
- export declare const createClient: ({ baseUrl, responseType, headers, timeout, debug, retryConfig, }: ClientProps) => HttpClient;
21
+ export declare const createClient: ({ baseUrl, responseType, headers, timeout, params, debug, retryConfig, }: ClientProps) => HttpClient;
21
22
  export declare const handleErrors: (error: unknown) => unknown;
22
23
  declare type SendRawRequestValues = ActionInputParameters<typeof inputs>;
23
24
  export declare const sendRawRequest: (baseUrl: string, values: SendRawRequestValues, authorizationHeaders?: Record<string, string>) => Promise<AxiosResponse>;
@@ -89,12 +89,13 @@ const toAxiosRetryConfig = (_a) => {
89
89
  var { retryDelay, retryAllErrors, retryCondition, useExponentialBackoff } = _a, rest = __rest(_a, ["retryDelay", "retryAllErrors", "retryCondition", "useExponentialBackoff"]);
90
90
  return (Object.assign(Object.assign({}, rest), { retryDelay: computeRetryDelay(retryDelay, useExponentialBackoff), retryCondition: retryAllErrors ? () => true : retryCondition }));
91
91
  };
92
- const createClient = ({ baseUrl, responseType, headers, timeout, debug = false, retryConfig, }) => {
92
+ const createClient = ({ baseUrl, responseType, headers, timeout, params, debug = false, retryConfig, }) => {
93
93
  const client = axios_1.default.create({
94
94
  baseURL: baseUrl,
95
95
  responseType,
96
96
  headers,
97
97
  timeout,
98
+ params,
98
99
  maxContentLength: Infinity,
99
100
  maxBodyLength: Infinity,
100
101
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "6.6.0",
3
+ "version": "6.6.1",
4
4
  "description": "Utility library for building Prismatic components",
5
5
  "keywords": [
6
6
  "prismatic"