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

draft-js-export-html

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draft-js-export-html - npm Package Compare versions

Comparing version 0.5.4 to 0.6.0

8

lib/stateToHTML.js

@@ -29,4 +29,2 @@ 'use strict';

var _draftJs = require('draft-js');
var _draftJsUtils = require('draft-js-utils');

@@ -458,3 +456,3 @@

}).join('');
var entity = entityKey ? getEntity(_this.contentState, entityKey) : null;
var entity = entityKey ? _this.contentState.getEntity(entityKey) : null;
// Note: The `toUpperCase` below is for compatability with some libraries that use lower-case for image blocks.

@@ -513,6 +511,2 @@ var entityType = entity == null ? null : entity.getType().toUpperCase();

function getEntity(contentState, entityKey) {
return contentState.getEntity ? contentState.getEntity(entityKey) : _draftJs.Entity.get(entityKey);
}
function stringifyAttrs(attrs) {

@@ -519,0 +513,0 @@ if (attrs == null) {

6

package.json
{
"name": "draft-js-export-html",
"version": "0.5.4",
"version": "0.6.0",
"description": "DraftJS: Export ContentState to HTML",

@@ -17,6 +17,6 @@ "main": "lib/main.js",

"dependencies": {
"draft-js-utils": "^0.1.5"
"draft-js-utils": ">=0.2.0"
},
"peerDependencies": {
"draft-js": ">=0.7.0",
"draft-js": ">=0.10.0",
"immutable": "3.x.x"

@@ -23,0 +23,0 @@ },

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