@sanity/client 6.1.2 → 6.1.3-perspective.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/README.md +159 -0
- package/dist/index.browser.cjs +1 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +18 -18
- package/src/data/dataMethods.ts +1 -1
- package/src/types.ts +6 -1
- package/umd/sanityClient.js +69 -69
- package/umd/sanityClient.min.js +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ var getIt = require('get-it');
|
|
|
8
8
|
var rxjs = require('rxjs');
|
|
9
9
|
var operators = require('rxjs/operators');
|
|
10
10
|
var name = "@sanity/client";
|
|
11
|
-
var version = "6.1.
|
|
11
|
+
var version = "6.1.3-perspective.0";
|
|
12
12
|
const middleware = [middleware$1.debug({
|
|
13
13
|
verbose: true,
|
|
14
14
|
namespace: "sanity:client"
|
|
@@ -849,7 +849,7 @@ function _requestObservable(client, httpRequest, options) {
|
|
|
849
849
|
...options.query
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
|
-
if (typeof config.perspective === "string" && config.perspective !== "
|
|
852
|
+
if (typeof config.perspective === "string" && config.perspective !== "raw") {
|
|
853
853
|
options.query = {
|
|
854
854
|
perspective: config.perspective,
|
|
855
855
|
...options.query
|