@aviaryhq/cloudglue-js 0.0.14 → 0.0.15
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/dist/src/client.d.ts +3 -0
- package/dist/src/client.js +1 -1
- package/package.json +1 -1
package/dist/src/client.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ export declare class CloudGlueError extends Error {
|
|
|
12
12
|
export interface CloudGlueConfig {
|
|
13
13
|
apiKey?: string;
|
|
14
14
|
baseUrl?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Time limit in milliseconds before we timeout a request
|
|
17
|
+
*/
|
|
15
18
|
timeout?: number;
|
|
16
19
|
}
|
|
17
20
|
interface ListFilesParams {
|
package/dist/src/client.js
CHANGED
|
@@ -273,7 +273,7 @@ class CloudGlue {
|
|
|
273
273
|
constructor(config = {}) {
|
|
274
274
|
this.apiKey = config.apiKey || process.env.CLOUDGLUE_API_KEY || "";
|
|
275
275
|
this.baseUrl = config.baseUrl || "https://api.cloudglue.dev/v1";
|
|
276
|
-
this.timeout = config.timeout ||
|
|
276
|
+
this.timeout = config.timeout || undefined;
|
|
277
277
|
if (!this.apiKey) {
|
|
278
278
|
throw new Error("API key is required. Please provide an API key via constructor or CLOUDGLUE_API_KEY environment variable.");
|
|
279
279
|
}
|