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

@portabletext/toolkit

Package Overview
Dependencies
Maintainers
8
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@portabletext/toolkit - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

2

dist/index.js

@@ -17,3 +17,3 @@ 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; }

// `markDefs` isn't _required_ per say, but if it's there, it needs to be an array
!("markDefs" in node) || Array.isArray(node.markDefs) &&
!("markDefs" in node) || !node.markDefs || Array.isArray(node.markDefs) &&
// Every mark definition needs to have an `_key` to be mappable in child spans

@@ -20,0 +20,0 @@ node.markDefs.every(def => typeof def._key === "string")) &&

{
"name": "@portabletext/toolkit",
"version": "2.0.5",
"version": "2.0.6",
"description": "Toolkit of handy utility functions for dealing with Portable Text",

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

@@ -45,2 +45,3 @@ import type {

(!('markDefs' in node) ||
!node.markDefs ||
(Array.isArray(node.markDefs) &&

@@ -47,0 +48,0 @@ // Every mark definition needs to have an `_key` to be mappable in child spans

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