Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sanity/block-content-to-react

Package Overview
Dependencies
Maintainers
7
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/block-content-to-react - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

6

package.json
{
"name": "@sanity/block-content-to-react",
"description": "React component for transforming Sanity block content to React components",
"version": "2.0.4",
"version": "2.0.5",
"main": "lib/BlockContent.js",

@@ -21,7 +21,7 @@ "scripts": {

"dependencies": {
"@sanity/block-content-to-hyperscript": "^2.0.5",
"@sanity/block-content-to-hyperscript": "^2.0.6",
"prop-types": "^15.6.2"
},
"devDependencies": {
"@sanity/block-content-tests": "^0.2.0",
"@sanity/block-content-tests": "^0.3.0",
"babel-cli": "^6.26.0",

@@ -28,0 +28,0 @@ "babel-eslint": "^9.0.0",

@@ -40,2 +40,6 @@ /* eslint-disable id-length, max-len, no-sync */

function ButtonSerializer(props) {
return h(Text, {style: {borderColor: '#000'}}, props.node.text)
}
const commonProps = {

@@ -45,3 +49,3 @@ projectId: '3do82whm',

serializers: {
types: {code: CodeSerializer},
types: {code: CodeSerializer, button: ButtonSerializer},
marks: {highlight: Highlight}

@@ -48,0 +52,0 @@ }

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