windmill-client 1.839.0 → 1.841.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 +2 -2
- package/dist/core/OpenAPI.mjs +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
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
|
/**
|
package/dist/core/OpenAPI.mjs
CHANGED
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.
|
|
129
|
+
VERSION: "1.841.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.
|
|
4
|
+
"version": "1.841.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",
|