Socket
Socket
Sign inDemoInstall

@sanity/preview-kit

Package Overview
Dependencies
Maintainers
35
Versions
229
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 1.2.0-add-type-allowlist.1 to 1.2.0-add-type-allowlist.2

1

dist/index.d.ts

@@ -33,2 +33,3 @@ import type { Config } from '@sanity/groq-store'

checkAuth,
allowTypes,
}: _PreviewConfig) => UsePreview

@@ -35,0 +36,0 @@

4

dist/index.js

@@ -38,3 +38,4 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

onPublicAccessOnly,
checkAuth
checkAuth,
allowTypes
} = _ref;

@@ -67,2 +68,3 @@ if (!projectId) {

subscriptionThrottleMs,
allowTypes,
token: token === null ? void 0 : token,

@@ -69,0 +71,0 @@ EventSource: token === null ? void 0 : importEventSourcePolyfill(),

{
"name": "@sanity/preview-kit",
"version": "1.2.0-add-type-allowlist.1",
"version": "1.2.0-add-type-allowlist.2",
"description": "General purpose live previews, like next-sanity",

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

@@ -77,2 +77,3 @@ import type { Config, GroqStore } from '@sanity/groq-store'

checkAuth,
allowTypes,
}: _PreviewConfig): UsePreview => {

@@ -135,2 +136,3 @@ if (!projectId) {

subscriptionThrottleMs,
allowTypes,
token: token === null ? undefined : token,

@@ -137,0 +139,0 @@ // Lazy load the huge `event-source-polyfill`, but only if a token is specified

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