@jsenv/core 29.1.19 → 29.2.1
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/dist/babel_helpers/AsyncGenerator/AsyncGenerator.js +3 -16
- package/dist/babel_helpers/applyDecoratorDescriptor/applyDecoratorDescriptor.js +0 -5
- package/dist/babel_helpers/applyDecs/applyDecs.js +54 -241
- package/dist/babel_helpers/applyDecs2023/applyDecs2023.js +47 -195
- package/dist/babel_helpers/arrayLikeToArray/arrayLikeToArray.js +0 -2
- package/dist/babel_helpers/arrayWithoutHoles/arrayWithoutHoles.js +2 -1
- package/dist/babel_helpers/assertThisInitialized/assertThisInitialized.js +0 -1
- package/dist/babel_helpers/asyncGeneratorDelegate/asyncGeneratorDelegate.js +4 -14
- package/dist/babel_helpers/asyncIterator/asyncIterator.js +5 -20
- package/dist/babel_helpers/asyncToGenerator/asyncToGenerator.js +2 -8
- package/dist/babel_helpers/awaitAsyncGenerator/awaitAsyncGenerator.js +1 -3
- package/dist/babel_helpers/classApplyDescriptorDestructureSet/classApplyDescriptorDestructureSet.js +0 -4
- package/dist/babel_helpers/classApplyDescriptorGet/classApplyDescriptorGet.js +0 -1
- package/dist/babel_helpers/classApplyDescriptorSet/classApplyDescriptorSet.js +0 -1
- package/dist/babel_helpers/classExtractFieldDescriptor/classExtractFieldDescriptor.js +0 -1
- package/dist/babel_helpers/classPrivateFieldLooseBase/classPrivateFieldLooseBase.js +0 -1
- package/dist/babel_helpers/classPrivateMethodGet/classPrivateMethodGet.js +0 -1
- package/dist/babel_helpers/construct/construct.js +5 -5
- package/dist/babel_helpers/createClass/createClass.js +0 -1
- package/dist/babel_helpers/createForOfIteratorHelper/createForOfIteratorHelper.js +5 -9
- package/dist/babel_helpers/createForOfIteratorHelperLoose/createForOfIteratorHelperLoose.js +2 -3
- package/dist/babel_helpers/createRawReactElement/createRawReactElement.js +2 -8
- package/dist/babel_helpers/createSuper/createSuper.js +2 -4
- package/dist/babel_helpers/decorate/decorate.js +60 -311
- package/dist/babel_helpers/defaults/defaults.js +0 -3
- package/dist/babel_helpers/defineEnumerableProperties/defineEnumerableProperties.js +2 -5
- package/dist/babel_helpers/defineProperty/defineProperty.js +0 -1
- package/dist/babel_helpers/extends/extends.js +0 -3
- package/dist/babel_helpers/get/get.js +0 -3
- package/dist/babel_helpers/getPrototypeOf/getPrototypeOf.js +2 -1
- package/dist/babel_helpers/inherits/inherits.js +2 -3
- package/dist/babel_helpers/instanceof/instanceof.js +0 -1
- package/dist/babel_helpers/interopRequireWildcard/interopRequireWildcard.js +0 -10
- package/dist/babel_helpers/isNativeReflectConstruct/isNativeReflectConstruct.js +6 -6
- package/dist/babel_helpers/iterableToArrayLimit/iterableToArrayLimit.js +0 -5
- package/dist/babel_helpers/iterableToArrayLimitLoose/iterableToArrayLimitLoose.js +2 -5
- package/dist/babel_helpers/jsx/jsx.js +2 -8
- package/dist/babel_helpers/maybeArrayLike/maybeArrayLike.js +2 -3
- package/dist/babel_helpers/objectDestructuringEmpty/objectDestructuringEmpty.js +1 -1
- package/dist/babel_helpers/objectSpread/objectSpread.js +4 -6
- package/dist/babel_helpers/objectSpread2/objectSpread2.js +3 -8
- package/dist/babel_helpers/objectWithoutProperties/objectWithoutProperties.js +0 -3
- package/dist/babel_helpers/objectWithoutPropertiesLoose/objectWithoutPropertiesLoose.js +0 -2
- package/dist/babel_helpers/possibleConstructorReturn/possibleConstructorReturn.js +0 -1
- package/dist/babel_helpers/regeneratorRuntime/regeneratorRuntime.js +634 -0
- package/dist/babel_helpers/set/set.js +2 -12
- package/dist/babel_helpers/superPropBase/superPropBase.js +0 -1
- package/dist/babel_helpers/taggedTemplateLiteral/taggedTemplateLiteral.js +0 -1
- package/dist/babel_helpers/taggedTemplateLiteralLoose/taggedTemplateLiteralLoose.js +0 -1
- package/dist/babel_helpers/toPrimitive/toPrimitive.js +1 -5
- package/dist/babel_helpers/typeof/typeof.js +0 -2
- package/dist/babel_helpers/wrapNativeSuper/wrapNativeSuper.js +0 -7
- package/dist/babel_helpers/wrapRegExp/wrapRegExp.js +5 -19
- package/dist/controllable_child_process.mjs +17 -27
- package/dist/controllable_worker_thread.mjs +4 -16
- package/dist/js/autoreload.js +13 -56
- package/dist/js/execute_using_dynamic_import.js +40 -164
- package/dist/js/global_this.js +2 -10
- package/dist/js/import_meta_hot.js +3 -9
- package/dist/js/new_stylesheet.js +0 -59
- package/dist/js/regenerator_runtime.js +80 -156
- package/dist/js/s.js +25 -113
- package/dist/js/s.js.map +10 -10
- package/dist/js/script_type_module_supervisor.js +4 -13
- package/dist/js/server_events_client.js +10 -38
- package/dist/js/supervisor.js +25 -167
- package/dist/js/v8_coverage.js +29 -92
- package/dist/js/ws.js +239 -717
- package/dist/main.js +761 -4155
- package/package.json +6 -6
- package/src/plugins/import_meta_url/client/import_meta_url_browser.js +1 -2
- package/src/plugins/import_meta_url/client/import_meta_url_commonjs.mjs +1 -1
- package/src/plugins/plugins.js +1 -1
- package/src/plugins/transpilation/as_js_classic/helpers-string.js +1 -0
- package/src/plugins/transpilation/babel/global_this/client/global_this.js +0 -2
|
@@ -2,15 +2,12 @@ function assign(target) {
|
|
|
2
2
|
for (var i = 1; i < arguments.length; i++) {
|
|
3
3
|
// eslint-disable-next-line prefer-rest-params
|
|
4
4
|
var source = arguments[i];
|
|
5
|
-
|
|
6
5
|
for (var key in source) {
|
|
7
6
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8
7
|
target[key] = source[key];
|
|
9
8
|
}
|
|
10
9
|
}
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
return target;
|
|
14
12
|
}
|
|
15
|
-
|
|
16
13
|
export default Object.assign ? Object.assign.bind() : assign;
|
|
@@ -7,15 +7,12 @@ export default function _get() {
|
|
|
7
7
|
var base = superPropBase(target, property);
|
|
8
8
|
if (!base) return;
|
|
9
9
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
10
|
-
|
|
11
10
|
if (desc.get) {
|
|
12
11
|
// STEP 3. If receiver is not present, then set receiver to target.
|
|
13
12
|
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
return desc.value;
|
|
17
15
|
};
|
|
18
16
|
}
|
|
19
|
-
|
|
20
17
|
return _get.apply(this, arguments);
|
|
21
18
|
}
|
|
@@ -2,11 +2,10 @@ import setPrototypeOf from "../setPrototypeOf/setPrototypeOf.js";
|
|
|
2
2
|
export default function _inherits(subClass, superClass) {
|
|
3
3
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
4
4
|
throw new TypeError("Super expression must either be null or a function");
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
|
+
// We can't use defineProperty to set the prototype in a single step because it
|
|
6
7
|
// doesn't work in Chrome <= 36. https://github.com/babel/babel/issues/14056
|
|
7
8
|
// V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
8
|
-
|
|
9
|
-
|
|
10
9
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
11
10
|
constructor: {
|
|
12
11
|
value: subClass,
|
|
@@ -6,31 +6,24 @@ function _getRequireWildcardCache(nodeInterop) {
|
|
|
6
6
|
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
7
7
|
})(nodeInterop);
|
|
8
8
|
}
|
|
9
|
-
|
|
10
9
|
export default function _interopRequireWildcard(obj, nodeInterop) {
|
|
11
10
|
if (!nodeInterop && obj && obj.__esModule) {
|
|
12
11
|
return obj;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
16
14
|
return {
|
|
17
15
|
default: obj
|
|
18
16
|
};
|
|
19
17
|
}
|
|
20
|
-
|
|
21
18
|
var cache = _getRequireWildcardCache(nodeInterop);
|
|
22
|
-
|
|
23
19
|
if (cache && cache.has(obj)) {
|
|
24
20
|
return cache.get(obj);
|
|
25
21
|
}
|
|
26
|
-
|
|
27
22
|
var newObj = {};
|
|
28
23
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
29
|
-
|
|
30
24
|
for (var key in obj) {
|
|
31
25
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
32
26
|
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
33
|
-
|
|
34
27
|
if (desc && (desc.get || desc.set)) {
|
|
35
28
|
Object.defineProperty(newObj, key, desc);
|
|
36
29
|
} else {
|
|
@@ -38,12 +31,9 @@ export default function _interopRequireWildcard(obj, nodeInterop) {
|
|
|
38
31
|
}
|
|
39
32
|
}
|
|
40
33
|
}
|
|
41
|
-
|
|
42
34
|
newObj.default = obj;
|
|
43
|
-
|
|
44
35
|
if (cache) {
|
|
45
36
|
cache.set(obj, newObj);
|
|
46
37
|
}
|
|
47
|
-
|
|
48
38
|
return newObj;
|
|
49
39
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export default function isNativeReflectConstruct() {
|
|
2
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
3
|
-
|
|
4
|
-
if (Reflect.construct.sham) return false;
|
|
2
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
3
|
+
// core-js@3
|
|
4
|
+
if (Reflect.construct.sham) return false;
|
|
5
|
+
// Proxy can't be polyfilled. Every browser implemented
|
|
5
6
|
// proxies before or at the same time as Reflect.construct,
|
|
6
7
|
// so if they support Proxy they also support Reflect.construct.
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
if (typeof Proxy === "function") return true;
|
|
9
|
+
// Since Reflect.construct can't be properly polyfilled, some
|
|
9
10
|
// implementations (e.g. core-js@2) don't set the correct internal slots.
|
|
10
11
|
// Those polyfills don't allow us to subclass built-ins, so we need to
|
|
11
12
|
// use our fallback implementation.
|
|
12
|
-
|
|
13
13
|
try {
|
|
14
14
|
// If the internal slots aren't set, this throws an error similar to
|
|
15
15
|
// TypeError: this is not a Boolean object.
|
|
@@ -9,18 +9,14 @@ export default function _iterableToArrayLimit(arr, i) {
|
|
|
9
9
|
// _i = _iterator
|
|
10
10
|
// _s = _step
|
|
11
11
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12
|
-
|
|
13
12
|
if (_i == null) return;
|
|
14
13
|
var _arr = [];
|
|
15
14
|
var _n = true;
|
|
16
15
|
var _d = false;
|
|
17
|
-
|
|
18
16
|
var _s, _e;
|
|
19
|
-
|
|
20
17
|
try {
|
|
21
18
|
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
22
19
|
_arr.push(_s.value);
|
|
23
|
-
|
|
24
20
|
if (i && _arr.length === i) break;
|
|
25
21
|
}
|
|
26
22
|
} catch (err) {
|
|
@@ -33,6 +29,5 @@ export default function _iterableToArrayLimit(arr, i) {
|
|
|
33
29
|
if (_d) throw _e;
|
|
34
30
|
}
|
|
35
31
|
}
|
|
36
|
-
|
|
37
32
|
return _arr;
|
|
38
33
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
export default function (arr, i) {
|
|
2
2
|
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
|
3
3
|
var _arr = [];
|
|
4
|
-
|
|
5
4
|
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
|
|
6
5
|
_arr.push(_step.value);
|
|
7
|
-
|
|
8
6
|
if (i && _arr.length === i) break;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
}
|
|
8
|
+
// eslint-disable-next-line consistent-return
|
|
12
9
|
return _arr;
|
|
13
10
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
var REACT_ELEMENT_TYPE;
|
|
2
2
|
export default function _createRawReactElement(type, props, key, children) {
|
|
3
3
|
if (!REACT_ELEMENT_TYPE) {
|
|
4
|
-
REACT_ELEMENT_TYPE = typeof Symbol === "function" &&
|
|
4
|
+
REACT_ELEMENT_TYPE = typeof Symbol === "function" &&
|
|
5
|
+
// "for" is a reserved keyword in ES3 so escaping it here for backward compatibility
|
|
5
6
|
Symbol["for"] && Symbol["for"]("react.element") || 0xeac7;
|
|
6
7
|
}
|
|
7
|
-
|
|
8
8
|
var defaultProps = type && type.defaultProps;
|
|
9
9
|
var childrenLength = arguments.length - 3;
|
|
10
|
-
|
|
11
10
|
if (!props && childrenLength !== 0) {
|
|
12
11
|
// If we're going to assign props.children, we create a new object now
|
|
13
12
|
// to avoid mutating defaultProps.
|
|
@@ -15,19 +14,15 @@ export default function _createRawReactElement(type, props, key, children) {
|
|
|
15
14
|
children: void 0
|
|
16
15
|
};
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
if (childrenLength === 1) {
|
|
20
18
|
props.children = children;
|
|
21
19
|
} else if (childrenLength > 1) {
|
|
22
20
|
var childArray = new Array(childrenLength);
|
|
23
|
-
|
|
24
21
|
for (var i = 0; i < childrenLength; i++) {
|
|
25
22
|
childArray[i] = arguments[i + 3];
|
|
26
23
|
}
|
|
27
|
-
|
|
28
24
|
props.children = childArray;
|
|
29
25
|
}
|
|
30
|
-
|
|
31
26
|
if (props && defaultProps) {
|
|
32
27
|
for (var propName in defaultProps) {
|
|
33
28
|
if (props[propName] === void 0) {
|
|
@@ -37,7 +32,6 @@ export default function _createRawReactElement(type, props, key, children) {
|
|
|
37
32
|
} else if (!props) {
|
|
38
33
|
props = defaultProps || {};
|
|
39
34
|
}
|
|
40
|
-
|
|
41
35
|
return {
|
|
42
36
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
43
37
|
type: type,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import arrayLikeToArray from "../arrayLikeToArray/arrayLikeToArray.js";
|
|
2
2
|
export default function _maybeArrayLike(next, arr, i) {
|
|
3
3
|
if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
|
|
4
|
-
var len = arr.length;
|
|
5
|
-
|
|
4
|
+
var len = arr.length;
|
|
5
|
+
// eslint-disable-next-line no-void
|
|
6
6
|
return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
|
|
7
7
|
}
|
|
8
|
-
|
|
9
8
|
return next(arr, i);
|
|
10
9
|
}
|
|
@@ -4,19 +4,17 @@ export default function (target) {
|
|
|
4
4
|
// eslint-disable-next-line
|
|
5
5
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
6
6
|
var ownKeys = Object.keys(source);
|
|
7
|
-
|
|
8
7
|
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
9
|
-
ownKeys.push.apply(ownKeys,
|
|
8
|
+
ownKeys.push.apply(ownKeys,
|
|
9
|
+
// eslint-disable-next-line no-loop-func
|
|
10
10
|
Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
11
11
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
12
12
|
}));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
}
|
|
14
|
+
// eslint-disable-next-line no-loop-func
|
|
16
15
|
ownKeys.forEach(function (key) {
|
|
17
16
|
defineProperty(target, key, source[key]);
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
|
-
|
|
21
19
|
return target;
|
|
22
20
|
}
|
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
import defineProperty from "../defineProperty/defineProperty.js";
|
|
1
|
+
import defineProperty from "../defineProperty/defineProperty.js";
|
|
2
|
+
|
|
3
|
+
// This function is different to "Reflect.ownKeys". The enumerableOnly
|
|
2
4
|
// filters on symbol properties only. Returned string properties are always
|
|
3
5
|
// enumerable. It is good to use in objectSpread.
|
|
4
6
|
|
|
5
7
|
function ownKeys(object, enumerableOnly) {
|
|
6
8
|
var keys = Object.keys(object);
|
|
7
|
-
|
|
8
9
|
if (Object.getOwnPropertySymbols) {
|
|
9
10
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
10
|
-
|
|
11
11
|
if (enumerableOnly) {
|
|
12
12
|
symbols = symbols.filter(function (sym) {
|
|
13
13
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
|
|
17
16
|
keys.push.apply(keys, symbols);
|
|
18
17
|
}
|
|
19
|
-
|
|
20
18
|
return keys;
|
|
21
19
|
}
|
|
22
|
-
|
|
23
20
|
export default function _objectSpread2(target) {
|
|
24
21
|
for (var i = 1; i < arguments.length; i++) {
|
|
25
22
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
26
|
-
|
|
27
23
|
if (i % 2) {
|
|
28
24
|
ownKeys(Object(source), true).forEach(function (key) {
|
|
29
25
|
defineProperty(target, key, source[key]);
|
|
@@ -36,6 +32,5 @@ export default function _objectSpread2(target) {
|
|
|
36
32
|
});
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
|
-
|
|
40
35
|
return target;
|
|
41
36
|
}
|
|
@@ -4,10 +4,8 @@ export default ((source, excluded) => {
|
|
|
4
4
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
5
5
|
var key;
|
|
6
6
|
var i;
|
|
7
|
-
|
|
8
7
|
if (Object.getOwnPropertySymbols) {
|
|
9
8
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
10
|
-
|
|
11
9
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
12
10
|
key = sourceSymbolKeys[i];
|
|
13
11
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -15,6 +13,5 @@ export default ((source, excluded) => {
|
|
|
15
13
|
target[key] = source[key];
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
return target;
|
|
20
17
|
});
|
|
@@ -4,12 +4,10 @@ export default ((source, excluded) => {
|
|
|
4
4
|
var sourceKeys = Object.keys(source);
|
|
5
5
|
var key;
|
|
6
6
|
var i;
|
|
7
|
-
|
|
8
7
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
9
8
|
key = sourceKeys[i];
|
|
10
9
|
if (excluded.indexOf(key) >= 0) continue;
|
|
11
10
|
target[key] = source[key];
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
return target;
|
|
15
13
|
});
|