indexeddbshim 7.1.0 → 10.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 +0 -4
- package/badges/coverage-badge.svg +1 -1
- package/badges/tests-badge.svg +1 -1
- package/dist/indexeddbshim-Key.js +21 -24
- 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 +1242 -3253
- package/dist/indexeddbshim-UnicodeIdentifiers-node.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +1310 -3054
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +5 -15
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/indexeddbshim-node.js +1242 -3253
- package/dist/indexeddbshim-node.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +1310 -3054
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +5 -15
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +1310 -3054
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +5 -15
- package/dist/indexeddbshim.min.js.map +1 -1
- package/package.json +116 -116
- package/src/DOMStringList.js +3 -3
- package/src/IDBDatabase.js +1 -1
- package/src/IDBFactory.js +3 -5
- package/src/IDBObjectStore.js +1 -1
- package/src/IDBRequest.js +2 -2
- package/src/Key.js +2 -2
- package/src/Sca.js +8 -6
- package/src/unicode-regex.js +1 -1
- package/src/util.js +7 -6
- package/CHANGES.md +0 -1202
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
|
|
@@ -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>
|
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 - 2/26/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
6
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.IDBKeyUtils = {}));
|
|
7
|
-
}(this, (function (exports) { 'use strict';
|
|
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();
|
|
@@ -516,10 +513,10 @@
|
|
|
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' + unmatchedHighSurrogate.
|
|
516
|
+
return '^2' + unmatchedHighSurrogate.codePointAt().toString(16).padStart(4, '0');
|
|
520
517
|
}
|
|
521
518
|
|
|
522
|
-
return (precedingLow || '') + '^3' + unmatchedLowSurrogate.
|
|
519
|
+
return (precedingLow || '') + '^3' + unmatchedLowSurrogate.codePointAt().toString(16).padStart(4, '0');
|
|
523
520
|
});
|
|
524
521
|
}
|
|
525
522
|
|
|
@@ -614,7 +611,7 @@
|
|
|
614
611
|
};
|
|
615
612
|
var keyTypes = Object.keys(keyTypeToEncodedChar);
|
|
616
613
|
keyTypes.forEach(function (k) {
|
|
617
|
-
keyTypeToEncodedChar[k] = String.
|
|
614
|
+
keyTypeToEncodedChar[k] = String.fromCodePoint(keyTypeToEncodedChar[k]);
|
|
618
615
|
});
|
|
619
616
|
var encodedCharToKeyType = keyTypes.reduce(function (o, k) {
|
|
620
617
|
o[keyTypeToEncodedChar[k]] = k;
|
|
@@ -1818,5 +1815,5 @@
|
|
|
1818
1815
|
|
|
1819
1816
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1820
1817
|
|
|
1821
|
-
}))
|
|
1818
|
+
}));
|
|
1822
1819
|
//# sourceMappingURL=indexeddbshim-Key.js.map
|