@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.
@@ -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 {
@@ -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 || 10000;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aviaryhq/cloudglue-js",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "CloudGlue API client for Node.js",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",