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

braft-utils

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

braft-utils - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

6

dist/content.js

@@ -245,2 +245,3 @@ 'use strict';

console.warn(error);
return editorState;
}

@@ -276,7 +277,8 @@ },

try {
var _convertHTMLToRaw = (0, _braftConvert.convertHTMLToRaw)(htmlString),
blockMap = _convertHTMLToRaw.blockMap;
var _convertFromRaw = (0, _draftJs.convertFromRaw)((0, _braftConvert.convertHTMLToRaw)(htmlString)),
blockMap = _convertFromRaw.blockMap;
return _draftJs.EditorState.push(editorState, _draftJs.Modifier.replaceWithFragment(contentState, selectionState, blockMap), 'insert-fragment');
} catch (error) {
console.warn(error);
return editorState;

@@ -283,0 +285,0 @@ }

{
"name": "braft-utils",
"version": "0.0.9",
"version": "0.0.10",
"description": "Utils for Braft Editor",

@@ -18,3 +18,3 @@ "main": "dist/index.js",

"peerDependencies": {
"braft-convert": "^1.9.7",
"braft-convert": "^2.0.0",
"draft-js": "^0.10.5",

@@ -21,0 +21,0 @@ "draftjs-utils": "^0.9.4"

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