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 (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -5875,8 +5875,8 @@
|
|
|
5875
5875
|
p = [],
|
|
5876
5876
|
d = [],
|
|
5877
5877
|
v = !("cyclic" in u) || u.cyclic,
|
|
5878
|
-
|
|
5879
|
-
|
|
5878
|
+
b = u.encapsulateObserver,
|
|
5879
|
+
h = function finish(e) {
|
|
5880
5880
|
var t = Object.values(f);
|
|
5881
5881
|
if (u.iterateNone) return t.length ? t[0] : getJSONType(e);
|
|
5882
5882
|
if (t.length) {
|
|
@@ -5901,7 +5901,7 @@
|
|
|
5901
5901
|
});
|
|
5902
5902
|
return !u.returnTypeNames && e;
|
|
5903
5903
|
},
|
|
5904
|
-
|
|
5904
|
+
m = _async(function (t, r) {
|
|
5905
5905
|
return _await(Promise.all(r.map(function (e) {
|
|
5906
5906
|
return e[1].p;
|
|
5907
5907
|
})), function (n) {
|
|
@@ -5924,11 +5924,11 @@
|
|
|
5924
5924
|
}(function () {
|
|
5925
5925
|
if (s && v) return _await(d.p, function (e) {
|
|
5926
5926
|
f[y] = e;
|
|
5927
|
-
var r =
|
|
5927
|
+
var r = m(t, o);
|
|
5928
5928
|
return a = !0, r;
|
|
5929
5929
|
});
|
|
5930
5930
|
}, function (e) {
|
|
5931
|
-
return a ? e : (s ? f[y] = d : t = v ? d.p : d,
|
|
5931
|
+
return a ? e : (s ? f[y] = d : t = v ? d.p : d, m(t, o));
|
|
5932
5932
|
});
|
|
5933
5933
|
}))), function () {
|
|
5934
5934
|
return t;
|
|
@@ -5946,13 +5946,13 @@
|
|
|
5946
5946
|
});
|
|
5947
5947
|
},
|
|
5948
5948
|
O = function _encapsulate(t, r, i, c, l, d, v) {
|
|
5949
|
-
var
|
|
5950
|
-
|
|
5949
|
+
var h,
|
|
5950
|
+
m = {},
|
|
5951
5951
|
O = _typeof(r),
|
|
5952
|
-
_ =
|
|
5952
|
+
_ = b ? function (n) {
|
|
5953
5953
|
var a,
|
|
5954
5954
|
o = null !== (a = null != v ? v : c.type) && void 0 !== a ? a : getJSONType(r);
|
|
5955
|
-
|
|
5955
|
+
b(Object.assign(null != n ? n : m, {
|
|
5956
5956
|
keypath: t,
|
|
5957
5957
|
value: r,
|
|
5958
5958
|
cyclic: i,
|
|
@@ -5964,9 +5964,9 @@
|
|
|
5964
5964
|
type: o
|
|
5965
5965
|
}));
|
|
5966
5966
|
} : null;
|
|
5967
|
-
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (
|
|
5968
|
-
replaced:
|
|
5969
|
-
}) :
|
|
5967
|
+
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 = {
|
|
5968
|
+
replaced: h
|
|
5969
|
+
}) : h = r, _ && _(), h;
|
|
5970
5970
|
if (null === r) return _ && _(), r;
|
|
5971
5971
|
if (i && !c.iterateIn && !c.iterateUnsetNumeric && r && "object" === _typeof(r)) {
|
|
5972
5972
|
var A = y.indexOf(r);
|
|
@@ -5980,14 +5980,14 @@
|
|
|
5980
5980
|
T = isPlainObject(r),
|
|
5981
5981
|
I = o(r),
|
|
5982
5982
|
N = (T || I) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : w(t, r, c, l, T || I, null, _);
|
|
5983
|
-
if (N !== r ? (
|
|
5983
|
+
if (N !== r ? (h = N, m = {
|
|
5984
5984
|
replaced: N
|
|
5985
|
-
}) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]),
|
|
5985
|
+
}) : "" === 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 = {
|
|
5986
5986
|
clone: S
|
|
5987
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ?
|
|
5987
|
+
}) : (["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 = {
|
|
5988
5988
|
clone: S
|
|
5989
|
-
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j :
|
|
5990
|
-
if (!S) return
|
|
5989
|
+
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : h;
|
|
5990
|
+
if (!S) return h;
|
|
5991
5991
|
if (c.iterateIn) {
|
|
5992
5992
|
var P = function _loop(n) {
|
|
5993
5993
|
var o = {
|
|
@@ -6053,12 +6053,12 @@
|
|
|
6053
6053
|
i && i({
|
|
6054
6054
|
replacing: !0
|
|
6055
6055
|
});
|
|
6056
|
-
var
|
|
6056
|
+
var b = void 0;
|
|
6057
6057
|
if (l || !y.replaceAsync) {
|
|
6058
6058
|
if (void 0 === y.replace) throw new TypeError("Missing replacer");
|
|
6059
|
-
|
|
6060
|
-
} else
|
|
6061
|
-
return O(e,
|
|
6059
|
+
b = y.replace(t, r);
|
|
6060
|
+
} else b = y.replaceAsync(t, r);
|
|
6061
|
+
return O(e, b, v && "readonly", r, n, o, p);
|
|
6062
6062
|
}
|
|
6063
6063
|
}
|
|
6064
6064
|
return t;
|
|
@@ -6066,9 +6066,9 @@
|
|
|
6066
6066
|
_ = O("", t, v, null != r ? r : {}, d);
|
|
6067
6067
|
if (d.length) return l && u.throwOnBadSyncType ? function () {
|
|
6068
6068
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6069
|
-
}() : Promise.resolve(
|
|
6069
|
+
}() : Promise.resolve(m(_, d)).then(h);
|
|
6070
6070
|
if (!l && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6071
|
-
return u.stringification && l ? [
|
|
6071
|
+
return u.stringification && l ? [h(_)] : l ? h(_) : Promise.resolve(h(_));
|
|
6072
6072
|
}
|
|
6073
6073
|
}, {
|
|
6074
6074
|
key: "encapsulateSync",
|
|
@@ -6123,7 +6123,7 @@
|
|
|
6123
6123
|
return hasConstructorOf(e, s) ? void 0 : e;
|
|
6124
6124
|
}
|
|
6125
6125
|
var v,
|
|
6126
|
-
|
|
6126
|
+
b = function revivePlainObjects() {
|
|
6127
6127
|
var r = [];
|
|
6128
6128
|
if (!u) throw new Error("Found bad `types`");
|
|
6129
6129
|
if (Object.entries(u).forEach(function (e) {
|
|
@@ -6155,29 +6155,29 @@
|
|
|
6155
6155
|
c === i && (t = c);
|
|
6156
6156
|
}, void 0);
|
|
6157
6157
|
}();
|
|
6158
|
-
return hasConstructorOf(
|
|
6158
|
+
return hasConstructorOf(b, e) ? v = b.then(function () {
|
|
6159
6159
|
return t;
|
|
6160
6160
|
}) : (v = function _revive(t, r, a, i, c) {
|
|
6161
6161
|
if (!y || "$types" !== t) {
|
|
6162
6162
|
var f = u[t],
|
|
6163
6163
|
v = o(r);
|
|
6164
6164
|
if (v || isPlainObject(r)) {
|
|
6165
|
-
var
|
|
6165
|
+
var b = v ? new Array(r.length) : {};
|
|
6166
6166
|
for (n(r).forEach(function (n) {
|
|
6167
|
-
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a :
|
|
6167
|
+
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a : b, b, n),
|
|
6168
6168
|
i = function set(e) {
|
|
6169
|
-
return hasConstructorOf(e, s) ?
|
|
6169
|
+
return hasConstructorOf(e, s) ? b[n] = void 0 : void 0 !== e && (b[n] = e), e;
|
|
6170
6170
|
};
|
|
6171
6171
|
hasConstructorOf(o, e) ? d.push(o.then(function (e) {
|
|
6172
6172
|
return i(e);
|
|
6173
6173
|
})) : i(o);
|
|
6174
|
-
}), r =
|
|
6175
|
-
var
|
|
6176
|
-
|
|
6177
|
-
g =
|
|
6178
|
-
O =
|
|
6179
|
-
w =
|
|
6180
|
-
_ = getByKeyPath(
|
|
6174
|
+
}), r = b; l.length;) {
|
|
6175
|
+
var h = _slicedToArray(l[0], 4),
|
|
6176
|
+
m = h[0],
|
|
6177
|
+
g = h[1],
|
|
6178
|
+
O = h[2],
|
|
6179
|
+
w = h[3],
|
|
6180
|
+
_ = getByKeyPath(m, g);
|
|
6181
6181
|
if (void 0 === _) break;
|
|
6182
6182
|
O[w] = _, l.splice(0, 1);
|
|
6183
6183
|
}
|
|
@@ -6331,7 +6331,7 @@
|
|
|
6331
6331
|
}
|
|
6332
6332
|
}
|
|
6333
6333
|
},
|
|
6334
|
-
|
|
6334
|
+
b = {
|
|
6335
6335
|
bigintObject: {
|
|
6336
6336
|
test: function test(e) {
|
|
6337
6337
|
return "object" == _typeof$2(e) && hasConstructorOf(e, BigInt);
|
|
@@ -6342,7 +6342,7 @@
|
|
|
6342
6342
|
}
|
|
6343
6343
|
}
|
|
6344
6344
|
},
|
|
6345
|
-
|
|
6345
|
+
h = {
|
|
6346
6346
|
bigint: {
|
|
6347
6347
|
test: function test(e) {
|
|
6348
6348
|
return "bigint" == typeof e;
|
|
@@ -6353,12 +6353,17 @@
|
|
|
6353
6353
|
}
|
|
6354
6354
|
}
|
|
6355
6355
|
};
|
|
6356
|
+
function arraybuffer2string(e) {
|
|
6357
|
+
return new Uint8Array(e).reduce(function (e, t) {
|
|
6358
|
+
return e + String.fromCodePoint(t);
|
|
6359
|
+
}, "");
|
|
6360
|
+
}
|
|
6356
6361
|
function string2arraybuffer(e) {
|
|
6357
6362
|
var t = new Uint8Array(e.length);
|
|
6358
6363
|
for (var _r = 0; _r < e.length; _r++) t[_r] = e.charCodeAt(_r);
|
|
6359
6364
|
return t.buffer;
|
|
6360
6365
|
}
|
|
6361
|
-
var
|
|
6366
|
+
var m = {
|
|
6362
6367
|
blob: {
|
|
6363
6368
|
test: function test(e) {
|
|
6364
6369
|
return "Blob" === toStringTag(e);
|
|
@@ -6384,11 +6389,11 @@
|
|
|
6384
6389
|
n.addEventListener("load", function () {
|
|
6385
6390
|
e({
|
|
6386
6391
|
type: t.type,
|
|
6387
|
-
stringContents: n.result
|
|
6392
|
+
stringContents: arraybuffer2string(n.result)
|
|
6388
6393
|
});
|
|
6389
6394
|
}), n.addEventListener("error", function () {
|
|
6390
6395
|
r(n.error);
|
|
6391
|
-
}), n.
|
|
6396
|
+
}), n.readAsArrayBuffer(t);
|
|
6392
6397
|
});
|
|
6393
6398
|
}
|
|
6394
6399
|
}
|
|
@@ -6713,13 +6718,13 @@
|
|
|
6713
6718
|
n.addEventListener("load", function () {
|
|
6714
6719
|
e({
|
|
6715
6720
|
type: t.type,
|
|
6716
|
-
stringContents: n.result,
|
|
6721
|
+
stringContents: arraybuffer2string(n.result),
|
|
6717
6722
|
name: t.name,
|
|
6718
6723
|
lastModified: t.lastModified
|
|
6719
6724
|
});
|
|
6720
6725
|
}), n.addEventListener("error", function () {
|
|
6721
6726
|
r(n.error);
|
|
6722
|
-
}), n.
|
|
6727
|
+
}), n.readAsArrayBuffer(t);
|
|
6723
6728
|
});
|
|
6724
6729
|
}
|
|
6725
6730
|
}
|
|
@@ -7074,7 +7079,7 @@
|
|
|
7074
7079
|
}
|
|
7075
7080
|
}],
|
|
7076
7081
|
ee = [K, U, F, $],
|
|
7077
|
-
oe = [X, Q, Z, V, ee, A, q, k, B, E, C,
|
|
7082
|
+
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 : []),
|
|
7078
7083
|
ie = oe.concat({
|
|
7079
7084
|
checkDataCloneException: {
|
|
7080
7085
|
test: function test(e) {
|