@sanity/client
Advanced tools
Comparing version 6.17.3-canary.1 to 6.17.3-canary.2
{ | ||
"name": "@sanity/client", | ||
"version": "6.17.3-canary.1", | ||
"version": "6.17.3-canary.2", | ||
"description": "Client for retrieving, creating and patching data from Sanity.io", | ||
@@ -129,3 +129,3 @@ "keywords": [ | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@sanity/pkg-utils": "^6.8.10", | ||
"@sanity/pkg-utils": "^6.8.11", | ||
"@types/json-diff": "^1.0.3", | ||
@@ -136,3 +136,3 @@ "@types/node": "^20.8.8", | ||
"@vercel/stega": "0.1.2", | ||
"@vitest/coverage-v8": "1.5.3", | ||
"@vitest/coverage-v8": "1.6.0", | ||
"eslint": "^8.57.0", | ||
@@ -155,3 +155,3 @@ "eslint-config-prettier": "^9.1.0", | ||
"typescript": "5.4.5", | ||
"vitest": "1.5.3", | ||
"vitest": "1.6.0", | ||
"vitest-github-actions-reporter": "0.11.1" | ||
@@ -158,0 +158,0 @@ }, |
@@ -73,3 +73,3 @@ import {from, type MonoTypeOperatorFunction, Observable} from 'rxjs' | ||
): Observable<RawQueryResponse<R> | R> { | ||
const _params = options.refresh ? {...__params, _: options.refresh} : __params | ||
const _params = options.livePos ? {...__params, _: options.livePos} : __params | ||
@@ -76,0 +76,0 @@ const stega = |
import {Observable} from 'rxjs' | ||
import type {ObservableSanityClient, SanityClient} from '../SanityClient' | ||
import type {LiveChangeEvent, LiveErrorEvent, LiveOptions, LiveRestartEvent} from '../types' | ||
import type {LiveErrorEvent, LiveOptions, LiveRefreshEvent, LiveRestartEvent} from '../types' | ||
import {_getDataUrl} from './dataMethods' | ||
@@ -11,3 +11,3 @@ | ||
opts: LiveOptions = {}, | ||
): Observable<LiveChangeEvent | LiveErrorEvent | LiveRestartEvent> { | ||
): Observable<LiveRefreshEvent | LiveErrorEvent | LiveRestartEvent> { | ||
const path = _getDataUrl(this, 'sync-tags') | ||
@@ -14,0 +14,0 @@ const url = new URL(this.getUrl(path, false)) |
@@ -483,3 +483,3 @@ // deno-lint-ignore-file no-empty-interface | ||
/** @deprecated you're using a fetch option as a GROQ parameter, this is likely a mistake */ | ||
refresh?: never | ||
livePos?: never | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ | ||
@@ -749,3 +749,3 @@ } | ||
next?: ('next' extends keyof RequestInit ? RequestInit : never)['next'] | ||
refresh?: string | ||
livePos?: string | ||
} | ||
@@ -1023,3 +1023,3 @@ | ||
/** @public */ | ||
export interface LiveChangeEvent { | ||
export interface LiveRefreshEvent { | ||
tags: `s1:${string}`[] | ||
@@ -1026,0 +1026,0 @@ pos: string |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2162071