indexeddbshim 10.1.0 → 11.0.0-beta.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/dist/indexeddbshim-Key.js +32 -29
- 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} +68 -50
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -0
- package/dist/indexeddbshim-UnicodeIdentifiers.js +169 -188
- 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} +66 -48
- package/dist/indexeddbshim-node.cjs.map +1 -0
- package/dist/indexeddbshim-noninvasive.js +167 -186
- 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 +167 -186
- 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 +51 -37
- 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,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim - v10.
|
|
1
|
+
/*! indexeddbshim - v10.1.0 - 1/7/2023 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -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,
|