@ztimson/momentum 0.36.3 → 0.37.1
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1726,7 +1726,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1726
1726
|
}
|
|
1727
1727
|
upload(files, opts = "") {
|
|
1728
1728
|
return new m(async (res, rej, prog) => {
|
|
1729
|
-
if (!files) files = await It();
|
|
1729
|
+
if (!files) files = await It(typeof opts == "object" ? opts : void 0);
|
|
1730
1730
|
if (!files || Array.isArray(files) && !files.length) return [];
|
|
1731
1731
|
const url = this.api.url + ("/api/storage/" + ((typeof opts == "string" ? opts : opts == null ? void 0 : opts.path) || "")).replaceAll("//", "/");
|
|
1732
1732
|
return $t({
|
package/dist/index.mjs
CHANGED
|
@@ -1722,7 +1722,7 @@ class Storage extends F {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
upload(files, opts = "") {
|
|
1724
1724
|
return new m(async (res, rej, prog) => {
|
|
1725
|
-
if (!files) files = await It();
|
|
1725
|
+
if (!files) files = await It(typeof opts == "object" ? opts : void 0);
|
|
1726
1726
|
if (!files || Array.isArray(files) && !files.length) return [];
|
|
1727
1727
|
const url = this.api.url + ("/api/storage/" + ((typeof opts == "string" ? opts : opts == null ? void 0 : opts.path) || "")).replaceAll("//", "/");
|
|
1728
1728
|
return $t({
|