@portabletext/toolkit
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137268
1641