windmill-client 1.839.0 → 1.840.0

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/client.mjs CHANGED
@@ -58,7 +58,7 @@ async function getResource(path, undefinedIfEmpty) {
58
58
  });
59
59
  } catch (e) {
60
60
  if (undefinedIfEmpty && e.status === 404) return void 0;
61
- else throw Error(`Resource not found at ${path} or not visible to you: ${e.body}`);
61
+ else throw Error(e.status === void 0 ? `Could not reach the Windmill API to get resource ${path}: ${e.message ?? e}` : `Resource not found at ${path} or not visible to you: ${e.body}`);
62
62
  }
63
63
  }
64
64
  /**
@@ -520,7 +520,7 @@ async function getVariable(path) {
520
520
  path
521
521
  });
522
522
  } catch (e) {
523
- throw Error(`Variable not found at ${path} or not visible to you: ${e.body}`);
523
+ throw Error(e.status === void 0 ? `Could not reach the Windmill API to get variable ${path}: ${e.message ?? e}` : `Variable not found at ${path} or not visible to you: ${e.body}`);
524
524
  }
525
525
  }
526
526
  /**
@@ -29,7 +29,7 @@ const OpenAPI = {
29
29
  PASSWORD: void 0,
30
30
  TOKEN: getEnv("WM_TOKEN"),
31
31
  USERNAME: void 0,
32
- VERSION: "1.839.0",
32
+ VERSION: "1.840.0",
33
33
  WITH_CREDENTIALS: !getEnv("WM_RAW_APP"),
34
34
  interceptors: {
35
35
  request: new Interceptors(),
package/dist/index.js CHANGED
@@ -126,7 +126,7 @@ const OpenAPI = {
126
126
  PASSWORD: void 0,
127
127
  TOKEN: getEnv$1("WM_TOKEN"),
128
128
  USERNAME: void 0,
129
- VERSION: "1.839.0",
129
+ VERSION: "1.840.0",
130
130
  WITH_CREDENTIALS: !getEnv$1("WM_RAW_APP"),
131
131
  interceptors: {
132
132
  request: new Interceptors(),
@@ -19436,7 +19436,7 @@ async function getResource(path, undefinedIfEmpty) {
19436
19436
  });
19437
19437
  } catch (e) {
19438
19438
  if (undefinedIfEmpty && e.status === 404) return void 0;
19439
- else throw Error(`Resource not found at ${path} or not visible to you: ${e.body}`);
19439
+ else throw Error(e.status === void 0 ? `Could not reach the Windmill API to get resource ${path}: ${e.message ?? e}` : `Resource not found at ${path} or not visible to you: ${e.body}`);
19440
19440
  }
19441
19441
  }
19442
19442
  /**
@@ -19898,7 +19898,7 @@ async function getVariable(path) {
19898
19898
  path
19899
19899
  });
19900
19900
  } catch (e) {
19901
- throw Error(`Variable not found at ${path} or not visible to you: ${e.body}`);
19901
+ throw Error(e.status === void 0 ? `Could not reach the Windmill API to get variable ${path}: ${e.message ?? e}` : `Variable not found at ${path} or not visible to you: ${e.body}`);
19902
19902
  }
19903
19903
  }
19904
19904
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "windmill-client",
3
3
  "description": "Windmill SDK client for browsers and Node.js",
4
- "version": "1.839.0",
4
+ "version": "1.840.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme",