@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
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
export default function (fn) {
|
|
2
2
|
return function () {
|
|
3
|
-
var self = this;
|
|
4
|
-
|
|
3
|
+
var self = this;
|
|
4
|
+
// eslint-disable-next-line prefer-rest-params
|
|
5
5
|
var args = arguments;
|
|
6
6
|
return new Promise(function (resolve, reject) {
|
|
7
7
|
var gen = fn.apply(self, args);
|
|
8
|
-
|
|
9
8
|
function _next(value) {
|
|
10
9
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
function _throw(err) {
|
|
14
12
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
15
13
|
}
|
|
16
|
-
|
|
17
14
|
_next(undefined);
|
|
18
15
|
});
|
|
19
16
|
};
|
|
20
17
|
}
|
|
21
|
-
|
|
22
18
|
const asyncGeneratorStep = (gen, resolve, reject, _next, _throw, key, arg) => {
|
|
23
19
|
var info;
|
|
24
20
|
var value;
|
|
25
|
-
|
|
26
21
|
try {
|
|
27
22
|
info = gen[key](arg);
|
|
28
23
|
value = info.value;
|
|
@@ -30,7 +25,6 @@ const asyncGeneratorStep = (gen, resolve, reject, _next, _throw, key, arg) => {
|
|
|
30
25
|
reject(error);
|
|
31
26
|
return;
|
|
32
27
|
}
|
|
33
|
-
|
|
34
28
|
if (info.done) {
|
|
35
29
|
resolve(value);
|
|
36
30
|
} else {
|
package/dist/babel_helpers/classApplyDescriptorDestructureSet/classApplyDescriptorDestructureSet.js
CHANGED
|
@@ -6,19 +6,15 @@ export default function _classApplyDescriptorDestructureSet(receiver, descriptor
|
|
|
6
6
|
set value(v) {
|
|
7
7
|
descriptor.set.call(receiver, v);
|
|
8
8
|
}
|
|
9
|
-
|
|
10
9
|
};
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
return descriptor.__destrObj;
|
|
14
12
|
}
|
|
15
|
-
|
|
16
13
|
if (!descriptor.writable) {
|
|
17
14
|
// This should only throw in strict mode, but class bodies are
|
|
18
15
|
// always strict and private fields can only be used inside
|
|
19
16
|
// class bodies.
|
|
20
17
|
throw new TypeError("attempted to set read only private field");
|
|
21
18
|
}
|
|
22
|
-
|
|
23
19
|
return descriptor;
|
|
24
20
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import setPrototypeOf from "../setPrototypeOf/setPrototypeOf.js";
|
|
2
|
-
import isNativeReflectConstruct from "../isNativeReflectConstruct/isNativeReflectConstruct.js";
|
|
3
|
-
// calling the constructor.
|
|
2
|
+
import isNativeReflectConstruct from "../isNativeReflectConstruct/isNativeReflectConstruct.js";
|
|
4
3
|
|
|
4
|
+
// NOTE: If Parent !== Class, the correct __proto__ is set *after*
|
|
5
|
+
// calling the constructor.
|
|
5
6
|
function reflectConstruct(Parent, args, Class) {
|
|
6
|
-
var a = [null];
|
|
7
|
-
|
|
7
|
+
var a = [null];
|
|
8
|
+
// eslint-disable-next-line prefer-spread
|
|
8
9
|
a.push.apply(a, args);
|
|
9
10
|
var Constructor = Function.bind.apply(Parent, a);
|
|
10
11
|
var instance = new Constructor();
|
|
11
12
|
if (Class) setPrototypeOf(instance, Class.prototype);
|
|
12
13
|
return instance;
|
|
13
14
|
}
|
|
14
|
-
|
|
15
15
|
export default isNativeReflectConstruct() ? Reflect.construct.bind() : reflectConstruct;
|
|
@@ -7,7 +7,6 @@ function _defineProperties(target, props) {
|
|
|
7
7
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
|
|
11
10
|
export default function _createClass(Constructor, protoProps, staticProps) {
|
|
12
11
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
13
12
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
/* eslint-disable eqeqeq, no-eq-null */
|
|
2
|
-
import unsupportedIterableToArray from "../unsupportedIterableToArray/unsupportedIterableToArray.js";
|
|
2
|
+
import unsupportedIterableToArray from "../unsupportedIterableToArray/unsupportedIterableToArray.js";
|
|
3
|
+
|
|
4
|
+
// s: start (create the iterator)
|
|
3
5
|
// n: next
|
|
4
6
|
// e: error (called whenever something throws)
|
|
5
7
|
// f: finish (always called at the end)
|
|
6
|
-
|
|
7
8
|
export default function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
8
9
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
9
|
-
|
|
10
10
|
if (!it) {
|
|
11
11
|
// Fallback for engines without symbol support
|
|
12
12
|
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
13
13
|
if (it) o = it;
|
|
14
14
|
var i = 0;
|
|
15
|
-
|
|
16
15
|
var F = function () {};
|
|
17
|
-
|
|
18
16
|
return {
|
|
19
17
|
s: F,
|
|
20
18
|
n: function () {
|
|
@@ -32,13 +30,11 @@ export default function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
32
30
|
f: F
|
|
33
31
|
};
|
|
34
32
|
}
|
|
35
|
-
|
|
36
33
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
37
34
|
}
|
|
38
|
-
|
|
39
35
|
var normalCompletion = true,
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
didErr = false,
|
|
37
|
+
err;
|
|
42
38
|
return {
|
|
43
39
|
s: function () {
|
|
44
40
|
it = it.call(o);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import unsupportedIterableToArray from "../unsupportedIterableToArray/unsupportedIterableToArray.js";
|
|
3
3
|
export default function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
4
4
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
5
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
6
|
-
|
|
5
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
6
|
+
// Fallback for engines without symbol support
|
|
7
7
|
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
8
8
|
if (it) o = it;
|
|
9
9
|
var i = 0;
|
|
@@ -17,6 +17,5 @@ export default function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
|
|
21
20
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22
21
|
}
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
export default function _createRawReactElement(type, props, key, children) {
|
|
3
3
|
if (!REACT_ELEMENT_TYPE) {
|
|
4
4
|
// eslint-disable-next-line no-native-reassign
|
|
5
|
-
REACT_ELEMENT_TYPE = typeof Symbol === "function" &&
|
|
5
|
+
REACT_ELEMENT_TYPE = typeof Symbol === "function" &&
|
|
6
|
+
// "for" is a reserved keyword in ES3 so escaping it here for backward compatibility
|
|
6
7
|
Symbol["for"] && Symbol["for"]("react.element") || 0xeac7;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
9
|
var defaultProps = type && type.defaultProps;
|
|
10
10
|
var childrenLength = arguments.length - 3;
|
|
11
|
-
|
|
12
11
|
if (!props && childrenLength !== 0) {
|
|
13
12
|
// If we're going to assign props.children, we create a new object now
|
|
14
13
|
// to avoid mutating defaultProps.
|
|
@@ -16,19 +15,15 @@ export default function _createRawReactElement(type, props, key, children) {
|
|
|
16
15
|
children: void 0
|
|
17
16
|
};
|
|
18
17
|
}
|
|
19
|
-
|
|
20
18
|
if (childrenLength === 1) {
|
|
21
19
|
props.children = children;
|
|
22
20
|
} else if (childrenLength > 1) {
|
|
23
21
|
var childArray = new Array(childrenLength);
|
|
24
|
-
|
|
25
22
|
for (var i = 0; i < childrenLength; i++) {
|
|
26
23
|
childArray[i] = arguments[i + 3];
|
|
27
24
|
}
|
|
28
|
-
|
|
29
25
|
props.children = childArray;
|
|
30
26
|
}
|
|
31
|
-
|
|
32
27
|
if (props && defaultProps) {
|
|
33
28
|
for (var propName in defaultProps) {
|
|
34
29
|
if (props[propName] === void 0) {
|
|
@@ -38,7 +33,6 @@ export default function _createRawReactElement(type, props, key, children) {
|
|
|
38
33
|
} else if (!props) {
|
|
39
34
|
props = defaultProps || {};
|
|
40
35
|
}
|
|
41
|
-
|
|
42
36
|
return {
|
|
43
37
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
44
38
|
type: type,
|
|
@@ -6,17 +6,15 @@ export default function _createSuper(Derived) {
|
|
|
6
6
|
return function _createSuperInternal() {
|
|
7
7
|
var Super = getPrototypeOf(Derived);
|
|
8
8
|
var result;
|
|
9
|
-
|
|
10
9
|
if (hasNativeReflectConstruct) {
|
|
11
10
|
// NOTE: This doesn't work if this.__proto__.constructor has been modified.
|
|
12
|
-
var NewTarget = getPrototypeOf(this).constructor;
|
|
13
|
-
|
|
11
|
+
var NewTarget = getPrototypeOf(this).constructor;
|
|
12
|
+
// eslint-disable-next-line prefer-rest-params
|
|
14
13
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
15
14
|
} else {
|
|
16
15
|
// eslint-disable-next-line prefer-rest-params
|
|
17
16
|
result = Super.apply(this, arguments);
|
|
18
17
|
}
|
|
19
|
-
|
|
20
18
|
return possibleConstructorReturn(this, result);
|
|
21
19
|
};
|
|
22
20
|
}
|