indexeddbshim 10.1.0 → 11.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 +35 -32
- 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 → indexeddbshim-UnicodeIdentifiers-node.cjs} +123 -53
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -0
- package/dist/indexeddbshim-UnicodeIdentifiers.js +227 -194
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +2 -8
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/{indexeddbshim-node.js → indexeddbshim-node.cjs} +121 -51
- package/dist/indexeddbshim-node.cjs.map +1 -0
- package/dist/indexeddbshim-noninvasive.js +225 -192
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +2 -8
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +225 -192
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +2 -8
- package/dist/indexeddbshim.min.js.map +1 -1
- package/package.json +62 -48
- package/src/IDBTransaction.js +1 -0
- package/src/node-UnicodeIdentifiers.js +2 -3
- package/src/node.js +2 -3
- package/dist/indexeddbshim-UnicodeIdentifiers-node.js.map +0 -1
- package/dist/indexeddbshim-node.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="725" height="176"><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 0h88v176H0z"/><path fill="#006400" d="M88 0h183v176H88z"/><path fill="green" d="M271 0h266v176H271z"/><path fill="#cc0" d="M537 0h79v176h-79z"/><path fill="#a9a9a9" d="M616 0h109v176H616z"/><path fill="url(#smooth)" d="M0 0h725v176H0z"/></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. (BSD-2-Clause OR (MIT OR Apache-2.0))</text><text class="high" x="276" y="38">1. (BSD-2-Clause OR (MIT OR Apache-2.0))</text><text class="shadow" x="276.5" y="51">2. (MIT OR CC0-1.0)</text><text class="high" x="276" y="50">2. (MIT OR CC0-1.0)</text><text class="shadow" x="276.5" y="63">3. (Unlicense OR Apache-2.0)</text><text class="high" x="276" y="62">3. (Unlicense OR Apache-2.0)</text><text class="shadow" x="276.5" y="75">4. Apache-2.0</text><text class="high" x="276" y="74">4. Apache-2.0</text><text class="shadow" x="276.5" y="87">5. BSD-2-Clause</text><text class="high" x="276" y="86">5. BSD-2-Clause</text><text class="shadow" x="276.5" y="99">6. BSD-3-Clause</text><text class="high" x="276" y="98">6. BSD-3-Clause</text><text class="shadow" x="276.5" y="111">7. BlueOak-1.0.0</text><text class="high" x="276" y="110">7. BlueOak-1.0.0</text><text class="shadow" x="276.5" y="123">8. CC-BY-3.0</text><text class="high" x="276" y="122">8. CC-BY-3.0</text><text class="shadow" x="276.5" y="135">9. CC-BY-4.0</text><text class="high" x="276" y="134">9. CC-BY-4.0</text><text class="shadow" x="276.5" y="147">10. ISC</text><text class="high" x="276" y="146">10. ISC</text><text class="shadow" x="276.5" y="159">11. MIT</text><text class="high" x="276" y="158">11. MIT</text><text class="shadow" x="276.5" y="171">12. WTFPL</text><text class="high" x="276" y="170">12. WTFPL</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><text class="shadow" x="621.5" y="15">Uncategorized</text><text class="high" x="621" y="14">Uncategorized</text><text class="shadow" x="621.5" y="39">1. neodoc (2.0.2)</text><text class="high" x="621" y="38">1. neodoc (2.0.2)</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="593" height="128"><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 0h227v128H0z"/><path fill="#006400" d="M227 0h183v128H227z"/><path fill="green" d="M410 0h183v128H410z"/><path fill="url(#smooth)" d="M0 0h593v128H0z"/></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">(project, deps, and bundled devDeps)</text><text class="high" x="5" y="26">(project, deps, and bundled devDeps)</text><text class="shadow" x="232.5" y="15">Public</text><text class="high" x="232" y="14">Public</text><text class="shadow" x="232.5" y="27">domain</text><text class="high" x="232" y="26">domain</text><text class="shadow" x="232.5" y="51">1. (Unlicense OR Apache-2.0)</text><text class="high" x="232" y="50">1. (Unlicense OR Apache-2.0)</text><text class="shadow" x="415.5" y="15">Permissive</text><text class="high" x="415" y="14">Permissive</text><text class="shadow" x="415.5" y="39">1. (MIT OR Apache-2.0)</text><text class="high" x="415" y="38">1. (MIT OR Apache-2.0)</text><text class="shadow" x="415.5" y="51">2. (Unlicense OR Apache-2.0)</text><text class="high" x="415" y="50">2. (Unlicense OR Apache-2.0)</text><text class="shadow" x="415.5" y="63">3. Apache-2.0</text><text class="high" x="415" y="62">3. Apache-2.0</text><text class="shadow" x="415.5" y="75">4. BSD-2-Clause</text><text class="high" x="415" y="74">4. BSD-2-Clause</text><text class="shadow" x="415.5" y="87">5. BSD-3-Clause</text><text class="high" x="415" y="86">5. BSD-3-Clause</text><text class="shadow" x="415.5" y="99">6. ISC</text><text class="high" x="415" y="98">6. ISC</text><text class="shadow" x="415.5" y="111">7. MIT</text><text class="high" x="415" y="110">7. MIT</text><text class="shadow" x="415.5" y="123">8. WTFPL</text><text class="high" x="415" y="122">8. WTFPL</text></g></svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim -
|
|
1
|
+
/*! indexeddbshim - v11.0.0 - 4/9/2023 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
'addSQLiteExtension',
|
|
242
242
|
// Various types of in-memory databases that can auto-delete
|
|
243
243
|
['memoryDatabase', function (val) {
|
|
244
|
-
if (!/^(?::memory:|file::memory:(\?(?:(
|
|
244
|
+
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)) {
|
|
245
245
|
throw new TypeError('`memoryDatabase` must be the empty string, ":memory:", or a ' + '"file::memory:[?queryString][#hash] URL".');
|
|
246
246
|
}
|
|
247
247
|
}],
|
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
|
|
503
503
|
function escapeUnmatchedSurrogates(arg) {
|
|
504
504
|
// http://stackoverflow.com/a/6701665/271577
|
|
505
|
-
return arg.replace(/((?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])))(?!(?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))|(^|(?:
|
|
505
|
+
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) {
|
|
506
506
|
// Could add a corresponding surrogate for compatibility with `node-sqlite3`: http://bugs.python.org/issue12569 and http://stackoverflow.com/a/6701665/271577
|
|
507
507
|
// but Chrome having problems
|
|
508
508
|
if (unmatchedHighSurrogate) {
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
// Remove the decimal.
|
|
643
643
|
key32 = decimalIndex !== -1 ? key32.replace('.', '') : key32;
|
|
644
644
|
// Get the index of the first significant digit.
|
|
645
|
-
var significantDigitIndex = key32.search(/(?:(?!
|
|
645
|
+
var significantDigitIndex = key32.search(/(?:[\0-\/1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/);
|
|
646
646
|
// Truncate leading zeros.
|
|
647
647
|
key32 = key32.slice(significantDigitIndex);
|
|
648
648
|
var sign, exponent, mantissa;
|
|
@@ -1030,46 +1030,49 @@
|
|
|
1030
1030
|
var len = input.length;
|
|
1031
1031
|
seen.push(input);
|
|
1032
1032
|
var keys = [];
|
|
1033
|
-
|
|
1033
|
+
var _loop = function _loop() {
|
|
1034
1034
|
// We cannot iterate here with array extras as we must ensure sparse arrays are invalidated
|
|
1035
1035
|
if (!multiEntry && !Object.prototype.hasOwnProperty.call(input, i)) {
|
|
1036
1036
|
return {
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1037
|
+
v: {
|
|
1038
|
+
type: type,
|
|
1039
|
+
invalid: true,
|
|
1040
|
+
message: 'Does not have own index property'
|
|
1041
|
+
}
|
|
1040
1042
|
};
|
|
1041
1043
|
}
|
|
1042
1044
|
try {
|
|
1043
|
-
var
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
if (
|
|
1047
|
-
|
|
1048
|
-
return "continue";
|
|
1049
|
-
}
|
|
1050
|
-
return {
|
|
1051
|
-
v: {
|
|
1052
|
-
type: type,
|
|
1053
|
-
invalid: true,
|
|
1054
|
-
message: 'Bad array entry value-to-key conversion'
|
|
1055
|
-
}
|
|
1056
|
-
};
|
|
1045
|
+
var entry = input[i];
|
|
1046
|
+
var key = convertValueToKeyValueDecoded(entry, seen, false, fullKeys); // Though steps do not list rethrowing, the next is returnifabrupt when not multiEntry
|
|
1047
|
+
if (key.invalid) {
|
|
1048
|
+
if (multiEntry) {
|
|
1049
|
+
return "continue";
|
|
1057
1050
|
}
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
if (
|
|
1067
|
-
|
|
1051
|
+
return {
|
|
1052
|
+
v: {
|
|
1053
|
+
type: type,
|
|
1054
|
+
invalid: true,
|
|
1055
|
+
message: 'Bad array entry value-to-key conversion'
|
|
1056
|
+
}
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1059
|
+
if (!multiEntry || !fullKeys && keys.every(function (k) {
|
|
1060
|
+
return cmp(k, key.value) !== 0;
|
|
1061
|
+
}) || fullKeys && keys.every(function (k) {
|
|
1062
|
+
return cmp(k, key) !== 0;
|
|
1063
|
+
})) {
|
|
1064
|
+
keys.push(fullKeys ? key : key.value);
|
|
1065
|
+
}
|
|
1068
1066
|
} catch (err) {
|
|
1069
1067
|
if (!multiEntry) {
|
|
1070
1068
|
throw err;
|
|
1071
1069
|
}
|
|
1072
1070
|
}
|
|
1071
|
+
};
|
|
1072
|
+
for (var i = 0; i < len; i++) {
|
|
1073
|
+
var _ret = _loop();
|
|
1074
|
+
if (_ret === "continue") continue;
|
|
1075
|
+
if (_typeof(_ret) === "object") return _ret.v;
|
|
1073
1076
|
}
|
|
1074
1077
|
return {
|
|
1075
1078
|
type: type,
|