Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@portabletext/to-html

Package Overview
Dependencies
Maintainers
10
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@portabletext/to-html - npm Package Compare versions

Comparing version
3.0.0
to
4.0.0
+1
-1
dist/pt-to-html.js

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

}, DefaultListItem = ({ children }) => `<li>${children}</li>`, link = ({ children, value }) => {
const href = (value == null ? void 0 : value.href) || "";
const href = value?.href || "";
return uriLooksSafe(href) ? `<a href="${escapeHTML(href)}">${children}</a>` : children;

@@ -40,0 +40,0 @@ }, defaultMarks = {

@@ -35,3 +35,3 @@ import { nestLists, isPortableTextToolkitList, isPortableTextListItemBlock, isPortableTextToolkitSpan, isPortableTextBlock, isPortableTextToolkitTextNode, spanToPlainText, buildMarksTree } from "@portabletext/toolkit";

}, DefaultListItem = ({ children }) => `<li>${children}</li>`, link = ({ children, value }) => {
const href = (value == null ? void 0 : value.href) || "";
const href = value?.href || "";
return uriLooksSafe(href) ? `<a href="${escapeHTML(href)}">${children}</a>` : children;

@@ -38,0 +38,0 @@ }, defaultMarks = {

{
"name": "@portabletext/to-html",
"version": "3.0.0",
"version": "4.0.0",
"description": "Render Portable Text to HTML",

@@ -38,6 +38,3 @@ "keywords": [

],
"browserslist": [
"extends @sanity/browserslist-config",
"node 14"
],
"browserslist": "extends @sanity/browserslist-config",
"prettier": "@sanity/prettier-config",

@@ -69,27 +66,27 @@ "eslintConfig": {

"dependencies": {
"@portabletext/toolkit": "^3.0.0",
"@portabletext/types": "^2.0.15"
"@portabletext/toolkit": "^4.0.0",
"@portabletext/types": "^3.0.0"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.1",
"@changesets/cli": "^2.29.6",
"@changesets/cli": "^2.29.7",
"@sanity/browserslist-config": "^1.0.5",
"@sanity/pkg-utils": "^8.0.3",
"@sanity/pkg-utils": "^8.1.29",
"@sanity/prettier-config": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"esbuild": "^0.25.9",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"esbuild": "^0.25.12",
"esbuild-register": "^3.6.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-sanity": "^7.1.2",
"eslint": "^8.57.1",
"eslint-config-prettier": "^10.1.8",
"eslint-config-sanity": "^7.1.4",
"npm-run-all2": "^8.0.4",
"prettier": "^3.6.2",
"rimraf": "^4.4.1",
"tap": "^21.1.0",
"typedoc": "^0.28.10",
"typescript": "5.9.2"
"tap": "^21.1.3",
"typedoc": "^0.28.14",
"typescript": "5.9.3"
},
"engines": {
"node": "^14.13.1 || >=16.0.0"
"node": ">=20.19 <22 || >=22.12"
},

@@ -96,0 +93,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet