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

mobiledoc-kit

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobiledoc-kit - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

10

dist/commonjs/mobiledoc-kit/models/card.js

@@ -43,3 +43,11 @@ 'use strict';

var payload = (0, _utilsCopy.shallowCopyObject)(this.payload);
return this.builder.createCardSection(this.name, payload);
var card = this.builder.createCardSection(this.name, payload);
// If this card is currently rendered, clone the mode it is
// currently in as the default mode of the new card.
var mode = this._initialMode;
if (this.renderNode && this.renderNode.cardNode) {
mode = this.renderNode.cardNode.mode;
}
card.setInitialMode(mode);
return card;
}

@@ -46,0 +54,0 @@

2

package.json
{
"name": "mobiledoc-kit",
"version": "0.6.0",
"version": "0.6.1",
"description": "A toolkit for building WYSIWYG editors with Mobiledoc",

@@ -5,0 +5,0 @@ "repository": "https://github.com/bustlelabs/mobiledoc-kit",

@@ -27,4 +27,12 @@ import Section from './_section';

clone() {
const payload = shallowCopyObject(this.payload);
return this.builder.createCardSection(this.name, payload);
let payload = shallowCopyObject(this.payload);
let card = this.builder.createCardSection(this.name, payload);
// If this card is currently rendered, clone the mode it is
// currently in as the default mode of the new card.
let mode = this._initialMode;
if (this.renderNode && this.renderNode.cardNode) {
mode = this.renderNode.cardNode.mode;
}
card.setInitialMode(mode);
return card;
}

@@ -31,0 +39,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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