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

datocms-html-to-structured-text

Package Overview
Dependencies
Maintainers
5
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datocms-html-to-structured-text - npm Package Compare versions

Comparing version 1.2.3-alpha.3 to 1.3.0

2

dist/cjs/index.js

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

? options.allowedMarks
: datocms_structured_text_utils_1.defaultMarks,
: datocms_structured_text_utils_1.allowedMarks,
global: __assign({ baseUrl: null, baseUrlFound: false }, (options.shared || {})),

@@ -121,0 +121,0 @@ })];

@@ -57,3 +57,3 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */

import documentToHast from 'hast-util-from-dom';
import { defaultMarks, } from 'datocms-structured-text-utils';
import { allowedMarks, } from 'datocms-structured-text-utils';
export function htmlToStructuredText(html, options) {

@@ -109,3 +109,3 @@ if (options === void 0) { options = {}; }

? options.allowedMarks
: defaultMarks,
: allowedMarks,
global: __assign({ baseUrl: null, baseUrlFound: false }, (options.shared || {})),

@@ -112,0 +112,0 @@ })];

{
"name": "datocms-html-to-structured-text",
"version": "1.2.3-alpha.3",
"version": "1.3.0",
"description": "Convert HTML (or a `hast` syntax tree) to a valid DatoCMS Structured Text `dast` document",

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

"dependencies": {
"datocms-structured-text-utils": "^1.2.3-alpha.3",
"datocms-structured-text-utils": "^1.2.0",
"extend": "^3.0.2",

@@ -52,3 +52,3 @@ "hast-util-from-dom": "^3.0.0",

},
"gitHead": "283340766136a58a5bf2046bc75fc34999c838db"
"gitHead": "c12c0a8f63562fc2bd11aa79cd51eb7f31eabbd4"
}

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