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
package/dist/indexeddbshim.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim -
|
|
1
|
+
/*! indexeddbshim - v11.0.0 - 4/9/2023 */
|
|
2
2
|
|
|
3
3
|
(function (factory) {
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -1384,7 +1384,7 @@
|
|
|
1384
1384
|
'addSQLiteExtension',
|
|
1385
1385
|
// Various types of in-memory databases that can auto-delete
|
|
1386
1386
|
['memoryDatabase', function (val) {
|
|
1387
|
-
if (!/^(?::memory:|file::memory:(\?(?:(
|
|
1387
|
+
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)) {
|
|
1388
1388
|
throw new TypeError('`memoryDatabase` must be the empty string, ":memory:", or a ' + '"file::memory:[?queryString][#hash] URL".');
|
|
1389
1389
|
}
|
|
1390
1390
|
}],
|
|
@@ -1423,7 +1423,7 @@
|
|
|
1423
1423
|
|
|
1424
1424
|
function escapeUnmatchedSurrogates(arg) {
|
|
1425
1425
|
// http://stackoverflow.com/a/6701665/271577
|
|
1426
|
-
return arg.replace(/((?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])))(?!(?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))|(^|(?:
|
|
1426
|
+
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) {
|
|
1427
1427
|
// Could add a corresponding surrogate for compatibility with `node-sqlite3`: http://bugs.python.org/issue12569 and http://stackoverflow.com/a/6701665/271577
|
|
1428
1428
|
// but Chrome having problems
|
|
1429
1429
|
if (unmatchedHighSurrogate) {
|
|
@@ -2407,7 +2407,7 @@
|
|
|
2407
2407
|
// Remove the decimal.
|
|
2408
2408
|
key32 = decimalIndex !== -1 ? key32.replace('.', '') : key32;
|
|
2409
2409
|
// Get the index of the first significant digit.
|
|
2410
|
-
var significantDigitIndex = key32.search(/(?:(?!
|
|
2410
|
+
var significantDigitIndex = key32.search(/(?:[\0-\/1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/);
|
|
2411
2411
|
// Truncate leading zeros.
|
|
2412
2412
|
key32 = key32.slice(significantDigitIndex);
|
|
2413
2413
|
var sign, exponent, mantissa;
|
|
@@ -4695,14 +4695,14 @@
|
|
|
4695
4695
|
!0 === a && (y.push(r), p.push(t));
|
|
4696
4696
|
}
|
|
4697
4697
|
var _,
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
j = (
|
|
4698
|
+
A = isPlainObject(r),
|
|
4699
|
+
w = i(r),
|
|
4700
|
+
j = (A || w) && (!l.plainObjectReplacers.length || s.replaced) || s.iterateIn ? r : replace(t, r, s, u, A || w, null, O);
|
|
4701
4701
|
if (j !== r ? (h = j, g = {
|
|
4702
4702
|
replaced: j
|
|
4703
|
-
}) : "" === t && hasConstructorOf(r, e) ? (u.push([t, r, a, s, void 0, void 0, s.type]), h = r) :
|
|
4703
|
+
}) : "" === 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 = {
|
|
4704
4704
|
clone: _
|
|
4705
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !
|
|
4705
|
+
}) : (["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 = {
|
|
4706
4706
|
clone: _
|
|
4707
4707
|
}), O && O(), n.iterateNone) return _ || h;
|
|
4708
4708
|
if (!_) return h;
|
|
@@ -4735,7 +4735,7 @@
|
|
|
4735
4735
|
end: !0
|
|
4736
4736
|
});
|
|
4737
4737
|
if (s.iterateUnsetNumeric) {
|
|
4738
|
-
for (var
|
|
4738
|
+
for (var N = r.length, P = function _loop2(n) {
|
|
4739
4739
|
if (!(n in r)) {
|
|
4740
4740
|
var o = t + (t ? "." : "") + n;
|
|
4741
4741
|
_adaptBuiltinStateObjectProperties(s, {
|
|
@@ -4745,7 +4745,7 @@
|
|
|
4745
4745
|
hasConstructorOf(t, e) ? u.push([o, t, Boolean(a), s, _, n, s.type]) : void 0 !== t && (_[n] = t);
|
|
4746
4746
|
});
|
|
4747
4747
|
}
|
|
4748
|
-
},
|
|
4748
|
+
}, E = 0; E < N; E++) P(E);
|
|
4749
4749
|
O && O({
|
|
4750
4750
|
endIterateUnsetNumeric: !0,
|
|
4751
4751
|
end: !0
|
|
@@ -5079,7 +5079,7 @@
|
|
|
5079
5079
|
}
|
|
5080
5080
|
}
|
|
5081
5081
|
};
|
|
5082
|
-
var
|
|
5082
|
+
var A = {
|
|
5083
5083
|
cryptokey: {
|
|
5084
5084
|
test: function test(e) {
|
|
5085
5085
|
return "CryptoKey" === toStringTag(e) && e.extractable;
|
|
@@ -5127,7 +5127,7 @@
|
|
|
5127
5127
|
}
|
|
5128
5128
|
}
|
|
5129
5129
|
},
|
|
5130
|
-
|
|
5130
|
+
w = {
|
|
5131
5131
|
dataview: {
|
|
5132
5132
|
test: function test(e) {
|
|
5133
5133
|
return "DataView" === toStringTag(e);
|
|
@@ -5173,24 +5173,76 @@
|
|
|
5173
5173
|
}
|
|
5174
5174
|
}
|
|
5175
5175
|
},
|
|
5176
|
+
T = {
|
|
5177
|
+
error: {
|
|
5178
|
+
test: function test(e) {
|
|
5179
|
+
return "Error" === toStringTag(e);
|
|
5180
|
+
},
|
|
5181
|
+
replace: function replace(_ref6) {
|
|
5182
|
+
var e = _ref6.name,
|
|
5183
|
+
t = _ref6.message,
|
|
5184
|
+
r = _ref6.cause,
|
|
5185
|
+
n = _ref6.stack,
|
|
5186
|
+
a = _ref6.fileName,
|
|
5187
|
+
o = _ref6.lineNumber,
|
|
5188
|
+
i = _ref6.columnNumber;
|
|
5189
|
+
return {
|
|
5190
|
+
name: e,
|
|
5191
|
+
message: t,
|
|
5192
|
+
cause: r,
|
|
5193
|
+
stack: n,
|
|
5194
|
+
fileName: a,
|
|
5195
|
+
lineNumber: o,
|
|
5196
|
+
columnNumber: i
|
|
5197
|
+
};
|
|
5198
|
+
},
|
|
5199
|
+
revive: function revive(e) {
|
|
5200
|
+
var t = new Error(e.message);
|
|
5201
|
+
return ["name", "cause", "stack", "fileName", "lineNumber", "columnNumber"].forEach(function (r) {
|
|
5202
|
+
t[r] = e[r];
|
|
5203
|
+
}), t;
|
|
5204
|
+
}
|
|
5205
|
+
}
|
|
5206
|
+
},
|
|
5176
5207
|
I = {};
|
|
5177
5208
|
function create$2(e) {
|
|
5178
5209
|
I[e.name.toLowerCase()] = {
|
|
5179
5210
|
test: function test(t) {
|
|
5180
5211
|
return hasConstructorOf(t, e);
|
|
5181
5212
|
},
|
|
5182
|
-
replace: function replace(
|
|
5183
|
-
|
|
5213
|
+
replace: function replace(_ref7) {
|
|
5214
|
+
var e = _ref7.name,
|
|
5215
|
+
t = _ref7.message,
|
|
5216
|
+
r = _ref7.cause,
|
|
5217
|
+
n = _ref7.stack,
|
|
5218
|
+
a = _ref7.fileName,
|
|
5219
|
+
o = _ref7.lineNumber,
|
|
5220
|
+
i = _ref7.columnNumber,
|
|
5221
|
+
c = _ref7.errors;
|
|
5222
|
+
return {
|
|
5223
|
+
name: e,
|
|
5224
|
+
message: t,
|
|
5225
|
+
cause: r,
|
|
5226
|
+
stack: n,
|
|
5227
|
+
fileName: a,
|
|
5228
|
+
lineNumber: o,
|
|
5229
|
+
columnNumber: i,
|
|
5230
|
+
errors: c
|
|
5231
|
+
};
|
|
5184
5232
|
},
|
|
5185
5233
|
revive: function revive(t) {
|
|
5186
|
-
|
|
5234
|
+
var r = "undefined" != typeof AggregateError && e === AggregateError,
|
|
5235
|
+
n = r ? new e(t.errors, t.message) : new e(t.message);
|
|
5236
|
+
return ["name", "cause", "stack", "fileName", "lineNumber", "columnNumber"].forEach(function (e) {
|
|
5237
|
+
n[e] = t[e];
|
|
5238
|
+
}), r && (n.errors = t.errors), n;
|
|
5187
5239
|
}
|
|
5188
5240
|
};
|
|
5189
5241
|
}
|
|
5190
5242
|
[TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError].forEach(function (e) {
|
|
5191
5243
|
return create$2(e);
|
|
5192
|
-
}), "function" == typeof InternalError && create$2(InternalError);
|
|
5193
|
-
var
|
|
5244
|
+
}), "undefined" != typeof AggregateError && create$2(AggregateError), "function" == typeof InternalError && create$2(InternalError);
|
|
5245
|
+
var N = {
|
|
5194
5246
|
file: {
|
|
5195
5247
|
test: function test(e) {
|
|
5196
5248
|
return "File" === toStringTag(e);
|
|
@@ -5232,8 +5284,8 @@
|
|
|
5232
5284
|
}
|
|
5233
5285
|
}
|
|
5234
5286
|
},
|
|
5235
|
-
|
|
5236
|
-
file:
|
|
5287
|
+
P = {
|
|
5288
|
+
file: N.file,
|
|
5237
5289
|
filelist: {
|
|
5238
5290
|
test: function test(e) {
|
|
5239
5291
|
return "FileList" === toStringTag(e);
|
|
@@ -5266,7 +5318,7 @@
|
|
|
5266
5318
|
}
|
|
5267
5319
|
}
|
|
5268
5320
|
},
|
|
5269
|
-
|
|
5321
|
+
E = {
|
|
5270
5322
|
imagebitmap: {
|
|
5271
5323
|
test: function test(e) {
|
|
5272
5324
|
return "ImageBitmap" === toStringTag(e) || e && e.dataset && "ImageBitmap" === e.dataset.toStringTag;
|
|
@@ -5293,7 +5345,7 @@
|
|
|
5293
5345
|
}
|
|
5294
5346
|
}
|
|
5295
5347
|
},
|
|
5296
|
-
|
|
5348
|
+
C = {
|
|
5297
5349
|
imagedata: {
|
|
5298
5350
|
test: function test(e) {
|
|
5299
5351
|
return "ImageData" === toStringTag(e);
|
|
@@ -5569,7 +5621,7 @@
|
|
|
5569
5621
|
}
|
|
5570
5622
|
}],
|
|
5571
5623
|
X = [K, x, L],
|
|
5572
|
-
te = [G, W, H, D, X, j, M, E,
|
|
5624
|
+
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] : []);
|
|
5573
5625
|
var re = te.concat({
|
|
5574
5626
|
checkDataCloneException: {
|
|
5575
5627
|
test: function test(e) {
|