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
package/dist/indexeddbshim.js
CHANGED
|
@@ -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) :
|
|
@@ -5868,8 +5868,8 @@
|
|
|
5868
5868
|
p = [],
|
|
5869
5869
|
d = [],
|
|
5870
5870
|
v = !("cyclic" in u) || u.cyclic,
|
|
5871
|
-
|
|
5872
|
-
|
|
5871
|
+
b = u.encapsulateObserver,
|
|
5872
|
+
h = function finish(e) {
|
|
5873
5873
|
var t = Object.values(f);
|
|
5874
5874
|
if (u.iterateNone) return t.length ? t[0] : getJSONType(e);
|
|
5875
5875
|
if (t.length) {
|
|
@@ -5894,7 +5894,7 @@
|
|
|
5894
5894
|
});
|
|
5895
5895
|
return !u.returnTypeNames && e;
|
|
5896
5896
|
},
|
|
5897
|
-
|
|
5897
|
+
m = _async(function (t, r) {
|
|
5898
5898
|
return _await(Promise.all(r.map(function (e) {
|
|
5899
5899
|
return e[1].p;
|
|
5900
5900
|
})), function (n) {
|
|
@@ -5917,11 +5917,11 @@
|
|
|
5917
5917
|
}(function () {
|
|
5918
5918
|
if (s && v) return _await(d.p, function (e) {
|
|
5919
5919
|
f[y] = e;
|
|
5920
|
-
var r =
|
|
5920
|
+
var r = m(t, o);
|
|
5921
5921
|
return a = !0, r;
|
|
5922
5922
|
});
|
|
5923
5923
|
}, function (e) {
|
|
5924
|
-
return a ? e : (s ? f[y] = d : t = v ? d.p : d,
|
|
5924
|
+
return a ? e : (s ? f[y] = d : t = v ? d.p : d, m(t, o));
|
|
5925
5925
|
});
|
|
5926
5926
|
}))), function () {
|
|
5927
5927
|
return t;
|
|
@@ -5939,13 +5939,13 @@
|
|
|
5939
5939
|
});
|
|
5940
5940
|
},
|
|
5941
5941
|
O = function _encapsulate(t, r, i, c, l, d, v) {
|
|
5942
|
-
var
|
|
5943
|
-
|
|
5942
|
+
var h,
|
|
5943
|
+
m = {},
|
|
5944
5944
|
O = _typeof(r),
|
|
5945
|
-
_ =
|
|
5945
|
+
_ = b ? function (n) {
|
|
5946
5946
|
var a,
|
|
5947
5947
|
o = null !== (a = null != v ? v : c.type) && void 0 !== a ? a : getJSONType(r);
|
|
5948
|
-
|
|
5948
|
+
b(Object.assign(null != n ? n : m, {
|
|
5949
5949
|
keypath: t,
|
|
5950
5950
|
value: r,
|
|
5951
5951
|
cyclic: i,
|
|
@@ -5957,9 +5957,9 @@
|
|
|
5957
5957
|
type: o
|
|
5958
5958
|
}));
|
|
5959
5959
|
} : null;
|
|
5960
|
-
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (
|
|
5961
|
-
replaced:
|
|
5962
|
-
}) :
|
|
5960
|
+
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 = {
|
|
5961
|
+
replaced: h
|
|
5962
|
+
}) : h = r, _ && _(), h;
|
|
5963
5963
|
if (null === r) return _ && _(), r;
|
|
5964
5964
|
if (i && !c.iterateIn && !c.iterateUnsetNumeric && r && "object" === _typeof(r)) {
|
|
5965
5965
|
var A = y.indexOf(r);
|
|
@@ -5973,14 +5973,14 @@
|
|
|
5973
5973
|
T = isPlainObject(r),
|
|
5974
5974
|
I = o(r),
|
|
5975
5975
|
N = (T || I) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : w(t, r, c, l, T || I, null, _);
|
|
5976
|
-
if (N !== r ? (
|
|
5976
|
+
if (N !== r ? (h = N, m = {
|
|
5977
5977
|
replaced: N
|
|
5978
|
-
}) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]),
|
|
5978
|
+
}) : "" === 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 = {
|
|
5979
5979
|
clone: S
|
|
5980
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ?
|
|
5980
|
+
}) : (["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 = {
|
|
5981
5981
|
clone: S
|
|
5982
|
-
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j :
|
|
5983
|
-
if (!S) return
|
|
5982
|
+
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : h;
|
|
5983
|
+
if (!S) return h;
|
|
5984
5984
|
if (c.iterateIn) {
|
|
5985
5985
|
var P = function _loop(n) {
|
|
5986
5986
|
var o = {
|
|
@@ -6046,12 +6046,12 @@
|
|
|
6046
6046
|
i && i({
|
|
6047
6047
|
replacing: !0
|
|
6048
6048
|
});
|
|
6049
|
-
var
|
|
6049
|
+
var b = void 0;
|
|
6050
6050
|
if (l || !y.replaceAsync) {
|
|
6051
6051
|
if (void 0 === y.replace) throw new TypeError("Missing replacer");
|
|
6052
|
-
|
|
6053
|
-
} else
|
|
6054
|
-
return O(e,
|
|
6052
|
+
b = y.replace(t, r);
|
|
6053
|
+
} else b = y.replaceAsync(t, r);
|
|
6054
|
+
return O(e, b, v && "readonly", r, n, o, p);
|
|
6055
6055
|
}
|
|
6056
6056
|
}
|
|
6057
6057
|
return t;
|
|
@@ -6059,9 +6059,9 @@
|
|
|
6059
6059
|
_ = O("", t, v, null != r ? r : {}, d);
|
|
6060
6060
|
if (d.length) return l && u.throwOnBadSyncType ? function () {
|
|
6061
6061
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6062
|
-
}() : Promise.resolve(
|
|
6062
|
+
}() : Promise.resolve(m(_, d)).then(h);
|
|
6063
6063
|
if (!l && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6064
|
-
return u.stringification && l ? [
|
|
6064
|
+
return u.stringification && l ? [h(_)] : l ? h(_) : Promise.resolve(h(_));
|
|
6065
6065
|
}
|
|
6066
6066
|
}, {
|
|
6067
6067
|
key: "encapsulateSync",
|
|
@@ -6116,7 +6116,7 @@
|
|
|
6116
6116
|
return hasConstructorOf(e, s) ? void 0 : e;
|
|
6117
6117
|
}
|
|
6118
6118
|
var v,
|
|
6119
|
-
|
|
6119
|
+
b = function revivePlainObjects() {
|
|
6120
6120
|
var r = [];
|
|
6121
6121
|
if (!u) throw new Error("Found bad `types`");
|
|
6122
6122
|
if (Object.entries(u).forEach(function (e) {
|
|
@@ -6148,29 +6148,29 @@
|
|
|
6148
6148
|
c === i && (t = c);
|
|
6149
6149
|
}, void 0);
|
|
6150
6150
|
}();
|
|
6151
|
-
return hasConstructorOf(
|
|
6151
|
+
return hasConstructorOf(b, e) ? v = b.then(function () {
|
|
6152
6152
|
return t;
|
|
6153
6153
|
}) : (v = function _revive(t, r, a, i, c) {
|
|
6154
6154
|
if (!y || "$types" !== t) {
|
|
6155
6155
|
var f = u[t],
|
|
6156
6156
|
v = o(r);
|
|
6157
6157
|
if (v || isPlainObject(r)) {
|
|
6158
|
-
var
|
|
6158
|
+
var b = v ? new Array(r.length) : {};
|
|
6159
6159
|
for (n(r).forEach(function (n) {
|
|
6160
|
-
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a :
|
|
6160
|
+
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a : b, b, n),
|
|
6161
6161
|
i = function set(e) {
|
|
6162
|
-
return hasConstructorOf(e, s) ?
|
|
6162
|
+
return hasConstructorOf(e, s) ? b[n] = void 0 : void 0 !== e && (b[n] = e), e;
|
|
6163
6163
|
};
|
|
6164
6164
|
hasConstructorOf(o, e) ? d.push(o.then(function (e) {
|
|
6165
6165
|
return i(e);
|
|
6166
6166
|
})) : i(o);
|
|
6167
|
-
}), r =
|
|
6168
|
-
var
|
|
6169
|
-
|
|
6170
|
-
g =
|
|
6171
|
-
O =
|
|
6172
|
-
w =
|
|
6173
|
-
_ = getByKeyPath(
|
|
6167
|
+
}), r = b; l.length;) {
|
|
6168
|
+
var h = _slicedToArray(l[0], 4),
|
|
6169
|
+
m = h[0],
|
|
6170
|
+
g = h[1],
|
|
6171
|
+
O = h[2],
|
|
6172
|
+
w = h[3],
|
|
6173
|
+
_ = getByKeyPath(m, g);
|
|
6174
6174
|
if (void 0 === _) break;
|
|
6175
6175
|
O[w] = _, l.splice(0, 1);
|
|
6176
6176
|
}
|
|
@@ -6324,7 +6324,7 @@
|
|
|
6324
6324
|
}
|
|
6325
6325
|
}
|
|
6326
6326
|
},
|
|
6327
|
-
|
|
6327
|
+
b = {
|
|
6328
6328
|
bigintObject: {
|
|
6329
6329
|
test: function test(e) {
|
|
6330
6330
|
return "object" == _typeof$2(e) && hasConstructorOf(e, BigInt);
|
|
@@ -6335,7 +6335,7 @@
|
|
|
6335
6335
|
}
|
|
6336
6336
|
}
|
|
6337
6337
|
},
|
|
6338
|
-
|
|
6338
|
+
h = {
|
|
6339
6339
|
bigint: {
|
|
6340
6340
|
test: function test(e) {
|
|
6341
6341
|
return "bigint" == typeof e;
|
|
@@ -6346,12 +6346,17 @@
|
|
|
6346
6346
|
}
|
|
6347
6347
|
}
|
|
6348
6348
|
};
|
|
6349
|
+
function arraybuffer2string(e) {
|
|
6350
|
+
return new Uint8Array(e).reduce(function (e, t) {
|
|
6351
|
+
return e + String.fromCodePoint(t);
|
|
6352
|
+
}, "");
|
|
6353
|
+
}
|
|
6349
6354
|
function string2arraybuffer(e) {
|
|
6350
6355
|
var t = new Uint8Array(e.length);
|
|
6351
6356
|
for (var _r = 0; _r < e.length; _r++) t[_r] = e.charCodeAt(_r);
|
|
6352
6357
|
return t.buffer;
|
|
6353
6358
|
}
|
|
6354
|
-
var
|
|
6359
|
+
var m = {
|
|
6355
6360
|
blob: {
|
|
6356
6361
|
test: function test(e) {
|
|
6357
6362
|
return "Blob" === toStringTag(e);
|
|
@@ -6377,11 +6382,11 @@
|
|
|
6377
6382
|
n.addEventListener("load", function () {
|
|
6378
6383
|
e({
|
|
6379
6384
|
type: t.type,
|
|
6380
|
-
stringContents: n.result
|
|
6385
|
+
stringContents: arraybuffer2string(n.result)
|
|
6381
6386
|
});
|
|
6382
6387
|
}), n.addEventListener("error", function () {
|
|
6383
6388
|
r(n.error);
|
|
6384
|
-
}), n.
|
|
6389
|
+
}), n.readAsArrayBuffer(t);
|
|
6385
6390
|
});
|
|
6386
6391
|
}
|
|
6387
6392
|
}
|
|
@@ -6706,13 +6711,13 @@
|
|
|
6706
6711
|
n.addEventListener("load", function () {
|
|
6707
6712
|
e({
|
|
6708
6713
|
type: t.type,
|
|
6709
|
-
stringContents: n.result,
|
|
6714
|
+
stringContents: arraybuffer2string(n.result),
|
|
6710
6715
|
name: t.name,
|
|
6711
6716
|
lastModified: t.lastModified
|
|
6712
6717
|
});
|
|
6713
6718
|
}), n.addEventListener("error", function () {
|
|
6714
6719
|
r(n.error);
|
|
6715
|
-
}), n.
|
|
6720
|
+
}), n.readAsArrayBuffer(t);
|
|
6716
6721
|
});
|
|
6717
6722
|
}
|
|
6718
6723
|
}
|
|
@@ -7067,7 +7072,7 @@
|
|
|
7067
7072
|
}
|
|
7068
7073
|
}],
|
|
7069
7074
|
ee = [K, U, F, $],
|
|
7070
|
-
oe = [X, Q, Z, V, ee, A, q, k, B, E, C,
|
|
7075
|
+
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 : []),
|
|
7071
7076
|
ie = oe.concat({
|
|
7072
7077
|
checkDataCloneException: {
|
|
7073
7078
|
test: function test(e) {
|