Socket
Socket
Sign inDemoInstall

@sanity/types

Package Overview
Dependencies
Maintainers
54
Versions
897
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/types - npm Package Compare versions

Comparing version 3.41.1 to 3.41.2-manifests.141

2

./lib/index.js

@@ -68,3 +68,3 @@ "use strict";

return isRecord$1(value) && typeof value._type == "string" && // block types can be named, so expect anything here.
Array.isArray(value.children) && value.children.every((child) => isRecord$1(child)) && ("markDefs" in value ? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord$1(def)) : !1) && ("style" in value ? typeof value.style == "string" : !0);
Array.isArray(value.children) && value.children.every((child) => isRecord$1(child)) && ("markDefs" in value ? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord$1(def)) : !0) && ("style" in value ? typeof value.style == "string" : !0);
}

@@ -71,0 +71,0 @@ function isPortableTextSpan(value) {

@@ -66,3 +66,3 @@ function isObject(obj) {

return isRecord$1(value) && typeof value._type == "string" && // block types can be named, so expect anything here.
Array.isArray(value.children) && value.children.every((child) => isRecord$1(child)) && ("markDefs" in value ? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord$1(def)) : !1) && ("style" in value ? typeof value.style == "string" : !0);
Array.isArray(value.children) && value.children.every((child) => isRecord$1(child)) && ("markDefs" in value ? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord$1(def)) : !0) && ("style" in value ? typeof value.style == "string" : !0);
}

@@ -69,0 +69,0 @@ function isPortableTextSpan(value) {

@@ -68,3 +68,3 @@ "use strict";

return isRecord$1(value) && typeof value._type == "string" && // block types can be named, so expect anything here.
Array.isArray(value.children) && value.children.every((child) => isRecord$1(child)) && ("markDefs" in value ? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord$1(def)) : !1) && ("style" in value ? typeof value.style == "string" : !0);
Array.isArray(value.children) && value.children.every((child) => isRecord$1(child)) && ("markDefs" in value ? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord$1(def)) : !0) && ("style" in value ? typeof value.style == "string" : !0);
}

@@ -71,0 +71,0 @@ function isPortableTextSpan(value) {

{
"name": "@sanity/types",
"version": "3.41.1",
"version": "3.41.2-manifests.141+cd5f1f04f2",
"description": "Type definitions for common Sanity data structures",

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

"dependencies": {
"@sanity/client": "^6.17.2",
"@sanity/client": "^6.18.2",
"@types/react": "^18.0.25"

@@ -58,6 +58,6 @@ },

"@jest/globals": "^29.7.0",
"@repo/package.config": "3.41.1",
"@repo/package.config": "3.43.0",
"rimraf": "^3.0.2"
},
"gitHead": "9080f74661eae5eb1fedef537fd354d12dc5dee1"
"gitHead": "cd5f1f04f28a123d80a6f9363a47df9d2d7e3054"
}

@@ -26,3 +26,3 @@ import {type PortableTextObject, type PortableTextSpan, type PortableTextTextBlock} from './types'

? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord(def))
: false) &&
: true) &&
('style' in value ? typeof value.style === 'string' : true) // optional property

@@ -29,0 +29,0 @@ )

@@ -116,2 +116,3 @@ import {type ComponentType, type ReactNode} from 'react'

i18nTitleKey?: string
icon?: ReactNode | ComponentType
}

@@ -118,0 +119,0 @@

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 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