@sanity/client 0.0.0-dev.0 → 0.0.0-dev.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.
- package/dist/index.browser.cjs +5 -2
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +5 -2
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/data/dataMethods.ts +1 -1
- package/umd/sanityClient.js +5 -2
- package/umd/sanityClient.min.js +3 -3
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Observable, lastValueFrom } from 'rxjs';
|
|
|
4
4
|
import { map, filter } from 'rxjs/operators';
|
|
5
5
|
import polyfilledEventSource from '@sanity/eventsource';
|
|
6
6
|
var name = "@sanity/client";
|
|
7
|
-
var version = "0.0.0-dev.
|
|
7
|
+
var version = "0.0.0-dev.2";
|
|
8
8
|
const middleware = [debug({
|
|
9
9
|
verbose: true,
|
|
10
10
|
namespace: "sanity:client"
|
|
@@ -797,8 +797,11 @@ function _requestObservable(client, httpRequest, options) {
|
|
|
797
797
|
console.error("You need to set `apiVersion` to `X` to use `unstable_overlayDrafts");
|
|
798
798
|
}
|
|
799
799
|
options.query = {
|
|
800
|
-
|
|
801
|
-
|
|
800
|
+
...options.query,
|
|
801
|
+
params: {
|
|
802
|
+
...(options.query.params || {}),
|
|
803
|
+
draftMode: true
|
|
804
|
+
}
|
|
802
805
|
};
|
|
803
806
|
}
|
|
804
807
|
const reqOptions = requestOptions(config, Object.assign({}, options, {
|