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 +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="140"><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 0h227v140H0z"/><path fill="#006400" d="M227 0h183v140H227z"/><path fill="green" d="M410 0h183v140H410z"/><path fill="url(#smooth)" d="M0 0h593v140H0z"/></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. BlueOak-1.0.0</text><text class="high" x="415" y="98">6. BlueOak-1.0.0</text><text class="shadow" x="415.5" y="111">7. ISC</text><text class="high" x="415" y="110">7. ISC</text><text class="shadow" x="415.5" y="123">8. MIT</text><text class="high" x="415" y="122">8. MIT</text><text class="shadow" x="415.5" y="135">9. WTFPL</text><text class="high" x="415" y="134">9. WTFPL</text></g></svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim -
|
|
1
|
+
/*! indexeddbshim - v11.0.0 - 4/29/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;
|
|
@@ -1007,6 +1007,15 @@
|
|
|
1007
1007
|
invalid: true
|
|
1008
1008
|
};
|
|
1009
1009
|
}
|
|
1010
|
+
|
|
1011
|
+
// https://github.com/w3c/IndexedDB/issues/375
|
|
1012
|
+
// https://github.com/w3c/IndexedDB/pull/386
|
|
1013
|
+
if (Object.is(input, -0)) {
|
|
1014
|
+
return {
|
|
1015
|
+
type: type,
|
|
1016
|
+
value: 0
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1010
1019
|
return ret;
|
|
1011
1020
|
}
|
|
1012
1021
|
case 'string':
|