@jsenv/core 38.3.10 → 38.4.0
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.
- package/README.md +17 -18
- package/dist/babel_helpers/AsyncGenerator/AsyncGenerator.js +3 -3
- package/dist/babel_helpers/AwaitValue/AwaitValue.js +2 -2
- package/dist/babel_helpers/{overloadYield/overloadYield.js → OverloadYield/OverloadYield.js} +1 -1
- package/dist/babel_helpers/applyDecoratedDescriptor/applyDecoratedDescriptor.js +23 -14
- package/dist/babel_helpers/applyDecs/applyDecs.js +32 -21
- package/dist/babel_helpers/applyDecs2203/applyDecs2203.js +549 -549
- package/dist/babel_helpers/applyDecs2203R/applyDecs2203R.js +27 -15
- package/dist/babel_helpers/applyDecs2301/applyDecs2301.js +29 -18
- package/dist/babel_helpers/applyDecs2305/applyDecs2305.js +362 -541
- package/dist/babel_helpers/arrayLikeToArray/arrayLikeToArray.js +4 -4
- package/dist/babel_helpers/arrayWithHoles/arrayWithHoles.js +2 -2
- package/dist/babel_helpers/arrayWithoutHoles/arrayWithoutHoles.js +3 -3
- package/dist/babel_helpers/assertThisInitialized/assertThisInitialized.js +5 -3
- package/dist/babel_helpers/asyncGeneratorDelegate/asyncGeneratorDelegate.js +2 -2
- package/dist/babel_helpers/asyncIterator/asyncIterator.js +1 -1
- package/dist/babel_helpers/asyncToGenerator/asyncToGenerator.js +17 -17
- package/dist/babel_helpers/awaitAsyncGenerator/awaitAsyncGenerator.js +2 -2
- package/dist/babel_helpers/callSuper/callSuper.js +25 -0
- package/dist/babel_helpers/checkInRHS/checkInRHS.js +10 -8
- package/dist/babel_helpers/classApplyDescriptorDestructureSet/classApplyDescriptorDestructureSet.js +9 -6
- package/dist/babel_helpers/classApplyDescriptorGet/classApplyDescriptorGet.js +2 -2
- package/dist/babel_helpers/classApplyDescriptorSet/classApplyDescriptorSet.js +3 -3
- package/dist/babel_helpers/classCallCheck/classCallCheck.js +1 -1
- package/dist/babel_helpers/classCheckPrivateStaticAccess/classCheckPrivateStaticAccess.js +5 -2
- package/dist/babel_helpers/classCheckPrivateStaticFieldDescriptor/classCheckPrivateStaticFieldDescriptor.js +7 -2
- package/dist/babel_helpers/classExtractFieldDescriptor/classExtractFieldDescriptor.js +9 -3
- package/dist/babel_helpers/classNameTDZError/classNameTDZError.js +3 -1
- package/dist/babel_helpers/classPrivateFieldDestructureSet/classPrivateFieldDestructureSet.js +4 -4
- package/dist/babel_helpers/classPrivateFieldGet/classPrivateFieldGet.js +4 -4
- package/dist/babel_helpers/classPrivateFieldLooseBase/classPrivateFieldLooseBase.js +2 -2
- package/dist/babel_helpers/classPrivateFieldLooseKey/classPrivateFieldLooseKey.js +2 -2
- package/dist/babel_helpers/classPrivateFieldSet/classPrivateFieldSet.js +5 -5
- package/dist/babel_helpers/classPrivateMethodGet/classPrivateMethodGet.js +2 -2
- package/dist/babel_helpers/classPrivateMethodSet/classPrivateMethodSet.js +1 -1
- package/dist/babel_helpers/classStaticPrivateFieldSpecGet/classStaticPrivateFieldSpecGet.js +11 -7
- package/dist/babel_helpers/classStaticPrivateFieldSpecSet/classStaticPrivateFieldSpecSet.js +7 -7
- package/dist/babel_helpers/classStaticPrivateMethodGet/classStaticPrivateMethodGet.js +8 -4
- package/dist/babel_helpers/classStaticPrivateMethodSet/classStaticPrivateMethodSet.js +1 -1
- package/dist/babel_helpers/construct/construct.js +18 -14
- package/dist/babel_helpers/createClass/createClass.js +1 -1
- package/dist/babel_helpers/createForOfIteratorHelper/createForOfIteratorHelper.js +21 -20
- package/dist/babel_helpers/createForOfIteratorHelperLoose/createForOfIteratorHelperLoose.js +10 -9
- package/dist/babel_helpers/createRawReactElement/createRawReactElement.js +11 -11
- package/dist/babel_helpers/createSuper/createSuper.js +11 -11
- package/dist/babel_helpers/decorate/decorate.js +255 -170
- package/dist/babel_helpers/defaults/defaults.js +5 -5
- package/dist/babel_helpers/defineAccessor/defineAccessor.js +1 -1
- package/dist/babel_helpers/defineEnumerableProperties/defineEnumerableProperties.js +11 -11
- package/dist/babel_helpers/defineProperty/defineProperty.js +4 -4
- package/dist/babel_helpers/dispose/dispose.js +39 -39
- package/dist/babel_helpers/extends/extends.js +4 -4
- package/dist/babel_helpers/get/get.js +2 -2
- package/dist/babel_helpers/getPrototypeOf/getPrototypeOf.js +1 -1
- package/dist/babel_helpers/identity/identity.js +1 -1
- package/dist/babel_helpers/importDeferProxy/importDeferProxy.js +27 -27
- package/dist/babel_helpers/inherits/inherits.js +4 -4
- package/dist/babel_helpers/inheritsLoose/inheritsLoose.js +4 -4
- package/dist/babel_helpers/initializerDefineProperty/initializerDefineProperty.js +5 -3
- package/dist/babel_helpers/initializerWarningHelper/initializerWarningHelper.js +1 -1
- package/dist/babel_helpers/instanceof/instanceof.js +7 -3
- package/dist/babel_helpers/interopRequireDefault/interopRequireDefault.js +1 -1
- package/dist/babel_helpers/interopRequireWildcard/interopRequireWildcard.js +3 -1
- package/dist/babel_helpers/isNativeFunction/isNativeFunction.js +1 -1
- package/dist/babel_helpers/isNativeReflectConstruct/isNativeReflectConstruct.js +12 -14
- package/dist/babel_helpers/iterableToArray/iterableToArray.js +1 -1
- package/dist/babel_helpers/iterableToArrayLimit/iterableToArrayLimit.js +1 -1
- package/dist/babel_helpers/iterableToArrayLimitLoose/iterableToArrayLimitLoose.js +1 -1
- package/dist/babel_helpers/jsx/jsx.js +1 -1
- package/dist/babel_helpers/maybeArrayLike/maybeArrayLike.js +4 -4
- package/dist/babel_helpers/newArrowCheck/newArrowCheck.js +1 -1
- package/dist/babel_helpers/nonIterableRest/nonIterableRest.js +2 -2
- package/dist/babel_helpers/nonIterableSpread/nonIterableSpread.js +2 -2
- package/dist/babel_helpers/nullishReceiverError/nullishReceiverError.js +1 -1
- package/dist/babel_helpers/objectDestructuringEmpty/objectDestructuringEmpty.js +1 -1
- package/dist/babel_helpers/objectSpread/objectSpread.js +8 -8
- package/dist/babel_helpers/objectSpread2/objectSpread2.js +5 -3
- package/dist/babel_helpers/objectWithoutProperties/objectWithoutProperties.js +12 -12
- package/dist/babel_helpers/objectWithoutPropertiesLoose/objectWithoutPropertiesLoose.js +10 -10
- package/dist/babel_helpers/possibleConstructorReturn/possibleConstructorReturn.js +7 -5
- package/dist/babel_helpers/readOnlyError/readOnlyError.js +1 -1
- package/dist/babel_helpers/regeneratorRuntime/regeneratorRuntime.js +1 -1
- package/dist/babel_helpers/set/set.js +22 -19
- package/dist/babel_helpers/setFunctionName/setFunctionName.js +18 -0
- package/dist/babel_helpers/setPrototypeOf/setPrototypeOf.js +7 -6
- package/dist/babel_helpers/skipFirstGeneratorNext/skipFirstGeneratorNext.js +4 -4
- package/dist/babel_helpers/slicedToArray/slicedToArray.js +5 -5
- package/dist/babel_helpers/slicedToArrayLoose/slicedToArrayLoose.js +5 -5
- package/dist/babel_helpers/superPropBase/superPropBase.js +4 -4
- package/dist/babel_helpers/taggedTemplateLiteral/taggedTemplateLiteral.js +2 -2
- package/dist/babel_helpers/taggedTemplateLiteralLoose/taggedTemplateLiteralLoose.js +3 -3
- package/dist/babel_helpers/tdz/tdz.js +1 -1
- package/dist/babel_helpers/temporalRef/temporalRef.js +3 -3
- package/dist/babel_helpers/toArray/toArray.js +5 -5
- package/dist/babel_helpers/toConsumableArray/toConsumableArray.js +5 -5
- package/dist/babel_helpers/toPrimitive/toPrimitive.js +11 -7
- package/dist/babel_helpers/toPropertyKey/toPropertyKey.js +8 -4
- package/dist/babel_helpers/typeof/typeof.js +6 -5
- package/dist/babel_helpers/unsupportedIterableToArray/unsupportedIterableToArray.js +7 -7
- package/dist/babel_helpers/using/using.js +20 -20
- package/dist/babel_helpers/wrapAsyncGenerator/wrapAsyncGenerator.js +3 -3
- package/dist/babel_helpers/wrapNativeSuper/wrapNativeSuper.js +12 -12
- package/dist/babel_helpers/wrapRegExp/wrapRegExp.js +5 -3
- package/dist/babel_helpers/writeOnlyError/writeOnlyError.js +1 -1
- package/dist/js/ribbon.js +1 -1
- package/dist/js/ws.js +234 -146
- package/dist/jsenv_core.js +1365 -1211
- package/package.json +26 -22
- package/src/build/build.js +22 -14
- package/src/dev/start_dev_server.js +8 -21
- package/src/kitchen/errors.js +29 -24
- package/src/kitchen/kitchen.js +1 -1
- package/src/kitchen/url_graph/references.js +8 -0
- package/src/kitchen/url_graph/url_graph_report.js +5 -3
- package/src/plugins/plugins.js +2 -2
- package/src/plugins/protocol_file/jsenv_plugin_protocol_file.js +17 -7
- package/src/plugins/reference_analysis/js/jsenv_plugin_js_reference_analysis.js +10 -12
- package/src/plugins/ribbon/client/ribbon.js +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export default function (obj, defaults) {
|
|
2
|
-
var keys = Object.getOwnPropertyNames(defaults)
|
|
2
|
+
var keys = Object.getOwnPropertyNames(defaults);
|
|
3
3
|
for (var i = 0; i < keys.length; i++) {
|
|
4
|
-
var key = keys[i]
|
|
5
|
-
var value = Object.getOwnPropertyDescriptor(defaults, key)
|
|
4
|
+
var key = keys[i];
|
|
5
|
+
var value = Object.getOwnPropertyDescriptor(defaults, key);
|
|
6
6
|
if (value && value.configurable && obj[key] === undefined) {
|
|
7
|
-
Object.defineProperty(obj, key, value)
|
|
7
|
+
Object.defineProperty(obj, key, value);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
return obj
|
|
10
|
+
return obj;
|
|
11
11
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export default function (obj, descs) {
|
|
2
2
|
// eslint-disable-next-line guard-for-in
|
|
3
3
|
for (var key in descs) {
|
|
4
|
-
var desc = descs[key]
|
|
5
|
-
desc.configurable = desc.enumerable = true
|
|
6
|
-
if ("value" in desc) desc.writable = true
|
|
7
|
-
Object.defineProperty(obj, key, desc)
|
|
4
|
+
var desc = descs[key];
|
|
5
|
+
desc.configurable = desc.enumerable = true;
|
|
6
|
+
if ("value" in desc) desc.writable = true;
|
|
7
|
+
Object.defineProperty(obj, key, desc);
|
|
8
8
|
}
|
|
9
9
|
// Symbols are not enumerated over by for-in loops. If native
|
|
10
10
|
// Symbols are available, fetch all of the descs object's own
|
|
11
11
|
// symbol properties and define them on our target object too.
|
|
12
12
|
if (Object.getOwnPropertySymbols) {
|
|
13
|
-
var objectSymbols = Object.getOwnPropertySymbols(descs)
|
|
13
|
+
var objectSymbols = Object.getOwnPropertySymbols(descs);
|
|
14
14
|
for (var i = 0; i < objectSymbols.length; i++) {
|
|
15
|
-
var sym = objectSymbols[i]
|
|
16
|
-
var symbDesc = descs[sym]
|
|
17
|
-
symbDesc.configurable = symbDesc.enumerable = true
|
|
18
|
-
if ("value" in symbDesc) symbDesc.writable = true
|
|
19
|
-
Object.defineProperty(obj, sym, symbDesc)
|
|
15
|
+
var sym = objectSymbols[i];
|
|
16
|
+
var symbDesc = descs[sym];
|
|
17
|
+
symbDesc.configurable = symbDesc.enumerable = true;
|
|
18
|
+
if ("value" in symbDesc) symbDesc.writable = true;
|
|
19
|
+
Object.defineProperty(obj, sym, symbDesc);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
return obj
|
|
22
|
+
return obj;
|
|
23
23
|
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
/* @minVersion 7.22.0 */
|
|
2
2
|
function dispose_SuppressedError(suppressed, error) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
return new dispose_SuppressedError(suppressed, error);
|
|
3
|
+
if (typeof SuppressedError !== "undefined") {
|
|
4
|
+
// eslint-disable-next-line no-undef
|
|
5
|
+
dispose_SuppressedError = SuppressedError;
|
|
6
|
+
} else {
|
|
7
|
+
dispose_SuppressedError = function SuppressedError(suppressed, error) {
|
|
8
|
+
this.suppressed = suppressed;
|
|
9
|
+
this.error = error;
|
|
10
|
+
this.stack = new Error().stack;
|
|
11
|
+
};
|
|
12
|
+
dispose_SuppressedError.prototype = Object.create(Error.prototype, {
|
|
13
|
+
constructor: {
|
|
14
|
+
value: dispose_SuppressedError,
|
|
15
|
+
writable: true,
|
|
16
|
+
configurable: true,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
21
19
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
return new dispose_SuppressedError(suppressed, error);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default function _dispose(stack, error, hasError) {
|
|
24
|
+
function next() {
|
|
25
|
+
while (stack.length > 0) {
|
|
26
|
+
try {
|
|
27
|
+
var r = stack.pop();
|
|
28
|
+
var p = r.d.call(r.v);
|
|
29
|
+
if (r.a) return Promise.resolve(p).then(next, err);
|
|
30
|
+
} catch (e) {
|
|
31
|
+
return err(e);
|
|
33
32
|
}
|
|
34
|
-
if (hasError) throw error;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function err(e) {
|
|
38
|
-
error = hasError ? new dispose_SuppressedError(e, error) : e;
|
|
39
|
-
hasError = true;
|
|
40
|
-
|
|
41
|
-
return next();
|
|
42
33
|
}
|
|
43
|
-
|
|
34
|
+
if (hasError) throw error;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function err(e) {
|
|
38
|
+
error = hasError ? new dispose_SuppressedError(e, error) : e;
|
|
39
|
+
hasError = true;
|
|
40
|
+
|
|
44
41
|
return next();
|
|
45
|
-
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return next();
|
|
45
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
function assign(target) {
|
|
2
2
|
for (var i = 1; i < arguments.length; i++) {
|
|
3
3
|
// eslint-disable-next-line prefer-rest-params
|
|
4
|
-
var source = arguments[i]
|
|
4
|
+
var source = arguments[i];
|
|
5
5
|
for (var key in source) {
|
|
6
6
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
-
target[key] = source[key]
|
|
7
|
+
target[key] = source[key];
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
return target
|
|
11
|
+
return target;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export default Object.assign ? Object.assign.bind() : assign
|
|
14
|
+
export default Object.assign ? Object.assign.bind() : assign;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import superPropBase from "../superPropBase/superPropBase.js"
|
|
1
|
+
import superPropBase from "../superPropBase/superPropBase.js";
|
|
2
2
|
|
|
3
3
|
export default function _get() {
|
|
4
4
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
@@ -16,4 +16,4 @@ export default function _get() {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
return _get.apply(this, arguments);
|
|
19
|
-
}
|
|
19
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/* @minVersion 7.23.0 */
|
|
2
2
|
export default function _importDeferProxy(init) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
3
|
+
var ns = null;
|
|
4
|
+
var constValue = function (v) {
|
|
5
|
+
return function () {
|
|
6
|
+
return v;
|
|
8
7
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
};
|
|
9
|
+
var proxy = function (run) {
|
|
10
|
+
return function (arg1, arg2, arg3) {
|
|
11
|
+
if (ns === null) ns = init();
|
|
12
|
+
return run(ns, arg2, arg3);
|
|
14
13
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
14
|
+
};
|
|
15
|
+
return new Proxy(
|
|
16
|
+
{},
|
|
17
|
+
{
|
|
18
|
+
defineProperty: constValue(false),
|
|
19
|
+
deleteProperty: constValue(false),
|
|
20
|
+
get: proxy(Reflect.get),
|
|
21
|
+
getOwnPropertyDescriptor: proxy(Reflect.getOwnPropertyDescriptor),
|
|
22
|
+
getPrototypeOf: constValue(null),
|
|
23
|
+
isExtensible: constValue(false),
|
|
24
|
+
has: proxy(Reflect.has),
|
|
25
|
+
ownKeys: proxy(Reflect.ownKeys),
|
|
26
|
+
preventExtensions: constValue(true),
|
|
27
|
+
set: constValue(false),
|
|
28
|
+
setPrototypeOf: constValue(false),
|
|
29
|
+
},
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import setPrototypeOf from "../setPrototypeOf/setPrototypeOf.js"
|
|
1
|
+
import setPrototypeOf from "../setPrototypeOf/setPrototypeOf.js";
|
|
2
2
|
|
|
3
3
|
export default function _inherits(subClass, superClass) {
|
|
4
4
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -11,9 +11,9 @@ export default function _inherits(subClass, superClass) {
|
|
|
11
11
|
constructor: {
|
|
12
12
|
value: subClass,
|
|
13
13
|
writable: true,
|
|
14
|
-
configurable: true
|
|
15
|
-
}
|
|
14
|
+
configurable: true,
|
|
15
|
+
},
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(subClass, "prototype", { writable: false });
|
|
18
18
|
if (superClass) setPrototypeOf(subClass, superClass);
|
|
19
|
-
}
|
|
19
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import setPrototypeOf from "../setPrototypeOf/setPrototypeOf.js"
|
|
1
|
+
import setPrototypeOf from "../setPrototypeOf/setPrototypeOf.js";
|
|
2
2
|
|
|
3
3
|
export default function (subClass, superClass) {
|
|
4
|
-
subClass.prototype = Object.create(superClass.prototype)
|
|
5
|
-
subClass.prototype.constructor = subClass
|
|
6
|
-
setPrototypeOf(subClass, superClass)
|
|
4
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
5
|
+
subClass.prototype.constructor = subClass;
|
|
6
|
+
setPrototypeOf(subClass, superClass);
|
|
7
7
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export default function (target, property, descriptor, context) {
|
|
2
|
-
if (!descriptor) return
|
|
2
|
+
if (!descriptor) return;
|
|
3
3
|
Object.defineProperty(target, property, {
|
|
4
4
|
enumerable: descriptor.enumerable,
|
|
5
5
|
configurable: descriptor.configurable,
|
|
6
6
|
writable: descriptor.writable,
|
|
7
7
|
// eslint-disable-next-line no-void
|
|
8
|
-
value: descriptor.initializer
|
|
9
|
-
|
|
8
|
+
value: descriptor.initializer
|
|
9
|
+
? descriptor.initializer.call(context)
|
|
10
|
+
: void 0,
|
|
11
|
+
});
|
|
10
12
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export default function (left, right) {
|
|
2
|
-
if (
|
|
3
|
-
|
|
2
|
+
if (
|
|
3
|
+
right !== null &&
|
|
4
|
+
typeof Symbol !== "undefined" &&
|
|
5
|
+
right[Symbol.hasInstance]
|
|
6
|
+
) {
|
|
7
|
+
return Boolean(right[Symbol.hasInstance](left));
|
|
4
8
|
}
|
|
5
|
-
return left instanceof right
|
|
9
|
+
return left instanceof right;
|
|
6
10
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* @minVersion 7.14.0 */
|
|
2
|
+
|
|
1
3
|
function _getRequireWildcardCache(nodeInterop) {
|
|
2
4
|
if (typeof WeakMap !== "function") return null;
|
|
3
5
|
|
|
@@ -42,4 +44,4 @@ export default function _interopRequireWildcard(obj, nodeInterop) {
|
|
|
42
44
|
cache.set(obj, newObj);
|
|
43
45
|
}
|
|
44
46
|
return newObj;
|
|
45
|
-
}
|
|
47
|
+
}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
if (Reflect.construct.sham) return false
|
|
5
|
-
// Proxy can't be polyfilled. Every browser implemented
|
|
6
|
-
// proxies before or at the same time as Reflect.construct,
|
|
7
|
-
// so if they support Proxy they also support Reflect.construct.
|
|
8
|
-
if (typeof Proxy === "function") return true
|
|
1
|
+
/* @minVersion 7.9.0 */
|
|
2
|
+
|
|
3
|
+
export default function _isNativeReflectConstruct() {
|
|
9
4
|
// Since Reflect.construct can't be properly polyfilled, some
|
|
10
5
|
// implementations (e.g. core-js@2) don't set the correct internal slots.
|
|
11
6
|
// Those polyfills don't allow us to subclass built-ins, so we need to
|
|
12
7
|
// use our fallback implementation.
|
|
13
8
|
try {
|
|
14
9
|
// If the internal slots aren't set, this throws an error similar to
|
|
15
|
-
//
|
|
16
|
-
Boolean.prototype.valueOf.call(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
// TypeError: this is not a Boolean object.
|
|
11
|
+
var result = !Boolean.prototype.valueOf.call(
|
|
12
|
+
Reflect.construct(Boolean, [], function () {}),
|
|
13
|
+
);
|
|
14
|
+
} catch (e) {}
|
|
15
|
+
// @ts-expect-error assign to function
|
|
16
|
+
return (_isNativeReflectConstruct = function () {
|
|
17
|
+
return !!result;
|
|
18
|
+
})();
|
|
21
19
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import arrayLikeToArray from "../arrayLikeToArray/arrayLikeToArray.js"
|
|
1
|
+
import arrayLikeToArray from "../arrayLikeToArray/arrayLikeToArray.js";
|
|
2
2
|
|
|
3
3
|
export default function _maybeArrayLike(next, arr, i) {
|
|
4
4
|
if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
|
|
5
|
-
var len = arr.length
|
|
5
|
+
var len = arr.length;
|
|
6
6
|
// eslint-disable-next-line no-void
|
|
7
|
-
return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len)
|
|
7
|
+
return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
|
|
8
8
|
}
|
|
9
|
-
return next(arr, i)
|
|
9
|
+
return next(arr, i);
|
|
10
10
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import defineProperty from "../defineProperty/defineProperty.js"
|
|
1
|
+
import defineProperty from "../defineProperty/defineProperty.js";
|
|
2
2
|
|
|
3
3
|
export default function (target) {
|
|
4
4
|
for (var i = 1; i < arguments.length; i++) {
|
|
5
5
|
// eslint-disable-next-line
|
|
6
|
-
var source = arguments[i] != null ? Object(arguments[i]) : {}
|
|
7
|
-
var ownKeys = Object.keys(source)
|
|
6
|
+
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
7
|
+
var ownKeys = Object.keys(source);
|
|
8
8
|
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
9
9
|
ownKeys.push.apply(
|
|
10
10
|
ownKeys,
|
|
11
11
|
// eslint-disable-next-line no-loop-func
|
|
12
12
|
Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
13
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable
|
|
13
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
14
14
|
}),
|
|
15
|
-
)
|
|
15
|
+
);
|
|
16
16
|
}
|
|
17
17
|
// eslint-disable-next-line no-loop-func
|
|
18
18
|
ownKeys.forEach(function (key) {
|
|
19
|
-
defineProperty(target, key, source[key])
|
|
20
|
-
})
|
|
19
|
+
defineProperty(target, key, source[key]);
|
|
20
|
+
});
|
|
21
21
|
}
|
|
22
|
-
return target
|
|
22
|
+
return target;
|
|
23
23
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/* @minVersion 7.5.0 */
|
|
2
|
+
|
|
3
|
+
import defineProperty from "../defineProperty/defineProperty.js";
|
|
2
4
|
|
|
3
5
|
// This function is different to "Reflect.ownKeys". The enumerableOnly
|
|
4
6
|
// filters on symbol properties only. Returned string properties are always
|
|
@@ -32,10 +34,10 @@ export default function _objectSpread2(target) {
|
|
|
32
34
|
Object.defineProperty(
|
|
33
35
|
target,
|
|
34
36
|
key,
|
|
35
|
-
Object.getOwnPropertyDescriptor(source, key)
|
|
37
|
+
Object.getOwnPropertyDescriptor(source, key),
|
|
36
38
|
);
|
|
37
39
|
});
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
return target;
|
|
41
|
-
}
|
|
43
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import objectWithoutPropertiesLoose from "../objectWithoutPropertiesLoose/objectWithoutPropertiesLoose.js"
|
|
1
|
+
import objectWithoutPropertiesLoose from "../objectWithoutPropertiesLoose/objectWithoutPropertiesLoose.js";
|
|
2
2
|
|
|
3
3
|
export default (source, excluded) => {
|
|
4
|
-
if (source === null) return {}
|
|
4
|
+
if (source === null) return {};
|
|
5
5
|
|
|
6
|
-
var target = objectWithoutPropertiesLoose(source, excluded)
|
|
7
|
-
var key
|
|
8
|
-
var i
|
|
6
|
+
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
7
|
+
var key;
|
|
8
|
+
var i;
|
|
9
9
|
if (Object.getOwnPropertySymbols) {
|
|
10
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source)
|
|
10
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
11
11
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
12
|
-
key = sourceSymbolKeys[i]
|
|
13
|
-
if (excluded.indexOf(key) >= 0) continue
|
|
14
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue
|
|
15
|
-
target[key] = source[key]
|
|
12
|
+
key = sourceSymbolKeys[i];
|
|
13
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
14
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
15
|
+
target[key] = source[key];
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
return target
|
|
19
|
-
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
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
|
|
2
|
+
if (source === null) return {};
|
|
3
|
+
var target = {};
|
|
4
|
+
var sourceKeys = Object.keys(source);
|
|
5
|
+
var key;
|
|
6
|
+
var i;
|
|
7
7
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
8
|
-
key = sourceKeys[i]
|
|
9
|
-
if (excluded.indexOf(key) >= 0) continue
|
|
10
|
-
target[key] = source[key]
|
|
8
|
+
key = sourceKeys[i];
|
|
9
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
10
|
+
target[key] = source[key];
|
|
11
11
|
}
|
|
12
|
-
return target
|
|
13
|
-
}
|
|
12
|
+
return target;
|
|
13
|
+
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import assertThisInitialized from "../assertThisInitialized/assertThisInitialized.js"
|
|
1
|
+
import assertThisInitialized from "../assertThisInitialized/assertThisInitialized.js";
|
|
2
2
|
|
|
3
3
|
export default (self, call) => {
|
|
4
4
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
5
|
-
return call
|
|
5
|
+
return call;
|
|
6
6
|
} else if (call !== void 0) {
|
|
7
|
-
throw new TypeError(
|
|
7
|
+
throw new TypeError(
|
|
8
|
+
"Derived constructors may only return object or undefined",
|
|
9
|
+
);
|
|
8
10
|
}
|
|
9
|
-
return assertThisInitialized(self)
|
|
10
|
-
}
|
|
11
|
+
return assertThisInitialized(self);
|
|
12
|
+
};
|