indexeddbshim 11.0.0-beta.0 → 11.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/badges/licenses-badge-dev.svg +1 -1
- package/badges/licenses-badge.svg +1 -1
- package/dist/indexeddbshim-Key.js +4 -4
- package/dist/indexeddbshim-Key.js.map +1 -1
- package/dist/indexeddbshim-Key.min.js +2 -2
- package/dist/indexeddbshim-Key.min.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +71 -19
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +75 -23
- 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 +71 -19
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +75 -23
- 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 +75 -23
- 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 +27 -27
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim -
|
|
1
|
+
/*! indexeddbshim - v11.0.0 - 4/9/2023 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -1391,7 +1391,7 @@
|
|
|
1391
1391
|
'addSQLiteExtension',
|
|
1392
1392
|
// Various types of in-memory databases that can auto-delete
|
|
1393
1393
|
['memoryDatabase', function (val) {
|
|
1394
|
-
if (!/^(?::memory:|file::memory:(\?(?:(
|
|
1394
|
+
if (!/^(?::memory:|file::memory:(\?(?:[\0-"\$-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?(#(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?)?$/.test(val)) {
|
|
1395
1395
|
throw new TypeError('`memoryDatabase` must be the empty string, ":memory:", or a ' + '"file::memory:[?queryString][#hash] URL".');
|
|
1396
1396
|
}
|
|
1397
1397
|
}],
|
|
@@ -1430,7 +1430,7 @@
|
|
|
1430
1430
|
|
|
1431
1431
|
function escapeUnmatchedSurrogates(arg) {
|
|
1432
1432
|
// http://stackoverflow.com/a/6701665/271577
|
|
1433
|
-
return arg.replace(/((?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])))(?!(?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))|(^|(?:
|
|
1433
|
+
return arg.replace(/((?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])))(?!(?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))|(^|(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))((?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g, function (_, unmatchedHighSurrogate, precedingLow, unmatchedLowSurrogate) {
|
|
1434
1434
|
// Could add a corresponding surrogate for compatibility with `node-sqlite3`: http://bugs.python.org/issue12569 and http://stackoverflow.com/a/6701665/271577
|
|
1435
1435
|
// but Chrome having problems
|
|
1436
1436
|
if (unmatchedHighSurrogate) {
|
|
@@ -2414,7 +2414,7 @@
|
|
|
2414
2414
|
// Remove the decimal.
|
|
2415
2415
|
key32 = decimalIndex !== -1 ? key32.replace('.', '') : key32;
|
|
2416
2416
|
// Get the index of the first significant digit.
|
|
2417
|
-
var significantDigitIndex = key32.search(/(?:(?!
|
|
2417
|
+
var significantDigitIndex = key32.search(/(?:[\0-\/1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/);
|
|
2418
2418
|
// Truncate leading zeros.
|
|
2419
2419
|
key32 = key32.slice(significantDigitIndex);
|
|
2420
2420
|
var sign, exponent, mantissa;
|
|
@@ -4702,14 +4702,14 @@
|
|
|
4702
4702
|
!0 === a && (y.push(r), p.push(t));
|
|
4703
4703
|
}
|
|
4704
4704
|
var _,
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
j = (
|
|
4705
|
+
A = isPlainObject(r),
|
|
4706
|
+
w = i(r),
|
|
4707
|
+
j = (A || w) && (!l.plainObjectReplacers.length || s.replaced) || s.iterateIn ? r : replace(t, r, s, u, A || w, null, O);
|
|
4708
4708
|
if (j !== r ? (h = j, g = {
|
|
4709
4709
|
replaced: j
|
|
4710
|
-
}) : "" === t && hasConstructorOf(r, e) ? (u.push([t, r, a, s, void 0, void 0, s.type]), h = r) :
|
|
4710
|
+
}) : "" === t && hasConstructorOf(r, e) ? (u.push([t, r, a, s, void 0, void 0, s.type]), h = r) : w && "object" !== s.iterateIn || "array" === s.iterateIn ? (_ = new Array(r.length), g = {
|
|
4711
4711
|
clone: _
|
|
4712
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !
|
|
4712
|
+
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !A && "object" !== s.iterateIn ? h = r : (_ = {}, s.addLength && (_.length = r.length), g = {
|
|
4713
4713
|
clone: _
|
|
4714
4714
|
}), O && O(), n.iterateNone) return _ || h;
|
|
4715
4715
|
if (!_) return h;
|
|
@@ -4742,7 +4742,7 @@
|
|
|
4742
4742
|
end: !0
|
|
4743
4743
|
});
|
|
4744
4744
|
if (s.iterateUnsetNumeric) {
|
|
4745
|
-
for (var
|
|
4745
|
+
for (var N = r.length, P = function _loop2(n) {
|
|
4746
4746
|
if (!(n in r)) {
|
|
4747
4747
|
var o = t + (t ? "." : "") + n;
|
|
4748
4748
|
_adaptBuiltinStateObjectProperties(s, {
|
|
@@ -4752,7 +4752,7 @@
|
|
|
4752
4752
|
hasConstructorOf(t, e) ? u.push([o, t, Boolean(a), s, _, n, s.type]) : void 0 !== t && (_[n] = t);
|
|
4753
4753
|
});
|
|
4754
4754
|
}
|
|
4755
|
-
},
|
|
4755
|
+
}, E = 0; E < N; E++) P(E);
|
|
4756
4756
|
O && O({
|
|
4757
4757
|
endIterateUnsetNumeric: !0,
|
|
4758
4758
|
end: !0
|
|
@@ -5086,7 +5086,7 @@
|
|
|
5086
5086
|
}
|
|
5087
5087
|
}
|
|
5088
5088
|
};
|
|
5089
|
-
var
|
|
5089
|
+
var A = {
|
|
5090
5090
|
cryptokey: {
|
|
5091
5091
|
test: function test(e) {
|
|
5092
5092
|
return "CryptoKey" === toStringTag(e) && e.extractable;
|
|
@@ -5134,7 +5134,7 @@
|
|
|
5134
5134
|
}
|
|
5135
5135
|
}
|
|
5136
5136
|
},
|
|
5137
|
-
|
|
5137
|
+
w = {
|
|
5138
5138
|
dataview: {
|
|
5139
5139
|
test: function test(e) {
|
|
5140
5140
|
return "DataView" === toStringTag(e);
|
|
@@ -5180,24 +5180,76 @@
|
|
|
5180
5180
|
}
|
|
5181
5181
|
}
|
|
5182
5182
|
},
|
|
5183
|
+
T = {
|
|
5184
|
+
error: {
|
|
5185
|
+
test: function test(e) {
|
|
5186
|
+
return "Error" === toStringTag(e);
|
|
5187
|
+
},
|
|
5188
|
+
replace: function replace(_ref6) {
|
|
5189
|
+
var e = _ref6.name,
|
|
5190
|
+
t = _ref6.message,
|
|
5191
|
+
r = _ref6.cause,
|
|
5192
|
+
n = _ref6.stack,
|
|
5193
|
+
a = _ref6.fileName,
|
|
5194
|
+
o = _ref6.lineNumber,
|
|
5195
|
+
i = _ref6.columnNumber;
|
|
5196
|
+
return {
|
|
5197
|
+
name: e,
|
|
5198
|
+
message: t,
|
|
5199
|
+
cause: r,
|
|
5200
|
+
stack: n,
|
|
5201
|
+
fileName: a,
|
|
5202
|
+
lineNumber: o,
|
|
5203
|
+
columnNumber: i
|
|
5204
|
+
};
|
|
5205
|
+
},
|
|
5206
|
+
revive: function revive(e) {
|
|
5207
|
+
var t = new Error(e.message);
|
|
5208
|
+
return ["name", "cause", "stack", "fileName", "lineNumber", "columnNumber"].forEach(function (r) {
|
|
5209
|
+
t[r] = e[r];
|
|
5210
|
+
}), t;
|
|
5211
|
+
}
|
|
5212
|
+
}
|
|
5213
|
+
},
|
|
5183
5214
|
I = {};
|
|
5184
5215
|
function create$2(e) {
|
|
5185
5216
|
I[e.name.toLowerCase()] = {
|
|
5186
5217
|
test: function test(t) {
|
|
5187
5218
|
return hasConstructorOf(t, e);
|
|
5188
5219
|
},
|
|
5189
|
-
replace: function replace(
|
|
5190
|
-
|
|
5220
|
+
replace: function replace(_ref7) {
|
|
5221
|
+
var e = _ref7.name,
|
|
5222
|
+
t = _ref7.message,
|
|
5223
|
+
r = _ref7.cause,
|
|
5224
|
+
n = _ref7.stack,
|
|
5225
|
+
a = _ref7.fileName,
|
|
5226
|
+
o = _ref7.lineNumber,
|
|
5227
|
+
i = _ref7.columnNumber,
|
|
5228
|
+
c = _ref7.errors;
|
|
5229
|
+
return {
|
|
5230
|
+
name: e,
|
|
5231
|
+
message: t,
|
|
5232
|
+
cause: r,
|
|
5233
|
+
stack: n,
|
|
5234
|
+
fileName: a,
|
|
5235
|
+
lineNumber: o,
|
|
5236
|
+
columnNumber: i,
|
|
5237
|
+
errors: c
|
|
5238
|
+
};
|
|
5191
5239
|
},
|
|
5192
5240
|
revive: function revive(t) {
|
|
5193
|
-
|
|
5241
|
+
var r = "undefined" != typeof AggregateError && e === AggregateError,
|
|
5242
|
+
n = r ? new e(t.errors, t.message) : new e(t.message);
|
|
5243
|
+
return ["name", "cause", "stack", "fileName", "lineNumber", "columnNumber"].forEach(function (e) {
|
|
5244
|
+
n[e] = t[e];
|
|
5245
|
+
}), r && (n.errors = t.errors), n;
|
|
5194
5246
|
}
|
|
5195
5247
|
};
|
|
5196
5248
|
}
|
|
5197
5249
|
[TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError].forEach(function (e) {
|
|
5198
5250
|
return create$2(e);
|
|
5199
|
-
}), "function" == typeof InternalError && create$2(InternalError);
|
|
5200
|
-
var
|
|
5251
|
+
}), "undefined" != typeof AggregateError && create$2(AggregateError), "function" == typeof InternalError && create$2(InternalError);
|
|
5252
|
+
var N = {
|
|
5201
5253
|
file: {
|
|
5202
5254
|
test: function test(e) {
|
|
5203
5255
|
return "File" === toStringTag(e);
|
|
@@ -5239,8 +5291,8 @@
|
|
|
5239
5291
|
}
|
|
5240
5292
|
}
|
|
5241
5293
|
},
|
|
5242
|
-
|
|
5243
|
-
file:
|
|
5294
|
+
P = {
|
|
5295
|
+
file: N.file,
|
|
5244
5296
|
filelist: {
|
|
5245
5297
|
test: function test(e) {
|
|
5246
5298
|
return "FileList" === toStringTag(e);
|
|
@@ -5273,7 +5325,7 @@
|
|
|
5273
5325
|
}
|
|
5274
5326
|
}
|
|
5275
5327
|
},
|
|
5276
|
-
|
|
5328
|
+
E = {
|
|
5277
5329
|
imagebitmap: {
|
|
5278
5330
|
test: function test(e) {
|
|
5279
5331
|
return "ImageBitmap" === toStringTag(e) || e && e.dataset && "ImageBitmap" === e.dataset.toStringTag;
|
|
@@ -5300,7 +5352,7 @@
|
|
|
5300
5352
|
}
|
|
5301
5353
|
}
|
|
5302
5354
|
},
|
|
5303
|
-
|
|
5355
|
+
C = {
|
|
5304
5356
|
imagedata: {
|
|
5305
5357
|
test: function test(e) {
|
|
5306
5358
|
return "ImageData" === toStringTag(e);
|
|
@@ -5576,7 +5628,7 @@
|
|
|
5576
5628
|
}
|
|
5577
5629
|
}],
|
|
5578
5630
|
X = [K, x, L],
|
|
5579
|
-
te = [G, W, H, D, X, j, M, E,
|
|
5631
|
+
te = [G, W, H, D, X, j, M, C, E, N, P, O, T, I].concat("function" == typeof Map ? U : [], "function" == typeof Set ? J : [], "function" == typeof ArrayBuffer ? h : [], "function" == typeof Uint8Array ? q : [], "function" == typeof DataView ? w : [], "undefined" != typeof Intl ? B : [], "undefined" != typeof crypto ? A : [], "undefined" != typeof BigInt ? [m, g] : []);
|
|
5580
5632
|
var re = te.concat({
|
|
5581
5633
|
checkDataCloneException: {
|
|
5582
5634
|
test: function test(e) {
|