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
1
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.0.1 to 1.0.2

dist/lib/preprocessors/google-docs.js

5

dist/lib/handlers.js

@@ -215,3 +215,6 @@ "use strict";

if (Array.isArray(children) && children.length) {
return [2 /*return*/, createNode('list', { children: children, style: 'bulleted' })];
return [2 /*return*/, createNode('list', {
children: children,
style: node.tagName === 'ol' ? 'numbered' : 'bulleted',
})];
}

@@ -218,0 +221,0 @@ return [2 /*return*/, undefined];

2

dist/types/index.d.ts

@@ -9,3 +9,3 @@ import { CreateNodeFunction, HastRootNode } from './types';

handlers: Record<string, CreateNodeFunction>;
preprocess: (hast: HastRootNode) => HastRootNode;
preprocess: (hast: HastRootNode) => void;
allowedBlocks: Array<BlockquoteType | CodeType | HeadingType | LinkType | ListType>;

@@ -12,0 +12,0 @@ allowedMarks: Mark[];

{
"name": "datocms-html-to-structured-text",
"version": "1.0.1",
"version": "1.0.2",
"description": "Convert HTML (or Hast syntax tree) to a valid DatoCMS Structured Text Dast document",

@@ -42,9 +42,9 @@ "keywords": [

"rehype-minify-whitespace": "^4.0.5",
"unist-util-is": "^4.0.4"
"unist-util-is": "^4.0.4",
"unist-utils-core": "^1.0.5"
},
"devDependencies": {
"parse5": "^6.0.1",
"unist-utils-core": "^1.0.5"
"parse5": "^6.0.1"
},
"gitHead": "6381b05331181aecc82b7f080c6993fc803a7327"
"gitHead": "2c34fbd150cd515645bcac40cdb2ccebb8ae51de"
}

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