draft-js-export-html
Advanced tools
Comparing version 0.5.4 to 0.6.0
@@ -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) { |
{ | ||
"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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33935
704
+ Addeddraft-js-utils@1.4.1(transitive)
- Removeddraft-js-utils@0.1.7(transitive)
Updateddraft-js-utils@>=0.2.0