Socket
Socket
Sign inDemoInstall

@sanity/client

Package Overview
Dependencies
Maintainers
40
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.5.0 to 6.7.0

10

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

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

"@rollup/plugin-node-resolve": "^15.2.3",
"@sanity/pkg-utils": "^2.4.10",
"@sanity/pkg-utils": "^3.0.0",
"@types/node": "^20.8.4",

@@ -110,3 +110,3 @@ "@typescript-eslint/eslint-plugin": "^6.7.5",

"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-simple-import-sort": "^10.0.0",

@@ -116,7 +116,7 @@ "faucet": "^0.0.4",

"ls-engines": "^0.9.0",
"nock": "^13.3.3",
"nock": "^13.3.4",
"prettier": "^3.0.3",
"prettier-plugin-packagejson": "^2.4.6",
"rimraf": "^5.0.1",
"rollup": "^3.29.4",
"rollup": "^4.0.2",
"sse-channel": "^4.0.0",

@@ -123,0 +123,0 @@ "terser": "^5.21.0",

@@ -1095,3 +1095,3 @@ # @sanity/client

The following options are available for mutations, and can be applied either as the second argument to `create()`, `createOrReplace`, `createIfNotExist`, `delete()` and `mutate()` - or as an argument to the `commit()` method on patches and transactions.
The following options are available for mutations, and can be applied either as the second argument to `create()`, `createOrReplace`, `createIfNotExists`, `delete()` and `mutate()` - or as an argument to the `commit()` method on patches and transactions.

@@ -1098,0 +1098,0 @@ - `visibility` (`'sync'|'async'|'deferred'`) - default `'sync'`

@@ -326,4 +326,5 @@ import {type MonoTypeOperatorFunction, Observable} from 'rxjs'

) {
if (options.resultSourceMap ?? config.resultSourceMap) {
options.query = {resultSourceMap: true, ...options.query}
const resultSourceMap = options.resultSourceMap ?? config.resultSourceMap
if (resultSourceMap !== undefined && resultSourceMap !== false) {
options.query = {resultSourceMap, ...options.query}
}

@@ -330,0 +331,0 @@ const perspective = options.perspective || config.perspective

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

*/
resultSourceMap?: boolean
resultSourceMap?: boolean | 'withKeyArraySelector'
/**

@@ -868,8 +868,15 @@ *@deprecated set `cache` and `next` options on `client.fetch` instead

/** @public */
export interface ContentSourceMapDocument {
export interface ContentSourceMapDocumentBase {
_id: string
_type: string
}
/** @public */
export interface ContentSourceMapRemoteDocument extends ContentSourceMapDocument {
export interface ContentSourceMapDocument extends ContentSourceMapDocumentBase {
_projectId?: undefined
_dataset?: undefined
}
/** @public */
export interface ContentSourceMapRemoteDocument extends ContentSourceMapDocumentBase {
_projectId: string

@@ -876,0 +883,0 @@ _dataset: 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 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 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc