@ethlete/query 6.0.0-next.37 → 6.0.0-next.39
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/CHANGELOG.md +34 -0
- package/fesm2022/ethlete-query-testing.mjs +34 -2
- package/fesm2022/ethlete-query-testing.mjs.map +1 -1
- package/fesm2022/ethlete-query.mjs +809 -66
- package/fesm2022/ethlete-query.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ethlete-query-testing.d.ts +5 -1
- package/types/ethlete-query.d.ts +378 -49
package/package.json
CHANGED
|
@@ -198,7 +198,11 @@ type FakeWebLocksHandle = {
|
|
|
198
198
|
* promise settles. `signal` is honored for queued requests and - as in the real API - ignored once a
|
|
199
199
|
* request has been granted.
|
|
200
200
|
*
|
|
201
|
-
* `
|
|
201
|
+
* `ifAvailable` is a try-lock: a request that cannot be granted straight away runs its callback with
|
|
202
|
+
* `null` instead of queueing, exactly as the real API does. `steal` releases the current holder -
|
|
203
|
+
* rejecting its request with an `AbortError` - and is granted ahead of everything queued.
|
|
204
|
+
*
|
|
205
|
+
* `mode: 'shared'` is not implemented; nothing in the library uses it.
|
|
202
206
|
*/
|
|
203
207
|
declare const installFakeWebLocks: () => FakeWebLocksHandle;
|
|
204
208
|
/**
|