Socket
Socket
Sign inDemoInstall

@sanity/client

Package Overview
Dependencies
Maintainers
44
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.9.2 to 6.9.3

dist/_chunks/nodeMiddleware-BRRyFv21.cjs

3

dist/csm.d.ts

@@ -153,3 +153,4 @@ /// <reference types="node" />

/** @alpha */
export declare type EditIntentUrl = `/intent/edit/id=${string};type=${string};path=${string}`
export declare type EditIntentUrl =
`/intent/edit/mode=presentation;id=${string};type=${string};path=${string}`

@@ -156,0 +157,0 @@ /** @alpha */

@@ -1,3 +0,3 @@

import { walkMap, resolveMapping, parseJsonPath, get, toString, jsonPath, studioPathToJsonPath, resolveEditInfo, createEditUrl } from './_chunks/resolveEditInfo-R2JexMKb.js';
export { getPublishedId, jsonPathToStudioPath, studioPath } from './_chunks/resolveEditInfo-R2JexMKb.js';
import { walkMap, resolveMapping, parseJsonPath, get, toString, jsonPath, studioPathToJsonPath, resolveEditInfo, createEditUrl } from './_chunks/resolveEditInfo-AeWgV4US.js';
export { getPublishedId, jsonPathToStudioPath, studioPath } from './_chunks/resolveEditInfo-AeWgV4US.js';
const defaultUpdateFunction = changed => changed;

@@ -4,0 +4,0 @@ function applySourceDocuments(result, resultSourceMap, getCachedDocument) {

@@ -1,3 +0,3 @@

import { printNoDefaultExport, defineCreateClientExports, SanityClient, middleware } from './_chunks/nodeMiddleware-Od3pONaJ.js';
export { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableSanityClient, ObservableTransaction, Patch, ServerError, Transaction } from './_chunks/nodeMiddleware-Od3pONaJ.js';
import { printNoDefaultExport, defineCreateClientExports, SanityClient, middleware } from './_chunks/nodeMiddleware-ko5Rvf4U.js';
export { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableSanityClient, ObservableTransaction, Patch, ServerError, Transaction } from './_chunks/nodeMiddleware-ko5Rvf4U.js';
export { adapter as unstable__adapter, environment as unstable__environment } from 'get-it';

@@ -4,0 +4,0 @@ function defineDeprecatedCreateClient(createClient) {

@@ -218,3 +218,3 @@ import { ObservableSanityClient, defaultConfig, SanityClient, defineCreateClientExports, envMiddleware } from './_chunks/browserMiddleware-MafB5TmI.js';

}
const routerParams = ["id=".concat(id), "type=".concat(type), "path=".concat(encodeURIComponent(stringifiedPath))];
const routerParams = ["mode=presentation", "id=".concat(id), "type=".concat(type), "path=".concat(encodeURIComponent(stringifiedPath))];
if (tool) {

@@ -221,0 +221,0 @@ routerParams.push("tool=".concat(tool));

@@ -1,6 +0,6 @@

import { ObservableSanityClient, defaultConfig, SanityClient, defineCreateClientExports, middleware } from './_chunks/nodeMiddleware-Od3pONaJ.js';
export { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableTransaction, Patch, ServerError, Transaction } from './_chunks/nodeMiddleware-Od3pONaJ.js';
import { ObservableSanityClient, defaultConfig, SanityClient, defineCreateClientExports, middleware } from './_chunks/nodeMiddleware-ko5Rvf4U.js';
export { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableTransaction, Patch, ServerError, Transaction } from './_chunks/nodeMiddleware-ko5Rvf4U.js';
import { map } from 'rxjs/operators';
import { vercelStegaCombine, vercelStegaSplit } from '@vercel/stega';
import { walkMap, resolveMapping, parseJsonPath, resolveStudioBaseRoute, createEditUrl, reKeySegment, toString, jsonPathToStudioPath } from './_chunks/resolveEditInfo-R2JexMKb.js';
import { walkMap, resolveMapping, parseJsonPath, resolveStudioBaseRoute, createEditUrl, reKeySegment, toString, jsonPathToStudioPath } from './_chunks/resolveEditInfo-AeWgV4US.js';
export { adapter as unstable__adapter, environment as unstable__environment } from 'get-it';

@@ -7,0 +7,0 @@ const defaultStegaConfig = {

{
"name": "@sanity/client",
"version": "6.9.2",
"version": "6.9.3",
"description": "Client for retrieving, creating and patching data from Sanity.io",

@@ -5,0 +5,0 @@ "keywords": [

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

})
// ^? 'https://your-project-name.sanity.studio/intent/edit/id=462efcc6-3c8b-47c6-8474-5544e1a4acde;type=author;path=pictures[_key=="cee5fbb69da2"].alt'
// ^? 'https://your-project-name.sanity.studio/intent/edit/mode=presentation;id=462efcc6-3c8b-47c6-8474-5544e1a4acde;type=author;path=pictures[_key=="cee5fbb69da2"].alt'
```

@@ -777,0 +777,0 @@

@@ -58,3 +58,8 @@ import {getPublishedId} from './getPublishedId'

}
const routerParams = [`id=${id}`, `type=${type}`, `path=${encodeURIComponent(stringifiedPath)}`]
const routerParams = [
'mode=presentation',
`id=${id}`,
`type=${type}`,
`path=${encodeURIComponent(stringifiedPath)}`,
]
if (tool) {

@@ -61,0 +66,0 @@ routerParams.push(`tool=${tool}`)

@@ -61,3 +61,4 @@ import type {ContentSourceMap, ContentSourceMapDocuments, SanityDocument} from '../types'

/** @alpha */
export type EditIntentUrl = `/intent/edit/id=${string};type=${string};path=${string}`
export type EditIntentUrl =
`/intent/edit/mode=presentation;id=${string};type=${string};path=${string}`

@@ -64,0 +65,0 @@ /** @internal */

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 not supported yet

Sorry, the diff of this file is not supported yet

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