@budibase/backend-core 2.13.36 → 2.13.37
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.js +50 -50
- package/dist/index.js.map +3 -3
- package/dist/index.js.meta.json +1 -1
- package/dist/package.json +7 -7
- package/dist/plugins.js.meta.json +1 -1
- package/dist/src/objectStore/objectStore.d.ts +1 -1
- package/dist/src/objectStore/objectStore.js +2 -2
- package/dist/src/objectStore/objectStore.js.map +1 -1
- package/package.json +7 -7
- package/src/objectStore/objectStore.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -4919,7 +4919,7 @@ async function listAllObjects(bucketName, path2) {
|
|
|
4919
4919
|
} while (isTruncated);
|
|
4920
4920
|
return objects;
|
|
4921
4921
|
}
|
|
4922
|
-
function getPresignedUrl(bucketName, key, durationSeconds =
|
|
4922
|
+
function getPresignedUrl(bucketName, key, durationSeconds = 3600) {
|
|
4923
4923
|
const objectStore = ObjectStore(bucketName, { presigning: true });
|
|
4924
4924
|
const params2 = {
|
|
4925
4925
|
Bucket: sanitizeBucket(bucketName),
|
|
@@ -5670,9 +5670,9 @@ var require_dayjs_min = __commonJS({
|
|
|
5670
5670
|
return void 0 === t2;
|
|
5671
5671
|
} }, g = "en", D = {};
|
|
5672
5672
|
D[g] = M;
|
|
5673
|
-
var p = function(t2) {
|
|
5674
|
-
return t2 instanceof
|
|
5675
|
-
},
|
|
5673
|
+
var p = "$isDayjsObject", S = function(t2) {
|
|
5674
|
+
return t2 instanceof _2 || !(!t2 || !t2[p]);
|
|
5675
|
+
}, w = function t2(e2, n2, r2) {
|
|
5676
5676
|
var i2;
|
|
5677
5677
|
if (!e2)
|
|
5678
5678
|
return g;
|
|
@@ -5687,18 +5687,18 @@ var require_dayjs_min = __commonJS({
|
|
|
5687
5687
|
D[a2] = e2, i2 = a2;
|
|
5688
5688
|
}
|
|
5689
5689
|
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
|
5690
|
-
},
|
|
5691
|
-
if (
|
|
5690
|
+
}, O = function(t2, e2) {
|
|
5691
|
+
if (S(t2))
|
|
5692
5692
|
return t2.clone();
|
|
5693
5693
|
var n2 = "object" == typeof e2 ? e2 : {};
|
|
5694
|
-
return n2.date = t2, n2.args = arguments, new
|
|
5695
|
-
},
|
|
5696
|
-
|
|
5697
|
-
return
|
|
5694
|
+
return n2.date = t2, n2.args = arguments, new _2(n2);
|
|
5695
|
+
}, b = v;
|
|
5696
|
+
b.l = w, b.i = S, b.w = function(t2, e2) {
|
|
5697
|
+
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
5698
5698
|
};
|
|
5699
|
-
var
|
|
5699
|
+
var _2 = function() {
|
|
5700
5700
|
function M2(t2) {
|
|
5701
|
-
this.$L =
|
|
5701
|
+
this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
|
5702
5702
|
}
|
|
5703
5703
|
var m2 = M2.prototype;
|
|
5704
5704
|
return m2.parse = function(t2) {
|
|
@@ -5706,7 +5706,7 @@ var require_dayjs_min = __commonJS({
|
|
|
5706
5706
|
var e2 = t3.date, n2 = t3.utc;
|
|
5707
5707
|
if (null === e2)
|
|
5708
5708
|
return /* @__PURE__ */ new Date(NaN);
|
|
5709
|
-
if (
|
|
5709
|
+
if (b.u(e2))
|
|
5710
5710
|
return /* @__PURE__ */ new Date();
|
|
5711
5711
|
if (e2 instanceof Date)
|
|
5712
5712
|
return new Date(e2);
|
|
@@ -5718,33 +5718,33 @@ var require_dayjs_min = __commonJS({
|
|
|
5718
5718
|
}
|
|
5719
5719
|
}
|
|
5720
5720
|
return new Date(e2);
|
|
5721
|
-
}(t2), this
|
|
5721
|
+
}(t2), this.init();
|
|
5722
5722
|
}, m2.init = function() {
|
|
5723
5723
|
var t2 = this.$d;
|
|
5724
5724
|
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
5725
5725
|
}, m2.$utils = function() {
|
|
5726
|
-
return
|
|
5726
|
+
return b;
|
|
5727
5727
|
}, m2.isValid = function() {
|
|
5728
5728
|
return !(this.$d.toString() === l);
|
|
5729
5729
|
}, m2.isSame = function(t2, e2) {
|
|
5730
|
-
var n2 =
|
|
5730
|
+
var n2 = O(t2);
|
|
5731
5731
|
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
5732
5732
|
}, m2.isAfter = function(t2, e2) {
|
|
5733
|
-
return
|
|
5733
|
+
return O(t2) < this.startOf(e2);
|
|
5734
5734
|
}, m2.isBefore = function(t2, e2) {
|
|
5735
|
-
return this.endOf(e2) <
|
|
5735
|
+
return this.endOf(e2) < O(t2);
|
|
5736
5736
|
}, m2.$g = function(t2, e2, n2) {
|
|
5737
|
-
return
|
|
5737
|
+
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
|
5738
5738
|
}, m2.unix = function() {
|
|
5739
5739
|
return Math.floor(this.valueOf() / 1e3);
|
|
5740
5740
|
}, m2.valueOf = function() {
|
|
5741
5741
|
return this.$d.getTime();
|
|
5742
5742
|
}, m2.startOf = function(t2, e2) {
|
|
5743
|
-
var n2 = this, r2 = !!
|
|
5744
|
-
var i2 =
|
|
5743
|
+
var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
5744
|
+
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
5745
5745
|
return r2 ? i2 : i2.endOf(a);
|
|
5746
5746
|
}, $2 = function(t3, e3) {
|
|
5747
|
-
return
|
|
5747
|
+
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
5748
5748
|
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
5749
5749
|
switch (f2) {
|
|
5750
5750
|
case h:
|
|
@@ -5769,7 +5769,7 @@ var require_dayjs_min = __commonJS({
|
|
|
5769
5769
|
}, m2.endOf = function(t2) {
|
|
5770
5770
|
return this.startOf(t2, false);
|
|
5771
5771
|
}, m2.$set = function(t2, e2) {
|
|
5772
|
-
var n2, o2 =
|
|
5772
|
+
var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
5773
5773
|
if (o2 === c || o2 === h) {
|
|
5774
5774
|
var y2 = this.clone().set(d, 1);
|
|
5775
5775
|
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
@@ -5779,13 +5779,13 @@ var require_dayjs_min = __commonJS({
|
|
|
5779
5779
|
}, m2.set = function(t2, e2) {
|
|
5780
5780
|
return this.clone().$set(t2, e2);
|
|
5781
5781
|
}, m2.get = function(t2) {
|
|
5782
|
-
return this[
|
|
5782
|
+
return this[b.p(t2)]();
|
|
5783
5783
|
}, m2.add = function(r2, f2) {
|
|
5784
5784
|
var d2, l2 = this;
|
|
5785
5785
|
r2 = Number(r2);
|
|
5786
|
-
var $2 =
|
|
5787
|
-
var e2 =
|
|
5788
|
-
return
|
|
5786
|
+
var $2 = b.p(f2), y2 = function(t2) {
|
|
5787
|
+
var e2 = O(l2);
|
|
5788
|
+
return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
5789
5789
|
};
|
|
5790
5790
|
if ($2 === c)
|
|
5791
5791
|
return this.set(c, this.$M + r2);
|
|
@@ -5796,17 +5796,17 @@ var require_dayjs_min = __commonJS({
|
|
|
5796
5796
|
if ($2 === o)
|
|
5797
5797
|
return y2(7);
|
|
5798
5798
|
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
|
5799
|
-
return
|
|
5799
|
+
return b.w(m3, this);
|
|
5800
5800
|
}, m2.subtract = function(t2, e2) {
|
|
5801
5801
|
return this.add(-1 * t2, e2);
|
|
5802
5802
|
}, m2.format = function(t2) {
|
|
5803
5803
|
var e2 = this, n2 = this.$locale();
|
|
5804
5804
|
if (!this.isValid())
|
|
5805
5805
|
return n2.invalidDate || l;
|
|
5806
|
-
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 =
|
|
5806
|
+
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
|
|
5807
5807
|
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
5808
5808
|
}, d2 = function(t3) {
|
|
5809
|
-
return
|
|
5809
|
+
return b.s(s2 % 12 || 12, t3, "0");
|
|
5810
5810
|
}, $2 = f2 || function(t3, e3, n3) {
|
|
5811
5811
|
var r3 = t3 < 12 ? "AM" : "PM";
|
|
5812
5812
|
return n3 ? r3.toLowerCase() : r3;
|
|
@@ -5817,11 +5817,11 @@ var require_dayjs_min = __commonJS({
|
|
|
5817
5817
|
case "YY":
|
|
5818
5818
|
return String(e2.$y).slice(-2);
|
|
5819
5819
|
case "YYYY":
|
|
5820
|
-
return
|
|
5820
|
+
return b.s(e2.$y, 4, "0");
|
|
5821
5821
|
case "M":
|
|
5822
5822
|
return a2 + 1;
|
|
5823
5823
|
case "MM":
|
|
5824
|
-
return
|
|
5824
|
+
return b.s(a2 + 1, 2, "0");
|
|
5825
5825
|
case "MMM":
|
|
5826
5826
|
return h2(n2.monthsShort, a2, c2, 3);
|
|
5827
5827
|
case "MMMM":
|
|
@@ -5829,7 +5829,7 @@ var require_dayjs_min = __commonJS({
|
|
|
5829
5829
|
case "D":
|
|
5830
5830
|
return e2.$D;
|
|
5831
5831
|
case "DD":
|
|
5832
|
-
return
|
|
5832
|
+
return b.s(e2.$D, 2, "0");
|
|
5833
5833
|
case "d":
|
|
5834
5834
|
return String(e2.$W);
|
|
5835
5835
|
case "dd":
|
|
@@ -5841,7 +5841,7 @@ var require_dayjs_min = __commonJS({
|
|
|
5841
5841
|
case "H":
|
|
5842
5842
|
return String(s2);
|
|
5843
5843
|
case "HH":
|
|
5844
|
-
return
|
|
5844
|
+
return b.s(s2, 2, "0");
|
|
5845
5845
|
case "h":
|
|
5846
5846
|
return d2(1);
|
|
5847
5847
|
case "hh":
|
|
@@ -5853,13 +5853,13 @@ var require_dayjs_min = __commonJS({
|
|
|
5853
5853
|
case "m":
|
|
5854
5854
|
return String(u2);
|
|
5855
5855
|
case "mm":
|
|
5856
|
-
return
|
|
5856
|
+
return b.s(u2, 2, "0");
|
|
5857
5857
|
case "s":
|
|
5858
5858
|
return String(e2.$s);
|
|
5859
5859
|
case "ss":
|
|
5860
|
-
return
|
|
5860
|
+
return b.s(e2.$s, 2, "0");
|
|
5861
5861
|
case "SSS":
|
|
5862
|
-
return
|
|
5862
|
+
return b.s(e2.$ms, 3, "0");
|
|
5863
5863
|
case "Z":
|
|
5864
5864
|
return i2;
|
|
5865
5865
|
}
|
|
@@ -5869,8 +5869,8 @@ var require_dayjs_min = __commonJS({
|
|
|
5869
5869
|
}, m2.utcOffset = function() {
|
|
5870
5870
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5871
5871
|
}, m2.diff = function(r2, d2, l2) {
|
|
5872
|
-
var $2, y2 = this, M3 =
|
|
5873
|
-
return
|
|
5872
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
5873
|
+
return b.m(y2, m3);
|
|
5874
5874
|
};
|
|
5875
5875
|
switch (M3) {
|
|
5876
5876
|
case h:
|
|
@@ -5900,7 +5900,7 @@ var require_dayjs_min = __commonJS({
|
|
|
5900
5900
|
default:
|
|
5901
5901
|
$2 = g2;
|
|
5902
5902
|
}
|
|
5903
|
-
return l2 ? $2 :
|
|
5903
|
+
return l2 ? $2 : b.a($2);
|
|
5904
5904
|
}, m2.daysInMonth = function() {
|
|
5905
5905
|
return this.endOf(c).$D;
|
|
5906
5906
|
}, m2.$locale = function() {
|
|
@@ -5908,10 +5908,10 @@ var require_dayjs_min = __commonJS({
|
|
|
5908
5908
|
}, m2.locale = function(t2, e2) {
|
|
5909
5909
|
if (!t2)
|
|
5910
5910
|
return this.$L;
|
|
5911
|
-
var n2 = this.clone(), r2 =
|
|
5911
|
+
var n2 = this.clone(), r2 = w(t2, e2, true);
|
|
5912
5912
|
return r2 && (n2.$L = r2), n2;
|
|
5913
5913
|
}, m2.clone = function() {
|
|
5914
|
-
return
|
|
5914
|
+
return b.w(this.$d, this);
|
|
5915
5915
|
}, m2.toDate = function() {
|
|
5916
5916
|
return new Date(this.valueOf());
|
|
5917
5917
|
}, m2.toJSON = function() {
|
|
@@ -5921,16 +5921,16 @@ var require_dayjs_min = __commonJS({
|
|
|
5921
5921
|
}, m2.toString = function() {
|
|
5922
5922
|
return this.$d.toUTCString();
|
|
5923
5923
|
}, M2;
|
|
5924
|
-
}(),
|
|
5925
|
-
return
|
|
5926
|
-
|
|
5924
|
+
}(), k = _2.prototype;
|
|
5925
|
+
return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
|
5926
|
+
k[t2[1]] = function(e2) {
|
|
5927
5927
|
return this.$g(e2, t2[0], t2[1]);
|
|
5928
5928
|
};
|
|
5929
|
-
}),
|
|
5930
|
-
return t2.$i || (t2(e2,
|
|
5931
|
-
},
|
|
5932
|
-
return
|
|
5933
|
-
},
|
|
5929
|
+
}), O.extend = function(t2, e2) {
|
|
5930
|
+
return t2.$i || (t2(e2, _2, O), t2.$i = true), O;
|
|
5931
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
|
5932
|
+
return O(1e3 * t2);
|
|
5933
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
5934
5934
|
});
|
|
5935
5935
|
}
|
|
5936
5936
|
});
|