@jsenv/core 40.3.1 → 40.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/README.md +42 -33
  2. package/dist/browserslist_index/browserslist_index.js +4951 -0
  3. package/dist/build/build.js +189 -62
  4. package/dist/jsenv_core_node_modules.js +25 -1
  5. package/dist/jsenv_core_packages.js +6384 -11580
  6. package/dist/start_build_server/start_build_server.js +0 -5
  7. package/dist/start_dev_server/start_dev_server.js +108 -60
  8. package/package.json +20 -21
  9. package/src/build/build.js +80 -1
  10. package/src/kitchen/errors.js +6 -1
  11. package/src/kitchen/kitchen.js +95 -7
  12. package/src/plugins/package_side_effects/jsenv_plugin_package_side_effects.js +5 -51
  13. package/dist/babel_helpers/AsyncGenerator/AsyncGenerator.js +0 -112
  14. package/dist/babel_helpers/AwaitValue/AwaitValue.js +0 -3
  15. package/dist/babel_helpers/OverloadYield/OverloadYield.js +0 -11
  16. package/dist/babel_helpers/applyDecoratedDescriptor/applyDecoratedDescriptor.js +0 -32
  17. package/dist/babel_helpers/applyDecs/applyDecs.js +0 -813
  18. package/dist/babel_helpers/applyDecs2203/applyDecs2203.js +0 -635
  19. package/dist/babel_helpers/applyDecs2203R/applyDecs2203R.js +0 -654
  20. package/dist/babel_helpers/applyDecs2301/applyDecs2301.js +0 -721
  21. package/dist/babel_helpers/applyDecs2305/applyDecs2305.js +0 -531
  22. package/dist/babel_helpers/arrayLikeToArray/arrayLikeToArray.js +0 -7
  23. package/dist/babel_helpers/arrayWithHoles/arrayWithHoles.js +0 -4
  24. package/dist/babel_helpers/arrayWithoutHoles/arrayWithoutHoles.js +0 -6
  25. package/dist/babel_helpers/assertThisInitialized/assertThisInitialized.js +0 -9
  26. package/dist/babel_helpers/asyncGeneratorDelegate/asyncGeneratorDelegate.js +0 -55
  27. package/dist/babel_helpers/asyncIterator/asyncIterator.js +0 -68
  28. package/dist/babel_helpers/asyncToGenerator/asyncToGenerator.js +0 -34
  29. package/dist/babel_helpers/awaitAsyncGenerator/awaitAsyncGenerator.js +0 -5
  30. package/dist/babel_helpers/callSuper/callSuper.js +0 -25
  31. package/dist/babel_helpers/checkInRHS/checkInRHS.js +0 -11
  32. package/dist/babel_helpers/classApplyDescriptorDestructureSet/classApplyDescriptorDestructureSet.js +0 -23
  33. package/dist/babel_helpers/classApplyDescriptorGet/classApplyDescriptorGet.js +0 -6
  34. package/dist/babel_helpers/classApplyDescriptorSet/classApplyDescriptorSet.js +0 -13
  35. package/dist/babel_helpers/classCallCheck/classCallCheck.js +0 -5
  36. package/dist/babel_helpers/classCheckPrivateStaticAccess/classCheckPrivateStaticAccess.js +0 -8
  37. package/dist/babel_helpers/classCheckPrivateStaticFieldDescriptor/classCheckPrivateStaticFieldDescriptor.js +0 -11
  38. package/dist/babel_helpers/classExtractFieldDescriptor/classExtractFieldDescriptor.js +0 -13
  39. package/dist/babel_helpers/classNameTDZError/classNameTDZError.js +0 -6
  40. package/dist/babel_helpers/classPrivateFieldDestructureSet/classPrivateFieldDestructureSet.js +0 -7
  41. package/dist/babel_helpers/classPrivateFieldGet/classPrivateFieldGet.js +0 -7
  42. package/dist/babel_helpers/classPrivateFieldLooseBase/classPrivateFieldLooseBase.js +0 -6
  43. package/dist/babel_helpers/classPrivateFieldLooseKey/classPrivateFieldLooseKey.js +0 -5
  44. package/dist/babel_helpers/classPrivateFieldSet/classPrivateFieldSet.js +0 -8
  45. package/dist/babel_helpers/classPrivateMethodGet/classPrivateMethodGet.js +0 -6
  46. package/dist/babel_helpers/classPrivateMethodSet/classPrivateMethodSet.js +0 -3
  47. package/dist/babel_helpers/classStaticPrivateFieldSpecGet/classStaticPrivateFieldSpecGet.js +0 -13
  48. package/dist/babel_helpers/classStaticPrivateFieldSpecSet/classStaticPrivateFieldSpecSet.js +0 -15
  49. package/dist/babel_helpers/classStaticPrivateMethodGet/classStaticPrivateMethodGet.js +0 -10
  50. package/dist/babel_helpers/classStaticPrivateMethodSet/classStaticPrivateMethodSet.js +0 -3
  51. package/dist/babel_helpers/construct/construct.js +0 -20
  52. package/dist/babel_helpers/createClass/createClass.js +0 -17
  53. package/dist/babel_helpers/createForOfIteratorHelper/createForOfIteratorHelper.js +0 -61
  54. package/dist/babel_helpers/createForOfIteratorHelperLoose/createForOfIteratorHelperLoose.js +0 -24
  55. package/dist/babel_helpers/createRawReactElement/createRawReactElement.js +0 -50
  56. package/dist/babel_helpers/createSuper/createSuper.js +0 -22
  57. package/dist/babel_helpers/decorate/decorate.js +0 -488
  58. package/dist/babel_helpers/defaults/defaults.js +0 -11
  59. package/dist/babel_helpers/defineAccessor/defineAccessor.js +0 -6
  60. package/dist/babel_helpers/defineEnumerableProperties/defineEnumerableProperties.js +0 -23
  61. package/dist/babel_helpers/defineProperty/defineProperty.js +0 -21
  62. package/dist/babel_helpers/dispose/dispose.js +0 -45
  63. package/dist/babel_helpers/extends/extends.js +0 -14
  64. package/dist/babel_helpers/get/get.js +0 -19
  65. package/dist/babel_helpers/getPrototypeOf/getPrototypeOf.js +0 -4
  66. package/dist/babel_helpers/identity/identity.js +0 -3
  67. package/dist/babel_helpers/importDeferProxy/importDeferProxy.js +0 -31
  68. package/dist/babel_helpers/inherits/inherits.js +0 -19
  69. package/dist/babel_helpers/inheritsLoose/inheritsLoose.js +0 -7
  70. package/dist/babel_helpers/initializerDefineProperty/initializerDefineProperty.js +0 -12
  71. package/dist/babel_helpers/initializerWarningHelper/initializerWarningHelper.js +0 -6
  72. package/dist/babel_helpers/instanceof/instanceof.js +0 -10
  73. package/dist/babel_helpers/interopRequireDefault/interopRequireDefault.js +0 -3
  74. package/dist/babel_helpers/interopRequireWildcard/interopRequireWildcard.js +0 -47
  75. package/dist/babel_helpers/isNativeFunction/isNativeFunction.js +0 -9
  76. package/dist/babel_helpers/isNativeReflectConstruct/isNativeReflectConstruct.js +0 -19
  77. package/dist/babel_helpers/iterableToArray/iterableToArray.js +0 -7
  78. package/dist/babel_helpers/iterableToArrayLimit/iterableToArrayLimit.js +0 -54
  79. package/dist/babel_helpers/iterableToArrayLimitLoose/iterableToArrayLimitLoose.js +0 -16
  80. package/dist/babel_helpers/jsx/jsx.js +0 -50
  81. package/dist/babel_helpers/maybeArrayLike/maybeArrayLike.js +0 -10
  82. package/dist/babel_helpers/newArrowCheck/newArrowCheck.js +0 -5
  83. package/dist/babel_helpers/nonIterableRest/nonIterableRest.js +0 -5
  84. package/dist/babel_helpers/nonIterableSpread/nonIterableSpread.js +0 -5
  85. package/dist/babel_helpers/nullishReceiverError/nullishReceiverError.js +0 -3
  86. package/dist/babel_helpers/objectDestructuringEmpty/objectDestructuringEmpty.js +0 -3
  87. package/dist/babel_helpers/objectSpread/objectSpread.js +0 -23
  88. package/dist/babel_helpers/objectSpread2/objectSpread2.js +0 -43
  89. package/dist/babel_helpers/objectWithoutProperties/objectWithoutProperties.js +0 -19
  90. package/dist/babel_helpers/objectWithoutPropertiesLoose/objectWithoutPropertiesLoose.js +0 -13
  91. package/dist/babel_helpers/possibleConstructorReturn/possibleConstructorReturn.js +0 -12
  92. package/dist/babel_helpers/readOnlyError/readOnlyError.js +0 -4
  93. package/dist/babel_helpers/regeneratorRuntime/regeneratorRuntime.js +0 -698
  94. package/dist/babel_helpers/set/set.js +0 -47
  95. package/dist/babel_helpers/setFunctionName/setFunctionName.js +0 -19
  96. package/dist/babel_helpers/setPrototypeOf/setPrototypeOf.js +0 -7
  97. package/dist/babel_helpers/skipFirstGeneratorNext/skipFirstGeneratorNext.js +0 -8
  98. package/dist/babel_helpers/slicedToArray/slicedToArray.js +0 -10
  99. package/dist/babel_helpers/slicedToArrayLoose/slicedToArrayLoose.js +0 -13
  100. package/dist/babel_helpers/superPropBase/superPropBase.js +0 -10
  101. package/dist/babel_helpers/taggedTemplateLiteral/taggedTemplateLiteral.js +0 -10
  102. package/dist/babel_helpers/taggedTemplateLiteralLoose/taggedTemplateLiteralLoose.js +0 -7
  103. package/dist/babel_helpers/tdz/tdz.js +0 -4
  104. package/dist/babel_helpers/temporalRef/temporalRef.js +0 -6
  105. package/dist/babel_helpers/temporalUndefined/temporalUndefined.js +0 -3
  106. package/dist/babel_helpers/toArray/toArray.js +0 -10
  107. package/dist/babel_helpers/toConsumableArray/toConsumableArray.js +0 -10
  108. package/dist/babel_helpers/toPrimitive/toPrimitive.js +0 -14
  109. package/dist/babel_helpers/toPropertyKey/toPropertyKey.js +0 -10
  110. package/dist/babel_helpers/typeof/typeof.js +0 -15
  111. package/dist/babel_helpers/unsupportedIterableToArray/unsupportedIterableToArray.js +0 -12
  112. package/dist/babel_helpers/using/using.js +0 -23
  113. package/dist/babel_helpers/wrapAsyncGenerator/wrapAsyncGenerator.js +0 -8
  114. package/dist/babel_helpers/wrapNativeSuper/wrapNativeSuper.js +0 -30
  115. package/dist/babel_helpers/wrapRegExp/wrapRegExp.js +0 -79
  116. package/dist/babel_helpers/writeOnlyError/writeOnlyError.js +0 -3
@@ -1,19 +0,0 @@
1
- import setPrototypeOf from "../setPrototypeOf/setPrototypeOf.js";
2
-
3
- export default function _inherits(subClass, superClass) {
4
- if (typeof superClass !== "function" && superClass !== null) {
5
- throw new TypeError("Super expression must either be null or a function");
6
- }
7
- // We can't use defineProperty to set the prototype in a single step because it
8
- // doesn't work in Chrome <= 36. https://github.com/babel/babel/issues/14056
9
- // V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=3334
10
- subClass.prototype = Object.create(superClass && superClass.prototype, {
11
- constructor: {
12
- value: subClass,
13
- writable: true,
14
- configurable: true,
15
- },
16
- });
17
- Object.defineProperty(subClass, "prototype", { writable: false });
18
- if (superClass) setPrototypeOf(subClass, superClass);
19
- }
@@ -1,7 +0,0 @@
1
- import setPrototypeOf from "../setPrototypeOf/setPrototypeOf.js";
2
-
3
- export default function (subClass, superClass) {
4
- subClass.prototype = Object.create(superClass.prototype);
5
- subClass.prototype.constructor = subClass;
6
- setPrototypeOf(subClass, superClass);
7
- }
@@ -1,12 +0,0 @@
1
- export default function (target, property, descriptor, context) {
2
- if (!descriptor) return;
3
- Object.defineProperty(target, property, {
4
- enumerable: descriptor.enumerable,
5
- configurable: descriptor.configurable,
6
- writable: descriptor.writable,
7
- // eslint-disable-next-line no-void
8
- value: descriptor.initializer
9
- ? descriptor.initializer.call(context)
10
- : void 0,
11
- });
12
- }
@@ -1,6 +0,0 @@
1
- export default function () {
2
- throw new Error(
3
- "Decorating class property failed. Please ensure that " +
4
- "proposal-class-properties is enabled and runs after the decorators transform.",
5
- );
6
- }
@@ -1,10 +0,0 @@
1
- export default function (left, right) {
2
- if (
3
- right !== null &&
4
- typeof Symbol !== "undefined" &&
5
- right[Symbol.hasInstance]
6
- ) {
7
- return Boolean(right[Symbol.hasInstance](left));
8
- }
9
- return left instanceof right;
10
- }
@@ -1,3 +0,0 @@
1
- export default function (obj) {
2
- return obj && obj.__esModule ? obj : { default: obj };
3
- }
@@ -1,47 +0,0 @@
1
- /* @minVersion 7.14.0 */
2
-
3
- function _getRequireWildcardCache(nodeInterop) {
4
- if (typeof WeakMap !== "function") return null;
5
-
6
- var cacheBabelInterop = new WeakMap();
7
- var cacheNodeInterop = new WeakMap();
8
- return (_getRequireWildcardCache = function (nodeInterop) {
9
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
10
- })(nodeInterop);
11
- }
12
-
13
- export default function _interopRequireWildcard(obj, nodeInterop) {
14
- if (!nodeInterop && obj && obj.__esModule) {
15
- return obj;
16
- }
17
-
18
- if (obj === null || (typeof obj !== "object" && typeof obj !== "function")) {
19
- return { default: obj };
20
- }
21
-
22
- var cache = _getRequireWildcardCache(nodeInterop);
23
- if (cache && cache.has(obj)) {
24
- return cache.get(obj);
25
- }
26
-
27
- var newObj = { __proto__: null };
28
- var hasPropertyDescriptor =
29
- Object.defineProperty && Object.getOwnPropertyDescriptor;
30
- for (var key in obj) {
31
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
32
- var desc = hasPropertyDescriptor
33
- ? Object.getOwnPropertyDescriptor(obj, key)
34
- : null;
35
- if (desc && (desc.get || desc.set)) {
36
- Object.defineProperty(newObj, key, desc);
37
- } else {
38
- newObj[key] = obj[key];
39
- }
40
- }
41
- }
42
- newObj.default = obj;
43
- if (cache) {
44
- cache.set(obj, newObj);
45
- }
46
- return newObj;
47
- }
@@ -1,9 +0,0 @@
1
- export default function _isNativeFunction(fn) {
2
- // Note: This function returns "true" for core-js functions.
3
- try {
4
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
5
- } catch (e) {
6
- // Firefox 31 throws when "toString" is applied to an HTMLElement
7
- return typeof fn === "function";
8
- }
9
- }
@@ -1,19 +0,0 @@
1
- /* @minVersion 7.9.0 */
2
-
3
- export default function _isNativeReflectConstruct() {
4
- // Since Reflect.construct can't be properly polyfilled, some
5
- // implementations (e.g. core-js@2) don't set the correct internal slots.
6
- // Those polyfills don't allow us to subclass built-ins, so we need to
7
- // use our fallback implementation.
8
- try {
9
- // If the internal slots aren't set, this throws an error similar to
10
- // TypeError: this is not a Boolean object.
11
- var result = !Boolean.prototype.valueOf.call(
12
- Reflect.construct(Boolean, [], function () {}),
13
- );
14
- } catch (_) {}
15
- // @ts-expect-error assign to function
16
- return (_isNativeReflectConstruct = function () {
17
- return !!result;
18
- })();
19
- }
@@ -1,7 +0,0 @@
1
- export default function _iterableToArray(iter) {
2
- if (
3
- (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null) ||
4
- iter["@@iterator"] != null
5
- )
6
- return Array.from(iter);
7
- }
@@ -1,54 +0,0 @@
1
- /* @minVersion 7.0.0-beta.0 */
2
-
3
- export default function _iterableToArrayLimit(arr, i) {
4
- // this is an expanded form of \`for...of\` that properly supports abrupt completions of
5
- // iterators etc. variable names have been minimised to reduce the size of this massive
6
- // helper. sometimes spec compliance is annoying :(
7
- //
8
- // _n = _iteratorNormalCompletion
9
- // _d = _didIteratorError
10
- // _e = _iteratorError
11
- // _i = _iterator
12
- // _s = _step
13
- // _x = _next
14
- // _r = _return
15
-
16
- var _i =
17
- arr == null
18
- ? null
19
- : (typeof Symbol !== "undefined" && arr[Symbol.iterator]) ||
20
- arr["@@iterator"];
21
- if (_i == null) return;
22
-
23
- var _arr = [];
24
- var _n = true;
25
- var _d = false;
26
- var _s, _e, _x, _r;
27
- try {
28
- _x = (_i = _i.call(arr)).next;
29
- if (i === 0) {
30
- if (Object(_i) !== _i) return;
31
- _n = false;
32
- } else {
33
- for (; !(_n = (_s = _x.call(_i)).done); _n = true) {
34
- _arr.push(_s.value);
35
- if (_arr.length === i) break;
36
- }
37
- }
38
- } catch (err) {
39
- _d = true;
40
- _e = err;
41
- } finally {
42
- try {
43
- if (!_n && _i["return"] != null) {
44
- _r = _i["return"]();
45
- // eslint-disable-next-line no-unsafe-finally
46
- if (Object(_r) !== _r) return;
47
- }
48
- } finally {
49
- // eslint-disable-next-line no-unsafe-finally
50
- if (_d) throw _e;
51
- }
52
- }
53
- return _arr;
54
- }
@@ -1,16 +0,0 @@
1
- /* @minVersion 7.0.0-beta.0 */
2
-
3
- export default function _iterableToArrayLimitLoose(arr, i) {
4
- var _i =
5
- arr &&
6
- ((typeof Symbol !== "undefined" && arr[Symbol.iterator]) ||
7
- arr["@@iterator"]);
8
- if (_i == null) return;
9
-
10
- var _arr = [];
11
- var _s;
12
- for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done; ) {
13
- _arr.push(_s.value);
14
- }
15
- return _arr;
16
- }
@@ -1,50 +0,0 @@
1
- var REACT_ELEMENT_TYPE;
2
-
3
- export default function _createRawReactElement(type, props, key, children) {
4
- if (!REACT_ELEMENT_TYPE) {
5
- REACT_ELEMENT_TYPE =
6
- (typeof Symbol === "function" &&
7
- // "for" is a reserved keyword in ES3 so escaping it here for backward compatibility
8
- Symbol["for"] &&
9
- Symbol["for"]("react.element")) ||
10
- 0xeac7;
11
- }
12
-
13
- var defaultProps = type && type.defaultProps;
14
- var childrenLength = arguments.length - 3;
15
-
16
- if (!props && childrenLength !== 0) {
17
- // If we're going to assign props.children, we create a new object now
18
- // to avoid mutating defaultProps.
19
- props = { children: void 0 };
20
- }
21
-
22
- if (childrenLength === 1) {
23
- props.children = children;
24
- } else if (childrenLength > 1) {
25
- var childArray = new Array(childrenLength);
26
- for (var i = 0; i < childrenLength; i++) {
27
- childArray[i] = arguments[i + 3];
28
- }
29
- props.children = childArray;
30
- }
31
-
32
- if (props && defaultProps) {
33
- for (var propName in defaultProps) {
34
- if (props[propName] === void 0) {
35
- props[propName] = defaultProps[propName];
36
- }
37
- }
38
- } else if (!props) {
39
- props = defaultProps || {};
40
- }
41
-
42
- return {
43
- $$typeof: REACT_ELEMENT_TYPE,
44
- type: type,
45
- key: key === undefined ? null : "" + key,
46
- ref: null,
47
- props: props,
48
- _owner: null,
49
- };
50
- }
@@ -1,10 +0,0 @@
1
- import arrayLikeToArray from "../arrayLikeToArray/arrayLikeToArray.js";
2
-
3
- export default function _maybeArrayLike(next, arr, i) {
4
- if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
5
- var len = arr.length;
6
- // eslint-disable-next-line no-void
7
- return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
8
- }
9
- return next(arr, i);
10
- }
@@ -1,5 +0,0 @@
1
- export default function _newArrowCheck(innerThis, boundThis) {
2
- if (innerThis !== boundThis) {
3
- throw new TypeError("Cannot instantiate an arrow function");
4
- }
5
- }
@@ -1,5 +0,0 @@
1
- export default () => {
2
- throw new TypeError(
3
- "Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",
4
- );
5
- };
@@ -1,5 +0,0 @@
1
- export default () => {
2
- throw new TypeError(
3
- "Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",
4
- );
5
- };
@@ -1,3 +0,0 @@
1
- export function _nullishReceiverError() {
2
- throw new TypeError("Cannot set property of null or undefined.");
3
- }
@@ -1,3 +0,0 @@
1
- export default function _objectDestructuringEmpty(obj) {
2
- if (obj == null) throw new TypeError("Cannot destructure " + obj);
3
- }
@@ -1,23 +0,0 @@
1
- import defineProperty from "../defineProperty/defineProperty.js";
2
-
3
- export default function (target) {
4
- for (var i = 1; i < arguments.length; i++) {
5
- // eslint-disable-next-line
6
- var source = arguments[i] != null ? Object(arguments[i]) : {};
7
- var ownKeys = Object.keys(source);
8
- if (typeof Object.getOwnPropertySymbols === "function") {
9
- ownKeys.push.apply(
10
- ownKeys,
11
- // eslint-disable-next-line no-loop-func
12
- Object.getOwnPropertySymbols(source).filter(function (sym) {
13
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
14
- }),
15
- );
16
- }
17
- // eslint-disable-next-line no-loop-func
18
- ownKeys.forEach(function (key) {
19
- defineProperty(target, key, source[key]);
20
- });
21
- }
22
- return target;
23
- }
@@ -1,43 +0,0 @@
1
- /* @minVersion 7.5.0 */
2
-
3
- import defineProperty from "../defineProperty/defineProperty.js";
4
-
5
- // This function is different to "Reflect.ownKeys". The enumerableOnly
6
- // filters on symbol properties only. Returned string properties are always
7
- // enumerable. It is good to use in objectSpread.
8
-
9
- function ownKeys(object, enumerableOnly) {
10
- var keys = Object.keys(object);
11
- if (Object.getOwnPropertySymbols) {
12
- var symbols = Object.getOwnPropertySymbols(object);
13
- if (enumerableOnly) {
14
- symbols = symbols.filter(function (sym) {
15
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
16
- });
17
- }
18
- keys.push.apply(keys, symbols);
19
- }
20
- return keys;
21
- }
22
-
23
- export default function _objectSpread2(target) {
24
- for (var i = 1; i < arguments.length; i++) {
25
- var source = arguments[i] != null ? arguments[i] : {};
26
- if (i % 2) {
27
- ownKeys(Object(source), true).forEach(function (key) {
28
- defineProperty(target, key, source[key]);
29
- });
30
- } else if (Object.getOwnPropertyDescriptors) {
31
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
32
- } else {
33
- ownKeys(Object(source)).forEach(function (key) {
34
- Object.defineProperty(
35
- target,
36
- key,
37
- Object.getOwnPropertyDescriptor(source, key),
38
- );
39
- });
40
- }
41
- }
42
- return target;
43
- }
@@ -1,19 +0,0 @@
1
- import objectWithoutPropertiesLoose from "../objectWithoutPropertiesLoose/objectWithoutPropertiesLoose.js";
2
-
3
- export default (source, excluded) => {
4
- if (source === null) return {};
5
-
6
- var target = objectWithoutPropertiesLoose(source, excluded);
7
- var key;
8
- var i;
9
- if (Object.getOwnPropertySymbols) {
10
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
11
- for (i = 0; i < sourceSymbolKeys.length; i++) {
12
- key = sourceSymbolKeys[i];
13
- if (excluded.includes(key)) continue;
14
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
15
- target[key] = source[key];
16
- }
17
- }
18
- return target;
19
- };
@@ -1,13 +0,0 @@
1
- export default (source, excluded) => {
2
- if (source === null) return {};
3
- var target = {};
4
- var sourceKeys = Object.keys(source);
5
- var key;
6
- var i;
7
- for (i = 0; i < sourceKeys.length; i++) {
8
- key = sourceKeys[i];
9
- if (excluded.includes(key)) continue;
10
- target[key] = source[key];
11
- }
12
- return target;
13
- };
@@ -1,12 +0,0 @@
1
- import assertThisInitialized from "../assertThisInitialized/assertThisInitialized.js";
2
-
3
- export default (self, call) => {
4
- if (call && (typeof call === "object" || typeof call === "function")) {
5
- return call;
6
- } else if (call !== void 0) {
7
- throw new TypeError(
8
- "Derived constructors may only return object or undefined",
9
- );
10
- }
11
- return assertThisInitialized(self);
12
- };
@@ -1,4 +0,0 @@
1
- export default function (name) {
2
- // eslint-disable-next-line prefer-template
3
- throw new TypeError(name + " is read-only");
4
- }