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

draftjs-utils

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draftjs-utils - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

js/__test__/keyPressTest.js

@@ -47,3 +47,3 @@ import { assert } from 'chai';

const event = {
which: 'Enter',
which: 13,
getModifierState: () => 'Shift',

@@ -50,0 +50,0 @@ };

@@ -44,3 +44,3 @@ /* @flow */

function isSoftNewlineEvent(e): boolean {
return e.which === 'Enter' && (
return e.which === 13 && (
e.getModifierState('Shift') ||

@@ -47,0 +47,0 @@ e.getModifierState('Alt') ||

{
"name": "draftjs-utils",
"version": "0.1.2",
"version": "0.1.3",
"description": "Collection of utility function for use with Draftjs.",
"main": "lib/index.js",
"peerDependencies": {
"draft-js": "^0.7.0",
"immutable": "^3.8.1",
"react": "^15.1.0",
"react-dom": "^15.1.0"
"react": "^15.2.1",
"react-dom": "^15.2.1"
},
"devDependencies": {
"babel-core": "^6.9.1",
"babel-eslint": "^6.0.4",
"babel-core": "^6.10.4",
"babel-eslint": "^6.1.1",
"babel-loader": "^6.2.4",
"babel-plugin-transform-flow-strip-types": "^6.8.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.5.0",
"babel-preset-react": "^6.11.1",
"babel-preset-stage-0": "^6.5.0",

@@ -22,17 +23,17 @@ "babel-register": "^6.9.0",

"draft-js": "^0.7.0",
"enzyme": "^2.2.0",
"eslint": "^2.9.0",
"eslint-config-airbnb": "^8.0.0",
"eslint-plugin-import": "1.6.1",
"eslint-plugin-jsx-a11y": "^1.0.4",
"eslint-plugin-mocha": "^2.2.0",
"eslint-plugin-react": "^5.0.1",
"express": "^4.13.4",
"flow-bin": "^0.24.1",
"enzyme": "^2.4.1",
"eslint": "^3.0.1",
"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "1.10.2",
"eslint-plugin-jsx-a11y": "^1.5.5",
"eslint-plugin-mocha": "^4.0.0",
"eslint-plugin-react": "^5.2.2",
"express": "^4.14.0",
"flow-bin": "^0.28.0",
"immutable": "^3.8.1",
"mocha": "^2.5.3",
"react": "^15.1.0",
"react-addons-test-utils": "^15.1.0",
"react-dom": "^15.1.0",
"rimraf": "^2.5.2",
"react": "^15.2.1",
"react-addons-test-utils": "^15.2.1",
"react-dom": "^15.2.1",
"rimraf": "^2.5.3",
"sinon": "^1.17.4",

@@ -39,0 +40,0 @@ "webpack": "^1.13.1",

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