indexeddbshim 6.6.0 → 9.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/README.md +1 -6
- package/badges/coverage-badge.svg +1 -1
- package/badges/licenses-badge-dev.svg +1 -1
- package/badges/tests-badge.svg +1 -1
- package/dist/indexeddbshim-Key.js +34 -47
- 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.js +700 -570
- package/dist/indexeddbshim-UnicodeIdentifiers-node.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +735 -631
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +6 -6
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/indexeddbshim-node.js +700 -570
- package/dist/indexeddbshim-node.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +736 -632
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +6 -6
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +735 -631
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +6 -6
- package/dist/indexeddbshim.min.js.map +1 -1
- package/examples/IDBKeyUtils.html +0 -1
- package/index.html +5 -4
- package/package.json +58 -65
- package/src/DOMStringList.js +3 -3
- package/src/IDBDatabase.js +1 -1
- package/src/IDBObjectStore.js +3 -2
- package/src/IDBRequest.js +2 -2
- package/src/Key.js +9 -8
- package/src/unicode-regex.js +2 -2
- package/src/util.js +13 -18
- package/CHANGES.md +0 -1173
package/README.md
CHANGED
|
@@ -62,10 +62,6 @@ or
|
|
|
62
62
|
[production (minified)](https://raw.githubusercontent.com/indexeddbshim/indexeddbshim/master/dist/indexeddbshim.min.js)
|
|
63
63
|
script, or install it using [NPM](https://docs.npmjs.com/getting-started/what-is-npm).
|
|
64
64
|
|
|
65
|
-
Please note that the version currently in `master` is the only one which
|
|
66
|
-
supports Node.js (and has a number of fixes), but we are not yet ready
|
|
67
|
-
for release.
|
|
68
|
-
|
|
69
65
|
For Mac, you may need to have [CMake](https://cmake.org/download/) installed
|
|
70
66
|
for the SQLite3 install to work (See
|
|
71
67
|
`Tools->How to Install For Command Line Use`) as well as build SQLite3 from
|
|
@@ -90,7 +86,6 @@ Add the following scripts to your page:
|
|
|
90
86
|
|
|
91
87
|
```html
|
|
92
88
|
<script src="./node_modules/core-js-bundle/minified.js"></script>
|
|
93
|
-
<script src="./node_modules/regenerator-runtime/runtime.js"></script>
|
|
94
89
|
<script src="./node_modules/indexeddbshim/dist/indexeddbshim.min.js"></script>
|
|
95
90
|
```
|
|
96
91
|
|
|
@@ -100,7 +95,6 @@ use the following instead:
|
|
|
100
95
|
|
|
101
96
|
```html
|
|
102
97
|
<script src="./node_modules/core-js-bundle/minified.js"></script>
|
|
103
|
-
<script src="./node_modules/regenerator-runtime/runtime.js"></script>
|
|
104
98
|
<script src="./node_modules/indexeddbshim/dist/indexeddbshim-UnicodeIdentifiers.min.js"></script>
|
|
105
99
|
```
|
|
106
100
|
|
|
@@ -485,6 +479,7 @@ to resolve:
|
|
|
485
479
|
processes/browser windows
|
|
486
480
|
1. Some issues related to [task/micro-task timing](https://github.com/axemclion/IndexedDBShim/issues/296)
|
|
487
481
|
in Node (for inherent limitations in the browser, see below).
|
|
482
|
+
1. [ImageData](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/ImageData) storage on Node 14 when used with `node-canvas` - due to [this issue](https://github.com/Automattic/node-canvas/issues/1646)
|
|
488
483
|
|
|
489
484
|
There are a few bugs that are outside of our power to fix. Namely:
|
|
490
485
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="428" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="orange" stroke="#000" d="M0 0h120v20H0zM120 0h109v20H120zM229 0h87v20h-87zM316 0h112v20H316z"/><path fill="url(#smooth)" d="M0 0h428v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Statements 89.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="428" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="orange" stroke="#000" d="M0 0h120v20H0zM120 0h109v20H120zM229 0h87v20h-87zM316 0h112v20H316z"/><path fill="url(#smooth)" d="M0 0h428v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Statements 89.49%</text><text class="high" x="5" y="14">Statements 89.49%</text><text class="shadow" x="125.5" y="15">Branches 81.66%</text><text class="high" x="125" y="14">Branches 81.66%</text><text class="shadow" x="234.5" y="15">Lines 89.38%</text><text class="high" x="234" y="14">Lines 89.38%</text><text class="shadow" x="321.5" y="15">Functions 86.57%</text><text class="high" x="321" y="14">Functions 86.57%</text></g></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="616" height="188"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="navy" d="M0 0h88v188H0z"/><path fill="#006400" d="M88 0h183v188H88z"/><path fill="green" d="M271 0h266v188H271z"/><path fill="#cc0" d="M537 0h79v188h-79z"/><path fill="url(#smooth)" d="M0 0h616v188H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">License types</text><text class="high" x="5" y="14">License types</text><text class="shadow" x="5.5" y="27">(all devDeps)</text><text class="high" x="5" y="26">(all devDeps)</text><text class="shadow" x="93.5" y="15">Public</text><text class="high" x="93" y="14">Public</text><text class="shadow" x="93.5" y="27">domain</text><text class="high" x="93" y="26">domain</text><text class="shadow" x="93.5" y="51">1. (MIT OR CC0-1.0)</text><text class="high" x="93" y="50">1. (MIT OR CC0-1.0)</text><text class="shadow" x="93.5" y="63">2. (Unlicense OR Apache-2.0)</text><text class="high" x="93" y="62">2. (Unlicense OR Apache-2.0)</text><text class="shadow" x="93.5" y="75">3. CC0-1.0</text><text class="high" x="93" y="74">3. CC0-1.0</text><text class="shadow" x="93.5" y="87">4. Unlicense</text><text class="high" x="93" y="86">4. Unlicense</text><text class="shadow" x="276.5" y="15">Permissive</text><text class="high" x="276" y="14">Permissive</text><text class="shadow" x="276.5" y="39">1. (AFL-2.1 OR BSD-3-Clause)</text><text class="high" x="276" y="38">1. (AFL-2.1 OR BSD-3-Clause)</text><text class="shadow" x="276.5" y="51">2. (BSD-2-Clause OR (MIT OR Apache-2.0))</text><text class="high" x="276" y="50">2. (BSD-2-Clause OR (MIT OR Apache-2.0))</text><text class="shadow" x="276.5" y="63">3. (GPL-3.0-or-later OR MIT)</text><text class="high" x="276" y="62">3. (GPL-3.0-or-later OR MIT)</text><text class="shadow" x="276.5" y="75">4. (MIT OR Apache-2.0)</text><text class="high" x="276" y="74">4. (MIT OR Apache-2.0)</text><text class="shadow" x="276.5" y="87">5. 0BSD</text><text class="high" x="276" y="86">5. 0BSD</text><text class="shadow" x="276.5" y="99">6. Apache-2.0</text><text class="high" x="276" y="98">6. Apache-2.0</text><text class="shadow" x="276.5" y="111">7. Artistic-2.0</text><text class="high" x="276" y="110">7. Artistic-2.0</text><text class="shadow" x="276.5" y="123">8. BSD-2-Clause</text><text class="high" x="276" y="122">8. BSD-2-Clause</text><text class="shadow" x="276.5" y="135">9. BSD-3-Clause</text><text class="high" x="276" y="134">9. BSD-3-Clause</text><text class="shadow" x="276.5" y="147">10. CC-BY-3.0</text><text class="high" x="276" y="146">10. CC-BY-3.0</text><text class="shadow" x="276.5" y="159">11. CC-BY-4.0</text><text class="high" x="276" y="158">11. CC-BY-4.0</text><text class="shadow" x="276.5" y="171">12. ISC</text><text class="high" x="276" y="170">12. ISC</text><text class="shadow" x="276.5" y="183">13. MIT</text><text class="high" x="276" y="182">13. MIT</text><text class="shadow" x="542.5" y="15">Weakly</text><text class="high" x="542" y="14">Weakly</text><text class="shadow" x="542.5" y="27">protective</text><text class="high" x="542" y="26">protective</text><text class="shadow" x="542.5" y="51">1. LGPL-3.0</text><text class="high" x="542" y="50">1. LGPL-3.0</text><text class="shadow" x="542.5" y="63">2. MPL-2.0</text><text class="high" x="542" y="62">2. MPL-2.0</text></g></svg>
|
package/badges/tests-badge.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="111" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="#696969" d="M0 0h41v20H0z"/><path fill="#e05d44" d="M41 0h70v20H41z"/><path fill="url(#smooth)" d="M0 0h111v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Tests</text><text class="high" x="5" y="14">Tests</text><text class="shadow" x="46.5" y="15">
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="111" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="#696969" d="M0 0h41v20H0z"/><path fill="#e05d44" d="M41 0h70v20H41z"/><path fill="url(#smooth)" d="M0 0h111v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Tests</text><text class="high" x="5" y="14">Tests</text><text class="shadow" x="46.5" y="15">1634/1797</text><text class="high" x="46" y="14">1634/1797</text></g></svg>
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
/*! indexeddbshim -
|
|
1
|
+
/*! indexeddbshim - v9.0.0 - 1/5/2022 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
5
5
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
6
|
-
(global = global || self, factory(global.IDBKeyUtils = {}));
|
|
7
|
-
}(this, (function (exports) { 'use strict';
|
|
6
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.IDBKeyUtils = {}));
|
|
7
|
+
})(this, (function (exports) { 'use strict';
|
|
8
8
|
|
|
9
9
|
function _typeof(obj) {
|
|
10
10
|
"@babel/helpers - typeof";
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
_typeof = function (obj) {
|
|
18
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return _typeof(obj);
|
|
12
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
13
|
+
return typeof obj;
|
|
14
|
+
} : function (obj) {
|
|
15
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
16
|
+
}, _typeof(obj);
|
|
23
17
|
}
|
|
24
18
|
|
|
25
19
|
function _slicedToArray(arr, i) {
|
|
@@ -39,18 +33,21 @@
|
|
|
39
33
|
}
|
|
40
34
|
|
|
41
35
|
function _iterableToArray(iter) {
|
|
42
|
-
if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
36
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
43
37
|
}
|
|
44
38
|
|
|
45
39
|
function _iterableToArrayLimit(arr, i) {
|
|
46
|
-
|
|
40
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
41
|
+
|
|
42
|
+
if (_i == null) return;
|
|
47
43
|
var _arr = [];
|
|
48
44
|
var _n = true;
|
|
49
45
|
var _d = false;
|
|
50
|
-
|
|
46
|
+
|
|
47
|
+
var _s, _e;
|
|
51
48
|
|
|
52
49
|
try {
|
|
53
|
-
for (
|
|
50
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
54
51
|
_arr.push(_s.value);
|
|
55
52
|
|
|
56
53
|
if (i && _arr.length === i) break;
|
|
@@ -95,9 +92,9 @@
|
|
|
95
92
|
}
|
|
96
93
|
|
|
97
94
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
98
|
-
var it;
|
|
95
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
99
96
|
|
|
100
|
-
if (
|
|
97
|
+
if (!it) {
|
|
101
98
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
102
99
|
if (it) o = it;
|
|
103
100
|
var i = 0;
|
|
@@ -130,7 +127,7 @@
|
|
|
130
127
|
err;
|
|
131
128
|
return {
|
|
132
129
|
s: function () {
|
|
133
|
-
it =
|
|
130
|
+
it = it.call(o);
|
|
134
131
|
},
|
|
135
132
|
n: function () {
|
|
136
133
|
var step = it.next();
|
|
@@ -237,7 +234,7 @@
|
|
|
237
234
|
// defaults to `true`
|
|
238
235
|
'addSQLiteExtension', // Various types of in-memory databases that can auto-delete
|
|
239
236
|
['memoryDatabase', function (val) {
|
|
240
|
-
if (!/^(?::memory:|file::memory:(\?(?:
|
|
237
|
+
if (!/^(?::memory:|file::memory:(\?(?:(?!#)[\s\S])*)?(#(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?)?$/.test(val)) {
|
|
241
238
|
throw new TypeError('`memoryDatabase` must be the empty string, ":memory:", or a ' + '"file::memory:[?queryString][#hash] URL".');
|
|
242
239
|
}
|
|
243
240
|
}], // NODE-SPECIFIC CONFIG
|
|
@@ -512,14 +509,14 @@
|
|
|
512
509
|
|
|
513
510
|
function escapeUnmatchedSurrogates(arg) {
|
|
514
511
|
// http://stackoverflow.com/a/6701665/271577
|
|
515
|
-
return arg.replace(/((?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])))(?!(?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))|(^|(?:[\
|
|
512
|
+
return arg.replace(/((?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])))(?!(?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))|(^|(?:(?)[\s\S]))((?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g, function (_, unmatchedHighSurrogate, precedingLow, unmatchedLowSurrogate) {
|
|
516
513
|
// Could add a corresponding surrogate for compatibility with `node-sqlite3`: http://bugs.python.org/issue12569 and http://stackoverflow.com/a/6701665/271577
|
|
517
514
|
// but Chrome having problems
|
|
518
515
|
if (unmatchedHighSurrogate) {
|
|
519
|
-
return '^2' +
|
|
516
|
+
return '^2' + unmatchedHighSurrogate.codePointAt().toString(16).padStart(4, '0');
|
|
520
517
|
}
|
|
521
518
|
|
|
522
|
-
return (precedingLow || '') + '^3' +
|
|
519
|
+
return (precedingLow || '') + '^3' + unmatchedLowSurrogate.codePointAt().toString(16).padStart(4, '0');
|
|
523
520
|
});
|
|
524
521
|
}
|
|
525
522
|
|
|
@@ -554,11 +551,6 @@
|
|
|
554
551
|
return v === null || v === undefined;
|
|
555
552
|
}
|
|
556
553
|
|
|
557
|
-
|
|
558
|
-
function padStart(str, ct, fill) {
|
|
559
|
-
return new Array(ct - String(str).length + 1).join(fill) + str;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
554
|
/**
|
|
563
555
|
* Compares two keys.
|
|
564
556
|
* @param first
|
|
@@ -619,7 +611,7 @@
|
|
|
619
611
|
};
|
|
620
612
|
var keyTypes = Object.keys(keyTypeToEncodedChar);
|
|
621
613
|
keyTypes.forEach(function (k) {
|
|
622
|
-
keyTypeToEncodedChar[k] = String.
|
|
614
|
+
keyTypeToEncodedChar[k] = String.fromCodePoint(keyTypeToEncodedChar[k]);
|
|
623
615
|
});
|
|
624
616
|
var encodedCharToKeyType = keyTypes.reduce(function (o, k) {
|
|
625
617
|
o[keyTypeToEncodedChar[k]] = k;
|
|
@@ -669,7 +661,7 @@
|
|
|
669
661
|
|
|
670
662
|
key32 = decimalIndex !== -1 ? key32.replace('.', '') : key32; // Get the index of the first significant digit.
|
|
671
663
|
|
|
672
|
-
var significantDigitIndex = key32.search(/(?:
|
|
664
|
+
var significantDigitIndex = key32.search(/(?:(?!0)[\s\S])/); // Truncate leading zeros.
|
|
673
665
|
|
|
674
666
|
key32 = key32.slice(significantDigitIndex);
|
|
675
667
|
var sign, exponent, mantissa; // Finite cases:
|
|
@@ -717,10 +709,10 @@
|
|
|
717
709
|
|
|
718
710
|
switch (signValues[sign]) {
|
|
719
711
|
case 'negativeInfinity':
|
|
720
|
-
return
|
|
712
|
+
return Number.NEGATIVE_INFINITY;
|
|
721
713
|
|
|
722
714
|
case 'positiveInfinity':
|
|
723
|
-
return
|
|
715
|
+
return Number.POSITIVE_INFINITY;
|
|
724
716
|
|
|
725
717
|
case 'bigPositive':
|
|
726
718
|
return pow32(mantissa, exponent);
|
|
@@ -832,7 +824,7 @@
|
|
|
832
824
|
// `ArrayBuffer`/Views on buffers (`TypedArray` or `DataView`)
|
|
833
825
|
encode: function encode(key) {
|
|
834
826
|
return keyTypeToEncodedChar.binary + '-' + (key.byteLength ? _toConsumableArray(getCopyBytesHeldByBufferSource(key)).map(function (b) {
|
|
835
|
-
return padStart(
|
|
827
|
+
return String(b).padStart(3, '0');
|
|
836
828
|
}) // e.g., '255,005,254,000,001,033'
|
|
837
829
|
: '');
|
|
838
830
|
},
|
|
@@ -929,13 +921,13 @@
|
|
|
929
921
|
}
|
|
930
922
|
/**
|
|
931
923
|
* @param {Float} num
|
|
932
|
-
* @param {Float} precision
|
|
924
|
+
* @param {Float} [precision=16]
|
|
933
925
|
* @returns {Float}
|
|
934
926
|
*/
|
|
935
927
|
|
|
936
928
|
|
|
937
|
-
function roundToPrecision(num
|
|
938
|
-
precision =
|
|
929
|
+
function roundToPrecision(num) {
|
|
930
|
+
var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 16;
|
|
939
931
|
return Number.parseFloat(num.toPrecision(precision));
|
|
940
932
|
}
|
|
941
933
|
/**
|
|
@@ -1147,13 +1139,8 @@
|
|
|
1147
1139
|
}
|
|
1148
1140
|
}();
|
|
1149
1141
|
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
continue;
|
|
1153
|
-
|
|
1154
|
-
default:
|
|
1155
|
-
if (_typeof(_ret) === "object") return _ret.v;
|
|
1156
|
-
}
|
|
1142
|
+
if (_ret === "continue") continue;
|
|
1143
|
+
if (_typeof(_ret) === "object") return _ret.v;
|
|
1157
1144
|
} catch (err) {
|
|
1158
1145
|
if (!multiEntry) {
|
|
1159
1146
|
throw err;
|
|
@@ -1748,7 +1735,7 @@
|
|
|
1748
1735
|
getCurrentNumber(tx, store, function (key) {
|
|
1749
1736
|
if (key > MAX_ALLOWED_CURRENT_NUMBER) {
|
|
1750
1737
|
// 2 ^ 53 (See <https://github.com/w3c/IndexedDB/issues/147>)
|
|
1751
|
-
cb('failure'); // eslint-disable-line
|
|
1738
|
+
cb('failure'); // eslint-disable-line node/no-callback-literal
|
|
1752
1739
|
|
|
1753
1740
|
return;
|
|
1754
1741
|
} // Increment current number by 1 (we cannot leverage SQLite's
|
|
@@ -1828,5 +1815,5 @@
|
|
|
1828
1815
|
|
|
1829
1816
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1830
1817
|
|
|
1831
|
-
}))
|
|
1818
|
+
}));
|
|
1832
1819
|
//# sourceMappingURL=indexeddbshim-Key.js.map
|