indexeddbshim 11.0.0-beta.0 → 12.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 +13 -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 +148 -150
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +132 -49
- 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 +148 -150
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +132 -49
- 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 +132 -49
- 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 +29 -29
- package/src/Key.js +6 -0
- package/src/unicode-regex.js +7 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim -
|
|
1
|
+
/*! indexeddbshim - v11.0.0 - 4/29/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
|
}],
|
|
@@ -1426,11 +1426,15 @@
|
|
|
1426
1426
|
});
|
|
1427
1427
|
});
|
|
1428
1428
|
|
|
1429
|
+
function getDefaultExportFromCjs$1(x) {
|
|
1430
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1431
|
+
}
|
|
1429
1432
|
var regex = /[\xC0-\xC5\xC7-\xCF\xD1-\xD6\xD9-\xDD\xE0-\xE5\xE7-\xEF\xF1-\xF6\xF9-\xFD\xFF-\u010F\u0112-\u0125\u0128-\u0130\u0134-\u0137\u0139-\u013E\u0143-\u0148\u014C-\u0151\u0154-\u0165\u0168-\u017E\u01A0\u01A1\u01AF\u01B0\u01CD-\u01DC\u01DE-\u01E3\u01E6-\u01F0\u01F4\u01F5\u01F8-\u021B\u021E\u021F\u0226-\u0233\u0344\u0385\u0386\u0388-\u038A\u038C\u038E-\u0390\u03AA-\u03B0\u03CA-\u03CE\u03D3\u03D4\u0400\u0401\u0403\u0407\u040C-\u040E\u0419\u0439\u0450\u0451\u0453\u0457\u045C-\u045E\u0476\u0477\u04C1\u04C2\u04D0-\u04D3\u04D6\u04D7\u04DA-\u04DF\u04E2-\u04E7\u04EA-\u04F5\u04F8\u04F9\u0622-\u0626\u06C0\u06C2\u06D3\u0929\u0931\u0934\u0958-\u095F\u09CB\u09CC\u09DC\u09DD\u09DF\u0A33\u0A36\u0A59-\u0A5B\u0A5E\u0B48\u0B4B\u0B4C\u0B5C\u0B5D\u0B94\u0BCA-\u0BCC\u0C48\u0CC0\u0CC7\u0CC8\u0CCA\u0CCB\u0D4A-\u0D4C\u0DDA\u0DDC-\u0DDE\u0F43\u0F4D\u0F52\u0F57\u0F5C\u0F69\u0F73\u0F75\u0F76\u0F78\u0F81\u0F93\u0F9D\u0FA2\u0FA7\u0FAC\u0FB9\u1026\u1B06\u1B08\u1B0A\u1B0C\u1B0E\u1B12\u1B3B\u1B3D\u1B40\u1B41\u1B43\u1E00-\u1E99\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FC1-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEE\u1FF2-\u1FF4\u1FF6-\u1FFC\u212B\u219A\u219B\u21AE\u21CD-\u21CF\u2204\u2209\u220C\u2224\u2226\u2241\u2244\u2247\u2249\u2260\u2262\u226D-\u2271\u2274\u2275\u2278\u2279\u2280\u2281\u2284\u2285\u2288\u2289\u22AC-\u22AF\u22E0-\u22E3\u22EA-\u22ED\u2ADC\u304C\u304E\u3050\u3052\u3054\u3056\u3058\u305A\u305C\u305E\u3060\u3062\u3065\u3067\u3069\u3070\u3071\u3073\u3074\u3076\u3077\u3079\u307A\u307C\u307D\u3094\u309E\u30AC\u30AE\u30B0\u30B2\u30B4\u30B6\u30B8\u30BA\u30BC\u30BE\u30C0\u30C2\u30C5\u30C7\u30C9\u30D0\u30D1\u30D3\u30D4\u30D6\u30D7\u30D9\u30DA\u30DC\u30DD\u30F4\u30F7-\u30FA\u30FE\uAC00-\uD7A3\uFB1D\uFB1F\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFB4E]|\uD804[\uDC9A\uDC9C\uDCAB\uDD2E\uDD2F\uDF4B\uDF4C]|\uD805[\uDCBB\uDCBC\uDCBE\uDDBA\uDDBB]|\uD806\uDD38|\uD834[\uDD5E-\uDD64\uDDBB-\uDDC0]/;
|
|
1433
|
+
var regex$1 = /*@__PURE__*/getDefaultExportFromCjs$1(regex);
|
|
1430
1434
|
|
|
1431
1435
|
function escapeUnmatchedSurrogates(arg) {
|
|
1432
1436
|
// http://stackoverflow.com/a/6701665/271577
|
|
1433
|
-
return arg.replace(/((?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])))(?!(?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))|(^|(?:
|
|
1437
|
+
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
1438
|
// Could add a corresponding surrogate for compatibility with `node-sqlite3`: http://bugs.python.org/issue12569 and http://stackoverflow.com/a/6701665/271577
|
|
1435
1439
|
// but Chrome having problems
|
|
1436
1440
|
if (unmatchedHighSurrogate) {
|
|
@@ -1483,7 +1487,7 @@
|
|
|
1483
1487
|
db = 'D' + escapeNameForSQLiteIdentifier(db);
|
|
1484
1488
|
if (CFG.escapeNFDForDatabaseNames !== false) {
|
|
1485
1489
|
// ES6 copying of regex with different flags
|
|
1486
|
-
db = db.replace(new RegExp(regex, 'gu'), function (expandable) {
|
|
1490
|
+
db = db.replace(new RegExp(regex$1, 'gu'), function (expandable) {
|
|
1487
1491
|
return '^4' + expandable.codePointAt().toString(16).padStart(6, '0');
|
|
1488
1492
|
});
|
|
1489
1493
|
}
|
|
@@ -2161,6 +2165,10 @@
|
|
|
2161
2165
|
writable: false
|
|
2162
2166
|
});
|
|
2163
2167
|
|
|
2168
|
+
function getDefaultExportFromCjs (x) {
|
|
2169
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2164
2172
|
// Since [immediate](https://github.com/calvinmetcalf/immediate) is
|
|
2165
2173
|
// not doing the trick for our WebSQL transactions (at least in Node),
|
|
2166
2174
|
// we are forced to make the promises run fully synchronously.
|
|
@@ -2309,6 +2317,7 @@
|
|
|
2309
2317
|
});
|
|
2310
2318
|
};
|
|
2311
2319
|
var syncPromiseCommonjs = SyncPromise;
|
|
2320
|
+
var SyncPromise$1 = /*@__PURE__*/getDefaultExportFromCjs(syncPromiseCommonjs);
|
|
2312
2321
|
|
|
2313
2322
|
/**
|
|
2314
2323
|
* Compares two keys.
|
|
@@ -2414,7 +2423,7 @@
|
|
|
2414
2423
|
// Remove the decimal.
|
|
2415
2424
|
key32 = decimalIndex !== -1 ? key32.replace('.', '') : key32;
|
|
2416
2425
|
// Get the index of the first significant digit.
|
|
2417
|
-
var significantDigitIndex = key32.search(/(?:(?!
|
|
2426
|
+
var significantDigitIndex = key32.search(/(?:[\0-\/1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/);
|
|
2418
2427
|
// Truncate leading zeros.
|
|
2419
2428
|
key32 = key32.slice(significantDigitIndex);
|
|
2420
2429
|
var sign, exponent, mantissa;
|
|
@@ -2779,6 +2788,15 @@
|
|
|
2779
2788
|
invalid: true
|
|
2780
2789
|
};
|
|
2781
2790
|
}
|
|
2791
|
+
|
|
2792
|
+
// https://github.com/w3c/IndexedDB/issues/375
|
|
2793
|
+
// https://github.com/w3c/IndexedDB/pull/386
|
|
2794
|
+
if (Object.is(input, -0)) {
|
|
2795
|
+
return {
|
|
2796
|
+
type: type,
|
|
2797
|
+
value: 0
|
|
2798
|
+
};
|
|
2799
|
+
}
|
|
2782
2800
|
return ret;
|
|
2783
2801
|
}
|
|
2784
2802
|
case 'string':
|
|
@@ -4192,14 +4210,14 @@
|
|
|
4192
4210
|
bubbles: true,
|
|
4193
4211
|
cancelable: true
|
|
4194
4212
|
});
|
|
4195
|
-
return new
|
|
4213
|
+
return new SyncPromise$1(function (resolve) {
|
|
4196
4214
|
setTimeout(function () {
|
|
4197
4215
|
q.req.dispatchEvent(reqEvt); // No need to catch errors
|
|
4198
4216
|
resolve();
|
|
4199
4217
|
});
|
|
4200
4218
|
});
|
|
4201
4219
|
});
|
|
4202
|
-
},
|
|
4220
|
+
}, SyncPromise$1.resolve()).then(function () {
|
|
4203
4221
|
// Also works when there are no pending requests
|
|
4204
4222
|
var evt = createEvent('abort', err, {
|
|
4205
4223
|
bubbles: true,
|
|
@@ -4690,7 +4708,7 @@
|
|
|
4690
4708
|
type: o
|
|
4691
4709
|
}));
|
|
4692
4710
|
} : null;
|
|
4693
|
-
if (["string", "boolean", "number", "undefined"].includes(m)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY ? (h = s.replaced ? r : replace(t, r, s, u, !1, d, O)) !== r && (g = {
|
|
4711
|
+
if (["string", "boolean", "number", "undefined"].includes(m)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (h = s.replaced ? r : replace(t, r, s, u, !1, d, O)) !== r && (g = {
|
|
4694
4712
|
replaced: h
|
|
4695
4713
|
}) : h = r, O && O(), h;
|
|
4696
4714
|
if (null === r) return O && O(), r;
|
|
@@ -4702,14 +4720,14 @@
|
|
|
4702
4720
|
!0 === a && (y.push(r), p.push(t));
|
|
4703
4721
|
}
|
|
4704
4722
|
var _,
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
j = (
|
|
4723
|
+
A = isPlainObject(r),
|
|
4724
|
+
w = i(r),
|
|
4725
|
+
j = (A || w) && (!l.plainObjectReplacers.length || s.replaced) || s.iterateIn ? r : replace(t, r, s, u, A || w, null, O);
|
|
4708
4726
|
if (j !== r ? (h = j, g = {
|
|
4709
4727
|
replaced: j
|
|
4710
|
-
}) : "" === t && hasConstructorOf(r, e) ? (u.push([t, r, a, s, void 0, void 0, s.type]), h = r) :
|
|
4728
|
+
}) : "" === 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
4729
|
clone: _
|
|
4712
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !
|
|
4730
|
+
}) : (["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
4731
|
clone: _
|
|
4714
4732
|
}), O && O(), n.iterateNone) return _ || h;
|
|
4715
4733
|
if (!_) return h;
|
|
@@ -4742,7 +4760,7 @@
|
|
|
4742
4760
|
end: !0
|
|
4743
4761
|
});
|
|
4744
4762
|
if (s.iterateUnsetNumeric) {
|
|
4745
|
-
for (var
|
|
4763
|
+
for (var N = r.length, P = function _loop2(n) {
|
|
4746
4764
|
if (!(n in r)) {
|
|
4747
4765
|
var o = t + (t ? "." : "") + n;
|
|
4748
4766
|
_adaptBuiltinStateObjectProperties(s, {
|
|
@@ -4752,7 +4770,7 @@
|
|
|
4752
4770
|
hasConstructorOf(t, e) ? u.push([o, t, Boolean(a), s, _, n, s.type]) : void 0 !== t && (_[n] = t);
|
|
4753
4771
|
});
|
|
4754
4772
|
}
|
|
4755
|
-
},
|
|
4773
|
+
}, E = 0; E < N; E++) P(E);
|
|
4756
4774
|
O && O({
|
|
4757
4775
|
endIterateUnsetNumeric: !0,
|
|
4758
4776
|
end: !0
|
|
@@ -5086,7 +5104,7 @@
|
|
|
5086
5104
|
}
|
|
5087
5105
|
}
|
|
5088
5106
|
};
|
|
5089
|
-
var
|
|
5107
|
+
var A = {
|
|
5090
5108
|
cryptokey: {
|
|
5091
5109
|
test: function test(e) {
|
|
5092
5110
|
return "CryptoKey" === toStringTag(e) && e.extractable;
|
|
@@ -5134,7 +5152,7 @@
|
|
|
5134
5152
|
}
|
|
5135
5153
|
}
|
|
5136
5154
|
},
|
|
5137
|
-
|
|
5155
|
+
w = {
|
|
5138
5156
|
dataview: {
|
|
5139
5157
|
test: function test(e) {
|
|
5140
5158
|
return "DataView" === toStringTag(e);
|
|
@@ -5180,24 +5198,76 @@
|
|
|
5180
5198
|
}
|
|
5181
5199
|
}
|
|
5182
5200
|
},
|
|
5201
|
+
T = {
|
|
5202
|
+
error: {
|
|
5203
|
+
test: function test(e) {
|
|
5204
|
+
return "Error" === toStringTag(e);
|
|
5205
|
+
},
|
|
5206
|
+
replace: function replace(_ref6) {
|
|
5207
|
+
var e = _ref6.name,
|
|
5208
|
+
t = _ref6.message,
|
|
5209
|
+
r = _ref6.cause,
|
|
5210
|
+
n = _ref6.stack,
|
|
5211
|
+
a = _ref6.fileName,
|
|
5212
|
+
o = _ref6.lineNumber,
|
|
5213
|
+
i = _ref6.columnNumber;
|
|
5214
|
+
return {
|
|
5215
|
+
name: e,
|
|
5216
|
+
message: t,
|
|
5217
|
+
cause: r,
|
|
5218
|
+
stack: n,
|
|
5219
|
+
fileName: a,
|
|
5220
|
+
lineNumber: o,
|
|
5221
|
+
columnNumber: i
|
|
5222
|
+
};
|
|
5223
|
+
},
|
|
5224
|
+
revive: function revive(e) {
|
|
5225
|
+
var t = new Error(e.message);
|
|
5226
|
+
return ["name", "cause", "stack", "fileName", "lineNumber", "columnNumber"].forEach(function (r) {
|
|
5227
|
+
t[r] = e[r];
|
|
5228
|
+
}), t;
|
|
5229
|
+
}
|
|
5230
|
+
}
|
|
5231
|
+
},
|
|
5183
5232
|
I = {};
|
|
5184
5233
|
function create$2(e) {
|
|
5185
5234
|
I[e.name.toLowerCase()] = {
|
|
5186
5235
|
test: function test(t) {
|
|
5187
5236
|
return hasConstructorOf(t, e);
|
|
5188
5237
|
},
|
|
5189
|
-
replace: function replace(
|
|
5190
|
-
|
|
5238
|
+
replace: function replace(_ref7) {
|
|
5239
|
+
var e = _ref7.name,
|
|
5240
|
+
t = _ref7.message,
|
|
5241
|
+
r = _ref7.cause,
|
|
5242
|
+
n = _ref7.stack,
|
|
5243
|
+
a = _ref7.fileName,
|
|
5244
|
+
o = _ref7.lineNumber,
|
|
5245
|
+
i = _ref7.columnNumber,
|
|
5246
|
+
c = _ref7.errors;
|
|
5247
|
+
return {
|
|
5248
|
+
name: e,
|
|
5249
|
+
message: t,
|
|
5250
|
+
cause: r,
|
|
5251
|
+
stack: n,
|
|
5252
|
+
fileName: a,
|
|
5253
|
+
lineNumber: o,
|
|
5254
|
+
columnNumber: i,
|
|
5255
|
+
errors: c
|
|
5256
|
+
};
|
|
5191
5257
|
},
|
|
5192
5258
|
revive: function revive(t) {
|
|
5193
|
-
|
|
5259
|
+
var r = "undefined" != typeof AggregateError && e === AggregateError,
|
|
5260
|
+
n = r ? new e(t.errors, t.message) : new e(t.message);
|
|
5261
|
+
return ["name", "cause", "stack", "fileName", "lineNumber", "columnNumber"].forEach(function (e) {
|
|
5262
|
+
n[e] = t[e];
|
|
5263
|
+
}), r && (n.errors = t.errors), n;
|
|
5194
5264
|
}
|
|
5195
5265
|
};
|
|
5196
5266
|
}
|
|
5197
5267
|
[TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError].forEach(function (e) {
|
|
5198
5268
|
return create$2(e);
|
|
5199
|
-
}), "function" == typeof InternalError && create$2(InternalError);
|
|
5200
|
-
var
|
|
5269
|
+
}), "undefined" != typeof AggregateError && create$2(AggregateError), "function" == typeof InternalError && create$2(InternalError);
|
|
5270
|
+
var N = {
|
|
5201
5271
|
file: {
|
|
5202
5272
|
test: function test(e) {
|
|
5203
5273
|
return "File" === toStringTag(e);
|
|
@@ -5239,8 +5309,8 @@
|
|
|
5239
5309
|
}
|
|
5240
5310
|
}
|
|
5241
5311
|
},
|
|
5242
|
-
|
|
5243
|
-
file:
|
|
5312
|
+
P = {
|
|
5313
|
+
file: N.file,
|
|
5244
5314
|
filelist: {
|
|
5245
5315
|
test: function test(e) {
|
|
5246
5316
|
return "FileList" === toStringTag(e);
|
|
@@ -5273,7 +5343,7 @@
|
|
|
5273
5343
|
}
|
|
5274
5344
|
}
|
|
5275
5345
|
},
|
|
5276
|
-
|
|
5346
|
+
E = {
|
|
5277
5347
|
imagebitmap: {
|
|
5278
5348
|
test: function test(e) {
|
|
5279
5349
|
return "ImageBitmap" === toStringTag(e) || e && e.dataset && "ImageBitmap" === e.dataset.toStringTag;
|
|
@@ -5300,7 +5370,7 @@
|
|
|
5300
5370
|
}
|
|
5301
5371
|
}
|
|
5302
5372
|
},
|
|
5303
|
-
|
|
5373
|
+
C = {
|
|
5304
5374
|
imagedata: {
|
|
5305
5375
|
test: function test(e) {
|
|
5306
5376
|
return "ImageData" === toStringTag(e);
|
|
@@ -5405,7 +5475,20 @@
|
|
|
5405
5475
|
}
|
|
5406
5476
|
}
|
|
5407
5477
|
},
|
|
5408
|
-
|
|
5478
|
+
F = {
|
|
5479
|
+
negativeZero: {
|
|
5480
|
+
test: function test(e) {
|
|
5481
|
+
return Object.is(e, -0);
|
|
5482
|
+
},
|
|
5483
|
+
replace: function replace(e) {
|
|
5484
|
+
return 0;
|
|
5485
|
+
},
|
|
5486
|
+
revive: function revive(e) {
|
|
5487
|
+
return -0;
|
|
5488
|
+
}
|
|
5489
|
+
}
|
|
5490
|
+
},
|
|
5491
|
+
M = {
|
|
5409
5492
|
StringObject: {
|
|
5410
5493
|
test: function test(e) {
|
|
5411
5494
|
return "String" === toStringTag(e) && "object" == _typeof$2(e);
|
|
@@ -5434,7 +5517,7 @@
|
|
|
5434
5517
|
}
|
|
5435
5518
|
}
|
|
5436
5519
|
},
|
|
5437
|
-
|
|
5520
|
+
$ = {
|
|
5438
5521
|
regexp: {
|
|
5439
5522
|
test: function test(e) {
|
|
5440
5523
|
return "RegExp" === toStringTag(e);
|
|
@@ -5452,7 +5535,7 @@
|
|
|
5452
5535
|
}
|
|
5453
5536
|
}
|
|
5454
5537
|
},
|
|
5455
|
-
|
|
5538
|
+
Y = {
|
|
5456
5539
|
set: {
|
|
5457
5540
|
test: function test(e) {
|
|
5458
5541
|
return "Set" === toStringTag(e);
|
|
@@ -5465,11 +5548,11 @@
|
|
|
5465
5548
|
}
|
|
5466
5549
|
}
|
|
5467
5550
|
},
|
|
5468
|
-
|
|
5551
|
+
q = {};
|
|
5469
5552
|
"function" == typeof Int8Array && [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].forEach(function (e) {
|
|
5470
5553
|
return function create$1(e) {
|
|
5471
5554
|
var t = e.name;
|
|
5472
|
-
|
|
5555
|
+
q[t.toLowerCase()] = {
|
|
5473
5556
|
test: function test(e) {
|
|
5474
5557
|
return toStringTag(e) === t;
|
|
5475
5558
|
},
|
|
@@ -5482,11 +5565,11 @@
|
|
|
5482
5565
|
};
|
|
5483
5566
|
}(e);
|
|
5484
5567
|
});
|
|
5485
|
-
var
|
|
5568
|
+
var W = {};
|
|
5486
5569
|
"function" == typeof Int8Array && [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].forEach(function (e) {
|
|
5487
5570
|
return function create(e) {
|
|
5488
5571
|
var t = e.name;
|
|
5489
|
-
|
|
5572
|
+
W[t.toLowerCase()] = {
|
|
5490
5573
|
test: function test(e) {
|
|
5491
5574
|
return toStringTag(e) === t;
|
|
5492
5575
|
},
|
|
@@ -5518,7 +5601,7 @@
|
|
|
5518
5601
|
};
|
|
5519
5602
|
}(e);
|
|
5520
5603
|
});
|
|
5521
|
-
var
|
|
5604
|
+
var G = {
|
|
5522
5605
|
undef: {
|
|
5523
5606
|
test: function test(e, t) {
|
|
5524
5607
|
return void 0 === e && (t.ownKeys || !("ownKeys" in t));
|
|
@@ -5531,7 +5614,7 @@
|
|
|
5531
5614
|
}
|
|
5532
5615
|
}
|
|
5533
5616
|
},
|
|
5534
|
-
|
|
5617
|
+
H = {
|
|
5535
5618
|
userObject: {
|
|
5536
5619
|
test: function test(e, t) {
|
|
5537
5620
|
return isUserObject(e);
|
|
@@ -5544,7 +5627,7 @@
|
|
|
5544
5627
|
}
|
|
5545
5628
|
}
|
|
5546
5629
|
},
|
|
5547
|
-
|
|
5630
|
+
X = [{
|
|
5548
5631
|
arrayNonindexKeys: {
|
|
5549
5632
|
testPlainObjects: !0,
|
|
5550
5633
|
test: function test(e, t) {
|
|
@@ -5575,9 +5658,9 @@
|
|
|
5575
5658
|
revive: function revive(e) {}
|
|
5576
5659
|
}
|
|
5577
5660
|
}],
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
var
|
|
5661
|
+
Z = [K, x, L, F],
|
|
5662
|
+
re = [H, G, X, M, Z, j, $, C, E, N, P, O, T, I].concat("function" == typeof Map ? U : [], "function" == typeof Set ? Y : [], "function" == typeof ArrayBuffer ? h : [], "function" == typeof Uint8Array ? W : [], "function" == typeof DataView ? w : [], "undefined" != typeof Intl ? B : [], "undefined" != typeof crypto ? A : [], "undefined" != typeof BigInt ? [m, g] : []);
|
|
5663
|
+
var ne = re.concat({
|
|
5581
5664
|
checkDataCloneException: {
|
|
5582
5665
|
test: function test(e) {
|
|
5583
5666
|
var t = {}.toString.call(e).slice(8, -1);
|
|
@@ -5589,9 +5672,9 @@
|
|
|
5589
5672
|
|
|
5590
5673
|
// See: http://stackoverflow.com/questions/42170826/categories-for-rejection-by-the-structured-cloning-algorithm
|
|
5591
5674
|
|
|
5592
|
-
var typeson = new u().register(
|
|
5675
|
+
var typeson = new u().register(ne);
|
|
5593
5676
|
function register(func) {
|
|
5594
|
-
typeson = new u().register(func(
|
|
5677
|
+
typeson = new u().register(func(ne));
|
|
5595
5678
|
}
|
|
5596
5679
|
|
|
5597
5680
|
// We are keeping the callback approach for now in case we wish to reexpose
|
|
@@ -6090,7 +6173,7 @@
|
|
|
6090
6173
|
}
|
|
6091
6174
|
var indexCreations = colNamesToPreserve.slice(2) // Doing `key` separately and no need for index on `value`
|
|
6092
6175
|
.map(function (escapedIndexNameSQL) {
|
|
6093
|
-
return new
|
|
6176
|
+
return new SyncPromise$1(function (resolve, reject) {
|
|
6094
6177
|
var escapedIndexToRecreate = sqlQuote(escapedStoreNameSQL.slice(1, -1) + '^5' + escapedIndexNameSQL.slice(1, -1));
|
|
6095
6178
|
// const sql = 'DROP INDEX IF EXISTS ' + escapedIndexToRecreate;
|
|
6096
6179
|
// CFG.DEBUG && console.log(sql);
|
|
@@ -6106,7 +6189,7 @@
|
|
|
6106
6189
|
});
|
|
6107
6190
|
});
|
|
6108
6191
|
|
|
6109
|
-
indexCreations.push(new
|
|
6192
|
+
indexCreations.push(new SyncPromise$1(function (resolve, reject) {
|
|
6110
6193
|
var escapedIndexToRecreate = sqlQuote('sk_' + escapedStoreNameSQL.slice(1, -1));
|
|
6111
6194
|
// Chrome erring here if not dropped first; Node does not
|
|
6112
6195
|
var sql = 'DROP INDEX IF EXISTS ' + escapedIndexToRecreate;
|
|
@@ -6121,7 +6204,7 @@
|
|
|
6121
6204
|
reject(err);
|
|
6122
6205
|
});
|
|
6123
6206
|
}));
|
|
6124
|
-
|
|
6207
|
+
SyncPromise$1.all(indexCreations).then(finish, error)["catch"](function (err) {
|
|
6125
6208
|
console.log('Index rename error');
|
|
6126
6209
|
throw err;
|
|
6127
6210
|
});
|
|
@@ -6590,7 +6673,7 @@
|
|
|
6590
6673
|
// idea is to avoid, where possible, unnecessary delays (and
|
|
6591
6674
|
// consuming code ought to only see a difference in the browser
|
|
6592
6675
|
// where we can't control the transaction timeout anyways).
|
|
6593
|
-
return new
|
|
6676
|
+
return new SyncPromise$1(function (resolve, reject) {
|
|
6594
6677
|
var index = me.__indexes[indexName];
|
|
6595
6678
|
if (
|
|
6596
6679
|
// `createIndex` was called synchronously after the current insertion was added to
|
|
@@ -6641,7 +6724,7 @@
|
|
|
6641
6724
|
}
|
|
6642
6725
|
});
|
|
6643
6726
|
});
|
|
6644
|
-
return
|
|
6727
|
+
return SyncPromise$1.all(indexPromises).then(function () {
|
|
6645
6728
|
var sqlStart = ['INSERT INTO', escapeStoreNameForSQL(me.__currentName), '('];
|
|
6646
6729
|
var sqlEnd = [' VALUES ('];
|
|
6647
6730
|
var insertSqlValues = [];
|
|
@@ -7578,18 +7661,18 @@
|
|
|
7578
7661
|
oldVersion: oldVersion,
|
|
7579
7662
|
newVersion: newVersion
|
|
7580
7663
|
});
|
|
7581
|
-
return new
|
|
7664
|
+
return new SyncPromise$1(function (resolve) {
|
|
7582
7665
|
setTimeout(function () {
|
|
7583
7666
|
entry.dispatchEvent(e); // No need to catch errors
|
|
7584
7667
|
resolve();
|
|
7585
7668
|
});
|
|
7586
7669
|
});
|
|
7587
7670
|
});
|
|
7588
|
-
},
|
|
7671
|
+
}, SyncPromise$1.resolve()).then(function () {
|
|
7589
7672
|
if (connectionsClosed()) {
|
|
7590
7673
|
return undefined;
|
|
7591
7674
|
}
|
|
7592
|
-
return new
|
|
7675
|
+
return new SyncPromise$1(function (resolve) {
|
|
7593
7676
|
var unblocking = {
|
|
7594
7677
|
check: function check() {
|
|
7595
7678
|
if (connectionsClosed()) {
|