@ztimson/momentum 0.31.0 → 0.32.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/index.cjs CHANGED
@@ -1643,7 +1643,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1643
1643
  const p = ("/api/storage/" + path).replaceAll("//", "/");
1644
1644
  return this.api.request({ ...opts, url: p, decode: false }).then(async (response) => {
1645
1645
  const blob = await response.blob();
1646
- const name = opts.downloadAs || new URL(path).pathname.split("/").pop();
1646
+ const name = opts.downloadAs || path.split("/").pop();
1647
1647
  this.emit("DOWNLOAD", path, blob);
1648
1648
  Bt(blob, name);
1649
1649
  return response;
package/dist/index.mjs CHANGED
@@ -1639,7 +1639,7 @@ class Storage extends H {
1639
1639
  const p = ("/api/storage/" + path).replaceAll("//", "/");
1640
1640
  return this.api.request({ ...opts, url: p, decode: false }).then(async (response) => {
1641
1641
  const blob = await response.blob();
1642
- const name = opts.downloadAs || new URL(path).pathname.split("/").pop();
1642
+ const name = opts.downloadAs || path.split("/").pop();
1643
1643
  this.emit("DOWNLOAD", path, blob);
1644
1644
  Bt(blob, name);
1645
1645
  return response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/momentum",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "Client library for momentum",
5
5
  "keywords": [
6
6
  "Momentum"