indexeddbshim 19.0.0 → 19.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indexeddbshim",
3
- "version": "19.0.0",
3
+ "version": "19.0.1",
4
4
  "type": "module",
5
5
  "author": "Parashuram <code@nparashuram.com>",
6
6
  "contributors": [
package/src/IDBCursor.js CHANGED
@@ -931,9 +931,9 @@ IDBCursor.prototype.advance = function (count) {
931
931
  * The `{query, count, direction}` options shape shared by
932
932
  * `getAll`/`getAllKeys`/`getAllRecords`.
933
933
  * @typedef {{
934
- * query?: import('./Key.js').Value,
934
+ * query?: import('./IDBIndex.js').Query|null,
935
935
  * count?: Integer,
936
- * direction?: string
936
+ * direction?: IDBCursorDirection
937
937
  * }} GetAllOptions
938
938
  */
939
939
 
@@ -1120,7 +1120,7 @@ Object.defineProperty(IDBCursorWithValue, 'prototype', {
1120
1120
  * @param {unknown} options
1121
1121
  * @throws {TypeError}
1122
1122
  * @returns {{
1123
- * query: import('./Key.js').Value|undefined,
1123
+ * query: import('./IDBIndex.js').Query|null|undefined,
1124
1124
  * count: Integer|undefined,
1125
1125
  * direction: string
1126
1126
  * }}
@@ -1148,7 +1148,7 @@ function normalizeGetAllOptions (options) {
1148
1148
  * @param {IArguments} args
1149
1149
  * @throws {TypeError}
1150
1150
  * @returns {{
1151
- * query: import('./Key.js').Value|undefined,
1151
+ * query: import('./IDBIndex.js').Query|null|undefined,
1152
1152
  * count: Integer|undefined,
1153
1153
  * direction: string
1154
1154
  * }}
@@ -1172,7 +1172,7 @@ function parseGetAllArgs (args) {
1172
1172
  * @param {IArguments} args
1173
1173
  * @throws {TypeError}
1174
1174
  * @returns {{
1175
- * query: import('./Key.js').Value|undefined,
1175
+ * query: import('./IDBIndex.js').Query|null|undefined,
1176
1176
  * count: Integer|undefined,
1177
1177
  * direction: string
1178
1178
  * }}
package/src/IDBIndex.js CHANGED
@@ -497,7 +497,7 @@ IDBIndex.__updateIndexList = function (store, tx, success, failure) {
497
497
  };
498
498
 
499
499
  /**
500
- * @typedef {import('./Key.js').Value|IDBKeyRange} Query
500
+ * @typedef {IDBValidKey|IDBKeyRange} Query
501
501
  */
502
502
 
503
503
  /**
@@ -91,7 +91,7 @@ const IDBObjectStoreAlias = IDBObjectStore;
91
91
  * error: (err: (Error & {code?: number})) => void
92
92
  * ) => void,
93
93
  * __get: (
94
- * query: import('./Key.js').Value,
94
+ * query: import('./IDBIndex.js').Query,
95
95
  * getKey?: boolean,
96
96
  * getAll?: boolean,
97
97
  * count?: Integer
@@ -912,7 +912,7 @@ IDBObjectStore.__storingRecordObjectStore = function (request, store, invalidate
912
912
 
913
913
  /**
914
914
  *
915
- * @param {import('./Key.js').Value} query
915
+ * @param {import('./IDBIndex.js').Query} query
916
916
  * @param {boolean} [getKey]
917
917
  * @this {IDBObjectStoreFull}
918
918
  * @returns {import('./IDBRequest.js').IDBRequestFull}
@@ -964,7 +964,7 @@ IDBObjectStore.prototype.__get = function (query, getKey) {
964
964
 
965
965
  /**
966
966
  *
967
- * @param {import('./Key.js').Value} query
967
+ * @param {import('./IDBIndex.js').Query} query
968
968
  * @throws {TypeError}
969
969
  * @this {IDBObjectStoreFull}
970
970
  * @returns {import('./IDBRequest.js').IDBRequestFull}
@@ -978,7 +978,7 @@ IDBObjectStore.prototype.get = function (query) {
978
978
 
979
979
  /**
980
980
  *
981
- * @param {import('./Key.js').Value} query
981
+ * @param {import('./IDBIndex.js').Query} query
982
982
  * @this {IDBObjectStoreFull}
983
983
  * @returns {import('./IDBRequest.js').IDBRequestFull}
984
984
  */
@@ -1021,7 +1021,7 @@ IDBObjectStore.prototype.getAllRecords = function (/* options */) {
1021
1021
 
1022
1022
  /**
1023
1023
  *
1024
- * @param {import('./Key.js').Value} query
1024
+ * @param {import('./IDBIndex.js').Query} query
1025
1025
  * @throws {TypeError}
1026
1026
  * @this {IDBObjectStoreFull}
1027
1027
  * @returns {import('./IDBRequest.js').IDBRequestFull}