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

braft-convert

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

braft-convert - npm Package Compare versions

Comparing version 1.9.7 to 2.0.0

4

dist/index.js

@@ -27,4 +27,6 @@ 'use strict';

var convertHTMLToRaw = exports.convertHTMLToRaw = function convertHTMLToRaw(content) {
var fontFamilies = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _configs.defaultFontFamilies;
try {
var contentState = (0, _draftConvert.convertFromHTML)((0, _configs.getFromHTMLConfig)())(content);
var contentState = (0, _draftConvert.convertFromHTML)((0, _configs.getFromHTMLConfig)({ fontFamilies: fontFamilies }))(content);
return (0, _draftJs.convertToRaw)(contentState);

@@ -31,0 +33,0 @@ } catch (error) {

{
"name": "braft-convert",
"version": "1.9.7",
"version": "2.0.0",
"description": "A convert helper for Braft Editor.",

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

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