Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
value: function apply(doc) {
this.prevValue = doc.attrs[this.key];
var attrs = (0, _extends4.default)({}, doc.attrs, (0, _defineProperty3.default)({}, this.key, this.value));
var docNew = doc.type.create(attrs, doc.content, doc.marks);
return _prosemirrorTransform.StepResult.ok(docNew);
}
}, {