@sanity/client 6.11.2 → 6.11.3-canary.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.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var nodeMiddleware = require('./_chunks/nodeMiddleware-SFcV9llR.cjs');
6
+ var nodeMiddleware = require('./_chunks/nodeMiddleware-wRf5MzJM.cjs');
7
7
  var getIt = require('get-it');
8
8
  function defineDeprecatedCreateClient(createClient) {
9
9
  return function deprecatedCreateClient(config) {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { printNoDefaultExport, defineCreateClientExports, SanityClient, middleware } from './_chunks/nodeMiddleware-dn4ZacKV.js';
2
- export { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableSanityClient, ObservableTransaction, Patch, ServerError, Transaction } from './_chunks/nodeMiddleware-dn4ZacKV.js';
1
+ import { printNoDefaultExport, defineCreateClientExports, SanityClient, middleware } from './_chunks/nodeMiddleware-9L9Lk6DW.js';
2
+ export { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableSanityClient, ObservableTransaction, Patch, ServerError, Transaction } from './_chunks/nodeMiddleware-9L9Lk6DW.js';
3
3
  export { adapter as unstable__adapter, environment as unstable__environment } from 'get-it';
4
4
  function defineDeprecatedCreateClient(createClient) {
5
5
  return function deprecatedCreateClient(config) {
package/dist/stega.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var nodeMiddleware = require('./_chunks/nodeMiddleware-SFcV9llR.cjs');
6
+ var nodeMiddleware = require('./_chunks/nodeMiddleware-wRf5MzJM.cjs');
7
7
  var operators = require('rxjs/operators');
8
8
  var stega = require('@vercel/stega');
9
9
  var resolveEditInfo = require('./_chunks/resolveEditInfo-TYjTkHKU.cjs');
package/dist/stega.d.ts CHANGED
@@ -2907,9 +2907,9 @@ export declare type WelcomeEvent = {
2907
2907
 
2908
2908
  export {}
2909
2909
 
2910
- declare module '../types' {
2910
+ declare module '@sanity/client' {
2911
2911
  /** @public */
2912
- interface ResponseQueryOptions<T = 'next'> extends RequestOptions {
2912
+ interface ResponseQueryOptions {
2913
2913
  stega?: boolean | StegaConfig
2914
2914
  }
2915
2915
  }
package/dist/stega.js CHANGED
@@ -1,5 +1,5 @@
1
- import { ObservableSanityClient, defaultConfig, SanityClient, defineCreateClientExports, middleware } from './_chunks/nodeMiddleware-dn4ZacKV.js';
2
- export { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableTransaction, Patch, ServerError, Transaction } from './_chunks/nodeMiddleware-dn4ZacKV.js';
1
+ import { ObservableSanityClient, defaultConfig, SanityClient, defineCreateClientExports, middleware } from './_chunks/nodeMiddleware-9L9Lk6DW.js';
2
+ export { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableTransaction, Patch, ServerError, Transaction } from './_chunks/nodeMiddleware-9L9Lk6DW.js';
3
3
  import { map } from 'rxjs/operators';
4
4
  import { vercelStegaCombine, vercelStegaSplit } from '@vercel/stega';
5
5
  import { walkMap, resolveMapping, parseJsonPath, resolveStudioBaseRoute, createEditUrl, reKeySegment, toString, jsonPathToStudioPath } from './_chunks/resolveEditInfo-FaeuCV4M.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/client",
3
- "version": "6.11.2",
3
+ "version": "6.11.3-canary.0",
4
4
  "description": "Client for retrieving, creating and patching data from Sanity.io",
5
5
  "keywords": [
6
6
  "sanity",
@@ -136,10 +136,10 @@ export type Encoder = (context: {
136
136
  }) => string
137
137
 
138
138
  // Extends the `client.fetch` call with a `stega` option
139
- declare module '../types' {
139
+ declare module '@sanity/client' {
140
140
  /** @public */
141
141
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
142
- export interface ResponseQueryOptions<T = 'next'> extends RequestOptions {
142
+ export interface ResponseQueryOptions {
143
143
  stega?: boolean | StegaConfig
144
144
  }
145
145
  }