@arbidocs/sdk 0.5.1 → 0.5.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/{browser-XUJbRPTm.d.cts → browser-CuA9Q2NR.d.cts} +1 -1
- package/dist/{browser-DDboSTjo.d.ts → browser-D2XBFIcc.d.ts} +1 -1
- package/dist/browser.cjs +2 -2
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +2 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3646,7 +3646,7 @@ async function authenticatedFetch(options) {
|
|
|
3646
3646
|
});
|
|
3647
3647
|
if (!res.ok) {
|
|
3648
3648
|
const message = await extractErrorMessage(res);
|
|
3649
|
-
throw new ArbiApiError(message, { status: res.status, statusText: res.statusText });
|
|
3649
|
+
throw new ArbiApiError(message, { status: res.status, statusText: res.statusText }, res.status);
|
|
3650
3650
|
}
|
|
3651
3651
|
return res;
|
|
3652
3652
|
}
|
|
@@ -5593,7 +5593,7 @@ async function getDeploymentHouseTemplate(arbi) {
|
|
|
5593
5593
|
const { data, error, response } = await arbi.fetch.GET("/v1/deployment/house-template", {
|
|
5594
5594
|
parseAs: "arrayBuffer"
|
|
5595
5595
|
});
|
|
5596
|
-
if (response.status === 404) return null;
|
|
5596
|
+
if (response.status === 204 || response.status === 404) return null;
|
|
5597
5597
|
if (error || !data)
|
|
5598
5598
|
throw new ArbiApiError("Could not read the deployment house template", error, response.status);
|
|
5599
5599
|
return {
|