pendra 0.17.1 → 0.17.2
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/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1826,7 +1826,7 @@ var Rerank = class {
|
|
|
1826
1826
|
};
|
|
1827
1827
|
|
|
1828
1828
|
// src/version.ts
|
|
1829
|
-
var VERSION = "0.17.
|
|
1829
|
+
var VERSION = "0.17.2";
|
|
1830
1830
|
var USER_AGENT = `pendra-node/${VERSION}`;
|
|
1831
1831
|
|
|
1832
1832
|
// src/client.ts
|
|
@@ -1933,8 +1933,10 @@ var Pendra = class {
|
|
|
1933
1933
|
clearTimeout(timeoutId);
|
|
1934
1934
|
}
|
|
1935
1935
|
if (response.status === 404) {
|
|
1936
|
+
const body = await readErrorBody(response);
|
|
1937
|
+
const detail = typeof body === "object" && body !== null ? body.detail : void 0;
|
|
1936
1938
|
throw new PrivateInferenceError(
|
|
1937
|
-
"No encryption key is registered for this organisation. Start a worker and it will be issued one automatically."
|
|
1939
|
+
messageFromDetail(detail) ?? "No encryption key is registered for this organisation. Start a worker and it will be issued one automatically."
|
|
1938
1940
|
);
|
|
1939
1941
|
}
|
|
1940
1942
|
if (!response.ok) {
|