Socket
Socket
Sign inDemoInstall

@sanity/client

Package Overview
Dependencies
Maintainers
51
Versions
977
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/client - npm Package Compare versions

Comparing version 6.17.3-canary.7 to 6.17.3

6

package.json
{
"name": "@sanity/client",
"version": "6.17.3-canary.7",
"version": "6.17.3",
"description": "Client for retrieving, creating and patching data from Sanity.io",

@@ -121,3 +121,3 @@ "keywords": [

"@sanity/eventsource": "^5.0.2",
"get-it": "^8.4.28",
"get-it": "^8.4.29",
"rxjs": "^7.0.0"

@@ -130,3 +130,3 @@ },

"@rollup/plugin-node-resolve": "^15.2.3",
"@sanity/pkg-utils": "^6.8.11",
"@sanity/pkg-utils": "^6.8.12",
"@types/json-diff": "^1.0.3",

@@ -133,0 +133,0 @@ "@types/node": "^20.8.8",

@@ -260,3 +260,3 @@ import {from, type MonoTypeOperatorFunction, Observable} from 'rxjs'

const returnFirst = options.returnFirst
const {timeout, token, tag, headers, returnQuery, lastLiveEventId} = options
const {timeout, token, tag, headers, returnQuery} = options

@@ -278,3 +278,2 @@ const uri = _getDataUrl(client, endpoint, stringQuery)

resultSourceMap: options.resultSourceMap,
lastLiveEventId: Array.isArray(lastLiveEventId) ? lastLiveEventId[0] : lastLiveEventId,
canUseCdn: isQuery,

@@ -381,6 +380,2 @@ signal: options.signal,

if (options.lastLiveEventId) {
options.query = {...options.query, lastLiveEventId: options.lastLiveEventId}
}
if (options.returnQuery === false) {

@@ -387,0 +382,0 @@ options.query = {returnQuery: 'false', ...options.query}

@@ -174,6 +174,2 @@ import {Observable} from 'rxjs'

es = eventSource
// Handle race condition where the observer is unsubscribed before the EventSource is set up
if (unsubscribed) {
unsubscribe()
}
}

@@ -197,3 +193,3 @@ })

function parseEvent(event: MessageEvent) {
function parseEvent(event: Any) {
try {

@@ -200,0 +196,0 @@ const data = (event.data && JSON.parse(event.data)) || {}

@@ -7,3 +7,2 @@ import {lastValueFrom, Observable} from 'rxjs'

import {_listen} from './data/listen'
import {LiveClient} from './data/live'
import {ObservablePatch, Patch} from './data/patch'

@@ -48,3 +47,2 @@ import {ObservableTransaction, Transaction} from './data/transaction'

DatasetsClient,
LiveClient,
ObservableAssetsClient,

@@ -62,3 +60,2 @@ ObservableDatasetsClient,

datasets: ObservableDatasetsClient
live: LiveClient
projects: ObservableProjectsClient

@@ -85,3 +82,2 @@ users: ObservableUsersClient

this.datasets = new ObservableDatasetsClient(this, this.#httpRequest)
this.live = new LiveClient(this)
this.projects = new ObservableProjectsClient(this, this.#httpRequest)

@@ -706,3 +702,2 @@ this.users = new ObservableUsersClient(this, this.#httpRequest)

datasets: DatasetsClient
live: LiveClient
projects: ProjectsClient

@@ -734,3 +729,2 @@ users: UsersClient

this.datasets = new DatasetsClient(this, this.#httpRequest)
this.live = new LiveClient(this)
this.projects = new ProjectsClient(this, this.#httpRequest)

@@ -737,0 +731,0 @@ this.users = new UsersClient(this, this.#httpRequest)

@@ -309,3 +309,2 @@ // deno-lint-ignore-file no-empty-interface

perspective?: ClientPerspective
lastLiveEventId?: string
}

@@ -484,4 +483,2 @@

useCdn?: never
/** @deprecated you're using a fetch option as a GROQ parameter, this is likely a mistake */
lastLiveEventId?: never
/* eslint-enable @typescript-eslint/no-explicit-any */

@@ -751,4 +748,2 @@ }

next?: ('next' extends keyof RequestInit ? RequestInit : never)['next']
/** @alpha */
lastLiveEventId?: string | string[] | null
}

@@ -796,4 +791,2 @@

resultSourceMap?: ContentSourceMap
/** @alpha */
syncTags?: SyncTag[]
}

@@ -1013,15 +1006,2 @@

/** @alpha */
export type SyncTag = `s1:${string}`
/** @alpha */
export interface LiveEventRestart {
type: 'restart'
}
/** @alpha */
export interface LiveEventMessage {
type: 'message'
id: string
tags: SyncTag[]
}
export type {

@@ -1028,0 +1008,0 @@ ContentSourceMapParsedPath,

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc