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
package/dist/indexeddbshim.js
CHANGED
|
@@ -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) :
|
|
@@ -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
|
}],
|
|
@@ -1419,11 +1419,15 @@
|
|
|
1419
1419
|
});
|
|
1420
1420
|
});
|
|
1421
1421
|
|
|
1422
|
+
function getDefaultExportFromCjs$1(x) {
|
|
1423
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1424
|
+
}
|
|
1422
1425
|
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]/;
|
|
1426
|
+
var regex$1 = /*@__PURE__*/getDefaultExportFromCjs$1(regex);
|
|
1423
1427
|
|
|
1424
1428
|
function escapeUnmatchedSurrogates(arg) {
|
|
1425
1429
|
// http://stackoverflow.com/a/6701665/271577
|
|
1426
|
-
return arg.replace(/((?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])))(?!(?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))|(^|(?:
|
|
1430
|
+
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
1431
|
// Could add a corresponding surrogate for compatibility with `node-sqlite3`: http://bugs.python.org/issue12569 and http://stackoverflow.com/a/6701665/271577
|
|
1428
1432
|
// but Chrome having problems
|
|
1429
1433
|
if (unmatchedHighSurrogate) {
|
|
@@ -1476,7 +1480,7 @@
|
|
|
1476
1480
|
db = 'D' + escapeNameForSQLiteIdentifier(db);
|
|
1477
1481
|
if (CFG.escapeNFDForDatabaseNames !== false) {
|
|
1478
1482
|
// ES6 copying of regex with different flags
|
|
1479
|
-
db = db.replace(new RegExp(regex, 'gu'), function (expandable) {
|
|
1483
|
+
db = db.replace(new RegExp(regex$1, 'gu'), function (expandable) {
|
|
1480
1484
|
return '^4' + expandable.codePointAt().toString(16).padStart(6, '0');
|
|
1481
1485
|
});
|
|
1482
1486
|
}
|
|
@@ -2154,6 +2158,10 @@
|
|
|
2154
2158
|
writable: false
|
|
2155
2159
|
});
|
|
2156
2160
|
|
|
2161
|
+
function getDefaultExportFromCjs (x) {
|
|
2162
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2157
2165
|
// Since [immediate](https://github.com/calvinmetcalf/immediate) is
|
|
2158
2166
|
// not doing the trick for our WebSQL transactions (at least in Node),
|
|
2159
2167
|
// we are forced to make the promises run fully synchronously.
|
|
@@ -2302,6 +2310,7 @@
|
|
|
2302
2310
|
});
|
|
2303
2311
|
};
|
|
2304
2312
|
var syncPromiseCommonjs = SyncPromise;
|
|
2313
|
+
var SyncPromise$1 = /*@__PURE__*/getDefaultExportFromCjs(syncPromiseCommonjs);
|
|
2305
2314
|
|
|
2306
2315
|
/**
|
|
2307
2316
|
* Compares two keys.
|
|
@@ -2407,7 +2416,7 @@
|
|
|
2407
2416
|
// Remove the decimal.
|
|
2408
2417
|
key32 = decimalIndex !== -1 ? key32.replace('.', '') : key32;
|
|
2409
2418
|
// Get the index of the first significant digit.
|
|
2410
|
-
var significantDigitIndex = key32.search(/(?:(?!
|
|
2419
|
+
var significantDigitIndex = key32.search(/(?:[\0-\/1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/);
|
|
2411
2420
|
// Truncate leading zeros.
|
|
2412
2421
|
key32 = key32.slice(significantDigitIndex);
|
|
2413
2422
|
var sign, exponent, mantissa;
|
|
@@ -2772,6 +2781,15 @@
|
|
|
2772
2781
|
invalid: true
|
|
2773
2782
|
};
|
|
2774
2783
|
}
|
|
2784
|
+
|
|
2785
|
+
// https://github.com/w3c/IndexedDB/issues/375
|
|
2786
|
+
// https://github.com/w3c/IndexedDB/pull/386
|
|
2787
|
+
if (Object.is(input, -0)) {
|
|
2788
|
+
return {
|
|
2789
|
+
type: type,
|
|
2790
|
+
value: 0
|
|
2791
|
+
};
|
|
2792
|
+
}
|
|
2775
2793
|
return ret;
|
|
2776
2794
|
}
|
|
2777
2795
|
case 'string':
|
|
@@ -4185,14 +4203,14 @@
|
|
|
4185
4203
|
bubbles: true,
|
|
4186
4204
|
cancelable: true
|
|
4187
4205
|
});
|
|
4188
|
-
return new
|
|
4206
|
+
return new SyncPromise$1(function (resolve) {
|
|
4189
4207
|
setTimeout(function () {
|
|
4190
4208
|
q.req.dispatchEvent(reqEvt); // No need to catch errors
|
|
4191
4209
|
resolve();
|
|
4192
4210
|
});
|
|
4193
4211
|
});
|
|
4194
4212
|
});
|
|
4195
|
-
},
|
|
4213
|
+
}, SyncPromise$1.resolve()).then(function () {
|
|
4196
4214
|
// Also works when there are no pending requests
|
|
4197
4215
|
var evt = createEvent('abort', err, {
|
|
4198
4216
|
bubbles: true,
|
|
@@ -4683,7 +4701,7 @@
|
|
|
4683
4701
|
type: o
|
|
4684
4702
|
}));
|
|
4685
4703
|
} : null;
|
|
4686
|
-
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 = {
|
|
4704
|
+
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 = {
|
|
4687
4705
|
replaced: h
|
|
4688
4706
|
}) : h = r, O && O(), h;
|
|
4689
4707
|
if (null === r) return O && O(), r;
|
|
@@ -4695,14 +4713,14 @@
|
|
|
4695
4713
|
!0 === a && (y.push(r), p.push(t));
|
|
4696
4714
|
}
|
|
4697
4715
|
var _,
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
j = (
|
|
4716
|
+
A = isPlainObject(r),
|
|
4717
|
+
w = i(r),
|
|
4718
|
+
j = (A || w) && (!l.plainObjectReplacers.length || s.replaced) || s.iterateIn ? r : replace(t, r, s, u, A || w, null, O);
|
|
4701
4719
|
if (j !== r ? (h = j, g = {
|
|
4702
4720
|
replaced: j
|
|
4703
|
-
}) : "" === t && hasConstructorOf(r, e) ? (u.push([t, r, a, s, void 0, void 0, s.type]), h = r) :
|
|
4721
|
+
}) : "" === 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
4722
|
clone: _
|
|
4705
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !
|
|
4723
|
+
}) : (["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
4724
|
clone: _
|
|
4707
4725
|
}), O && O(), n.iterateNone) return _ || h;
|
|
4708
4726
|
if (!_) return h;
|
|
@@ -4735,7 +4753,7 @@
|
|
|
4735
4753
|
end: !0
|
|
4736
4754
|
});
|
|
4737
4755
|
if (s.iterateUnsetNumeric) {
|
|
4738
|
-
for (var
|
|
4756
|
+
for (var N = r.length, P = function _loop2(n) {
|
|
4739
4757
|
if (!(n in r)) {
|
|
4740
4758
|
var o = t + (t ? "." : "") + n;
|
|
4741
4759
|
_adaptBuiltinStateObjectProperties(s, {
|
|
@@ -4745,7 +4763,7 @@
|
|
|
4745
4763
|
hasConstructorOf(t, e) ? u.push([o, t, Boolean(a), s, _, n, s.type]) : void 0 !== t && (_[n] = t);
|
|
4746
4764
|
});
|
|
4747
4765
|
}
|
|
4748
|
-
},
|
|
4766
|
+
}, E = 0; E < N; E++) P(E);
|
|
4749
4767
|
O && O({
|
|
4750
4768
|
endIterateUnsetNumeric: !0,
|
|
4751
4769
|
end: !0
|
|
@@ -5079,7 +5097,7 @@
|
|
|
5079
5097
|
}
|
|
5080
5098
|
}
|
|
5081
5099
|
};
|
|
5082
|
-
var
|
|
5100
|
+
var A = {
|
|
5083
5101
|
cryptokey: {
|
|
5084
5102
|
test: function test(e) {
|
|
5085
5103
|
return "CryptoKey" === toStringTag(e) && e.extractable;
|
|
@@ -5127,7 +5145,7 @@
|
|
|
5127
5145
|
}
|
|
5128
5146
|
}
|
|
5129
5147
|
},
|
|
5130
|
-
|
|
5148
|
+
w = {
|
|
5131
5149
|
dataview: {
|
|
5132
5150
|
test: function test(e) {
|
|
5133
5151
|
return "DataView" === toStringTag(e);
|
|
@@ -5173,24 +5191,76 @@
|
|
|
5173
5191
|
}
|
|
5174
5192
|
}
|
|
5175
5193
|
},
|
|
5194
|
+
T = {
|
|
5195
|
+
error: {
|
|
5196
|
+
test: function test(e) {
|
|
5197
|
+
return "Error" === toStringTag(e);
|
|
5198
|
+
},
|
|
5199
|
+
replace: function replace(_ref6) {
|
|
5200
|
+
var e = _ref6.name,
|
|
5201
|
+
t = _ref6.message,
|
|
5202
|
+
r = _ref6.cause,
|
|
5203
|
+
n = _ref6.stack,
|
|
5204
|
+
a = _ref6.fileName,
|
|
5205
|
+
o = _ref6.lineNumber,
|
|
5206
|
+
i = _ref6.columnNumber;
|
|
5207
|
+
return {
|
|
5208
|
+
name: e,
|
|
5209
|
+
message: t,
|
|
5210
|
+
cause: r,
|
|
5211
|
+
stack: n,
|
|
5212
|
+
fileName: a,
|
|
5213
|
+
lineNumber: o,
|
|
5214
|
+
columnNumber: i
|
|
5215
|
+
};
|
|
5216
|
+
},
|
|
5217
|
+
revive: function revive(e) {
|
|
5218
|
+
var t = new Error(e.message);
|
|
5219
|
+
return ["name", "cause", "stack", "fileName", "lineNumber", "columnNumber"].forEach(function (r) {
|
|
5220
|
+
t[r] = e[r];
|
|
5221
|
+
}), t;
|
|
5222
|
+
}
|
|
5223
|
+
}
|
|
5224
|
+
},
|
|
5176
5225
|
I = {};
|
|
5177
5226
|
function create$2(e) {
|
|
5178
5227
|
I[e.name.toLowerCase()] = {
|
|
5179
5228
|
test: function test(t) {
|
|
5180
5229
|
return hasConstructorOf(t, e);
|
|
5181
5230
|
},
|
|
5182
|
-
replace: function replace(
|
|
5183
|
-
|
|
5231
|
+
replace: function replace(_ref7) {
|
|
5232
|
+
var e = _ref7.name,
|
|
5233
|
+
t = _ref7.message,
|
|
5234
|
+
r = _ref7.cause,
|
|
5235
|
+
n = _ref7.stack,
|
|
5236
|
+
a = _ref7.fileName,
|
|
5237
|
+
o = _ref7.lineNumber,
|
|
5238
|
+
i = _ref7.columnNumber,
|
|
5239
|
+
c = _ref7.errors;
|
|
5240
|
+
return {
|
|
5241
|
+
name: e,
|
|
5242
|
+
message: t,
|
|
5243
|
+
cause: r,
|
|
5244
|
+
stack: n,
|
|
5245
|
+
fileName: a,
|
|
5246
|
+
lineNumber: o,
|
|
5247
|
+
columnNumber: i,
|
|
5248
|
+
errors: c
|
|
5249
|
+
};
|
|
5184
5250
|
},
|
|
5185
5251
|
revive: function revive(t) {
|
|
5186
|
-
|
|
5252
|
+
var r = "undefined" != typeof AggregateError && e === AggregateError,
|
|
5253
|
+
n = r ? new e(t.errors, t.message) : new e(t.message);
|
|
5254
|
+
return ["name", "cause", "stack", "fileName", "lineNumber", "columnNumber"].forEach(function (e) {
|
|
5255
|
+
n[e] = t[e];
|
|
5256
|
+
}), r && (n.errors = t.errors), n;
|
|
5187
5257
|
}
|
|
5188
5258
|
};
|
|
5189
5259
|
}
|
|
5190
5260
|
[TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError].forEach(function (e) {
|
|
5191
5261
|
return create$2(e);
|
|
5192
|
-
}), "function" == typeof InternalError && create$2(InternalError);
|
|
5193
|
-
var
|
|
5262
|
+
}), "undefined" != typeof AggregateError && create$2(AggregateError), "function" == typeof InternalError && create$2(InternalError);
|
|
5263
|
+
var N = {
|
|
5194
5264
|
file: {
|
|
5195
5265
|
test: function test(e) {
|
|
5196
5266
|
return "File" === toStringTag(e);
|
|
@@ -5232,8 +5302,8 @@
|
|
|
5232
5302
|
}
|
|
5233
5303
|
}
|
|
5234
5304
|
},
|
|
5235
|
-
|
|
5236
|
-
file:
|
|
5305
|
+
P = {
|
|
5306
|
+
file: N.file,
|
|
5237
5307
|
filelist: {
|
|
5238
5308
|
test: function test(e) {
|
|
5239
5309
|
return "FileList" === toStringTag(e);
|
|
@@ -5266,7 +5336,7 @@
|
|
|
5266
5336
|
}
|
|
5267
5337
|
}
|
|
5268
5338
|
},
|
|
5269
|
-
|
|
5339
|
+
E = {
|
|
5270
5340
|
imagebitmap: {
|
|
5271
5341
|
test: function test(e) {
|
|
5272
5342
|
return "ImageBitmap" === toStringTag(e) || e && e.dataset && "ImageBitmap" === e.dataset.toStringTag;
|
|
@@ -5293,7 +5363,7 @@
|
|
|
5293
5363
|
}
|
|
5294
5364
|
}
|
|
5295
5365
|
},
|
|
5296
|
-
|
|
5366
|
+
C = {
|
|
5297
5367
|
imagedata: {
|
|
5298
5368
|
test: function test(e) {
|
|
5299
5369
|
return "ImageData" === toStringTag(e);
|
|
@@ -5398,7 +5468,20 @@
|
|
|
5398
5468
|
}
|
|
5399
5469
|
}
|
|
5400
5470
|
},
|
|
5401
|
-
|
|
5471
|
+
F = {
|
|
5472
|
+
negativeZero: {
|
|
5473
|
+
test: function test(e) {
|
|
5474
|
+
return Object.is(e, -0);
|
|
5475
|
+
},
|
|
5476
|
+
replace: function replace(e) {
|
|
5477
|
+
return 0;
|
|
5478
|
+
},
|
|
5479
|
+
revive: function revive(e) {
|
|
5480
|
+
return -0;
|
|
5481
|
+
}
|
|
5482
|
+
}
|
|
5483
|
+
},
|
|
5484
|
+
M = {
|
|
5402
5485
|
StringObject: {
|
|
5403
5486
|
test: function test(e) {
|
|
5404
5487
|
return "String" === toStringTag(e) && "object" == _typeof$2(e);
|
|
@@ -5427,7 +5510,7 @@
|
|
|
5427
5510
|
}
|
|
5428
5511
|
}
|
|
5429
5512
|
},
|
|
5430
|
-
|
|
5513
|
+
$ = {
|
|
5431
5514
|
regexp: {
|
|
5432
5515
|
test: function test(e) {
|
|
5433
5516
|
return "RegExp" === toStringTag(e);
|
|
@@ -5445,7 +5528,7 @@
|
|
|
5445
5528
|
}
|
|
5446
5529
|
}
|
|
5447
5530
|
},
|
|
5448
|
-
|
|
5531
|
+
Y = {
|
|
5449
5532
|
set: {
|
|
5450
5533
|
test: function test(e) {
|
|
5451
5534
|
return "Set" === toStringTag(e);
|
|
@@ -5458,11 +5541,11 @@
|
|
|
5458
5541
|
}
|
|
5459
5542
|
}
|
|
5460
5543
|
},
|
|
5461
|
-
|
|
5544
|
+
q = {};
|
|
5462
5545
|
"function" == typeof Int8Array && [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].forEach(function (e) {
|
|
5463
5546
|
return function create$1(e) {
|
|
5464
5547
|
var t = e.name;
|
|
5465
|
-
|
|
5548
|
+
q[t.toLowerCase()] = {
|
|
5466
5549
|
test: function test(e) {
|
|
5467
5550
|
return toStringTag(e) === t;
|
|
5468
5551
|
},
|
|
@@ -5475,11 +5558,11 @@
|
|
|
5475
5558
|
};
|
|
5476
5559
|
}(e);
|
|
5477
5560
|
});
|
|
5478
|
-
var
|
|
5561
|
+
var W = {};
|
|
5479
5562
|
"function" == typeof Int8Array && [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].forEach(function (e) {
|
|
5480
5563
|
return function create(e) {
|
|
5481
5564
|
var t = e.name;
|
|
5482
|
-
|
|
5565
|
+
W[t.toLowerCase()] = {
|
|
5483
5566
|
test: function test(e) {
|
|
5484
5567
|
return toStringTag(e) === t;
|
|
5485
5568
|
},
|
|
@@ -5511,7 +5594,7 @@
|
|
|
5511
5594
|
};
|
|
5512
5595
|
}(e);
|
|
5513
5596
|
});
|
|
5514
|
-
var
|
|
5597
|
+
var G = {
|
|
5515
5598
|
undef: {
|
|
5516
5599
|
test: function test(e, t) {
|
|
5517
5600
|
return void 0 === e && (t.ownKeys || !("ownKeys" in t));
|
|
@@ -5524,7 +5607,7 @@
|
|
|
5524
5607
|
}
|
|
5525
5608
|
}
|
|
5526
5609
|
},
|
|
5527
|
-
|
|
5610
|
+
H = {
|
|
5528
5611
|
userObject: {
|
|
5529
5612
|
test: function test(e, t) {
|
|
5530
5613
|
return isUserObject(e);
|
|
@@ -5537,7 +5620,7 @@
|
|
|
5537
5620
|
}
|
|
5538
5621
|
}
|
|
5539
5622
|
},
|
|
5540
|
-
|
|
5623
|
+
X = [{
|
|
5541
5624
|
arrayNonindexKeys: {
|
|
5542
5625
|
testPlainObjects: !0,
|
|
5543
5626
|
test: function test(e, t) {
|
|
@@ -5568,9 +5651,9 @@
|
|
|
5568
5651
|
revive: function revive(e) {}
|
|
5569
5652
|
}
|
|
5570
5653
|
}],
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
var
|
|
5654
|
+
Z = [K, x, L, F],
|
|
5655
|
+
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] : []);
|
|
5656
|
+
var ne = re.concat({
|
|
5574
5657
|
checkDataCloneException: {
|
|
5575
5658
|
test: function test(e) {
|
|
5576
5659
|
var t = {}.toString.call(e).slice(8, -1);
|
|
@@ -5582,9 +5665,9 @@
|
|
|
5582
5665
|
|
|
5583
5666
|
// See: http://stackoverflow.com/questions/42170826/categories-for-rejection-by-the-structured-cloning-algorithm
|
|
5584
5667
|
|
|
5585
|
-
var typeson = new u().register(
|
|
5668
|
+
var typeson = new u().register(ne);
|
|
5586
5669
|
function register(func) {
|
|
5587
|
-
typeson = new u().register(func(
|
|
5670
|
+
typeson = new u().register(func(ne));
|
|
5588
5671
|
}
|
|
5589
5672
|
|
|
5590
5673
|
// We are keeping the callback approach for now in case we wish to reexpose
|
|
@@ -6083,7 +6166,7 @@
|
|
|
6083
6166
|
}
|
|
6084
6167
|
var indexCreations = colNamesToPreserve.slice(2) // Doing `key` separately and no need for index on `value`
|
|
6085
6168
|
.map(function (escapedIndexNameSQL) {
|
|
6086
|
-
return new
|
|
6169
|
+
return new SyncPromise$1(function (resolve, reject) {
|
|
6087
6170
|
var escapedIndexToRecreate = sqlQuote(escapedStoreNameSQL.slice(1, -1) + '^5' + escapedIndexNameSQL.slice(1, -1));
|
|
6088
6171
|
// const sql = 'DROP INDEX IF EXISTS ' + escapedIndexToRecreate;
|
|
6089
6172
|
// CFG.DEBUG && console.log(sql);
|
|
@@ -6099,7 +6182,7 @@
|
|
|
6099
6182
|
});
|
|
6100
6183
|
});
|
|
6101
6184
|
|
|
6102
|
-
indexCreations.push(new
|
|
6185
|
+
indexCreations.push(new SyncPromise$1(function (resolve, reject) {
|
|
6103
6186
|
var escapedIndexToRecreate = sqlQuote('sk_' + escapedStoreNameSQL.slice(1, -1));
|
|
6104
6187
|
// Chrome erring here if not dropped first; Node does not
|
|
6105
6188
|
var sql = 'DROP INDEX IF EXISTS ' + escapedIndexToRecreate;
|
|
@@ -6114,7 +6197,7 @@
|
|
|
6114
6197
|
reject(err);
|
|
6115
6198
|
});
|
|
6116
6199
|
}));
|
|
6117
|
-
|
|
6200
|
+
SyncPromise$1.all(indexCreations).then(finish, error)["catch"](function (err) {
|
|
6118
6201
|
console.log('Index rename error');
|
|
6119
6202
|
throw err;
|
|
6120
6203
|
});
|
|
@@ -6583,7 +6666,7 @@
|
|
|
6583
6666
|
// idea is to avoid, where possible, unnecessary delays (and
|
|
6584
6667
|
// consuming code ought to only see a difference in the browser
|
|
6585
6668
|
// where we can't control the transaction timeout anyways).
|
|
6586
|
-
return new
|
|
6669
|
+
return new SyncPromise$1(function (resolve, reject) {
|
|
6587
6670
|
var index = me.__indexes[indexName];
|
|
6588
6671
|
if (
|
|
6589
6672
|
// `createIndex` was called synchronously after the current insertion was added to
|
|
@@ -6634,7 +6717,7 @@
|
|
|
6634
6717
|
}
|
|
6635
6718
|
});
|
|
6636
6719
|
});
|
|
6637
|
-
return
|
|
6720
|
+
return SyncPromise$1.all(indexPromises).then(function () {
|
|
6638
6721
|
var sqlStart = ['INSERT INTO', escapeStoreNameForSQL(me.__currentName), '('];
|
|
6639
6722
|
var sqlEnd = [' VALUES ('];
|
|
6640
6723
|
var insertSqlValues = [];
|
|
@@ -7571,18 +7654,18 @@
|
|
|
7571
7654
|
oldVersion: oldVersion,
|
|
7572
7655
|
newVersion: newVersion
|
|
7573
7656
|
});
|
|
7574
|
-
return new
|
|
7657
|
+
return new SyncPromise$1(function (resolve) {
|
|
7575
7658
|
setTimeout(function () {
|
|
7576
7659
|
entry.dispatchEvent(e); // No need to catch errors
|
|
7577
7660
|
resolve();
|
|
7578
7661
|
});
|
|
7579
7662
|
});
|
|
7580
7663
|
});
|
|
7581
|
-
},
|
|
7664
|
+
}, SyncPromise$1.resolve()).then(function () {
|
|
7582
7665
|
if (connectionsClosed()) {
|
|
7583
7666
|
return undefined;
|
|
7584
7667
|
}
|
|
7585
|
-
return new
|
|
7668
|
+
return new SyncPromise$1(function (resolve) {
|
|
7586
7669
|
var unblocking = {
|
|
7587
7670
|
check: function check() {
|
|
7588
7671
|
if (connectionsClosed()) {
|