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

draftjs-md-converter

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draftjs-md-converter - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

dist/index.js

@@ -265,3 +265,3 @@ 'use strict';

return children.reduce(function (prev, current) {
return prev + current.value.length;
return prev + (current.value ? current.value.length : 0);
}, 0);

@@ -268,0 +268,0 @@ };

{
"name": "draftjs-md-converter",
"version": "0.1.3",
"version": "0.1.4",
"description": "Converter for converting Draft.js state into Markdown and vice versa",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -86,3 +86,3 @@ 'use strict';

const getRawLength = children =>
children.reduce((prev, current) => prev + current.value.length, 0);
children.reduce((prev, current) => prev + (current.value ? current.value.length : 0), 0);

@@ -89,0 +89,0 @@ const addLink = child => {

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