From efbc2ffe6a1ee5ec38a4396305561d6515d0943e Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 30 Aug 2024 17:21:18 +0800 Subject: node fixes, updates --- .../runtime/helpers/esm/objectWithoutProperties.js | 23 ++++++++++------------ 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js') diff --git a/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js b/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js index 36804a39..c5e7cf21 100644 --- a/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +++ b/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js @@ -1,16 +1,13 @@ import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js"; -export default function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = objectWithoutPropertiesLoose(source, excluded); - var key, i; +function _objectWithoutProperties(e, t) { + if (null == e) return {}; + var o, + r, + i = objectWithoutPropertiesLoose(e, t); 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]; - } + var s = Object.getOwnPropertySymbols(e); + for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } - return target; -} \ No newline at end of file + return i; +} +export { _objectWithoutProperties as default }; \ No newline at end of file -- cgit v1.2.3