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

@enact/core

Package Overview
Dependencies
Maintainers
1
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enact/core - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # Change Log

## [1.5.0] - 2017-07-19
No significant changes.
## [1.4.1] - 2017-07-05

@@ -7,0 +11,0 @@

41

handle/handle.js

@@ -258,2 +258,21 @@ 'use strict';

/**
* Calls `event.preventDefault()` and returns `true`.
*
* ```
* import {handle, preventDefault} from '@enact/core/handle';
*
* const preventAndLog = handle(
* preventDefault,
* (ev) => console.log('preventDefault called')
* );
* ```
*
* @method preventDefault
* @memberof core/handle
* @param {Object} ev Event
* @returns {Boolean} Always returns `true`
*/
var _preventDefault = handle.preventDefault = callOnEvent('preventDefault');
/**
* Forwards the event to a function at `name` on `props` with capability to prevent default

@@ -285,2 +304,3 @@ * behavior. If the specified prop is `undefined` or is not a function, it is ignored. Returns

prevented = true;
_preventDefault(ev);
}

@@ -294,21 +314,2 @@ });

/**
* Calls `event.preventDefault()` and returns `true`.
*
* ```
* import {handle, preventDefault} from '@enact/core/handle';
*
* const preventAndLog = handle(
* preventDefault,
* (ev) => console.log('preventDefault called')
* );
* ```
*
* @method preventDefault
* @memberof core/handle
* @param {Object} ev Event
* @returns {Boolean} Always returns `true`
*/
var preventDefault = handle.preventDefault = callOnEvent('preventDefault');
/**
* Calls `event.stopPropagation()` and returns `true`

@@ -466,4 +467,4 @@ *

exports.oneOf = oneOf;
exports.preventDefault = preventDefault;
exports.preventDefault = _preventDefault;
exports.stop = stop;
exports.stopImmediate = stopImmediate;

@@ -26,5 +26,7 @@ 'use strict';

right: 39,
down: 40
down: 40,
pageUp: 33,
pageDown: 34
}); // keymap uses a singleton object, map, to manage the keymap. since webpack may make multiple copies
// of the module available if the import path is different, we ensure a consistent import path for
// the singleton instance by facading it with this module.
{
"name": "@enact/core",
"version": "1.4.1",
"version": "1.5.0",
"description": "Enact is an open source JavaScript framework containing everything you need to create a fast, scalable mobile or web application.",

@@ -32,8 +32,8 @@ "main": "index.js",

"classnames": "~2.2.5",
"invariant": "~2.2.1",
"prop-types": "~15.5.0",
"ramda": "~0.23.0",
"react": "~15.5.0",
"react-dom": "~15.5.0"
"invariant": "~2.2.2",
"prop-types": "~15.5.10",
"ramda": "~0.24.1",
"react": "~15.6.1",
"react-dom": "~15.6.1"
}
}

@@ -27,6 +27,2 @@ 'use strict';

var _isArrayLike = require('ramda/src/isArrayLike');
var _isArrayLike2 = _interopRequireDefault(_isArrayLike);
var _is = require('ramda/src/is');

@@ -151,3 +147,3 @@

var coerceArray = function coerceArray(array) {
return (0, _isArrayLike2.default)(array) ? array : [array];
return Array.isArray(array) ? array : [array];
};

@@ -154,0 +150,0 @@

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