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 (factory) {
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -1396,7 +1396,7 @@
|
|
|
1396
1396
|
'addSQLiteExtension',
|
|
1397
1397
|
// Various types of in-memory databases that can auto-delete
|
|
1398
1398
|
['memoryDatabase', function (val) {
|
|
1399
|
-
if (!/^(?::memory:|file::memory:(\?(?:(
|
|
1399
|
+
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)) {
|
|
1400
1400
|
throw new TypeError('`memoryDatabase` must be the empty string, ":memory:", or a ' + '"file::memory:[?queryString][#hash] URL".');
|
|
1401
1401
|
}
|
|
1402
1402
|
}],
|
|
@@ -1431,11 +1431,15 @@
|
|
|
1431
1431
|
});
|
|
1432
1432
|
});
|
|
1433
1433
|
|
|
1434
|
+
function getDefaultExportFromCjs$1(x) {
|
|
1435
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1436
|
+
}
|
|
1434
1437
|
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]/;
|
|
1438
|
+
var regex$1 = /*@__PURE__*/getDefaultExportFromCjs$1(regex);
|
|
1435
1439
|
|
|
1436
1440
|
function escapeUnmatchedSurrogates(arg) {
|
|
1437
1441
|
// http://stackoverflow.com/a/6701665/271577
|
|
1438
|
-
return arg.replace(/((?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])))(?!(?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))|(^|(?:
|
|
1442
|
+
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) {
|
|
1439
1443
|
// Could add a corresponding surrogate for compatibility with `node-sqlite3`: http://bugs.python.org/issue12569 and http://stackoverflow.com/a/6701665/271577
|
|
1440
1444
|
// but Chrome having problems
|
|
1441
1445
|
if (unmatchedHighSurrogate) {
|
|
@@ -1488,7 +1492,7 @@
|
|
|
1488
1492
|
db = 'D' + escapeNameForSQLiteIdentifier(db);
|
|
1489
1493
|
if (CFG.escapeNFDForDatabaseNames !== false) {
|
|
1490
1494
|
// ES6 copying of regex with different flags
|
|
1491
|
-
db = db.replace(new RegExp(regex, 'gu'), function (expandable) {
|
|
1495
|
+
db = db.replace(new RegExp(regex$1, 'gu'), function (expandable) {
|
|
1492
1496
|
return '^4' + expandable.codePointAt().toString(16).padStart(6, '0');
|
|
1493
1497
|
});
|
|
1494
1498
|
}
|
|
@@ -2166,6 +2170,10 @@
|
|
|
2166
2170
|
writable: false
|
|
2167
2171
|
});
|
|
2168
2172
|
|
|
2173
|
+
function getDefaultExportFromCjs (x) {
|
|
2174
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2169
2177
|
// Since [immediate](https://github.com/calvinmetcalf/immediate) is
|
|
2170
2178
|
// not doing the trick for our WebSQL transactions (at least in Node),
|
|
2171
2179
|
// we are forced to make the promises run fully synchronously.
|
|
@@ -2314,6 +2322,7 @@
|
|
|
2314
2322
|
});
|
|
2315
2323
|
};
|
|
2316
2324
|
var syncPromiseCommonjs = SyncPromise;
|
|
2325
|
+
var SyncPromise$1 = /*@__PURE__*/getDefaultExportFromCjs(syncPromiseCommonjs);
|
|
2317
2326
|
|
|
2318
2327
|
/**
|
|
2319
2328
|
* Compares two keys.
|
|
@@ -2419,7 +2428,7 @@
|
|
|
2419
2428
|
// Remove the decimal.
|
|
2420
2429
|
key32 = decimalIndex !== -1 ? key32.replace('.', '') : key32;
|
|
2421
2430
|
// Get the index of the first significant digit.
|
|
2422
|
-
var significantDigitIndex = key32.search(/(?:(?!
|
|
2431
|
+
var significantDigitIndex = key32.search(/(?:[\0-\/1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/);
|
|
2423
2432
|
// Truncate leading zeros.
|
|
2424
2433
|
key32 = key32.slice(significantDigitIndex);
|
|
2425
2434
|
var sign, exponent, mantissa;
|
|
@@ -2784,6 +2793,15 @@
|
|
|
2784
2793
|
invalid: true
|
|
2785
2794
|
};
|
|
2786
2795
|
}
|
|
2796
|
+
|
|
2797
|
+
// https://github.com/w3c/IndexedDB/issues/375
|
|
2798
|
+
// https://github.com/w3c/IndexedDB/pull/386
|
|
2799
|
+
if (Object.is(input, -0)) {
|
|
2800
|
+
return {
|
|
2801
|
+
type: type,
|
|
2802
|
+
value: 0
|
|
2803
|
+
};
|
|
2804
|
+
}
|
|
2787
2805
|
return ret;
|
|
2788
2806
|
}
|
|
2789
2807
|
case 'string':
|
|
@@ -4197,14 +4215,14 @@
|
|
|
4197
4215
|
bubbles: true,
|
|
4198
4216
|
cancelable: true
|
|
4199
4217
|
});
|
|
4200
|
-
return new
|
|
4218
|
+
return new SyncPromise$1(function (resolve) {
|
|
4201
4219
|
setTimeout(function () {
|
|
4202
4220
|
q.req.dispatchEvent(reqEvt); // No need to catch errors
|
|
4203
4221
|
resolve();
|
|
4204
4222
|
});
|
|
4205
4223
|
});
|
|
4206
4224
|
});
|
|
4207
|
-
},
|
|
4225
|
+
}, SyncPromise$1.resolve()).then(function () {
|
|
4208
4226
|
// Also works when there are no pending requests
|
|
4209
4227
|
var evt = createEvent('abort', err, {
|
|
4210
4228
|
bubbles: true,
|
|
@@ -4695,7 +4713,7 @@
|
|
|
4695
4713
|
type: o
|
|
4696
4714
|
}));
|
|
4697
4715
|
} : null;
|
|
4698
|
-
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 = {
|
|
4716
|
+
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 = {
|
|
4699
4717
|
replaced: h
|
|
4700
4718
|
}) : h = r, O && O(), h;
|
|
4701
4719
|
if (null === r) return O && O(), r;
|
|
@@ -4707,14 +4725,14 @@
|
|
|
4707
4725
|
!0 === a && (y.push(r), p.push(t));
|
|
4708
4726
|
}
|
|
4709
4727
|
var _,
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
j = (
|
|
4728
|
+
A = isPlainObject(r),
|
|
4729
|
+
w = i(r),
|
|
4730
|
+
j = (A || w) && (!l.plainObjectReplacers.length || s.replaced) || s.iterateIn ? r : replace(t, r, s, u, A || w, null, O);
|
|
4713
4731
|
if (j !== r ? (h = j, g = {
|
|
4714
4732
|
replaced: j
|
|
4715
|
-
}) : "" === t && hasConstructorOf(r, e) ? (u.push([t, r, a, s, void 0, void 0, s.type]), h = r) :
|
|
4733
|
+
}) : "" === 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 = {
|
|
4716
4734
|
clone: _
|
|
4717
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !
|
|
4735
|
+
}) : (["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 = {
|
|
4718
4736
|
clone: _
|
|
4719
4737
|
}), O && O(), n.iterateNone) return _ || h;
|
|
4720
4738
|
if (!_) return h;
|
|
@@ -4747,7 +4765,7 @@
|
|
|
4747
4765
|
end: !0
|
|
4748
4766
|
});
|
|
4749
4767
|
if (s.iterateUnsetNumeric) {
|
|
4750
|
-
for (var
|
|
4768
|
+
for (var N = r.length, P = function _loop2(n) {
|
|
4751
4769
|
if (!(n in r)) {
|
|
4752
4770
|
var o = t + (t ? "." : "") + n;
|
|
4753
4771
|
_adaptBuiltinStateObjectProperties(s, {
|
|
@@ -4757,7 +4775,7 @@
|
|
|
4757
4775
|
hasConstructorOf(t, e) ? u.push([o, t, Boolean(a), s, _, n, s.type]) : void 0 !== t && (_[n] = t);
|
|
4758
4776
|
});
|
|
4759
4777
|
}
|
|
4760
|
-
},
|
|
4778
|
+
}, E = 0; E < N; E++) P(E);
|
|
4761
4779
|
O && O({
|
|
4762
4780
|
endIterateUnsetNumeric: !0,
|
|
4763
4781
|
end: !0
|
|
@@ -5091,7 +5109,7 @@
|
|
|
5091
5109
|
}
|
|
5092
5110
|
}
|
|
5093
5111
|
};
|
|
5094
|
-
var
|
|
5112
|
+
var A = {
|
|
5095
5113
|
cryptokey: {
|
|
5096
5114
|
test: function test(e) {
|
|
5097
5115
|
return "CryptoKey" === toStringTag(e) && e.extractable;
|
|
@@ -5139,7 +5157,7 @@
|
|
|
5139
5157
|
}
|
|
5140
5158
|
}
|
|
5141
5159
|
},
|
|
5142
|
-
|
|
5160
|
+
w = {
|
|
5143
5161
|
dataview: {
|
|
5144
5162
|
test: function test(e) {
|
|
5145
5163
|
return "DataView" === toStringTag(e);
|
|
@@ -5185,24 +5203,76 @@
|
|
|
5185
5203
|
}
|
|
5186
5204
|
}
|
|
5187
5205
|
},
|
|
5206
|
+
T = {
|
|
5207
|
+
error: {
|
|
5208
|
+
test: function test(e) {
|
|
5209
|
+
return "Error" === toStringTag(e);
|
|
5210
|
+
},
|
|
5211
|
+
replace: function replace(_ref6) {
|
|
5212
|
+
var e = _ref6.name,
|
|
5213
|
+
t = _ref6.message,
|
|
5214
|
+
r = _ref6.cause,
|
|
5215
|
+
n = _ref6.stack,
|
|
5216
|
+
a = _ref6.fileName,
|
|
5217
|
+
o = _ref6.lineNumber,
|
|
5218
|
+
i = _ref6.columnNumber;
|
|
5219
|
+
return {
|
|
5220
|
+
name: e,
|
|
5221
|
+
message: t,
|
|
5222
|
+
cause: r,
|
|
5223
|
+
stack: n,
|
|
5224
|
+
fileName: a,
|
|
5225
|
+
lineNumber: o,
|
|
5226
|
+
columnNumber: i
|
|
5227
|
+
};
|
|
5228
|
+
},
|
|
5229
|
+
revive: function revive(e) {
|
|
5230
|
+
var t = new Error(e.message);
|
|
5231
|
+
return ["name", "cause", "stack", "fileName", "lineNumber", "columnNumber"].forEach(function (r) {
|
|
5232
|
+
t[r] = e[r];
|
|
5233
|
+
}), t;
|
|
5234
|
+
}
|
|
5235
|
+
}
|
|
5236
|
+
},
|
|
5188
5237
|
I = {};
|
|
5189
5238
|
function create$2(e) {
|
|
5190
5239
|
I[e.name.toLowerCase()] = {
|
|
5191
5240
|
test: function test(t) {
|
|
5192
5241
|
return hasConstructorOf(t, e);
|
|
5193
5242
|
},
|
|
5194
|
-
replace: function replace(
|
|
5195
|
-
|
|
5243
|
+
replace: function replace(_ref7) {
|
|
5244
|
+
var e = _ref7.name,
|
|
5245
|
+
t = _ref7.message,
|
|
5246
|
+
r = _ref7.cause,
|
|
5247
|
+
n = _ref7.stack,
|
|
5248
|
+
a = _ref7.fileName,
|
|
5249
|
+
o = _ref7.lineNumber,
|
|
5250
|
+
i = _ref7.columnNumber,
|
|
5251
|
+
c = _ref7.errors;
|
|
5252
|
+
return {
|
|
5253
|
+
name: e,
|
|
5254
|
+
message: t,
|
|
5255
|
+
cause: r,
|
|
5256
|
+
stack: n,
|
|
5257
|
+
fileName: a,
|
|
5258
|
+
lineNumber: o,
|
|
5259
|
+
columnNumber: i,
|
|
5260
|
+
errors: c
|
|
5261
|
+
};
|
|
5196
5262
|
},
|
|
5197
5263
|
revive: function revive(t) {
|
|
5198
|
-
|
|
5264
|
+
var r = "undefined" != typeof AggregateError && e === AggregateError,
|
|
5265
|
+
n = r ? new e(t.errors, t.message) : new e(t.message);
|
|
5266
|
+
return ["name", "cause", "stack", "fileName", "lineNumber", "columnNumber"].forEach(function (e) {
|
|
5267
|
+
n[e] = t[e];
|
|
5268
|
+
}), r && (n.errors = t.errors), n;
|
|
5199
5269
|
}
|
|
5200
5270
|
};
|
|
5201
5271
|
}
|
|
5202
5272
|
[TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError].forEach(function (e) {
|
|
5203
5273
|
return create$2(e);
|
|
5204
|
-
}), "function" == typeof InternalError && create$2(InternalError);
|
|
5205
|
-
var
|
|
5274
|
+
}), "undefined" != typeof AggregateError && create$2(AggregateError), "function" == typeof InternalError && create$2(InternalError);
|
|
5275
|
+
var N = {
|
|
5206
5276
|
file: {
|
|
5207
5277
|
test: function test(e) {
|
|
5208
5278
|
return "File" === toStringTag(e);
|
|
@@ -5244,8 +5314,8 @@
|
|
|
5244
5314
|
}
|
|
5245
5315
|
}
|
|
5246
5316
|
},
|
|
5247
|
-
|
|
5248
|
-
file:
|
|
5317
|
+
P = {
|
|
5318
|
+
file: N.file,
|
|
5249
5319
|
filelist: {
|
|
5250
5320
|
test: function test(e) {
|
|
5251
5321
|
return "FileList" === toStringTag(e);
|
|
@@ -5278,7 +5348,7 @@
|
|
|
5278
5348
|
}
|
|
5279
5349
|
}
|
|
5280
5350
|
},
|
|
5281
|
-
|
|
5351
|
+
E = {
|
|
5282
5352
|
imagebitmap: {
|
|
5283
5353
|
test: function test(e) {
|
|
5284
5354
|
return "ImageBitmap" === toStringTag(e) || e && e.dataset && "ImageBitmap" === e.dataset.toStringTag;
|
|
@@ -5305,7 +5375,7 @@
|
|
|
5305
5375
|
}
|
|
5306
5376
|
}
|
|
5307
5377
|
},
|
|
5308
|
-
|
|
5378
|
+
C = {
|
|
5309
5379
|
imagedata: {
|
|
5310
5380
|
test: function test(e) {
|
|
5311
5381
|
return "ImageData" === toStringTag(e);
|
|
@@ -5410,7 +5480,20 @@
|
|
|
5410
5480
|
}
|
|
5411
5481
|
}
|
|
5412
5482
|
},
|
|
5413
|
-
|
|
5483
|
+
F = {
|
|
5484
|
+
negativeZero: {
|
|
5485
|
+
test: function test(e) {
|
|
5486
|
+
return Object.is(e, -0);
|
|
5487
|
+
},
|
|
5488
|
+
replace: function replace(e) {
|
|
5489
|
+
return 0;
|
|
5490
|
+
},
|
|
5491
|
+
revive: function revive(e) {
|
|
5492
|
+
return -0;
|
|
5493
|
+
}
|
|
5494
|
+
}
|
|
5495
|
+
},
|
|
5496
|
+
M = {
|
|
5414
5497
|
StringObject: {
|
|
5415
5498
|
test: function test(e) {
|
|
5416
5499
|
return "String" === toStringTag(e) && "object" == _typeof$2(e);
|
|
@@ -5439,7 +5522,7 @@
|
|
|
5439
5522
|
}
|
|
5440
5523
|
}
|
|
5441
5524
|
},
|
|
5442
|
-
|
|
5525
|
+
$ = {
|
|
5443
5526
|
regexp: {
|
|
5444
5527
|
test: function test(e) {
|
|
5445
5528
|
return "RegExp" === toStringTag(e);
|
|
@@ -5457,7 +5540,7 @@
|
|
|
5457
5540
|
}
|
|
5458
5541
|
}
|
|
5459
5542
|
},
|
|
5460
|
-
|
|
5543
|
+
Y = {
|
|
5461
5544
|
set: {
|
|
5462
5545
|
test: function test(e) {
|
|
5463
5546
|
return "Set" === toStringTag(e);
|
|
@@ -5470,11 +5553,11 @@
|
|
|
5470
5553
|
}
|
|
5471
5554
|
}
|
|
5472
5555
|
},
|
|
5473
|
-
|
|
5556
|
+
q = {};
|
|
5474
5557
|
"function" == typeof Int8Array && [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].forEach(function (e) {
|
|
5475
5558
|
return function create$1(e) {
|
|
5476
5559
|
var t = e.name;
|
|
5477
|
-
|
|
5560
|
+
q[t.toLowerCase()] = {
|
|
5478
5561
|
test: function test(e) {
|
|
5479
5562
|
return toStringTag(e) === t;
|
|
5480
5563
|
},
|
|
@@ -5487,11 +5570,11 @@
|
|
|
5487
5570
|
};
|
|
5488
5571
|
}(e);
|
|
5489
5572
|
});
|
|
5490
|
-
var
|
|
5573
|
+
var W = {};
|
|
5491
5574
|
"function" == typeof Int8Array && [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].forEach(function (e) {
|
|
5492
5575
|
return function create(e) {
|
|
5493
5576
|
var t = e.name;
|
|
5494
|
-
|
|
5577
|
+
W[t.toLowerCase()] = {
|
|
5495
5578
|
test: function test(e) {
|
|
5496
5579
|
return toStringTag(e) === t;
|
|
5497
5580
|
},
|
|
@@ -5523,7 +5606,7 @@
|
|
|
5523
5606
|
};
|
|
5524
5607
|
}(e);
|
|
5525
5608
|
});
|
|
5526
|
-
var
|
|
5609
|
+
var G = {
|
|
5527
5610
|
undef: {
|
|
5528
5611
|
test: function test(e, t) {
|
|
5529
5612
|
return void 0 === e && (t.ownKeys || !("ownKeys" in t));
|
|
@@ -5536,7 +5619,7 @@
|
|
|
5536
5619
|
}
|
|
5537
5620
|
}
|
|
5538
5621
|
},
|
|
5539
|
-
|
|
5622
|
+
H = {
|
|
5540
5623
|
userObject: {
|
|
5541
5624
|
test: function test(e, t) {
|
|
5542
5625
|
return isUserObject(e);
|
|
@@ -5549,7 +5632,7 @@
|
|
|
5549
5632
|
}
|
|
5550
5633
|
}
|
|
5551
5634
|
},
|
|
5552
|
-
|
|
5635
|
+
X = [{
|
|
5553
5636
|
arrayNonindexKeys: {
|
|
5554
5637
|
testPlainObjects: !0,
|
|
5555
5638
|
test: function test(e, t) {
|
|
@@ -5580,9 +5663,9 @@
|
|
|
5580
5663
|
revive: function revive(e) {}
|
|
5581
5664
|
}
|
|
5582
5665
|
}],
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
var
|
|
5666
|
+
Z = [K, x, L, F],
|
|
5667
|
+
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] : []);
|
|
5668
|
+
var ne = re.concat({
|
|
5586
5669
|
checkDataCloneException: {
|
|
5587
5670
|
test: function test(e) {
|
|
5588
5671
|
var t = {}.toString.call(e).slice(8, -1);
|
|
@@ -5594,9 +5677,9 @@
|
|
|
5594
5677
|
|
|
5595
5678
|
// See: http://stackoverflow.com/questions/42170826/categories-for-rejection-by-the-structured-cloning-algorithm
|
|
5596
5679
|
|
|
5597
|
-
var typeson = new u().register(
|
|
5680
|
+
var typeson = new u().register(ne);
|
|
5598
5681
|
function register(func) {
|
|
5599
|
-
typeson = new u().register(func(
|
|
5682
|
+
typeson = new u().register(func(ne));
|
|
5600
5683
|
}
|
|
5601
5684
|
|
|
5602
5685
|
// We are keeping the callback approach for now in case we wish to reexpose
|
|
@@ -6095,7 +6178,7 @@
|
|
|
6095
6178
|
}
|
|
6096
6179
|
var indexCreations = colNamesToPreserve.slice(2) // Doing `key` separately and no need for index on `value`
|
|
6097
6180
|
.map(function (escapedIndexNameSQL) {
|
|
6098
|
-
return new
|
|
6181
|
+
return new SyncPromise$1(function (resolve, reject) {
|
|
6099
6182
|
var escapedIndexToRecreate = sqlQuote(escapedStoreNameSQL.slice(1, -1) + '^5' + escapedIndexNameSQL.slice(1, -1));
|
|
6100
6183
|
// const sql = 'DROP INDEX IF EXISTS ' + escapedIndexToRecreate;
|
|
6101
6184
|
// CFG.DEBUG && console.log(sql);
|
|
@@ -6111,7 +6194,7 @@
|
|
|
6111
6194
|
});
|
|
6112
6195
|
});
|
|
6113
6196
|
|
|
6114
|
-
indexCreations.push(new
|
|
6197
|
+
indexCreations.push(new SyncPromise$1(function (resolve, reject) {
|
|
6115
6198
|
var escapedIndexToRecreate = sqlQuote('sk_' + escapedStoreNameSQL.slice(1, -1));
|
|
6116
6199
|
// Chrome erring here if not dropped first; Node does not
|
|
6117
6200
|
var sql = 'DROP INDEX IF EXISTS ' + escapedIndexToRecreate;
|
|
@@ -6126,7 +6209,7 @@
|
|
|
6126
6209
|
reject(err);
|
|
6127
6210
|
});
|
|
6128
6211
|
}));
|
|
6129
|
-
|
|
6212
|
+
SyncPromise$1.all(indexCreations).then(finish, error)["catch"](function (err) {
|
|
6130
6213
|
console.log('Index rename error');
|
|
6131
6214
|
throw err;
|
|
6132
6215
|
});
|
|
@@ -6595,7 +6678,7 @@
|
|
|
6595
6678
|
// idea is to avoid, where possible, unnecessary delays (and
|
|
6596
6679
|
// consuming code ought to only see a difference in the browser
|
|
6597
6680
|
// where we can't control the transaction timeout anyways).
|
|
6598
|
-
return new
|
|
6681
|
+
return new SyncPromise$1(function (resolve, reject) {
|
|
6599
6682
|
var index = me.__indexes[indexName];
|
|
6600
6683
|
if (
|
|
6601
6684
|
// `createIndex` was called synchronously after the current insertion was added to
|
|
@@ -6646,7 +6729,7 @@
|
|
|
6646
6729
|
}
|
|
6647
6730
|
});
|
|
6648
6731
|
});
|
|
6649
|
-
return
|
|
6732
|
+
return SyncPromise$1.all(indexPromises).then(function () {
|
|
6650
6733
|
var sqlStart = ['INSERT INTO', escapeStoreNameForSQL(me.__currentName), '('];
|
|
6651
6734
|
var sqlEnd = [' VALUES ('];
|
|
6652
6735
|
var insertSqlValues = [];
|
|
@@ -7583,18 +7666,18 @@
|
|
|
7583
7666
|
oldVersion: oldVersion,
|
|
7584
7667
|
newVersion: newVersion
|
|
7585
7668
|
});
|
|
7586
|
-
return new
|
|
7669
|
+
return new SyncPromise$1(function (resolve) {
|
|
7587
7670
|
setTimeout(function () {
|
|
7588
7671
|
entry.dispatchEvent(e); // No need to catch errors
|
|
7589
7672
|
resolve();
|
|
7590
7673
|
});
|
|
7591
7674
|
});
|
|
7592
7675
|
});
|
|
7593
|
-
},
|
|
7676
|
+
}, SyncPromise$1.resolve()).then(function () {
|
|
7594
7677
|
if (connectionsClosed()) {
|
|
7595
7678
|
return undefined;
|
|
7596
7679
|
}
|
|
7597
|
-
return new
|
|
7680
|
+
return new SyncPromise$1(function (resolve) {
|
|
7598
7681
|
var unblocking = {
|
|
7599
7682
|
check: function check() {
|
|
7600
7683
|
if (connectionsClosed()) {
|