@ztimson/momentum 0.14.0 → 0.14.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/momentum.cjs +1 -1
- package/dist/momentum.cjs.map +1 -1
- package/dist/momentum.mjs +1 -1
- package/dist/momentum.mjs.map +1 -1
- package/dist/storage.d.ts +3 -1
- package/dist/storage.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/momentum.mjs
CHANGED
|
@@ -1125,7 +1125,7 @@ class jt extends p {
|
|
|
1125
1125
|
const E = (l = c.body) == null ? void 0 : l.getReader(), _ = (F) => {
|
|
1126
1126
|
if (F.done) {
|
|
1127
1127
|
o(1);
|
|
1128
|
-
const S = new Blob(T), q = r.
|
|
1128
|
+
const S = new Blob(T), q = r.downloadAs || new URL(c.url).pathname.split("/").pop(), Y = URL.createObjectURL(S);
|
|
1129
1129
|
yt(Y, q.includes(".") ? q : q + ".zip"), URL.revokeObjectURL(Y), this.emit("DOWNLOAD", t, S), s(S);
|
|
1130
1130
|
} else {
|
|
1131
1131
|
const S = F.value;
|