indexeddbshim 19.0.0 → 19.0.2

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.
Files changed (34) hide show
  1. package/README.md +12 -0
  2. package/dist/DOMException.d.ts.map +1 -1
  3. package/dist/IDBCursor.d.ts +8 -8
  4. package/dist/IDBCursor.d.ts.map +1 -1
  5. package/dist/IDBIndex.d.ts +2 -2
  6. package/dist/IDBIndex.d.ts.map +1 -1
  7. package/dist/IDBObjectStore.d.ts +10 -10
  8. package/dist/IDBObjectStore.d.ts.map +1 -1
  9. package/dist/indexeddbshim-Key.js +2 -1
  10. package/dist/indexeddbshim-Key.js.map +1 -1
  11. package/dist/indexeddbshim-Key.min.js +1 -1
  12. package/dist/indexeddbshim-Key.min.js.map +1 -1
  13. package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +138 -110
  14. package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
  15. package/dist/indexeddbshim-UnicodeIdentifiers.js +165 -141
  16. package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
  17. package/dist/indexeddbshim-UnicodeIdentifiers.min.js +2 -2
  18. package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
  19. package/dist/indexeddbshim-node.cjs +138 -110
  20. package/dist/indexeddbshim-node.cjs.map +1 -1
  21. package/dist/indexeddbshim-noninvasive.js +165 -141
  22. package/dist/indexeddbshim-noninvasive.js.map +1 -1
  23. package/dist/indexeddbshim-noninvasive.min.js +2 -2
  24. package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
  25. package/dist/indexeddbshim.js +165 -141
  26. package/dist/indexeddbshim.js.map +1 -1
  27. package/dist/indexeddbshim.min.js +3 -3
  28. package/dist/indexeddbshim.min.js.map +1 -1
  29. package/licenseInfo.json +8 -0
  30. package/package.json +91 -92
  31. package/src/DOMException.js +1 -0
  32. package/src/IDBCursor.js +5 -5
  33. package/src/IDBIndex.js +1 -1
  34. package/src/IDBObjectStore.js +5 -5
@@ -0,0 +1,8 @@
1
+ {
2
+ "bundledRootPackages": [
3
+ "mocha", "chai", "sinon", "source-map-support",
4
+ "web-platform-tests"
5
+ ],
6
+ "filesByLicense": {
7
+ }
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indexeddbshim",
3
- "version": "19.0.0",
3
+ "version": "19.0.2",
4
4
  "type": "module",
5
5
  "author": "Parashuram <code@nparashuram.com>",
6
6
  "contributors": [
@@ -28,88 +28,6 @@
28
28
  "test-support/**"
29
29
  ]
30
30
  },
31
- "scripts": {
32
- "prepublishOnly": "npm run license-badges && npm run build",
33
- "attw": "attw --pack . --profile node16",
34
- "tsc": "tsc",
35
- "tsc-prod": "tsc -p tsconfig-prod.json",
36
- "tsc:ts7": "npx -y -p typescript@^7 -c \"tsc\"",
37
- "tsc-prod:ts7": "npx -y typescript@^7 tsc -p tsconfig-prod.json",
38
- "build": "rm -R dist && npm run tsc-prod && npm run rollup",
39
- "license-badge": "license-badger --corrections --uncategorizedLicenseTemplate \"\\${license} (\\${name} (\\${version}))\" --filteredTypes=nonempty --textTemplate \"License types\n(project, deps, and bundled devDeps)\" --packageJson --production badges/licenses-badge.svg",
40
- "license-badge-dev": "license-badger --corrections --filteredTypes=nonempty --textTemplate \"License types\n(all devDeps)\" --allDevelopment badges/licenses-badge-dev.svg",
41
- "license-badges": "run-p license-badge license-badge-dev",
42
- "start": "static -p 9999 -H '{\"Access-Control-Allow-Origin\": \"http://web-platform.test:8000\", \"Access-Control-Allow-Methods\": \"GET\", \"Access-Control-Allow-Headers\": \"Content-Type\"}'",
43
- "watch": "chokidar \"src/*\" \"node_modules/eventtarget/EventTarget.js\" \"node_modules/websql/lib/websql/WebSQLTransaction.js\" \"node_modules/websql/lib/websql/WebSQLDatabase.js\" -c \"npm run rollup\"",
44
- "dev": "run-p start watch",
45
- "clean": "run-p clean-sysDB clean-mocha clean-fake clean-mock clean-w3c clean-w3cOld",
46
- "clean-sysDB": "rimraf __sysdb__*",
47
- "clean-polyfill": "run-p clean-fake clean-mock clean-w3cOld clean-sysDB",
48
- "clean-mocha": "rimraf D_indexeddbshim_test_database_* D_test.sqlite",
49
- "clean-fake": "rimraf D_test0.*",
50
- "clean-mock": "rimraf D_test_database*",
51
- "clean-w3c": "rimraf D_opaque* D_inbox* D_output* D_*_bucket_* D_^D^B2* D_db* D_test* D_about* D_^I^D^B* D_blank* D_database_name* D_idbtransaction* D_x D_x.sqlite D_y D_y.sqlite D_webworker* D_http*",
52
- "clean-w3cOld": "rimraf D_db.sqlite* D_test* D_database_name* D_idbtransaction*",
53
- "clean-w3c-built": "rimraf test-support/js",
54
- "copy": "copyup node_modules/source-map-support/browser-source-map-support.js node_modules/mocha/mocha.css node_modules/mocha/mocha.js node_modules/chai/chai.js node_modules/sinon/pkg/sinon-no-sourcemaps.js test-support",
55
- "fix-permissions": "chmod +x node_modules/npm-run-all/bin/*/index.js",
56
- "lint": "eslint .",
57
- "eslint": "npm run lint --",
58
- "w3c-build-only": "node test-support/node-buildjs",
59
- "w3c-build": "run-s clean-w3c clean-w3c-built w3c-build-only",
60
- "fake": "run-s clean-fake coverage:fake clean-fake",
61
- "mock": "run-s clean-mock coverage:mock clean-mock",
62
- "w3c-old": "run-s clean-w3cOld coverage:w3cOld clean-w3cOld",
63
- "tests-polyfill": "run-s clean-polyfill coverage:fake coverage:mock coverage:w3cOld",
64
- "mocha": "run-s clean-mocha coverage:mocha clean-mocha",
65
- "rollup": "rollup -c",
66
- "coverage:fake": "c8 --silent --no-clean mocha --reporterOptions configFile=mocha-multi-reporters.json,cmrOutput=@es-joy/json-file-reporter+output+fake --require source-map-support/register tests-polyfill/fakeIndexedDB/test-node.js",
67
- "coverage:mock": "c8 --silent --no-clean mocha --reporterOptions configFile=mocha-multi-reporters.json,cmrOutput=@es-joy/json-file-reporter+output+mock --require source-map-support/register tests-polyfill/indexedDBmock/test-node.js",
68
- "coverage:w3cOld": "c8 --silent --no-clean mocha --reporterOptions configFile=mocha-multi-reporters.json,cmrOutput=@es-joy/json-file-reporter+output+w3c --require source-map-support/register tests-polyfill/w3c/test-node.js",
69
- "coverage:w3c": "NODE_OPTIONS=--max_old_space_size=16384 c8 --silent --no-clean npm run w3c-test-only",
70
- "test:w3c": "NODE_OPTIONS=--max_old_space_size=16384 NODE_OPTIONS=--trace-warnings node test-support/node-idb-test.js",
71
- "w3c-test-only": "NODE_OPTIONS=--max_old_space_size=16384 node --trace-warnings test-support/node-idb-test.js",
72
- "coverage:mocha": "c8 --silent --no-clean mocha --reporterOptions configFile=mocha-multi-reporters.json,cmrOutput=@es-joy/json-file-reporter+output+mocha --require source-map-support/register tests-mocha/test-node.js",
73
- "coverage-badge": "coveradge badges/coverage-badge",
74
- "coverage:report-only": "c8 report",
75
- "coverage:report": "run-s coverage:report-only",
76
- "remove-cache": "rimraf node_modules/.cache",
77
- "remove-cov": "rimraf .nyc_output ",
78
- "remove-results": "rimraf test-support/results/file*.json",
79
- "coverage:polyfill": "run-s coverage:fake coverage:mock coverage:w3cOld",
80
- "tests-badge": "mbg --fileGlob \"./test-support/results/file*.json\" --badge_output badges/tests-badge.svg",
81
- "coverage": "run-s -c clean remove-cache remove-cov remove-results coverage:fake coverage:mock coverage:mocha coverage:w3c clean tests-badge coverage-badge coverage:report",
82
- "open-coverage-only": "open http://127.0.0.1:9999/coverage/lcov-report/",
83
- "open-coverage": "run-p start open-coverage-only",
84
- "test": "run-s lint coverage",
85
- "submodules-init": "git submodule update --init --recursive",
86
- "submodules-fetch": "git submodule foreach --recursive git fetch",
87
- "submodules-merge": "git submodule foreach git merge origin master",
88
- "submodules": "run-s submodules-init submodules-fetch submodules-merge",
89
- "wpt": "run-p start web-platform-tests",
90
- "web-platform-tests": "cd web-platform-tests && ./wpt serve",
91
- "stop-server": "pkill -f \"static -p 9999\" || true",
92
- "stop-wpt": "pkill -f \"wpt serve\" || true",
93
- "stop": "run-s stop-server stop-wpt",
94
- "w3c-find-unused": "node test-support/find-unused.js",
95
- "w3c": "run-s w3c-test",
96
- "w3c-add-wrap": "node test-support/wrap-w3c-tests",
97
- "w3c-remove-wrap": "node test-support/wrap-w3c-tests remove",
98
- "w3c-wrap": "node test-support/wrap-w3c-tests",
99
- "test-and-start:w3c": "run-p -r start web-platform-tests delayed-w3c-test",
100
- "delay": "delay 9",
101
- "delayed-w3c-test": "run-s delay w3c-build-only test:w3c",
102
- "w3c-test": "run-s clean-w3c test-and-start:w3c",
103
- "w3c-good-only": "NODE_OPTIONS=--max_old_space_size=16384 node test-support/node-idb-test.js good",
104
- "w3c-bad-only": "NODE_OPTIONS=--max_old_space_size=16384 node test-support/node-idb-test.js bad",
105
- "w3c-good-worker-only": "NODE_OPTIONS=--max_old_space_size=16384 node test-support/node-idb-test.js good-worker",
106
- "w3c-good": "run-s w3c-build w3c-good-only clean-w3c",
107
- "w3c-bad": "run-s w3c-build w3c-bad-only clean-w3c",
108
- "w3c-good-test": "run-s w3c-good-only clean-w3c",
109
- "w3c-bad-test": "run-s w3c-bad-only clean-w3c",
110
- "w3c-any-workers-only": "NODE_OPTIONS=--max_old_space_size=16384 node test-support/node-idb-test.js any-workers",
111
- "w3c-non-workers-only": "NODE_OPTIONS=--max_old_space_size=16384 node --trace-warnings test-support/node-idb-test.js"
112
- },
113
31
  "repository": {
114
32
  "type": "git",
115
33
  "url": "https://github.com/indexeddbshim/IndexedDBShim"
@@ -171,21 +89,21 @@
171
89
  "eventtargeter": "0.12.0",
172
90
  "sync-promise-expanded": "^2.0.0",
173
91
  "typeson": "10.3.0",
174
- "typeson-registry": "14.5.0",
92
+ "typeson-registry": "14.6.1",
175
93
  "websql-configurable": "^4.0.0"
176
94
  },
177
95
  "devDependencies": {
178
96
  "@arethetypeswrong/cli": "^0.18.5",
179
97
  "@babel/core": "^8.0.1",
180
98
  "@babel/preset-env": "^8.0.2",
181
- "@es-joy/json-file-reporter": "^1.5.0",
99
+ "@es-joy/json-file-reporter": "^2.0.0",
182
100
  "@rollup/plugin-babel": "^7.1.0",
183
101
  "@rollup/plugin-commonjs": "^29.0.3",
184
102
  "@rollup/plugin-node-resolve": "^16.0.3",
185
103
  "@rollup/plugin-terser": "^1.0.0",
186
104
  "@types/node": "^26.4.1",
187
105
  "@types/websql": "^0.0.30",
188
- "@unicode/unicode-17.0.0": "^2.0.2",
106
+ "@unicode/unicode-17.0.0": "^2.0.5",
189
107
  "babel-plugin-add-module-exports": "1.0.4",
190
108
  "bson": "^7.3.2",
191
109
  "builtin-modules": "^5.3.0",
@@ -196,17 +114,17 @@
196
114
  "copyfiles": "^2.4.1",
197
115
  "coveradge": "^0.8.2",
198
116
  "delay-cli": "^3.0.0",
199
- "eslint": "^10.9.1",
200
- "eslint-config-ash-nazg": "^43.1.6",
117
+ "eslint": "^10.10.0",
118
+ "eslint-config-ash-nazg": "^43.1.8",
201
119
  "globals": "^17.12.0",
202
120
  "is-date-object": "1.1.0",
203
121
  "isomorphic-fetch": "^3.0.0",
204
122
  "jsdom": "^30.0.1",
205
123
  "license-badger": "^0.23.0",
206
124
  "local-xmlhttprequest": "4.0.0",
207
- "mocha": "^11.8.0",
208
- "mocha-badge-generator": "^0.11.0",
209
- "mocha-multi-reporters": "^1.5.1",
125
+ "mocha": "^12.0.0",
126
+ "mocha-badge-generator": "^0.13.0",
127
+ "mocha-multi-reporters": "1.5.2",
210
128
  "npm-run-all": "^4.1.5",
211
129
  "open-cli": "^9.0.0",
212
130
  "rimraf": "^6.1.3",
@@ -225,5 +143,86 @@
225
143
  "unrs-resolver@1.12.2": true,
226
144
  "better-sqlite3@13.0.3": true,
227
145
  "is-hidden-file@1.1.2": true
146
+ },
147
+ "scripts": {
148
+ "attw": "attw --pack . --profile node16",
149
+ "tsc": "tsc",
150
+ "tsc-prod": "tsc -p tsconfig-prod.json",
151
+ "tsc:ts7": "npx -y -p typescript@^7 -c \"tsc\"",
152
+ "tsc-prod:ts7": "npx -y typescript@^7 tsc -p tsconfig-prod.json",
153
+ "build": "rm -R dist && npm run tsc-prod && npm run rollup",
154
+ "license-badge": "license-badger --corrections --uncategorizedLicenseTemplate \"\\${license} (\\${name} (\\${version}))\" --filteredTypes=nonempty --textTemplate \"License types\n(project, deps, and bundled devDeps)\" --packageJson --production badges/licenses-badge.svg",
155
+ "license-badge-dev": "license-badger --corrections --filteredTypes=nonempty --textTemplate \"License types\n(all devDeps)\" --allDevelopment badges/licenses-badge-dev.svg",
156
+ "license-badges": "run-p license-badge license-badge-dev",
157
+ "start": "static -p 9999 -H '{\"Access-Control-Allow-Origin\": \"http://web-platform.test:8000\", \"Access-Control-Allow-Methods\": \"GET\", \"Access-Control-Allow-Headers\": \"Content-Type\"}'",
158
+ "watch": "chokidar \"src/*\" \"node_modules/eventtarget/EventTarget.js\" \"node_modules/websql/lib/websql/WebSQLTransaction.js\" \"node_modules/websql/lib/websql/WebSQLDatabase.js\" -c \"npm run rollup\"",
159
+ "dev": "run-p start watch",
160
+ "clean": "run-p clean-sysDB clean-mocha clean-fake clean-mock clean-w3c clean-w3cOld",
161
+ "clean-sysDB": "rimraf __sysdb__*",
162
+ "clean-polyfill": "run-p clean-fake clean-mock clean-w3cOld clean-sysDB",
163
+ "clean-mocha": "rimraf D_indexeddbshim_test_database_* D_test.sqlite",
164
+ "clean-fake": "rimraf D_test0.*",
165
+ "clean-mock": "rimraf D_test_database*",
166
+ "clean-w3c": "rimraf D_opaque* D_inbox* D_output* D_*_bucket_* D_^D^B2* D_db* D_test* D_about* D_^I^D^B* D_blank* D_database_name* D_idbtransaction* D_x D_x.sqlite D_y D_y.sqlite D_webworker* D_http*",
167
+ "clean-w3cOld": "rimraf D_db.sqlite* D_test* D_database_name* D_idbtransaction*",
168
+ "clean-w3c-built": "rimraf test-support/js",
169
+ "copy": "copyup node_modules/source-map-support/browser-source-map-support.js node_modules/mocha/mocha.css node_modules/mocha/mocha.js node_modules/chai/chai.js node_modules/sinon/pkg/sinon-no-sourcemaps.js test-support",
170
+ "fix-permissions": "chmod +x node_modules/npm-run-all/bin/*/index.js",
171
+ "lint": "eslint .",
172
+ "eslint": "npm run lint --",
173
+ "w3c-build-only": "node test-support/node-buildjs",
174
+ "w3c-build": "run-s clean-w3c clean-w3c-built w3c-build-only",
175
+ "fake": "run-s clean-fake coverage:fake clean-fake",
176
+ "mock": "run-s clean-mock coverage:mock clean-mock",
177
+ "w3c-old": "run-s clean-w3cOld coverage:w3cOld clean-w3cOld",
178
+ "tests-polyfill": "run-s clean-polyfill coverage:fake coverage:mock coverage:w3cOld",
179
+ "mocha": "run-s clean-mocha coverage:mocha clean-mocha",
180
+ "rollup": "rollup -c",
181
+ "coverage:fake": "c8 --silent --no-clean mocha --reporter-options configFile=mocha-multi-reporters.json,cmrOutput=@es-joy/json-file-reporter+output+fake --require source-map-support/register tests-polyfill/fakeIndexedDB/test-node.js",
182
+ "coverage:mock": "c8 --silent --no-clean mocha --reporter-options configFile=mocha-multi-reporters.json,cmrOutput=@es-joy/json-file-reporter+output+mock --require source-map-support/register tests-polyfill/indexedDBmock/test-node.js",
183
+ "coverage:w3cOld": "c8 --silent --no-clean mocha --reporter-options configFile=mocha-multi-reporters.json,cmrOutput=@es-joy/json-file-reporter+output+w3c --require source-map-support/register tests-polyfill/w3c/test-node.js",
184
+ "coverage:w3c": "NODE_OPTIONS=--max_old_space_size=16384 c8 --silent --no-clean npm run w3c-test-only",
185
+ "test:w3c": "NODE_OPTIONS=--max_old_space_size=16384 NODE_OPTIONS=--trace-warnings node test-support/node-idb-test.js",
186
+ "w3c-test-only": "NODE_OPTIONS=--max_old_space_size=16384 node --trace-warnings test-support/node-idb-test.js",
187
+ "coverage:mocha": "c8 --silent --no-clean mocha --reporter-options configFile=mocha-multi-reporters.json,cmrOutput=@es-joy/json-file-reporter+output+mocha --require source-map-support/register tests-mocha/test-node.js",
188
+ "coverage-badge": "coveradge badges/coverage-badge",
189
+ "coverage:report-only": "c8 report",
190
+ "coverage:report": "run-s coverage:report-only",
191
+ "remove-cache": "rimraf node_modules/.cache",
192
+ "remove-cov": "rimraf .nyc_output ",
193
+ "remove-results": "rimraf test-support/results/file*.json",
194
+ "coverage:polyfill": "run-s coverage:fake coverage:mock coverage:w3cOld",
195
+ "tests-badge": "mbg --fileGlob \"./test-support/results/file*.json\" --badge_output badges/tests-badge.svg",
196
+ "coverage": "run-s -c clean remove-cache remove-cov remove-results coverage:fake coverage:mock coverage:mocha coverage:w3c clean tests-badge coverage-badge coverage:report",
197
+ "open-coverage-only": "open http://127.0.0.1:9999/coverage/lcov-report/",
198
+ "open-coverage": "run-p start open-coverage-only",
199
+ "test": "run-s lint coverage",
200
+ "submodules-init": "git submodule update --init --recursive",
201
+ "submodules-fetch": "git submodule foreach --recursive git fetch",
202
+ "submodules-merge": "git submodule foreach git merge origin master",
203
+ "submodules": "run-s submodules-init submodules-fetch submodules-merge",
204
+ "wpt": "run-p start web-platform-tests",
205
+ "web-platform-tests": "cd web-platform-tests && ./wpt serve",
206
+ "stop-server": "pkill -f \"static -p 9999\" || true",
207
+ "stop-wpt": "pkill -f \"wpt serve\" || true",
208
+ "stop": "run-s stop-server stop-wpt",
209
+ "w3c-find-unused": "node test-support/find-unused.js",
210
+ "w3c": "run-s w3c-test",
211
+ "w3c-add-wrap": "node test-support/wrap-w3c-tests",
212
+ "w3c-remove-wrap": "node test-support/wrap-w3c-tests remove",
213
+ "w3c-wrap": "node test-support/wrap-w3c-tests",
214
+ "test-and-start:w3c": "run-p -r start web-platform-tests delayed-w3c-test",
215
+ "delay": "delay 9",
216
+ "delayed-w3c-test": "run-s delay w3c-build-only test:w3c",
217
+ "w3c-test": "run-s clean-w3c test-and-start:w3c",
218
+ "w3c-good-only": "NODE_OPTIONS=--max_old_space_size=16384 node test-support/node-idb-test.js good",
219
+ "w3c-bad-only": "NODE_OPTIONS=--max_old_space_size=16384 node test-support/node-idb-test.js bad",
220
+ "w3c-good-worker-only": "NODE_OPTIONS=--max_old_space_size=16384 node test-support/node-idb-test.js good-worker",
221
+ "w3c-good": "run-s w3c-build w3c-good-only clean-w3c",
222
+ "w3c-bad": "run-s w3c-build w3c-bad-only clean-w3c",
223
+ "w3c-good-test": "run-s w3c-good-only clean-w3c",
224
+ "w3c-bad-test": "run-s w3c-bad-only clean-w3c",
225
+ "w3c-any-workers-only": "NODE_OPTIONS=--max_old_space_size=16384 node test-support/node-idb-test.js any-workers",
226
+ "w3c-non-workers-only": "NODE_OPTIONS=--max_old_space_size=16384 node --trace-warnings test-support/node-idb-test.js"
228
227
  }
229
- }
228
+ }
@@ -8,6 +8,7 @@ import CFG from './CFG.js';
8
8
  */
9
9
  function createNativeDOMException (name, message) {
10
10
  // @ts-expect-error It's ok
11
+ // eslint-disable-next-line new-cap -- Ok
11
12
  return new DOMException.prototype.constructor(
12
13
  message,
13
14
  name || 'DOMException'
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}