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 3.3.0-alpha.3 to 3.3.0-alpha.4

8

CHANGELOG.md

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

## [3.3.0-alpha.4] - 2020-03-30
No significant changes.
## [3.3.0-alpha.3] - 2020-03-17

@@ -20,2 +24,6 @@

## [3.2.6] - 2020-03-26
No significant changes.
## [3.2.5] - 2019-11-14

@@ -22,0 +30,0 @@

4

handle/tests/handle-specs.js

@@ -5,4 +5,6 @@ "use strict";

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -9,0 +11,0 @@

@@ -18,3 +18,3 @@ "use strict";

return function (props) {
return _react["default"].createElement(Wrapped, Object.assign({}, props, config));
return /*#__PURE__*/_react["default"].createElement(Wrapped, Object.assign({}, props, config));
};

@@ -24,3 +24,3 @@ });

return function () {
return _react["default"].createElement(Wrapped, config);
return /*#__PURE__*/_react["default"].createElement(Wrapped, config);
};

@@ -31,7 +31,7 @@ });

return function () {
return _react["default"].createElement(Wrapped, config);
return /*#__PURE__*/_react["default"].createElement(Wrapped, config);
};
});
var Component = ImplicitNullHoC('span');
var subject = (0, _enzyme.shallow)(_react["default"].createElement(Component, null));
var subject = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(Component, null));
var expected = 'span';

@@ -43,3 +43,3 @@ var actual = subject.name();

var Component = HoC('span');
var subject = (0, _enzyme.shallow)(_react["default"].createElement(Component, null));
var subject = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(Component, null));
var expected = 'span';

@@ -51,7 +51,7 @@ var actual = subject.name();

function Thing() {
return _react["default"].createElement("div", null);
return /*#__PURE__*/_react["default"].createElement("div", null);
}
var Component = HoC(Thing);
var subject = (0, _enzyme.shallow)(_react["default"].createElement(Component, null));
var subject = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(Component, null));
var expected = 'Thing';

@@ -63,3 +63,3 @@ var actual = subject.name();

var Component = HoC('span');
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null));
var subject = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(Component, null));
var expected = defaultConfig.color;

@@ -74,3 +74,3 @@ var actual = subject.find('span').prop('color');

var Component = HoC(instanceConfig, 'div');
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null));
var subject = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(Component, null));
var expected = instanceConfig.color;

@@ -82,3 +82,3 @@ var actual = subject.find('div').prop('color');

var Component = NullHoC('div');
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null));
var subject = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(Component, null));
var expected = 1;

@@ -93,3 +93,3 @@ var actual = subject.find('div').length;

var Component = NullHoC(instanceConfig, 'div');
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null));
var subject = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(Component, null));
var expected = instanceConfig.color;

@@ -96,0 +96,0 @@ var actual = subject.find('div').prop('color');

@@ -16,3 +16,3 @@ "use strict";

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@@ -25,8 +25,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

@@ -99,10 +103,8 @@

!(api != null) ? process.env.NODE_ENV !== "production" ? (0, _invariant["default"])(false, 'ApiDecorator: api is a required config property') : invariant(false) : void 0;
return _temp = _class =
/*#__PURE__*/
function (_React$Component) {
return _temp = _class = /*#__PURE__*/function (_React$Component) {
_inherits(_class, _React$Component);
var _super = _createSuper(_class);
function _class() {
var _getPrototypeOf2;
var _this;

@@ -116,3 +118,3 @@

_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(_class)).call.apply(_getPrototypeOf2, [this].concat(args)));
_this = _super.call.apply(_super, [this].concat(args));

@@ -136,3 +138,3 @@ _this.setProvider = function (provider) {

value: function render() {
return _react["default"].createElement(Wrapped, Object.assign({
return /*#__PURE__*/_react["default"].createElement(Wrapped, Object.assign({
setApiProvider: this.setProvider

@@ -139,0 +141,0 @@ }, this.props));

@@ -11,3 +11,3 @@ "use strict";

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@@ -20,8 +20,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

@@ -34,7 +38,7 @@

var ApiProvider = (_temp = _class =
/*#__PURE__*/
function (_React$Component) {
var ApiProvider = (_temp = _class = /*#__PURE__*/function (_React$Component) {
_inherits(ApiProvider, _React$Component);
var _super = _createSuper(ApiProvider);
function ApiProvider(props) {

@@ -45,3 +49,3 @@ var _this;

_this = _possibleConstructorReturn(this, _getPrototypeOf(ApiProvider).call(this)); // eslint-disable-next-line
_this = _super.call(this); // eslint-disable-next-line

@@ -65,3 +69,3 @@ _this.arrowFunction = function () {

value: function render() {
return _react["default"].createElement("div", null);
return /*#__PURE__*/_react["default"].createElement("div", null);
}

@@ -76,3 +80,3 @@ }]);

}, ApiProvider);
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null));
var subject = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(Component, null));
var expected = 'arrow';

@@ -86,3 +90,3 @@ var actual = subject.instance().arrowFunction();

}, ApiProvider);
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null));
var subject = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(Component, null));
var expected = 'instance';

@@ -96,3 +100,3 @@ var actual = subject.instance().instanceFunction();

}, ApiProvider);
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null));
var subject = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(Component, null));
var expected = 'property';

@@ -106,3 +110,3 @@ var actual = subject.instance().instanceProperty;

}, ApiProvider);
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null));
var subject = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(Component, null));
subject.instance().instanceProperty = 'updated';

@@ -109,0 +113,0 @@ var expected = 'updated';

@@ -16,3 +16,3 @@ "use strict";

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@@ -19,0 +19,0 @@ var isRequired = function isRequired(fn) {

@@ -11,3 +11,3 @@ "use strict";

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@@ -20,2 +20,4 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

@@ -25,2 +27,4 @@

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

@@ -35,10 +39,8 @@

describe('Registry', function () {
var NotifiesTree =
/*#__PURE__*/
function (_React$Component) {
var NotifiesTree = /*#__PURE__*/function (_React$Component) {
_inherits(NotifiesTree, _React$Component);
var _super = _createSuper(NotifiesTree);
function NotifiesTree() {
var _getPrototypeOf2;
var _this;

@@ -52,3 +54,3 @@

_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(NotifiesTree)).call.apply(_getPrototypeOf2, [this].concat(args)));
_this = _super.call.apply(_super, [this].concat(args));
_this.registry = _Registry["default"].create();

@@ -71,5 +73,5 @@

value: function render() {
return _react["default"].createElement(SomeContext.Provider, {
return /*#__PURE__*/_react["default"].createElement(SomeContext.Provider, {
value: this.registry.register
}, _react["default"].createElement("button", Object.assign({}, this.props, {
}, /*#__PURE__*/_react["default"].createElement("button", Object.assign({}, this.props, {
onClick: this.handleClick

@@ -85,10 +87,8 @@ }), "Notify!"), this.props.children);

var HandlesNotification =
/*#__PURE__*/
function (_React$Component2) {
var HandlesNotification = /*#__PURE__*/function (_React$Component2) {
_inherits(HandlesNotification, _React$Component2);
var _super2 = _createSuper(HandlesNotification);
function HandlesNotification() {
var _getPrototypeOf3;
var _this2;

@@ -102,3 +102,3 @@

_this2 = _possibleConstructorReturn(this, (_getPrototypeOf3 = _getPrototypeOf(HandlesNotification)).call.apply(_getPrototypeOf3, [this].concat(args)));
_this2 = _super2.call.apply(_super2, [this].concat(args));
_this2.state = {

@@ -137,3 +137,3 @@ number: 0

value: function render() {
return _react["default"].createElement("div", this.props, this.state.number);
return /*#__PURE__*/_react["default"].createElement("div", this.props, this.state.number);
}

@@ -147,5 +147,5 @@ }]);

test('should increment child on click', function () {
var RegistryApp = (0, _enzyme.mount)(_react["default"].createElement(NotifiesTree, {
var RegistryApp = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(NotifiesTree, {
id: "a-btn"
}, _react["default"].createElement(HandlesNotification, {
}, /*#__PURE__*/_react["default"].createElement(HandlesNotification, {
id: "a"

@@ -159,9 +159,9 @@ })));

test('should increment both children on top click', function () {
var RegistryApp = (0, _enzyme.mount)(_react["default"].createElement(NotifiesTree, {
var RegistryApp = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(NotifiesTree, {
id: "a-btn"
}, _react["default"].createElement(HandlesNotification, {
}, /*#__PURE__*/_react["default"].createElement(HandlesNotification, {
id: "a"
}), _react["default"].createElement(NotifiesTree, {
}), /*#__PURE__*/_react["default"].createElement(NotifiesTree, {
id: "b-btn"
}, _react["default"].createElement(HandlesNotification, {
}, /*#__PURE__*/_react["default"].createElement(HandlesNotification, {
id: "b"

@@ -177,9 +177,9 @@ }))));

test('should increment the deepest child when we click child button', function () {
var RegistryApp = (0, _enzyme.mount)(_react["default"].createElement(NotifiesTree, {
var RegistryApp = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(NotifiesTree, {
id: "a-btn"
}, _react["default"].createElement(HandlesNotification, {
}, /*#__PURE__*/_react["default"].createElement(HandlesNotification, {
id: "a"
}), _react["default"].createElement(NotifiesTree, {
}), /*#__PURE__*/_react["default"].createElement(NotifiesTree, {
id: "b-btn"
}, _react["default"].createElement(HandlesNotification, {
}, /*#__PURE__*/_react["default"].createElement(HandlesNotification, {
id: "b"

@@ -196,7 +196,7 @@ }))));

test('should support removing children without error', function () {
var RegistryApp = (0, _enzyme.mount)(_react["default"].createElement(NotifiesTree, {
var RegistryApp = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(NotifiesTree, {
id: "a-btn"
}, _react["default"].createElement(HandlesNotification, {
}, /*#__PURE__*/_react["default"].createElement(HandlesNotification, {
id: "a"
}), _react["default"].createElement(HandlesNotification, {
}), /*#__PURE__*/_react["default"].createElement(HandlesNotification, {
id: "b"

@@ -207,3 +207,3 @@ })));

RegistryApp.setProps({
children: _react["default"].createElement(HandlesNotification, {
children: /*#__PURE__*/_react["default"].createElement(HandlesNotification, {
id: "c"

@@ -210,0 +210,0 @@ })

"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
var keymap = _interopRequireWildcard(require("../"));
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; return newObj; } }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
describe('keymap', function () {

@@ -8,0 +12,0 @@ test('should support adding single keyCodes for a name', function () {

@@ -16,6 +16,8 @@ "use strict";

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -29,2 +31,4 @@

function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

@@ -34,2 +38,4 @@

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

@@ -165,7 +171,7 @@

var Component = (_temp = _class =
/*#__PURE__*/
function (_React$Component) {
var Component = (_temp = _class = /*#__PURE__*/function (_React$Component) {
_inherits(Component, _React$Component);
var _super = _createSuper(Component);
function Component() {

@@ -176,3 +182,3 @@ var _this;

_this = _possibleConstructorReturn(this, _getPrototypeOf(Component).call(this));
_this = _super.call(this);
_this.handlers = {}; // cache bound function for each handler

@@ -210,3 +216,3 @@

value: function render() {
return renderKind(_objectSpread({}, this.props, this.handlers), this.context);
return renderKind(_objectSpread({}, this.props, {}, this.handlers), this.context);
}

@@ -213,0 +219,0 @@ }]);

@@ -13,3 +13,3 @@ "use strict";

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@@ -51,3 +51,3 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

delete rest.prop;
return _react["default"].createElement("div", Object.assign({}, rest, {
return /*#__PURE__*/_react["default"].createElement("div", Object.assign({}, rest, {
title: label

@@ -63,3 +63,3 @@ }), value);

test('should default {label} property', function () {
var subject = _react["default"].createElement(Kind, {
var subject = /*#__PURE__*/_react["default"].createElement(Kind, {
prop: 1

@@ -75,3 +75,3 @@ });

// eslint-disable-next-line no-undefined
var subject = _react["default"].createElement(Kind, {
var subject = /*#__PURE__*/_react["default"].createElement(Kind, {
prop: 1,

@@ -86,3 +86,3 @@ label: undefined

test('should add className defined in styles', function () {
var subject = (0, _enzyme.mount)(_react["default"].createElement(Kind, {
var subject = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(Kind, {
prop: 1

@@ -95,3 +95,3 @@ }));

test('should compute {value} property', function () {
var subject = (0, _enzyme.mount)(_react["default"].createElement(Kind, {
var subject = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(Kind, {
prop: 1

@@ -113,3 +113,3 @@ }));

render: function render() {
return _react["default"].createElement("div", null);
return /*#__PURE__*/_react["default"].createElement("div", null);
}

@@ -116,0 +116,0 @@ });

@@ -7,3 +7,3 @@ "use strict";

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@@ -10,0 +10,0 @@ describe('styles', function () {

{
"name": "@enact/core",
"version": "3.3.0-alpha.3",
"version": "3.3.0-alpha.4",
"description": "Enact is an open source JavaScript framework containing everything you need to create a fast, scalable mobile or web application.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,12 +12,18 @@ "use strict";

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -225,3 +231,3 @@

if (p.extra) {
plat = _objectSpread({}, plat, p.extra);
plat = _objectSpread({}, plat, {}, p.extra);
}

@@ -228,0 +234,0 @@

@@ -25,5 +25,3 @@ "use strict";

*/
var Job =
/*#__PURE__*/
function () {
var Job = /*#__PURE__*/function () {
/**

@@ -30,0 +28,0 @@ * @constructor

@@ -24,7 +24,9 @@ "use strict";

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; return newObj; } }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@@ -31,0 +33,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