indexeddbshim 14.0.0 → 15.0.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/indexeddbshim-Key.js +1 -1
- package/dist/indexeddbshim-Key.min.js +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +47 -44
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +49 -44
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +2 -2
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/indexeddbshim-node.cjs +47 -44
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +49 -44
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +2 -2
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +49 -44
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +2 -2
- package/dist/indexeddbshim.min.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim -
|
|
1
|
+
/*! indexeddbshim - v14.0.0 - 7/16/2024 */
|
|
2
2
|
|
|
3
3
|
(function (factory) {
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -5880,8 +5880,8 @@
|
|
|
5880
5880
|
p = [],
|
|
5881
5881
|
d = [],
|
|
5882
5882
|
v = !("cyclic" in u) || u.cyclic,
|
|
5883
|
-
|
|
5884
|
-
|
|
5883
|
+
b = u.encapsulateObserver,
|
|
5884
|
+
h = function finish(e) {
|
|
5885
5885
|
var t = Object.values(f);
|
|
5886
5886
|
if (u.iterateNone) return t.length ? t[0] : getJSONType(e);
|
|
5887
5887
|
if (t.length) {
|
|
@@ -5906,7 +5906,7 @@
|
|
|
5906
5906
|
});
|
|
5907
5907
|
return !u.returnTypeNames && e;
|
|
5908
5908
|
},
|
|
5909
|
-
|
|
5909
|
+
m = _async(function (t, r) {
|
|
5910
5910
|
return _await(Promise.all(r.map(function (e) {
|
|
5911
5911
|
return e[1].p;
|
|
5912
5912
|
})), function (n) {
|
|
@@ -5929,11 +5929,11 @@
|
|
|
5929
5929
|
}(function () {
|
|
5930
5930
|
if (s && v) return _await(d.p, function (e) {
|
|
5931
5931
|
f[y] = e;
|
|
5932
|
-
var r =
|
|
5932
|
+
var r = m(t, o);
|
|
5933
5933
|
return a = !0, r;
|
|
5934
5934
|
});
|
|
5935
5935
|
}, function (e) {
|
|
5936
|
-
return a ? e : (s ? f[y] = d : t = v ? d.p : d,
|
|
5936
|
+
return a ? e : (s ? f[y] = d : t = v ? d.p : d, m(t, o));
|
|
5937
5937
|
});
|
|
5938
5938
|
}))), function () {
|
|
5939
5939
|
return t;
|
|
@@ -5951,13 +5951,13 @@
|
|
|
5951
5951
|
});
|
|
5952
5952
|
},
|
|
5953
5953
|
O = function _encapsulate(t, r, i, c, l, d, v) {
|
|
5954
|
-
var
|
|
5955
|
-
|
|
5954
|
+
var h,
|
|
5955
|
+
m = {},
|
|
5956
5956
|
O = _typeof(r),
|
|
5957
|
-
_ =
|
|
5957
|
+
_ = b ? function (n) {
|
|
5958
5958
|
var a,
|
|
5959
5959
|
o = null !== (a = null != v ? v : c.type) && void 0 !== a ? a : getJSONType(r);
|
|
5960
|
-
|
|
5960
|
+
b(Object.assign(null != n ? n : m, {
|
|
5961
5961
|
keypath: t,
|
|
5962
5962
|
value: r,
|
|
5963
5963
|
cyclic: i,
|
|
@@ -5969,9 +5969,9 @@
|
|
|
5969
5969
|
type: o
|
|
5970
5970
|
}));
|
|
5971
5971
|
} : null;
|
|
5972
|
-
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (
|
|
5973
|
-
replaced:
|
|
5974
|
-
}) :
|
|
5972
|
+
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (h = c.replaced ? r : w(t, r, c, l, !1, d, _)) !== r && (m = {
|
|
5973
|
+
replaced: h
|
|
5974
|
+
}) : h = r, _ && _(), h;
|
|
5975
5975
|
if (null === r) return _ && _(), r;
|
|
5976
5976
|
if (i && !c.iterateIn && !c.iterateUnsetNumeric && r && "object" === _typeof(r)) {
|
|
5977
5977
|
var A = y.indexOf(r);
|
|
@@ -5985,14 +5985,14 @@
|
|
|
5985
5985
|
T = isPlainObject(r),
|
|
5986
5986
|
I = o(r),
|
|
5987
5987
|
N = (T || I) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : w(t, r, c, l, T || I, null, _);
|
|
5988
|
-
if (N !== r ? (
|
|
5988
|
+
if (N !== r ? (h = N, m = {
|
|
5989
5989
|
replaced: N
|
|
5990
|
-
}) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]),
|
|
5990
|
+
}) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]), h = r) : I && "object" !== c.iterateIn || "array" === c.iterateIn ? (S = new Array(r.length), m = {
|
|
5991
5991
|
clone: S
|
|
5992
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ?
|
|
5992
|
+
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ? h = r : (S = {}, c.addLength && (S.length = r.length), m = {
|
|
5993
5993
|
clone: S
|
|
5994
|
-
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j :
|
|
5995
|
-
if (!S) return
|
|
5994
|
+
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : h;
|
|
5995
|
+
if (!S) return h;
|
|
5996
5996
|
if (c.iterateIn) {
|
|
5997
5997
|
var P = function _loop(n) {
|
|
5998
5998
|
var o = {
|
|
@@ -6058,12 +6058,12 @@
|
|
|
6058
6058
|
i && i({
|
|
6059
6059
|
replacing: !0
|
|
6060
6060
|
});
|
|
6061
|
-
var
|
|
6061
|
+
var b = void 0;
|
|
6062
6062
|
if (l || !y.replaceAsync) {
|
|
6063
6063
|
if (void 0 === y.replace) throw new TypeError("Missing replacer");
|
|
6064
|
-
|
|
6065
|
-
} else
|
|
6066
|
-
return O(e,
|
|
6064
|
+
b = y.replace(t, r);
|
|
6065
|
+
} else b = y.replaceAsync(t, r);
|
|
6066
|
+
return O(e, b, v && "readonly", r, n, o, p);
|
|
6067
6067
|
}
|
|
6068
6068
|
}
|
|
6069
6069
|
return t;
|
|
@@ -6071,9 +6071,9 @@
|
|
|
6071
6071
|
_ = O("", t, v, null != r ? r : {}, d);
|
|
6072
6072
|
if (d.length) return l && u.throwOnBadSyncType ? function () {
|
|
6073
6073
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6074
|
-
}() : Promise.resolve(
|
|
6074
|
+
}() : Promise.resolve(m(_, d)).then(h);
|
|
6075
6075
|
if (!l && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6076
|
-
return u.stringification && l ? [
|
|
6076
|
+
return u.stringification && l ? [h(_)] : l ? h(_) : Promise.resolve(h(_));
|
|
6077
6077
|
}
|
|
6078
6078
|
}, {
|
|
6079
6079
|
key: "encapsulateSync",
|
|
@@ -6128,7 +6128,7 @@
|
|
|
6128
6128
|
return hasConstructorOf(e, s) ? void 0 : e;
|
|
6129
6129
|
}
|
|
6130
6130
|
var v,
|
|
6131
|
-
|
|
6131
|
+
b = function revivePlainObjects() {
|
|
6132
6132
|
var r = [];
|
|
6133
6133
|
if (!u) throw new Error("Found bad `types`");
|
|
6134
6134
|
if (Object.entries(u).forEach(function (e) {
|
|
@@ -6160,29 +6160,29 @@
|
|
|
6160
6160
|
c === i && (t = c);
|
|
6161
6161
|
}, void 0);
|
|
6162
6162
|
}();
|
|
6163
|
-
return hasConstructorOf(
|
|
6163
|
+
return hasConstructorOf(b, e) ? v = b.then(function () {
|
|
6164
6164
|
return t;
|
|
6165
6165
|
}) : (v = function _revive(t, r, a, i, c) {
|
|
6166
6166
|
if (!y || "$types" !== t) {
|
|
6167
6167
|
var f = u[t],
|
|
6168
6168
|
v = o(r);
|
|
6169
6169
|
if (v || isPlainObject(r)) {
|
|
6170
|
-
var
|
|
6170
|
+
var b = v ? new Array(r.length) : {};
|
|
6171
6171
|
for (n(r).forEach(function (n) {
|
|
6172
|
-
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a :
|
|
6172
|
+
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a : b, b, n),
|
|
6173
6173
|
i = function set(e) {
|
|
6174
|
-
return hasConstructorOf(e, s) ?
|
|
6174
|
+
return hasConstructorOf(e, s) ? b[n] = void 0 : void 0 !== e && (b[n] = e), e;
|
|
6175
6175
|
};
|
|
6176
6176
|
hasConstructorOf(o, e) ? d.push(o.then(function (e) {
|
|
6177
6177
|
return i(e);
|
|
6178
6178
|
})) : i(o);
|
|
6179
|
-
}), r =
|
|
6180
|
-
var
|
|
6181
|
-
|
|
6182
|
-
g =
|
|
6183
|
-
O =
|
|
6184
|
-
w =
|
|
6185
|
-
_ = getByKeyPath(
|
|
6179
|
+
}), r = b; l.length;) {
|
|
6180
|
+
var h = _slicedToArray(l[0], 4),
|
|
6181
|
+
m = h[0],
|
|
6182
|
+
g = h[1],
|
|
6183
|
+
O = h[2],
|
|
6184
|
+
w = h[3],
|
|
6185
|
+
_ = getByKeyPath(m, g);
|
|
6186
6186
|
if (void 0 === _) break;
|
|
6187
6187
|
O[w] = _, l.splice(0, 1);
|
|
6188
6188
|
}
|
|
@@ -6336,7 +6336,7 @@
|
|
|
6336
6336
|
}
|
|
6337
6337
|
}
|
|
6338
6338
|
},
|
|
6339
|
-
|
|
6339
|
+
b = {
|
|
6340
6340
|
bigintObject: {
|
|
6341
6341
|
test: function test(e) {
|
|
6342
6342
|
return "object" == _typeof$2(e) && hasConstructorOf(e, BigInt);
|
|
@@ -6347,7 +6347,7 @@
|
|
|
6347
6347
|
}
|
|
6348
6348
|
}
|
|
6349
6349
|
},
|
|
6350
|
-
|
|
6350
|
+
h = {
|
|
6351
6351
|
bigint: {
|
|
6352
6352
|
test: function test(e) {
|
|
6353
6353
|
return "bigint" == typeof e;
|
|
@@ -6358,12 +6358,17 @@
|
|
|
6358
6358
|
}
|
|
6359
6359
|
}
|
|
6360
6360
|
};
|
|
6361
|
+
function arraybuffer2string(e) {
|
|
6362
|
+
return new Uint8Array(e).reduce(function (e, t) {
|
|
6363
|
+
return e + String.fromCodePoint(t);
|
|
6364
|
+
}, "");
|
|
6365
|
+
}
|
|
6361
6366
|
function string2arraybuffer(e) {
|
|
6362
6367
|
var t = new Uint8Array(e.length);
|
|
6363
6368
|
for (var _r = 0; _r < e.length; _r++) t[_r] = e.charCodeAt(_r);
|
|
6364
6369
|
return t.buffer;
|
|
6365
6370
|
}
|
|
6366
|
-
var
|
|
6371
|
+
var m = {
|
|
6367
6372
|
blob: {
|
|
6368
6373
|
test: function test(e) {
|
|
6369
6374
|
return "Blob" === toStringTag(e);
|
|
@@ -6389,11 +6394,11 @@
|
|
|
6389
6394
|
n.addEventListener("load", function () {
|
|
6390
6395
|
e({
|
|
6391
6396
|
type: t.type,
|
|
6392
|
-
stringContents: n.result
|
|
6397
|
+
stringContents: arraybuffer2string(n.result)
|
|
6393
6398
|
});
|
|
6394
6399
|
}), n.addEventListener("error", function () {
|
|
6395
6400
|
r(n.error);
|
|
6396
|
-
}), n.
|
|
6401
|
+
}), n.readAsArrayBuffer(t);
|
|
6397
6402
|
});
|
|
6398
6403
|
}
|
|
6399
6404
|
}
|
|
@@ -6718,13 +6723,13 @@
|
|
|
6718
6723
|
n.addEventListener("load", function () {
|
|
6719
6724
|
e({
|
|
6720
6725
|
type: t.type,
|
|
6721
|
-
stringContents: n.result,
|
|
6726
|
+
stringContents: arraybuffer2string(n.result),
|
|
6722
6727
|
name: t.name,
|
|
6723
6728
|
lastModified: t.lastModified
|
|
6724
6729
|
});
|
|
6725
6730
|
}), n.addEventListener("error", function () {
|
|
6726
6731
|
r(n.error);
|
|
6727
|
-
}), n.
|
|
6732
|
+
}), n.readAsArrayBuffer(t);
|
|
6728
6733
|
});
|
|
6729
6734
|
}
|
|
6730
6735
|
}
|
|
@@ -7079,7 +7084,7 @@
|
|
|
7079
7084
|
}
|
|
7080
7085
|
}],
|
|
7081
7086
|
ee = [K, U, F, $],
|
|
7082
|
-
oe = [X, Q, Z, V, ee, A, q, k, B, E, C,
|
|
7087
|
+
oe = [X, Q, Z, V, ee, A, q, k, B, E, C, m, P, x].concat("function" == typeof Map ? D : [], "function" == typeof Set ? G : [], "function" == typeof ArrayBuffer ? v : [], "function" == typeof Uint8Array ? z : [], "function" == typeof DataView ? _ : [], "undefined" != typeof crypto ? w : [], "undefined" != typeof BigInt ? [h, b] : [], "undefined" != typeof DOMException ? S : [], "undefined" != typeof DOMRect ? N : [], "undefined" != typeof DOMPoint ? T : [], "undefined" != typeof DOMQuad ? I : [], "undefined" != typeof DOMMatrix ? j : []),
|
|
7083
7088
|
ie = oe.concat({
|
|
7084
7089
|
checkDataCloneException: {
|
|
7085
7090
|
test: function test(e) {
|