@milaboratories/pl-drivers 1.5.15 → 1.5.16
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/clients/download.d.ts.map +1 -1
- package/dist/helpers/download.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
- package/src/clients/download.ts +1 -0
- package/src/clients/progress.ts +1 -1
- package/src/clients/upload.ts +4 -4
- package/src/helpers/download.ts +3 -1
package/dist/index.mjs
CHANGED
|
@@ -891,9 +891,9 @@ async function Vt(s, e, t) {
|
|
|
891
891
|
const n = Number(t - e), r = Number(e), a = Buffer.alloc(n), i = await qt(o, a, n, r);
|
|
892
892
|
return a.subarray(0, i);
|
|
893
893
|
} catch (n) {
|
|
894
|
-
throw n.code == "ENOENT" ? new xe(`there is no file ${s} for uploading`) : n;
|
|
894
|
+
throw n && typeof n == "object" && "code" in n && n.code == "ENOENT" ? new xe(`there is no file ${s} for uploading`) : n;
|
|
895
895
|
} finally {
|
|
896
|
-
o == null
|
|
896
|
+
await (o == null ? void 0 : o.close());
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
899
|
async function qt(s, e, t, o) {
|
|
@@ -919,7 +919,7 @@ async function Jt(s, e) {
|
|
|
919
919
|
function Zt(s, e, t, o) {
|
|
920
920
|
if (s != 200)
|
|
921
921
|
throw new jt(
|
|
922
|
-
`response is not ok, status code: ${s}, body: ${e}, headers: ${t}, url: ${o.uploadUrl}`
|
|
922
|
+
`response is not ok, status code: ${s}, body: ${e}, headers: ${JSON.stringify(t)}, url: ${o.uploadUrl}`
|
|
923
923
|
);
|
|
924
924
|
}
|
|
925
925
|
class Qt extends g {
|
|
@@ -1527,7 +1527,7 @@ class ho {
|
|
|
1527
1527
|
);
|
|
1528
1528
|
yield* c;
|
|
1529
1529
|
} catch (c) {
|
|
1530
|
-
throw this.logger.warn("Failed to get realtime status" + c), c;
|
|
1530
|
+
throw this.logger.warn("Failed to get realtime status" + String(c)), c;
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|