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.4.0 to 0.5.0

17

lib/models/keymap.js

@@ -6,3 +6,3 @@ var Immutable = require('immutable');

var Keymap = Immutable.Record({
map: {},
map: {}, // PMKeymap
priority: 0

@@ -28,2 +28,17 @@ }, 'Keymap');

/**
* Remove a binding
* @param {String} binding
* @return {Keymap}
*/
Keymap.prototype.removeKey = function(key) {
// TODO Use keymap.update instead, once it is fixed
// https://github.com/marijnh/browserkeymap/issues/3
key = PMKeymap.normalizeKeyName(key);
var bindings = this.getMap().bindings;
bindings[key] = undefined;
var newMap = new PMKeymap(bindings);
return this.set('map', newMap);
};
/**
* Create a keymap

@@ -30,0 +45,0 @@ * @param {Object} map

2

package.json
{
"name": "draftmirror",
"version": "0.4.0",
"version": "0.5.0",
"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