New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

datocms-structured-text-generic-html-renderer

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datocms-structured-text-generic-html-renderer - npm Package Compare versions

Comparing version 0.1.0-alpha.9 to 0.1.0-alpha.10

9

dist/lib/index.js

@@ -68,5 +68,8 @@ "use strict";

var textWithNewlinesConvertedToBr = lines.length > 0
? lines.slice(1).reduce(function (acc, line) {
return acc.concat([renderNode('br'), line]);
}, [lines[0]])
? lines.slice(1).reduce(function (acc, line, index) {
return acc.concat([
renderNode('br', { key: "br-" + index }),
renderText(line, "line-" + index),
]);
}, [renderText(lines[0], 'line-first')])
: renderText(node.value, key);

@@ -73,0 +76,0 @@ return marks.reduce(function (children, mark) {

{
"name": "datocms-structured-text-generic-html-renderer",
"version": "0.1.0-alpha.9",
"version": "0.1.0-alpha.10",
"description": "A set of Typescript types and helpers to work with DatoCMS Structured Text fields",

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

},
"gitHead": "fbd819fff710650d8a1cacfea8b05fa860037dfe"
"gitHead": "c99e901363cfd6e1f884bb7e91607a98cea09a38"
}

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