diff --git a/dist/index.js b/dist/index.js index db0f82c..48b1c79 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3926,7 +3926,7 @@ module.exports = isString; Object.defineProperty(exports, '__esModule', { value: true }); -const VERSION = "2.18.0"; +const VERSION = "2.19.0"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); @@ -10951,14 +10951,9 @@ function ownKeys(object, enumerableOnly) { 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); + enumerableOnly && (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), keys.push.apply(keys, symbols); } return keys; @@ -10966,19 +10961,12 @@ function ownKeys(object, enumerableOnly) { function _objectSpread2(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)); - }); - } + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { + _defineProperty(target, key, source[key]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); } return target; @@ -10999,7 +10987,7 @@ function _defineProperty(obj, key, value) { return obj; } -const VERSION = "3.6.2"; +const VERSION = "3.7.0"; const noop = () => Promise.resolve(); // @ts-expect-error