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

draft-js-import-element

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draft-js-import-element - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

2

lib/stateFromElement.js

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

if (SELF_CLOSING_ELEMENTS.hasOwnProperty(tagName)) {
this.processText('~');
this.processText('\xA0');
}

@@ -301,0 +301,0 @@ block.entityStack.pop();

{
"name": "draft-js-import-element",
"version": "0.4.0",
"version": "0.4.1",
"description": "DraftJS: Import Element to ContentState",

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

@@ -38,3 +38,3 @@ # Plain text

# Image Entity
{"entityMap":{"0":{"type":"IMAGE","mutability":"MUTABLE","data":{"src":"a.jpg", "alt": "a"}}},"blocks":[{"key":"8r91a","text":"~","type":"unstyled","data":{},"depth":0,"inlineStyleRanges":[],"entityRanges":[{"offset":0,"length":1,"key":0}]}]}
{"entityMap":{"0":{"type":"IMAGE","mutability":"MUTABLE","data":{"src":"a.jpg", "alt": "a"}}},"blocks":[{"key":"8r91a","text":"\u00A0","type":"unstyled","data":{},"depth":0,"inlineStyleRanges":[],"entityRanges":[{"offset":0,"length":1,"key":0}]}]}
<p><img src="a.jpg" alt="a"/></p>

@@ -41,0 +41,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