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

colonel-kurtz

Package Overview
Dependencies
Maintainers
3
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colonel-kurtz - npm Package Compare versions

Comparing version 3.3.0 to 3.4.0-rc

7

addons/common/field.js

@@ -45,5 +45,4 @@ /**

var label = _props.label;
var value = _props.value;
var props = _objectWithoutProperties(_props, ['hint', 'element', 'label', 'value']);
var props = _objectWithoutProperties(_props, ['hint', 'element', 'label']);

@@ -60,3 +59,3 @@ var hintId = this.state.hintId;

),
React.createElement(Element, _extends({ ref: 'input', className: 'col-field-input', 'aria-describedby': hint ? hintId : null, defaultValue: value }, props)),
React.createElement(Element, _extends({ ref: 'input', className: 'col-field-input', 'aria-describedby': hint ? hintId : null }, props)),
this.getHint(hint)

@@ -69,2 +68,2 @@ );

module.exports = Field;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2FkZG9ucy9jb21tb24vZmllbGQuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBS0EsSUFBSSxLQUFLLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFBO0FBQzVCLElBQUksR0FBRyxHQUFLLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQTs7QUFFMUIsSUFBSSxLQUFLLEdBQUcsS0FBSyxDQUFDLFdBQVcsQ0FBQzs7O0FBRTVCLGlCQUFlLEVBQUEsMkJBQUc7QUFDaEIsV0FBTztBQUNMLFVBQUksRUFBTSxJQUFJO0FBQ2QsYUFBTyxFQUFHLE9BQU87QUFDakIsVUFBSSxFQUFNLE1BQU07S0FDakIsQ0FBQTtHQUNGOztBQUVELGlCQUFlLEVBQUEsMkJBQUc7QUFDaEIsV0FBTztBQUNMLFlBQU0sc0JBQW9CLEdBQU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1cImNvbC1maWVsZC1oaW50XCI+eyBoaW50IH08L3NwYW4+KSA6IG51bGxcbiAgfSxcblxuICByZW5kZXIoKSB7XG4gICAgbGV0IHsgaGludCwgZWxlbWVudDpFbGVtZW50LCBsYWJlbCwgLi4ucHJvcHMgfSA9IHRoaXMucHJvcHNcbiAgICBsZXQgeyBoaW50SWQgfSA9IHRoaXMuc3RhdGVcblxuICAgIHJldHVybiAoXG4gICAgICA8bGFiZWwgY2xhc3NOYW1lPVwiY29sLWZpZWxkXCI+XG4gICAgICAgIDxzcGFuIGNsYXNzTmFtZT1cImNvbC1maWVsZC1sYWJlbFwiPnsgbGFiZWwgfTwvc3Bhbj5cblxuICAgICAgICA8RWxlbWVudCByZWY9XCJpbnB1dFwiIGNsYXNzTmFtZT1cImNvbC1maWVsZC1pbnB1dFwiIGFyaWEtZGVzY3JpYmVkYnk9eyBoaW50ID8gaGludElkIDogbnVsbCB9IHsgLi4ucHJvcHMgfSAvPlxuICAgICAgICB7IHRoaXMuZ2V0SGludChoaW50KSB9XG4gICAgICA8L2xhYmVsPlxuICAgIClcbiAgfVxuXG59KVxuXG5tb2R1bGUuZXhwb3J0cyA9IEZpZWxkXG4iXX0=
{
"name": "colonel-kurtz",
"version": "3.3.0",
"version": "3.4.0-rc",
"description": "A block editor",

@@ -45,6 +45,6 @@ "main": "src/Colonel.js",

"group-by": "0.0.1",
"microcosm": "~8.1",
"microcosm": "~9.21",
"react-addons-css-transition-group": "~0.14",
"react-focus-trap": "~2.0",
"react-ink": "~5.0",
"react-focus-trap": "~2.1",
"react-ink": "~5.1",
"uid": "0.0.2"

@@ -51,0 +51,0 @@ },

@@ -28,3 +28,3 @@ /**

var parents = Blocks.filterChildren(app.get('blocks'));
var parents = Blocks.filterChildren(app.state.blocks);

@@ -44,2 +44,2 @@ return React.createElement(

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0F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oJy4vU3dpdGNoJylcblxubW9kdWxlLmV4cG9ydHMgPSBSZWFjdC5jcmVhdGVDbGFzcyh7XG5cbiAgcHJvcFR5cGVzOiB7XG4gICAgYXBwIDogUmVhY3QuUHJvcFR5cGVzLm9iamVjdC5pc1JlcXVpcmVkXG4gIH0sXG5cbiAgZ2V0QmxvY2soYmxvY2ssIGkpIHtcbiAgICByZXR1cm4gKDxFZGl0b3JCbG9jayBrZXk9eyBibG9jayB9IGFwcD17IHRoaXMucHJvcHMuYXBwIH0gYmxvY2s9eyBibG9jayB9IC8+KVxuICB9LFxuXG4gIHJlbmRlcigpIHtcbiAgICBsZXQgeyBhcHAgfSA9IHRoaXMucHJvcHNcblxuICAgIGxldCBwYXJlbnRzID0gQmxvY2tzLmZpbHRlckNoaWxkcmVuKGFwcC5zdGF0ZS5ibG9ja3MpXG5cbiAgICByZXR1cm4gKFxuICAgICAgPGRpdiBjbGFzc05hbWU9XCJjb2xvbmVsXCI+XG4gICAgICAgIDxTd2l0Y2ggYXBwPXsgYXBwIH0gLz5cbiAgICAgICAgPEFuaW1hdG9yIGNsYXNzTmFtZT1cImNvbC1ibG9jay1jaGlsZHJlblwiPlxuICAgICAgICAgIHsgcGFyZW50cy5tYXAodGhpcy5nZXRCbG9jaykgfVxuICAgICAgICA8L0FuaW1hdG9yPlxuICAgICAgPC9kaXY+XG4gICAgKVxuICB9XG5cbn0pXG4iXX0=

@@ -32,5 +32,5 @@ 'use strict';

return app.refine('blockTypes').find(function (i) {
return app.state.blockTypes.filter(function (i) {
return i.id === block.type;
});
})[0];
},

@@ -110,5 +110,5 @@

app.push(Actions.update, block, content);
app.push(Actions.update, [block, content]);
}
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Jsb2NrLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsSUFBSSxPQUFPLEdBQU0s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9eyBjb250ZW50IH0gb25DaGFuZ2U9eyB0aGlzLl9vbkNoYW5nZSB9ID5cbiAgICAgICAgICAgIDxTd2l0Y2ggYXBwPXsgYXBwIH0gcGFyZW50PXsgYmxvY2sgfSAvPlxuICAgICAgICAgICAgPEFuaW1hdG9yIGNsYXNzTmFtZT1cImNvbC1ibG9jay1jaGlsZHJlblwiPlxuICAgICAgICAgICAgICB7IGNoaWxkcmVuIH1cbiAgICAgICAgICAgIDwvQW5pbWF0b3I+XG4gICAgICAgICAgPC9Db21wb25lbnQ+XG5cbiAgICAgICAgICA8QmxvY2tNZW51IHJlZj1cIm1lbnVcIiBhcHA9eyBhcHAgfSBibG9jaz17IGJsb2NrIH0gaXRlbXM9eyBleHRyYU1lbnVJdGVtcyB9IGFjdGl2ZT17IG1lbnVPcGVuIH0gb25PcGVuPXsgdGhpcy5vcGVuTWVudSB9IG9uRXhpdD17IHRoaXMuY2xvc2VNZW51IH0gLz5cbiAgICAgICAgPC9kaXY+XG5cbiAgICAgICAgPFN3aXRjaCBhcHA9eyBhcHAgfSBwb3NpdGlvbj17IGJsb2NrIH0gcGFyZW50PXsgYmxvY2sucGFyZW50IH0gLz5cbiAgICAgIDwvZGl2PlxuICAgIClcbiAgfSxcblxuICBfb25DaGFuZ2UoY29udGVudCkge1xuICAgIGxldCB7IGFwcCwgYmxvY2sgfSA9IHRoaXMucHJvcHNcbiAgICBhcHAucHVzaChBY3Rpb25zLnVwZGF0ZSwgW2Jsb2NrLCBjb250ZW50XSlcbiAgfVxufSlcbiJdfQ==

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

{ app: app, block: block },
Blocks.getChildren(app.get('blocks'), block).map(this.getBlock)
Blocks.getChildren(app.state.blocks, block).map(this.getBlock)
);

@@ -35,2 +35,2 @@ }

module.exports = EditorBlock;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0VkaXRvckJsb2NrLmp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T0FBTyxHQUFHLFdBQVcsQ0FBQSIsImZpbGUiOiJFZGl0b3JCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbImxldCBCbG9jayAgPSByZXF1aXJlKCcuL0Jsb2NrJylcbmxldCBSZWFjdCAgPSByZXF1aXJlKCdyZWFjdCcpXG5sZXQgQmxvY2tzID0gcmVxdWlyZSgnLi4vc3RvcmVzL0Jsb2NrcycpXG5cbmxldCBFZGl0b3JCbG9jayA9IFJlYWN0LmNyZWF0ZUNsYXNzKHtcblxuICBwcm9wVHlwZXM6IHtcbiAgICBhcHAgICA6IFJlYWN0LlByb3BUeXBlcy5vYmplY3QuaXNSZXF1aXJlZCxcbiAgICBibG9jayA6IFJlYWN0LlByb3BUeXBlcy5vYmplY3QuaXNSZXF1aXJlZFxuICB9LFxuXG4gIGdldEJsb2NrKGJsb2NrKSB7XG4gICAgcmV0dXJuICg8RWRpdG9yQmxvY2sga2V5PXsgYmxvY2sgfSBhcHA9eyB0aGlzLnByb3BzLmFwcCB9IGJsb2NrPXsgYmxvY2sgfSAvPilcbiAgfSxcblxuICByZW5kZXIoKSB7XG4gICAgbGV0IHsgYXBwLCBibG9jayB9ID0gdGhpcy5wcm9wc1xuXG4gICAgcmV0dXJuIChcbiAgICAgIDxCbG9jayBhcHA9eyBhcHAgfSBibG9jaz17IGJsb2NrIH0+XG4gICAgICAgIHsgQmxvY2tzLmdldENoaWxkcmVuKGFwcC5zdGF0ZS5ibG9ja3MsIGJsb2NrKS5tYXAodGhpcy5nZXRCbG9jaykgfVxuICAgICAgPC9CbG9jaz5cbiAgICApXG4gIH1cblxufSlcblxubW9kdWxlLmV4cG9ydHMgPSBFZGl0b3JCbG9ja1xuIl19

@@ -62,9 +62,9 @@ 'use strict';

if (!parent) {
return Blocks.filterChildren(app.get('blocks')).length >= app.get('maxChildren', Infinity);
return Blocks.filterChildren(app.state.blocks).length >= app.state.maxChildren;
}
var children = Blocks.getChildren(app.get('blocks'), parent);
var type = app.refine('blockTypes').find(function (t) {
var children = Blocks.getChildren(app.state.blocks, parent);
var type = app.state.blockTypes.filter(function (t) {
return t.id === parent.type;
});
})[0];

@@ -80,3 +80,3 @@ return children.length >= type.maxChildren;

var types = typesForBlock(app.get('blockTypes'), parent);
var types = typesForBlock(app.state.blockTypes, parent);

@@ -101,3 +101,3 @@ var className = classNames('col-switch', {

app.push(Actions.create, type.id, position, parent);
app.push(Actions.create, [type.id, position, parent]);
},

@@ -111,7 +111,7 @@

var types = typesForBlock(app.get('blockTypes'), parent);
var types = typesForBlock(app.state.blockTypes, parent);
// If only one type exists, instead of opening the nav, just
// create that element
if (types.length === 1) {
app.push(Actions.create, types[0].id, position, parent);
app.push(Actions.create, [types[0].id, position, parent]);
}

@@ -129,2 +129,2 @@

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1N3aXRjaC5qc3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxJQUFJLFlBQVksR0FBSSxPQUFPLENBQUMsZ0JBQWdCLENBQUMsQ0FBQTtBQUM3QyxJQUFJLE9BQU8sR0FBUyxPQUFPLENBQUMsbUJBQW1CLENBQUMsQ0FBQTtBQUNoRCxJQUFJLE1BQU0sR0FBVSxPQUFPLENBQUMsa0JBQWtCLENBQUMsQ0FBQTtBQUMvQyxJQUFJLEtBQUssR0FBVyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUE7QUFDcEMsSUFBSSxTQUFTLEdBQU8sT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUFBO0FBQzFDLElBQUksVUFBVSxHQUFNLE9BQU8sQ0FBQyxZQUFZLENBQUMsQ0FBQTtBQUN6QyxJQUFJLGFBQWEsR0FBRyxPQUFPLENBQUMsd0JBQXdCLENBQUMsQ0FBQTs7QUFFckQsTUFBTSxDQUFDLE9BQU8sR0FBRyxLQUFLLENBQUMsV0FBVyxDQUFDOzs7QUF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9XG5cbn0pXG4iXX0=

@@ -14,6 +14,6 @@ 'use strict';

onClick: function onClick(app, block) {
app.push(move, block, -1);
app.push(move, [block, -1]);
},
isDisabled: function isDisabled(app, block) {
return siblingsOf(app.get('blocks'), block)[0] === block;
return siblingsOf(app.state.blocks, block)[0] === block;
}

@@ -24,6 +24,6 @@ }, {

onClick: function onClick(app, block) {
app.push(move, block, 1);
app.push(move, [block, 1]);
},
isDisabled: function isDisabled(app, block) {
return siblingsOf(app.get('blocks'), block).pop() === block;
return siblingsOf(app.state.blocks, block).pop() === block;
}

@@ -37,2 +37,2 @@ }, {

}];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb25maWcvbWVudS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLElBQUksVUFBVSxHQUFHLE9BQU8sQ0FBQyxxQkFBcUIsQ0FBQyxDQUFBOztlQUN2QixPQUFPLENBQUMsbUJBQW1CLENBQUM7O0lBQTlDLE9BQU8sWUFBUCxPQUFPO0lBQUUsSUFBSSxZQUFKLElBQUk7O0FBRW5CLE1BQU0sQ0FBQyxPQUFPLEdBQUcsQ0FDZjtBQUNFLElBQUUsRUFBRyxZQUFZO0FBQ2pCLE9BQUssRUFBRyxTQUFTO0FBQ2pCLFNBQU8sRUFBQSxpQkFBQyxHQUFHLEVBQUUsS0FBSyxFQUFFO0FBQ2xCLE9BQUcsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLEtBQUssRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFBO0dBQzFCO0FBQ0QsWUFBVSxFQUFBLG9CQUFDLEdBQUcsRUFBRSxLQUFLLEVBQUU7QUFDckIsV0FBTyxVQUFVLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxRQUFRLENBQUMsRUFBRSxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsS0FBSyxLQUFLLENBQUE7R0FD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gnLi4vYWN0aW9ucy9ibG9ja3MnKVxuXG5tb2R1bGUuZXhwb3J0cyA9IFtcbiAge1xuICAgIGlkIDogJ21vdmVCZWZvcmUnLFxuICAgIGxhYmVsIDogJ01vdmUgVXAnLFxuICAgIG9uQ2xpY2soYXBwLCBibG9jaykge1xuICAgICAgYXBwLnB1c2gobW92ZSwgW2Jsb2NrLCAtMV0pXG4gICAgfSxcbiAgICBpc0Rpc2FibGVkKGFwcCwgYmxvY2spIHtcbiAgICAgIHJldHVybiBzaWJsaW5nc09mKGFwcC5zdGF0ZS5ibG9ja3MsIGJsb2NrKVswXSA9PT0gYmxvY2tcbiAgICB9XG4gIH0sXG4gIHtcbiAgICBpZCA6ICdtb3ZlQWZ0ZXInLFxuICAgIGxhYmVsIDogJ01vdmUgRG93bicsXG4gICAgb25DbGljayhhcHAsIGJsb2NrKSB7XG4gICAgICBhcHAucHVzaChtb3ZlLCBbYmxvY2ssIDFdKVxuICAgIH0sXG4gICAgaXNEaXNhYmxlZChhcHAsIGJsb2NrKSB7XG4gICAgICByZXR1cm4gc2libGluZ3NPZihhcHAuc3RhdGUuYmxvY2tzLCBibG9jaykucG9wKCkgPT09IGJsb2NrXG4gICAgfVxuICB9LFxuICB7XG4gICAgaWQgOiAnZGVzdHJveScsXG4gICAgbGFiZWwgOiAnUmVtb3ZlJyxcbiAgICBvbkNsaWNrKGFwcCwgYmxvY2spIHtcbiAgICAgIGFwcC5wdXNoKGRlc3Ryb3ksIGJsb2NrLmlkKVxuICAgIH1cbiAgfVxuXVxuIl19

@@ -6,3 +6,3 @@ /**

'use strict';
"use strict";

@@ -31,3 +31,4 @@ var parseElement = function parseElement(element) {

var allow = _ref.allow;
var maxChildren = _ref.maxChildren;
var _ref$maxChildren = _ref.maxChildren;
var maxChildren = _ref$maxChildren === undefined ? Infinity : _ref$maxChildren;
var blocks = _ref.blocks;

@@ -40,10 +41,6 @@ var blockTypes = _ref.blockTypes;

app.replace({ blocks: blocks, blockTypes: this.filter(blockTypes, allow) });
app.set('maxChildren', maxChildren);
next();
app.replace({ maxChildren: maxChildren, blocks: blocks, blockTypes: this.filter(blockTypes, allow) }, next);
}
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wbHVnaW5zL2Jvb3RzdHJhcC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBS0EsSUFBSSxZQUFZLEdBQUcsU0FBZixZQUFZLENBQWEsT0FBTyxFQUFFO0FBQ3BDLE1BQUksSUFBSSxHQUFHLEVBQUUsQ0FBQTs7QUFFYixNQUFJO0FBQ0YsUUFBSSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFBO0dBQ2pDLENBQUMsT0FBTSxDQUFDLEVBQUUsRUFBRTs7QUFFYixTQUFPLElBQUksQ0FBQTtDQUNaLENBQUE7O0FBRUQsTUFBTSxDQUFDLE9BQU8sR0FBRzs7QUFFZixRQUFNLEVBQUEsZ0JBQUMsVUFBVSxFQUFFLFVBQVUsRUFBRTtBQUM3QixRQUFJLENBQUMsVUFBVSxFQUFFLE9BQU8sVUFBVSxDQUFBOztBQUVsQyxXQUFPLFVBQVUsQ0FBQyxNQUFNLENBQUMsVUFBQSxJQUFJO2FBQUksVUFBVSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0tBQUEsQ0FBQyxDQUFBO0dBQ25FOztBQUVELFVBQVEsRUFBQSxrQkFBQyxHQUFHLEVBQUUsSUFBMEMsRUFBRSxJQUFJLEVBQUU7UUFBaEQsS0FBSyxHQUFQLElBQTBDLENBQXhDLEtBQUs7UUFBRSxXQUFXLEdBQXBCLElBQTBDLENBQWpDLFdBQVc7UUFBRSxNQUFNLEdBQTVCLElBQTBDLENBQXBCLE1BQU07UUFBRSxVQUFVLEdBQXhDLElBQ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hY2NlcHRhYmxlKSByZXR1cm4gYmxvY2tUeXBlc1xuXG4gICAgcmV0dXJuIGJsb2NrVHlwZXMuZmlsdGVyKHR5cGUgPT4gYWNjZXB0YWJsZS5pbmRleE9mKHR5cGUuaWQpID4gLTEpXG4gIH0sXG5cbiAgcmVnaXN0ZXIoYXBwLCB7IGFsbG93LCBtYXhDaGlsZHJlbj1JbmZpbml0eSwgYmxvY2tzLCBibG9ja1R5cGVzIH0sIG5leHQpIHtcbiAgICBpZiAoYmxvY2tzIGluc3RhbmNlb2YgSFRNTEVsZW1lbnQpIHtcbiAgICAgIGJsb2NrcyA9IHBhcnNlRWxlbWVudChibG9ja3MpXG4gICAgfVxuXG4gICAgYXBwLnJlcGxhY2UoeyBtYXhDaGlsZHJlbiwgYmxvY2tzLCBibG9ja1R5cGVzOiB0aGlzLmZpbHRlcihibG9ja1R5cGVzLCBhbGxvdykgfSwgbmV4dClcbiAgfVxuXG59XG4iXX0=

@@ -18,3 +18,3 @@ /**

register: function register(app, _ref, next) {
register: function register(app, _ref) {
var _this = this;

@@ -29,7 +29,5 @@

});
next();
}
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wbHVnaW5zL3JlbmRlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBS0EsSUFBSSxHQUFHLEdBQUssT0FBTyxDQUFDLG1CQUFtQixDQUFDLENBQUE7QUFDeEMsSUFBSSxHQUFHLEdBQUssT0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFBO0FBQ2hDLElBQUksS0FBSyxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FBQTs7QUFFNUIsTUFBTSxDQUFDLE9BQU8sR0FBRzs7QUFFZixRQUFNLEVBQUEsZ0JBQUMsR0FBRyxFQUFFLEVBQUUsRUFBRTtBQUNkLE9BQUcsQ0FBQyxNQUFNLENBQUMsb0JBQUM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aXJlKCdyZWFjdCcpXG5cbm1vZHVsZS5leHBvcnRzID0ge1xuXG4gIHJlbmRlcihhcHAsIGVsKSB7XG4gICAgRE9NLnJlbmRlcig8QXBwIGFwcD17IGFwcCB9IC8+LCBlbClcbiAgfSxcblxuICByZWdpc3RlcihhcHAsIHsgZWwgfSkge1xuICAgIHRoaXMucmVuZGVyKGFwcCwgZWwpXG5cbiAgICBhcHAubGlzdGVuKGkgPT4gdGhpcy5yZW5kZXIoYXBwLGVsKSlcbiAgfVxuXG59XG4iXX0=

@@ -20,2 +20,4 @@ /**

var siblingAt = require('../utils/siblingAt');
var blocksToJson = require('../utils/blocksToJson');
var jsonToBlocks = require('../utils/jsonToBlocks');

@@ -55,3 +57,5 @@ var Blocks = {

*/
serialize: require('../utils/blocksToJson'),
serialize: function serialize(state) {
return blocksToJson(state);
},

@@ -62,3 +66,5 @@ /**

*/
deserialize: require('../utils/jsonToBlocks'),
deserialize: function deserialize(state) {
return jsonToBlocks(state);
},

@@ -115,2 +121,2 @@ create: function create(state, _ref2) {

module.exports = Blocks;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zdG9yZXMvQmxvY2tzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQVNBLElBQUksT0FBTyxHQUFNLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFBO0FBQzdDLElBQUksS0FBSyxHQUFRLE9BQU8sQ0FBQyxpQkFBaUIsQ0FBQyxDQUFBO0FBQzNDLElBQUksUUFBUSxHQUFLLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFBO0FBQzdDLElBQUksU0FBUyxHQUFJLE9BQU8sQ0FBQyxvQkFBb0IsQ0FBQyxDQUFBOztBQUU5QyxJQUFJLE1BQU0sR0FBRztBQUNYLFVBQVEsRUFBQSxvQkFBRzs7O0FBQ1QsNENBQ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Rpb24gaW5zdGFuY2VvZiBCbG9jaykge1xuICAgICAgcG9zaXRpb24gPSBzdGF0ZS5pbmRleE9mKHBvc2l0aW9uKSArIDFcbiAgICB9XG5cbiAgICByZXR1cm4gaW5zZXJ0QXQoc3RhdGUsIHJlY29yZCwgcG9zaXRpb24gfHwgMClcbiAgfSxcblxuICB1cGRhdGUoc3RhdGUsIHsgaWQsIGNvbnRlbnQgfSkge1xuICAgIHZhciBibG9jayA9IEJsb2Nrcy5maW5kKHN0YXRlLCBpZClcblxuICAgIGJsb2NrLmNvbnRlbnQgPSBPYmplY3QuYXNzaWduKGJsb2NrLmNvbnRlbnQsIGNvbnRlbnQpXG5cbiAgICByZXR1cm4gc3RhdGVcbiAgfSxcblxuICBkZXN0cm95KHN0YXRlLCBpZCkge1xuICAgIHJldHVybiBzdGF0ZS5maWx0ZXIoZnVuY3Rpb24oYmxvY2spIHtcbiAgICAgIGZvciAobGV0IGIgPSBibG9jazsgYjsgYiA9IGIucGFyZW50KSB7XG4gICAgICAgIGlmIChiLmlkID09IGlkKSByZXR1cm4gZmFsc2VcbiAgICAgIH1cbiAgICAgIHJldHVybiB0cnVlXG4gICAgfSlcbiAgfSxcblxuICBtb3ZlKHN0YXRlLCB7IGJsb2NrLCBkaXN0YW5jZSB9KSB7XG4gICAgbGV0IHdpdGhvdXQgPSBzdGF0ZS5maWx0ZXIoaSA9PiBpICE9PSBibG9jaylcbiAgICBsZXQgYmVmb3JlICA9IHNpYmxpbmdBdChzdGF0ZSwgYmxvY2ssIGRpc3RhbmNlKVxuXG4gICAgcmV0dXJuIGluc2VydEF0KHdpdGhvdXQsIGJsb2NrLCBzdGF0ZS5pbmRleE9mKGJlZm9yZSkpXG4gIH1cbn1cblxubW9kdWxlLmV4cG9ydHMgPSBCbG9ja3NcbiJdfQ==
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