@sanity/client 7.12.0 → 7.13.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/index.browser.cjs +4 -6
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +55 -7
- package/dist/index.browser.d.ts +55 -7
- package/dist/index.browser.js +4 -6
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +5 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -7
- package/dist/index.d.ts +55 -7
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/stega.browser.d.cts +55 -7
- package/dist/stega.browser.d.ts +55 -7
- package/dist/stega.d.cts +55 -7
- package/dist/stega.d.ts +55 -7
- package/package.json +4 -4
- package/src/SanityClient.ts +2 -2
- package/src/data/listen.ts +65 -15
- package/src/types.ts +5 -2
- package/umd/sanityClient.js +4 -6
package/dist/index.browser.cjs
CHANGED
|
@@ -1402,12 +1402,10 @@ function _listen(query, params, opts = {}) {
|
|
|
1402
1402
|
), listenFor).pipe(
|
|
1403
1403
|
reconnectOnConnectionFailure(),
|
|
1404
1404
|
operators.filter((event) => listenFor.includes(event.type)),
|
|
1405
|
-
operators.map(
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
})
|
|
1410
|
-
)
|
|
1405
|
+
operators.map((event) => ({
|
|
1406
|
+
type: event.type,
|
|
1407
|
+
..."data" in event ? event.data : {}
|
|
1408
|
+
}))
|
|
1411
1409
|
);
|
|
1412
1410
|
}
|
|
1413
1411
|
function shareReplayLatest(configOrPredicate, config) {
|