New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sanity/preview-kit

Package Overview
Dependencies
Maintainers
72
Versions
268
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/preview-kit - npm Package Compare versions

Comparing version 5.2.5 to 5.2.6

4

dist/_chunks-es/LiveQueryProvider.js

@@ -957,3 +957,3 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";

throw new Error("Missing a `client` prop with a configured Sanity client instance");
const perspective = usePerspective(props.perspective || "previewDrafts"), [client] = useState(() => {
const perspective = usePerspective(props.perspective || "drafts"), [client] = useState(() => {
const { requestTagPrefix, resultSourceMap } = props.client.config();

@@ -967,3 +967,3 @@ return props.client.withConfig({

useCdn: !1,
perspective: "previewDrafts",
perspective: "drafts",
ignoreBrowserTokenWarning: !0

@@ -970,0 +970,0 @@ }

@@ -79,3 +79,3 @@ import type {ClientPerspective} from '@sanity/client'

* Reconfigures `client` with the provided `token`, as well as changing its configuration to
* have `perspective: 'previewDrafts'`, `useCdn: false` and `ignoreBrowserTokenWarning: true`.
* have `perspective: 'drafts'`, `useCdn: false` and `ignoreBrowserTokenWarning: true`.
* If you want to use a different configuration, then use just the `client` prop and set the token yourself,

@@ -99,3 +99,3 @@ * for example by: `client={client.withConfig({token})}`

/**
* @defaultValue 'previewDrafts'
* @defaultValue 'drafts'
*/

@@ -102,0 +102,0 @@ perspective?: Exclude<ClientPerspective, 'raw'>

{
"name": "@sanity/preview-kit",
"version": "5.2.5",
"version": "5.2.6",
"description": "General purpose utils for live content and visual editing",

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

@@ -120,3 +120,3 @@ # @sanity/preview-kit<!-- omit in toc -->

token,
perspective: 'previewDrafts',
perspective: 'drafts',
}

@@ -596,3 +596,3 @@ : {},

{lastId},
{perspective: draftMode().isEnabled ? 'previewDrafts' : 'published'},
{perspective: draftMode().isEnabled ? 'drafts' : 'published'},
)

@@ -829,3 +829,3 @@

The `perspective` option can be used to specify special filtering behavior for queries. The default value is `raw`, which means no special filtering is applied, while [`published`](#published) and [`previewDrafts`](#previewdrafts) can be used to optimize for specific use cases. Read more about this option:
The `perspective` option can be used to specify special filtering behavior for queries. The default value is `raw`, which means no special filtering is applied, while [`published`](#published) and [`drafts`](#drafts) can be used to optimize for specific use cases. Read more about this option:

@@ -832,0 +832,0 @@ - [Perspectives in Sanity docs][perspectives-docs]

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