@sanity/client 5.4.3-dev.2 → 5.4.3-dev.4

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
@@ -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 = "5.4.3-dev.2";
11
+ var version = "5.4.3-dev.4";
12
12
  const middleware = [middleware$1.debug({
13
13
  verbose: true,
14
14
  namespace: "sanity:client"
package/dist/index.d.ts CHANGED
@@ -331,13 +331,14 @@ export declare interface ContentSourceMap {
331
331
 
332
332
  /** @public */
333
333
  export declare interface ContentSourceMapDocument {
334
- _projectId: string
335
- _dataset: string
336
334
  _id: string
337
335
  }
338
336
 
339
337
  /** @public */
340
- export declare type ContentSourceMapDocuments = ContentSourceMapDocument[]
338
+ export declare type ContentSourceMapDocuments = (
339
+ | ContentSourceMapDocument
340
+ | ContentSourceMapRemoteDocument
341
+ )[]
341
342
 
342
343
  /**
343
344
  * DocumentValueSource is a path to a value within a document
@@ -366,6 +367,12 @@ export declare type ContentSourceMapMappings = Record<string, ContentSourceMapMa
366
367
  /** @public */
367
368
  export declare type ContentSourceMapPaths = string[]
368
369
 
370
+ /** @public */
371
+ export declare interface ContentSourceMapRemoteDocument extends ContentSourceMapDocument {
372
+ _projectId: string
373
+ _dataset: string
374
+ }
375
+
369
376
  /** @public */
370
377
  export declare type ContentSourceMapSource =
371
378
  | ContentSourceMapDocumentValueSource
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ export { adapter as unstable__adapter, environment as unstable__environment } fr
4
4
  import { Observable, lastValueFrom } from 'rxjs';
5
5
  import { map, filter } from 'rxjs/operators';
6
6
  var name = "@sanity/client";
7
- var version = "5.4.3-dev.2";
7
+ var version = "5.4.3-dev.4";
8
8
  const middleware = [debug({
9
9
  verbose: true,
10
10
  namespace: "sanity:client"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/client",
3
- "version": "5.4.3-dev.2",
3
+ "version": "5.4.3-dev.4",
4
4
  "description": "Client for retrieving, creating and patching data from Sanity.io",
5
5
  "keywords": [
6
6
  "sanity",
@@ -90,9 +90,9 @@
90
90
  "singleQuote": true
91
91
  },
92
92
  "dependencies": {
93
- "@sanity/eventsource": "5",
94
- "get-it": "^8.1",
95
- "rxjs": "7"
93
+ "@sanity/eventsource": "^5.0.0",
94
+ "get-it": "^8.1.0",
95
+ "rxjs": "^7.0.0"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@edge-runtime/types": "^2.0.8",
@@ -1,5 +1,7 @@
1
- // @TODO the types in this file should be split into their own files, that's why the file is named `_legacy`
2
1
  // deno-lint-ignore-file no-empty-interface
2
+ // eslint-disable-next-line no-warning-comments
3
+ // @TODO the types in this file should be split into their own files, that's why the file is named `_legacy`
4
+
3
5
  import type {Requester} from 'get-it'
4
6
 
5
7
  import type {ContentSourceMap} from './resultSourceMap'
@@ -46,13 +46,20 @@ export type ContentSourceMapMappings = Record<string, ContentSourceMapMapping>
46
46
 
47
47
  /** @public */
48
48
  export interface ContentSourceMapDocument {
49
+ _id: string
50
+ }
51
+
52
+ /** @public */
53
+ export interface ContentSourceMapRemoteDocument extends ContentSourceMapDocument {
49
54
  _projectId: string
50
55
  _dataset: string
51
- _id: string
52
56
  }
53
57
 
54
58
  /** @public */
55
- export type ContentSourceMapDocuments = ContentSourceMapDocument[]
59
+ export type ContentSourceMapDocuments = (
60
+ | ContentSourceMapDocument
61
+ | ContentSourceMapRemoteDocument
62
+ )[]
56
63
 
57
64
  /** @public */
58
65
  export type ContentSourceMapPaths = string[]