@enact/core
Advanced tools
Comparing version 2.5.1 to 2.5.2
@@ -5,2 +5,6 @@ # Change Log | ||
## [2.5.2] - 2019-04-23 | ||
No significant changes. | ||
## [2.5.1] - 2019-04-09 | ||
@@ -7,0 +11,0 @@ |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -49,3 +49,3 @@ /** | ||
var invoker = (0, _curry.default)(function (ev, fn) { | ||
var invoker = (0, _curry["default"])(function (ev, fn) { | ||
try { | ||
@@ -52,0 +52,0 @@ fn(ev); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.addListener = exports.getListeners = exports.default = void 0; | ||
exports.addListener = exports.getListeners = exports["default"] = void 0; | ||
// Simple Map polyfill mapping targets to a hash of names->handler[] | ||
@@ -38,2 +38,2 @@ var targets = []; | ||
var _default = getListeners; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -62,3 +62,3 @@ "use strict"; | ||
var throws = function throws() { | ||
var _throws = function _throws() { | ||
throw new Error('Thrown from handler'); | ||
@@ -68,3 +68,3 @@ }; | ||
var handler = jest.fn(); | ||
(0, _dispatcher.on)('localechange', throws, window); | ||
(0, _dispatcher.on)('localechange', _throws, window); | ||
(0, _dispatcher.on)('localechange', handler, window); | ||
@@ -71,0 +71,0 @@ var ev = new window.CustomEvent('localechange', {}); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.stopImmediate = exports.stop = exports.returnsTrue = exports.preventDefault = exports.oneOf = exports.log = exports.handle = exports.forProp = exports.forKeyCode = exports.forKey = exports.forEventProp = exports.forwardWithPrevent = exports.forward = exports.callOnEvent = exports.call = exports.adaptEvent = exports.default = void 0; | ||
exports.stopImmediate = exports.stop = exports.returnsTrue = exports.preventDefault = exports.oneOf = exports.log = exports.handle = exports.forProp = exports.forKeyCode = exports.forKey = exports.forEventProp = exports.forwardWithPrevent = exports.forward = exports.callOnEvent = exports.call = exports.adaptEvent = exports["default"] = void 0; | ||
@@ -15,3 +15,3 @@ var _cond = _interopRequireDefault(require("ramda/src/cond")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -208,3 +208,3 @@ /** | ||
fn.finally = function (cleanup) { | ||
fn["finally"] = function (cleanup) { | ||
return decorateHandleFunction(function handleWithFinally(ev, props, context) { | ||
@@ -262,3 +262,3 @@ var result = false; | ||
return handle.call(this, (0, _cond.default)(handlers)); | ||
return handle.call(this, (0, _cond["default"])(handlers)); | ||
}; | ||
@@ -333,3 +333,3 @@ /** | ||
exports.returnsTrue = returnsTrue; | ||
var callOnEvent = handle.callOnEvent = (0, _curry.default)(function (methodName, ev) { | ||
var callOnEvent = handle.callOnEvent = (0, _curry["default"])(function (methodName, ev) { | ||
if (ev[methodName]) { | ||
@@ -369,3 +369,3 @@ ev[methodName](); | ||
exports.callOnEvent = callOnEvent; | ||
var forEventProp = handle.forEventProp = (0, _curry.default)(function (prop, value, ev) { | ||
var forEventProp = handle.forEventProp = (0, _curry["default"])(function (prop, value, ev) { | ||
return ev[prop] === value; | ||
@@ -399,3 +399,3 @@ }); | ||
exports.forEventProp = forEventProp; | ||
var forward = handle.forward = (0, _curry.default)(named(function (name, ev, props) { | ||
var forward = handle.forward = (0, _curry["default"])(named(function (name, ev, props) { | ||
var fn = props && props[name]; | ||
@@ -460,3 +460,3 @@ | ||
exports.preventDefault = _preventDefault; | ||
var forwardWithPrevent = handle.forwardWithPrevent = (0, _curry.default)(named(function (name, ev, props) { | ||
var forwardWithPrevent = handle.forwardWithPrevent = (0, _curry["default"])(named(function (name, ev, props) { | ||
var prevented = false; | ||
@@ -568,3 +568,3 @@ var wrappedEvent = Object.assign({}, ev, { | ||
exports.forKeyCode = forKeyCode; | ||
var forKey = handle.forKey = (0, _curry.default)(function (name, ev) { | ||
var forKey = handle.forKey = (0, _curry["default"])(function (name, ev) { | ||
return (0, _keymap.is)(name, ev.keyCode); | ||
@@ -597,3 +597,3 @@ }); | ||
exports.forKey = forKey; | ||
var forProp = handle.forProp = (0, _curry.default)(function (prop, value, ev, props) { | ||
var forProp = handle.forProp = (0, _curry["default"])(function (prop, value, ev, props) { | ||
return props[prop] === value; | ||
@@ -626,3 +626,3 @@ }); | ||
exports.forProp = forProp; | ||
var log = handle.log = (0, _curry.default)(function (message, ev) { | ||
var log = handle.log = (0, _curry["default"])(function (message, ev) { | ||
if (process.env.NODE_ENV !== "production") { | ||
@@ -724,3 +724,3 @@ var _console; | ||
exports.call = call; | ||
var adaptEvent = handle.adaptEvent = (0, _curry.default)(function (adapter, handler) { | ||
var adaptEvent = handle.adaptEvent = (0, _curry["default"])(function (adapter, handler) { | ||
return named(function (ev) { | ||
@@ -736,2 +736,2 @@ for (var _len6 = arguments.length, args = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) { | ||
var _default = handle; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -199,3 +199,3 @@ "use strict"; | ||
var finallyCallback = jest.fn(); | ||
var callback = (0, _handle.handle)(returnsTrue).finally(finallyCallback); | ||
var callback = (0, _handle.handle)(returnsTrue)["finally"](finallyCallback); | ||
callback(makeEvent()); | ||
@@ -208,3 +208,3 @@ var expected = 1; | ||
var finallyCallback = jest.fn(); | ||
var callback = (0, _handle.handle)(returnsFalse).finally(finallyCallback); | ||
var callback = (0, _handle.handle)(returnsFalse)["finally"](finallyCallback); | ||
callback(makeEvent()); | ||
@@ -219,3 +219,3 @@ var expected = 1; | ||
throw new Error('Something has gone awry ...'); | ||
}).finally(finallyCallback); | ||
})["finally"](finallyCallback); | ||
@@ -348,3 +348,3 @@ try { | ||
var handler = jest.fn(); | ||
var callback = (0, _handle.oneOf)([returnsFalse, returnsTrue], [returnsFalse, returnsTrue]).finally(handler); | ||
var callback = (0, _handle.oneOf)([returnsFalse, returnsTrue], [returnsFalse, returnsTrue])["finally"](handler); | ||
callback(); | ||
@@ -351,0 +351,0 @@ var expected = 1; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.hoc = exports.default = void 0; | ||
exports.hoc = exports["default"] = void 0; | ||
@@ -13,3 +13,3 @@ var _util = require("../util"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -89,3 +89,3 @@ /** | ||
} else { | ||
var cfg = (0, _mergeDeepWithKey.default)(mergeFn, defaults, config); | ||
var cfg = (0, _mergeDeepWithKey["default"])(mergeFn, defaults, config); | ||
@@ -105,2 +105,2 @@ if ((0, _util.isRenderable)(maybeWrapped)) { | ||
var _default = hoc; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -9,3 +9,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -17,20 +17,20 @@ /* eslint-disable enact/display-name */ | ||
}; | ||
var HoC = (0, _hoc.default)(defaultConfig, function (config, Wrapped) { | ||
var HoC = (0, _hoc["default"])(defaultConfig, function (config, Wrapped) { | ||
return function (props) { | ||
return _react.default.createElement(Wrapped, Object.assign({}, props, config)); | ||
return _react["default"].createElement(Wrapped, Object.assign({}, props, config)); | ||
}; | ||
}); | ||
var NullHoC = (0, _hoc.default)(null, function (config, Wrapped) { | ||
var NullHoC = (0, _hoc["default"])(null, function (config, Wrapped) { | ||
return function () { | ||
return _react.default.createElement(Wrapped, config); | ||
return _react["default"].createElement(Wrapped, config); | ||
}; | ||
}); | ||
test('should support HoC factory function as first argument to hoc()', function () { | ||
var ImplicitNullHoC = (0, _hoc.default)(function (config, Wrapped) { | ||
var ImplicitNullHoC = (0, _hoc["default"])(function (config, Wrapped) { | ||
return function () { | ||
return _react.default.createElement(Wrapped, config); | ||
return _react["default"].createElement(Wrapped, config); | ||
}; | ||
}); | ||
var Component = ImplicitNullHoC('span'); | ||
var subject = (0, _enzyme.shallow)(_react.default.createElement(Component, null)); | ||
var subject = (0, _enzyme.shallow)(_react["default"].createElement(Component, null)); | ||
var expected = 'span'; | ||
@@ -42,3 +42,3 @@ var actual = subject.name(); | ||
var Component = HoC('span'); | ||
var subject = (0, _enzyme.shallow)(_react.default.createElement(Component, null)); | ||
var subject = (0, _enzyme.shallow)(_react["default"].createElement(Component, null)); | ||
var expected = 'span'; | ||
@@ -50,7 +50,7 @@ var actual = subject.name(); | ||
function Thing() { | ||
return _react.default.createElement("div", null); | ||
return _react["default"].createElement("div", null); | ||
} | ||
var Component = HoC(Thing); | ||
var subject = (0, _enzyme.shallow)(_react.default.createElement(Component, null)); | ||
var subject = (0, _enzyme.shallow)(_react["default"].createElement(Component, null)); | ||
var expected = 'Thing'; | ||
@@ -62,3 +62,3 @@ var actual = subject.name(); | ||
var Component = HoC('span'); | ||
var subject = (0, _enzyme.mount)(_react.default.createElement(Component, null)); | ||
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null)); | ||
var expected = defaultConfig.color; | ||
@@ -73,3 +73,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)(_react["default"].createElement(Component, null)); | ||
var expected = instanceConfig.color; | ||
@@ -81,3 +81,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)(_react["default"].createElement(Component, null)); | ||
var expected = 1; | ||
@@ -92,3 +92,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)(_react["default"].createElement(Component, null)); | ||
var expected = instanceConfig.color; | ||
@@ -95,0 +95,0 @@ var actual = subject.find('div').prop('color'); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.ApiDecorator = exports.default = void 0; | ||
exports.ApiDecorator = exports["default"] = void 0; | ||
@@ -15,3 +15,3 @@ var _invariant = _interopRequireDefault(require("invariant")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -94,7 +94,7 @@ 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); } | ||
var ApiDecorator = (0, _hoc.default)(defaultConfig, function (config, Wrapped) { | ||
var ApiDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wrapped) { | ||
var _class, _temp; | ||
var api = config.api; | ||
!(api != null) ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, 'ApiDecorator: api is a required config property') : invariant(false) : void 0; | ||
!(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 = | ||
@@ -135,3 +135,3 @@ /*#__PURE__*/ | ||
value: function render() { | ||
return _react.default.createElement(Wrapped, Object.assign({ | ||
return _react["default"].createElement(Wrapped, Object.assign({ | ||
setApiProvider: this.setProvider | ||
@@ -143,6 +143,6 @@ }, this.props)); | ||
return _class; | ||
}(_react.default.Component), _class.displayName = 'ApiDecorator', _temp; | ||
}(_react["default"].Component), _class.displayName = 'ApiDecorator', _temp; | ||
}); | ||
exports.ApiDecorator = ApiDecorator; | ||
var _default = ApiDecorator; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -9,3 +9,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -62,3 +62,3 @@ 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); } | ||
value: function render() { | ||
return _react.default.createElement("div", null); | ||
return _react["default"].createElement("div", null); | ||
} | ||
@@ -68,8 +68,8 @@ }]); | ||
return ApiProvider; | ||
}(_react.default.Component), _class.displayName = 'ApiProvider', _temp); | ||
}(_react["default"].Component), _class.displayName = 'ApiProvider', _temp); | ||
test('should invoke arrow function on wrapped component', function () { | ||
var Component = (0, _ApiDecorator.default)({ | ||
var Component = (0, _ApiDecorator["default"])({ | ||
api: ['arrowFunction'] | ||
}, ApiProvider); | ||
var subject = (0, _enzyme.mount)(_react.default.createElement(Component, null)); | ||
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null)); | ||
var expected = 'arrow'; | ||
@@ -80,6 +80,6 @@ var actual = subject.instance().arrowFunction(); | ||
test('should invoke instance function on wrapped component', function () { | ||
var Component = (0, _ApiDecorator.default)({ | ||
var Component = (0, _ApiDecorator["default"])({ | ||
api: ['instanceFunction'] | ||
}, ApiProvider); | ||
var subject = (0, _enzyme.mount)(_react.default.createElement(Component, null)); | ||
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null)); | ||
var expected = 'instance'; | ||
@@ -90,6 +90,6 @@ var actual = subject.instance().instanceFunction(); | ||
test('should get an instance property on wrapped component', function () { | ||
var Component = (0, _ApiDecorator.default)({ | ||
var Component = (0, _ApiDecorator["default"])({ | ||
api: ['instanceProperty'] | ||
}, ApiProvider); | ||
var subject = (0, _enzyme.mount)(_react.default.createElement(Component, null)); | ||
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null)); | ||
var expected = 'property'; | ||
@@ -100,6 +100,6 @@ var actual = subject.instance().instanceProperty; | ||
test('should set an instance property on wrapped component', function () { | ||
var Component = (0, _ApiDecorator.default)({ | ||
var Component = (0, _ApiDecorator["default"])({ | ||
api: ['instanceProperty'] | ||
}, ApiProvider); | ||
var subject = (0, _enzyme.mount)(_react.default.createElement(Component, null)); | ||
var subject = (0, _enzyme.mount)(_react["default"].createElement(Component, null)); | ||
subject.instance().instanceProperty = 'updated'; | ||
@@ -106,0 +106,0 @@ var expected = 'updated'; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.deprecate = exports.default = void 0; | ||
exports.deprecate = exports["default"] = void 0; | ||
@@ -117,2 +117,2 @@ /** | ||
var _default = deprecate; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = void 0; | ||
exports["default"] = void 0; | ||
@@ -13,3 +13,3 @@ var _propTypes = _interopRequireDefault(require("prop-types")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -51,5 +51,5 @@ 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); } | ||
var renderableOverride = _propTypes.default.oneOfType([_propTypes.default.element, renderable]); | ||
var renderableOverride = _propTypes["default"].oneOfType([_propTypes["default"].element, renderable]); | ||
var componentOverride = _propTypes.default.oneOfType([_propTypes.default.element, component]); | ||
var componentOverride = _propTypes["default"].oneOfType([_propTypes["default"].element, component]); | ||
@@ -63,2 +63,2 @@ var EnactPropTypes = { | ||
var _default = EnactPropTypes; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.Registry = exports.default = void 0; | ||
exports.Registry = exports["default"] = void 0; | ||
@@ -77,2 +77,2 @@ /** | ||
var _default = Registry; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -9,3 +9,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -30,3 +30,3 @@ 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); } | ||
var SomeContext = _react.default.createContext(); | ||
var SomeContext = _react["default"].createContext(); | ||
@@ -51,3 +51,3 @@ describe('Registry', function () { | ||
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(NotifiesTree)).call.apply(_getPrototypeOf2, [this].concat(args))); | ||
_this.registry = _Registry.default.create(); | ||
_this.registry = _Registry["default"].create(); | ||
@@ -69,5 +69,5 @@ _this.handleClick = function () { | ||
value: function render() { | ||
return _react.default.createElement(SomeContext.Provider, { | ||
return _react["default"].createElement(SomeContext.Provider, { | ||
value: this.registry.register | ||
}, _react.default.createElement("button", Object.assign({}, this.props, { | ||
}, _react["default"].createElement("button", Object.assign({}, this.props, { | ||
onClick: this.handleClick | ||
@@ -79,3 +79,3 @@ }), "Notify!"), this.props.children); | ||
return NotifiesTree; | ||
}(_react.default.Component); | ||
}(_react["default"].Component); | ||
@@ -134,3 +134,3 @@ NotifiesTree.contextType = SomeContext; | ||
value: function render() { | ||
return _react.default.createElement("div", this.props, this.state.number); | ||
return _react["default"].createElement("div", this.props, this.state.number); | ||
} | ||
@@ -140,9 +140,9 @@ }]); | ||
return HandlesNotification; | ||
}(_react.default.Component); | ||
}(_react["default"].Component); | ||
HandlesNotification.contextType = SomeContext; | ||
test('should increment child on click', function () { | ||
var RegistryApp = (0, _enzyme.mount)(_react.default.createElement(NotifiesTree, { | ||
var RegistryApp = (0, _enzyme.mount)(_react["default"].createElement(NotifiesTree, { | ||
id: "a-btn" | ||
}, _react.default.createElement(HandlesNotification, { | ||
}, _react["default"].createElement(HandlesNotification, { | ||
id: "a" | ||
@@ -156,9 +156,9 @@ }))); | ||
test('should increment both children on top click', function () { | ||
var RegistryApp = (0, _enzyme.mount)(_react.default.createElement(NotifiesTree, { | ||
var RegistryApp = (0, _enzyme.mount)(_react["default"].createElement(NotifiesTree, { | ||
id: "a-btn" | ||
}, _react.default.createElement(HandlesNotification, { | ||
}, _react["default"].createElement(HandlesNotification, { | ||
id: "a" | ||
}), _react.default.createElement(NotifiesTree, { | ||
}), _react["default"].createElement(NotifiesTree, { | ||
id: "b-btn" | ||
}, _react.default.createElement(HandlesNotification, { | ||
}, _react["default"].createElement(HandlesNotification, { | ||
id: "b" | ||
@@ -174,9 +174,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)(_react["default"].createElement(NotifiesTree, { | ||
id: "a-btn" | ||
}, _react.default.createElement(HandlesNotification, { | ||
}, _react["default"].createElement(HandlesNotification, { | ||
id: "a" | ||
}), _react.default.createElement(NotifiesTree, { | ||
}), _react["default"].createElement(NotifiesTree, { | ||
id: "b-btn" | ||
}, _react.default.createElement(HandlesNotification, { | ||
}, _react["default"].createElement(HandlesNotification, { | ||
id: "b" | ||
@@ -193,7 +193,7 @@ })))); | ||
test('should support removing children without error', function () { | ||
var RegistryApp = (0, _enzyme.mount)(_react.default.createElement(NotifiesTree, { | ||
var RegistryApp = (0, _enzyme.mount)(_react["default"].createElement(NotifiesTree, { | ||
id: "a-btn" | ||
}, _react.default.createElement(HandlesNotification, { | ||
}, _react["default"].createElement(HandlesNotification, { | ||
id: "a" | ||
}), _react.default.createElement(HandlesNotification, { | ||
}), _react["default"].createElement(HandlesNotification, { | ||
id: "b" | ||
@@ -204,3 +204,3 @@ }))); | ||
RegistryApp.setProps({ | ||
children: _react.default.createElement(HandlesNotification, { | ||
children: _react["default"].createElement(HandlesNotification, { | ||
id: "c" | ||
@@ -207,0 +207,0 @@ }) |
@@ -10,3 +10,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -48,3 +48,3 @@ /* | ||
var forEachObj = (0, _curry.default)(function (fn, set) { | ||
var forEachObj = (0, _curry["default"])(function (fn, set) { | ||
Object.keys(set).forEach(function (name) { | ||
@@ -67,3 +67,3 @@ return fn(name, set[name]); | ||
var oneOrArray = (0, _curry.default)(function (fn, name, keyCode) { | ||
var oneOrArray = (0, _curry["default"])(function (fn, name, keyCode) { | ||
if (Array.isArray(keyCode)) { | ||
@@ -87,3 +87,3 @@ keyCode.forEach(fn(name)); | ||
var addOne = (0, _curry.default)(function (name, keyCode) { | ||
var addOne = (0, _curry["default"])(function (name, keyCode) { | ||
name = toLowerCase(name); | ||
@@ -113,3 +113,3 @@ | ||
var removeOne = (0, _curry.default)(function (name, keyCode) { | ||
var removeOne = (0, _curry["default"])(function (name, keyCode) { | ||
name = toLowerCase(name); | ||
@@ -194,3 +194,3 @@ | ||
exports.removeAll = removeAll; | ||
var is = (0, _curry.default)(function (name, keyCode) { | ||
var is = (0, _curry["default"])(function (name, keyCode) { | ||
name = toLowerCase(name); | ||
@@ -197,0 +197,0 @@ return name in map && map[name].indexOf(keyCode) >= 0; |
@@ -5,3 +5,3 @@ "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 _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; } } | ||
@@ -8,0 +8,0 @@ describe('keymap', function () { |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.computed = exports.default = void 0; | ||
exports.computed = exports["default"] = void 0; | ||
@@ -61,2 +61,2 @@ /** | ||
var _default = computed; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.kind = exports.default = void 0; | ||
exports.kind = exports["default"] = void 0; | ||
@@ -17,3 +17,3 @@ var _react = _interopRequireDefault(require("react")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -151,5 +151,5 @@ 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); } | ||
cfgStyles = config.styles; | ||
process.env.NODE_ENV !== "production" ? (0, _warning.default)(!contextTypes, "\"contextTypes\" used by ".concat(name || 'a component', " but is deprecated. Please replace with \"contextType\" instead.")) : void 0; | ||
var renderStyles = cfgStyles ? (0, _styles.default)(cfgStyles) : false; | ||
var renderComputed = cfgComputed ? (0, _computed.default)(cfgComputed) : false; | ||
process.env.NODE_ENV !== "production" ? (0, _warning["default"])(!contextTypes, "\"contextTypes\" used by ".concat(name || 'a component', " but is deprecated. Please replace with \"contextType\" instead.")) : void 0; | ||
var renderStyles = cfgStyles ? (0, _styles["default"])(cfgStyles) : false; | ||
var renderComputed = cfgComputed ? (0, _computed["default"])(cfgComputed) : false; | ||
@@ -211,3 +211,3 @@ var renderKind = function renderKind(props, context) { | ||
return Component; | ||
}(_react.default.Component), _class.displayName = name || 'Component', _temp); | ||
}(_react["default"].Component), _class.displayName = name || 'Component', _temp); | ||
if (propTypes) Component.propTypes = propTypes; | ||
@@ -254,2 +254,2 @@ if (contextTypes) Component.contextTypes = contextTypes; | ||
var _default = kind; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.styles = exports.default = void 0; | ||
exports.styles = exports["default"] = void 0; | ||
@@ -15,3 +15,3 @@ var _bind = _interopRequireDefault(require("classnames/bind")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -82,4 +82,4 @@ /** | ||
var cn = css ? _bind.default.bind(css) : _bind.default; | ||
var joinedClassName = props[prop] = (0, _bind.default)(className ? cn(className.split(' ')) : null, props.className); | ||
var cn = css ? _bind["default"].bind(css) : _bind["default"]; | ||
var joinedClassName = props[prop] = (0, _bind["default"])(className ? cn(className.split(' ')) : null, props.className); | ||
(0, _util2.addInternalProp)(props, 'css', css); | ||
@@ -108,2 +108,2 @@ (0, _util2.addInternalProp)(props, 'styler', { | ||
var _default = styles; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -5,3 +5,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -37,3 +37,3 @@ describe('computed', function () { | ||
}; | ||
var updated = (0, _computed.default)(cfg, props); | ||
var updated = (0, _computed["default"])(cfg, props); | ||
var expected = 1; | ||
@@ -53,3 +53,3 @@ var actual = updated.count; | ||
}; | ||
var updated = (0, _computed.default)(cfg, props); | ||
var updated = (0, _computed["default"])(cfg, props); | ||
var expected = 1; | ||
@@ -73,3 +73,3 @@ var actual = updated.count; | ||
}; | ||
var updated = (0, _computed.default)(cfg, props); | ||
var updated = (0, _computed["default"])(cfg, props); | ||
var expected = 6; | ||
@@ -80,3 +80,3 @@ var actual = updated.value; | ||
test('should work with its documented example - sum', function () { | ||
var updated = (0, _computed.default)(exampleCfg, exampleProps); | ||
var updated = (0, _computed["default"])(exampleCfg, exampleProps); | ||
var expected = 9; | ||
@@ -87,3 +87,3 @@ var actual = updated.sum; | ||
test('should work with its documented example - product', function () { | ||
var updated = (0, _computed.default)(exampleCfg, exampleProps); | ||
var updated = (0, _computed["default"])(exampleCfg, exampleProps); | ||
var expected = 24; | ||
@@ -90,0 +90,0 @@ var actual = updated.product; |
@@ -11,3 +11,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -21,9 +21,9 @@ 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); } | ||
describe('kind', function () { | ||
var TestContext = _react.default.createContext(); | ||
var TestContext = _react["default"].createContext(); | ||
var Kind = (0, _kind.default)({ | ||
var Kind = (0, _kind["default"])({ | ||
name: 'Kind', | ||
propTypes: { | ||
prop: _propTypes.default.number.isRequired, | ||
label: _propTypes.default.string | ||
prop: _propTypes["default"].number.isRequired, | ||
label: _propTypes["default"].string | ||
}, | ||
@@ -52,3 +52,3 @@ defaultProps: { | ||
delete rest.prop; | ||
return _react.default.createElement("div", Object.assign({}, rest, { | ||
return _react["default"].createElement("div", Object.assign({}, rest, { | ||
title: label | ||
@@ -64,3 +64,3 @@ }), value); | ||
test('should default {label} property', function () { | ||
var subject = _react.default.createElement(Kind, { | ||
var subject = _react["default"].createElement(Kind, { | ||
prop: 1 | ||
@@ -76,3 +76,3 @@ }); | ||
// eslint-disable-next-line no-undefined | ||
var subject = _react.default.createElement(Kind, { | ||
var subject = _react["default"].createElement(Kind, { | ||
prop: 1, | ||
@@ -87,3 +87,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)(_react["default"].createElement(Kind, { | ||
prop: 1 | ||
@@ -96,3 +96,3 @@ })); | ||
test('should compute {value} property', function () { | ||
var subject = (0, _enzyme.mount)(_react.default.createElement(Kind, { | ||
var subject = (0, _enzyme.mount)(_react["default"].createElement(Kind, { | ||
prop: 1 | ||
@@ -111,6 +111,6 @@ })); | ||
test('should support a minimal kind', function () { | ||
var Minimal = (0, _kind.default)({ | ||
var Minimal = (0, _kind["default"])({ | ||
name: 'Minimal', | ||
render: function render() { | ||
return _react.default.createElement("div", null); | ||
return _react["default"].createElement("div", null); | ||
} | ||
@@ -117,0 +117,0 @@ }); |
@@ -5,3 +5,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -20,3 +20,3 @@ 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); } | ||
}; | ||
var updated = (0, _styles.default)(cfg, {}); | ||
var updated = (0, _styles["default"])(cfg, {}); | ||
var expected = cfg.className; | ||
@@ -31,3 +31,3 @@ var actual = updated.className; | ||
}; | ||
var updated = (0, _styles.default)(cfg, {}); | ||
var updated = (0, _styles["default"])(cfg, {}); | ||
var expected = css.button; | ||
@@ -41,3 +41,3 @@ var actual = updated.className; | ||
}; | ||
var updated = (0, _styles.default)({}, props); | ||
var updated = (0, _styles["default"])({}, props); | ||
var expected = props.className; | ||
@@ -54,3 +54,3 @@ var actual = updated.className; | ||
}; | ||
var updated = (0, _styles.default)(cfg, props); | ||
var updated = (0, _styles["default"])(cfg, props); | ||
var expected = props.className; | ||
@@ -68,3 +68,3 @@ var actual = updated.className; | ||
}; | ||
var updated = (0, _styles.default)(cfg, props); | ||
var updated = (0, _styles["default"])(cfg, props); | ||
var expected = props.className; | ||
@@ -81,3 +81,3 @@ var actual = updated.className; | ||
}; | ||
var updated = (0, _styles.default)(cfg, {}); | ||
var updated = (0, _styles["default"])(cfg, {}); | ||
var expected = cfg.style.color; | ||
@@ -93,3 +93,3 @@ var actual = updated.style.color; | ||
}; | ||
var updated = (0, _styles.default)({}, props); | ||
var updated = (0, _styles["default"])({}, props); | ||
var expected = props.style.color; | ||
@@ -110,3 +110,3 @@ var actual = updated.style.color; | ||
}; | ||
var updated = (0, _styles.default)(cfg, props); | ||
var updated = (0, _styles["default"])(cfg, props); | ||
var expected = 2; | ||
@@ -129,3 +129,3 @@ var actual = Object.keys(updated.style).length; | ||
}; | ||
var updated = (0, _styles.default)(cfg, props); | ||
var updated = (0, _styles["default"])(cfg, props); | ||
var expected = 1; | ||
@@ -137,3 +137,3 @@ var actual = Object.keys(updated.style).length; | ||
test('should add styler.join() to props', function () { | ||
var updated = (0, _styles.default)({}, {}); | ||
var updated = (0, _styles["default"])({}, {}); | ||
var expected = 'function'; | ||
@@ -146,3 +146,3 @@ | ||
test('should join classes together with a space', function () { | ||
var updated = (0, _styles.default)({}, {}); | ||
var updated = (0, _styles["default"])({}, {}); | ||
var expected = 'abc def'; | ||
@@ -153,3 +153,3 @@ var actual = updated.styler.join('abc', 'def'); | ||
test('should resolve join classes to css map', function () { | ||
var updated = (0, _styles.default)({ | ||
var updated = (0, _styles["default"])({ | ||
css: css | ||
@@ -169,3 +169,3 @@ }, {}); | ||
}; | ||
var updated = (0, _styles.default)(cfg, props); | ||
var updated = (0, _styles["default"])(cfg, props); | ||
var expected = css.button + ' button'; | ||
@@ -183,3 +183,3 @@ var actual = updated.className; | ||
}; | ||
var updated = (0, _styles.default)(cfg, props); | ||
var updated = (0, _styles["default"])(cfg, props); | ||
var expected = css.button + ' button ' + css.client; | ||
@@ -186,0 +186,0 @@ var actual = updated.styler.append('client'); |
{ | ||
"name": "@enact/core", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"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", |
@@ -6,7 +6,7 @@ "use strict"; | ||
}); | ||
exports.platform = exports.detect = exports.default = void 0; | ||
exports.platform = exports.detect = exports["default"] = void 0; | ||
var _uniq = _interopRequireDefault(require("ramda/src/uniq")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -224,3 +224,3 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } | ||
exports.platform = platform; | ||
['gesture', 'node', 'platformName', 'touch', 'unknown'].concat(_toConsumableArray((0, _uniq.default)(platforms.map(function (p) { | ||
['gesture', 'node', 'platformName', 'touch', 'unknown'].concat(_toConsumableArray((0, _uniq["default"])(platforms.map(function (p) { | ||
return p.platform; | ||
@@ -237,2 +237,2 @@ })))).forEach(function (name) { | ||
var _default = platform; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -9,7 +9,7 @@ "use strict"; | ||
exports.windowReady = windowReady; | ||
exports.default = void 0; | ||
exports["default"] = void 0; | ||
var _invariant = _interopRequireDefault(require("invariant")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -83,3 +83,3 @@ /** | ||
function windowReady() { | ||
!isWindowReady() ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, 'windowReady cannot be run until the window is available') : invariant(false) : void 0; | ||
!isWindowReady() ? process.env.NODE_ENV !== "production" ? (0, _invariant["default"])(false, 'windowReady cannot be run until the window is available') : invariant(false) : void 0; | ||
windowCallbacks.forEach(function (f) { | ||
@@ -91,2 +91,2 @@ return f(); | ||
var _default = onWindowReady; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -6,7 +6,7 @@ "use strict"; | ||
}); | ||
exports.Job = exports.default = void 0; | ||
exports.Job = exports["default"] = void 0; | ||
var _invariant = _interopRequireDefault(require("invariant")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -174,3 +174,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
this.promise = function (promise) { | ||
!(promise && typeof promise.then === 'function') ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, 'promise expects a thenable') : invariant(false) : void 0; | ||
!(promise && typeof promise.then === 'function') ? process.env.NODE_ENV !== "production" ? (0, _invariant["default"])(false, 'promise expects a thenable') : invariant(false) : void 0; | ||
_this.type = 'promise'; | ||
@@ -215,2 +215,2 @@ _this.id = promise; | ||
var _default = Job; | ||
exports.default = _default; | ||
exports["default"] = _default; |
@@ -5,3 +5,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -11,3 +11,3 @@ describe('Job', function () { | ||
test('should start job', function (done) { | ||
var j = new _Job.default(done, 10); | ||
var j = new _Job["default"](done, 10); | ||
j.start(); | ||
@@ -26,3 +26,3 @@ }); | ||
var j = new _Job.default(fn, 10); | ||
var j = new _Job["default"](fn, 10); | ||
j.start(value); | ||
@@ -34,3 +34,3 @@ }); | ||
var ran = false; | ||
var j = new _Job.default(function () { | ||
var j = new _Job["default"](function () { | ||
ran = true; | ||
@@ -49,3 +49,3 @@ done(new Error('job wasn\'t stopped')); | ||
var number = 0; | ||
var j = new _Job.default(function () { | ||
var j = new _Job["default"](function () { | ||
number++; | ||
@@ -82,3 +82,3 @@ }, 20); | ||
var j = new _Job.default(fn, 10); | ||
var j = new _Job["default"](fn, 10); | ||
j.throttle(value); | ||
@@ -105,3 +105,3 @@ }); | ||
test('should start job', function (done) { | ||
var j = new _Job.default(done, 10); | ||
var j = new _Job["default"](done, 10); | ||
j.idle(); | ||
@@ -120,3 +120,3 @@ }); | ||
var j = new _Job.default(fn, 10); | ||
var j = new _Job["default"](fn, 10); | ||
j.idle(value); | ||
@@ -133,3 +133,3 @@ }); | ||
var j = new _Job.default(fn); | ||
var j = new _Job["default"](fn); | ||
j.idle('first'); | ||
@@ -141,3 +141,3 @@ j.idle('second'); | ||
test('should throw when passed a non-thenable argument', function (done) { | ||
var j = new _Job.default(function () { | ||
var j = new _Job["default"](function () { | ||
return done(new Error('Unexpected job execution')); | ||
@@ -153,3 +153,3 @@ }); | ||
test('should support a non-Promise, thenable argument', function (done) { | ||
var j = new _Job.default(function () { | ||
var j = new _Job["default"](function () { | ||
return done(); | ||
@@ -169,3 +169,3 @@ }); | ||
test('should start job for a resolved promise', function (done) { | ||
var j = new _Job.default(function () { | ||
var j = new _Job["default"](function () { | ||
return done(); | ||
@@ -176,10 +176,10 @@ }); | ||
test('should not start job for a rejected promise', function (done) { | ||
var j = new _Job.default(function () { | ||
var j = new _Job["default"](function () { | ||
done(new Error('Job ran for rejected promise')); | ||
}); | ||
j.promise(Promise.reject(true)).catch(function () {}); | ||
j.promise(Promise.reject(true))["catch"](function () {}); | ||
setTimeout(done, 10); | ||
}); | ||
test('should not start job when stopped before promise resolves', function (done) { | ||
var j = new _Job.default(function () { | ||
var j = new _Job["default"](function () { | ||
done(new Error('Job ran for stopped promise')); | ||
@@ -196,3 +196,3 @@ }); | ||
test('should not start job when another is started', function (done) { | ||
var j = new _Job.default(function (value) { | ||
var j = new _Job["default"](function (value) { | ||
expect(value).toBe(2); | ||
@@ -209,3 +209,3 @@ done(); | ||
test('should return the value from the job to the resolved promise', function (done) { | ||
var j = new _Job.default(function () { | ||
var j = new _Job["default"](function () { | ||
return 'job value'; | ||
@@ -219,3 +219,3 @@ }); | ||
test('should not return the value from the job to the replaced promise', function (done) { | ||
var j = new _Job.default(function () { | ||
var j = new _Job["default"](function () { | ||
return 'job value'; | ||
@@ -222,0 +222,0 @@ }); |
@@ -7,3 +7,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -24,3 +24,3 @@ describe('util', function () { | ||
var expected = true; | ||
var actual = (0, _util.isRenderable)(_react.default.forwardRef(function () {})); | ||
var actual = (0, _util.isRenderable)(_react["default"].forwardRef(function () {})); | ||
expect(actual).toEqual(expected); | ||
@@ -30,3 +30,3 @@ }); | ||
var expected = true; | ||
var actual = (0, _util.isRenderable)(_react.default.memo(function () {})); | ||
var actual = (0, _util.isRenderable)(_react["default"].memo(function () {})); | ||
expect(actual).toEqual(expected); | ||
@@ -36,3 +36,3 @@ }); | ||
var expected = true; | ||
var actual = (0, _util.isRenderable)(_react.default.lazy(function () {})); | ||
var actual = (0, _util.isRenderable)(_react["default"].lazy(function () {})); | ||
expect(actual).toEqual(expected); | ||
@@ -39,0 +39,0 @@ }); |
@@ -9,3 +9,3 @@ "use strict"; | ||
get: function get() { | ||
return _Job.default; | ||
return _Job["default"]; | ||
} | ||
@@ -25,5 +25,5 @@ }); | ||
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 _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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -63,3 +63,3 @@ 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); } | ||
exports.cap = cap; | ||
var coerceFunction = (0, _unless.default)((0, _is.default)(Function), _always.default); | ||
var coerceFunction = (0, _unless["default"])((0, _is["default"])(Function), _always["default"]); | ||
/** | ||
@@ -66,0 +66,0 @@ * If `arg` is array-like, return it. Otherwise returns a single element array containing `arg`. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171204