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

draftmirror

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draftmirror - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

26

lib/widgets/createWidget.js

@@ -27,18 +27,18 @@ var React = require('react');

Base.apply(this, arguments);
Object.defineProperty(this, 'matchDOMTag', function() {
return {
'figure': function(dom) {
var className = dom.hasAttribute('class')? dom.getAttribute('class') : '';
return className.indexOf('Widget-' + this.name) >= 0? {} : false;
}
};
});
Object.defineProperty(this, 'attrs', function() {
return attrs;
});
}
CustomType.prototype = Object.create(Base.prototype);
Object.defineProperty(CustomType.prototype, 'matchDOMTag', function() {
return {
'figure': function(dom) {
var className = dom.hasAttribute('class')? dom.getAttribute('class') : '';
return className.indexOf('Widget-' + this.name) >= 0? {} : false;
}
};
});
Object.defineProperty(CustomType.prototype, 'attrs', function() {
return attrs;
});
CustomType.prototype.toDOM = function(node) {

@@ -45,0 +45,0 @@ if (node.rendered) {

{
"name": "draftmirror",
"version": "0.2.2",
"version": "0.2.3",
"description": "React component for ProseMirror providing a Draft.js like API",

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

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