@jsenv/plugin-transpilation 1.3.12 → 1.3.13
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/package.json +34 -34
- package/src/babel/babel_helper_directory/babel_helpers/asyncIterator/asyncIterator.js +4 -1
- package/src/babel/babel_helper_directory/babel_helpers/isNativeReflectConstruct/isNativeReflectConstruct.js +1 -1
- package/src/babel/babel_helper_directory/babel_helpers/objectWithoutProperties/objectWithoutProperties.js +1 -1
- package/src/babel/babel_helper_directory/babel_helpers/objectWithoutPropertiesLoose/objectWithoutPropertiesLoose.js +1 -1
- package/src/babel/babel_helper_directory/babel_helpers/setFunctionName/setFunctionName.js +1 -0
- package/src/babel/babel_helper_directory/babel_helpers/writeOnlyError/writeOnlyError.js +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-transpilation",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,42 +20,42 @@
|
|
|
20
20
|
"/src/"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@babel/plugin-transform-json-strings": "7.
|
|
24
|
-
"@babel/plugin-transform-numeric-separator": "7.
|
|
25
|
-
"@babel/plugin-transform-object-rest-spread": "7.
|
|
26
|
-
"@babel/plugin-transform-optional-catch-binding": "7.
|
|
27
|
-
"@babel/plugin-transform-optional-chaining": "7.
|
|
28
|
-
"@babel/plugin-transform-unicode-property-regex": "7.
|
|
29
|
-
"@babel/plugin-syntax-import-assertions": "7.
|
|
23
|
+
"@babel/plugin-transform-json-strings": "7.24.7",
|
|
24
|
+
"@babel/plugin-transform-numeric-separator": "7.24.7",
|
|
25
|
+
"@babel/plugin-transform-object-rest-spread": "7.24.7",
|
|
26
|
+
"@babel/plugin-transform-optional-catch-binding": "7.24.7",
|
|
27
|
+
"@babel/plugin-transform-optional-chaining": "7.24.7",
|
|
28
|
+
"@babel/plugin-transform-unicode-property-regex": "7.24.7",
|
|
29
|
+
"@babel/plugin-syntax-import-assertions": "7.24.7",
|
|
30
30
|
"@babel/plugin-syntax-object-rest-spread": "7.8.3",
|
|
31
31
|
"@babel/plugin-syntax-optional-catch-binding": "7.8.3",
|
|
32
|
-
"@babel/plugin-transform-arrow-functions": "7.
|
|
33
|
-
"@babel/plugin-transform-block-scoped-functions": "7.
|
|
34
|
-
"@babel/plugin-transform-block-scoping": "7.
|
|
35
|
-
"@babel/plugin-transform-classes": "7.
|
|
36
|
-
"@babel/plugin-transform-computed-properties": "7.
|
|
37
|
-
"@babel/plugin-transform-destructuring": "7.
|
|
38
|
-
"@babel/plugin-transform-dotall-regex": "7.
|
|
39
|
-
"@babel/plugin-transform-duplicate-keys": "7.
|
|
40
|
-
"@babel/plugin-transform-exponentiation-operator": "7.
|
|
41
|
-
"@babel/plugin-transform-for-of": "7.
|
|
42
|
-
"@babel/plugin-transform-function-name": "7.
|
|
43
|
-
"@babel/plugin-transform-literals": "7.
|
|
44
|
-
"@babel/plugin-transform-new-target": "7.
|
|
45
|
-
"@babel/plugin-transform-object-super": "7.
|
|
46
|
-
"@babel/plugin-transform-parameters": "7.
|
|
47
|
-
"@babel/plugin-transform-regenerator": "7.
|
|
48
|
-
"@babel/plugin-transform-shorthand-properties": "7.
|
|
49
|
-
"@babel/plugin-transform-spread": "7.
|
|
50
|
-
"@babel/plugin-transform-sticky-regex": "7.
|
|
51
|
-
"@babel/plugin-transform-template-literals": "7.
|
|
52
|
-
"@babel/plugin-transform-typeof-symbol": "7.
|
|
53
|
-
"@babel/plugin-transform-unicode-regex": "7.
|
|
54
|
-
"@jsenv/ast": "6.0.
|
|
55
|
-
"@jsenv/js-module-fallback": "1.3.
|
|
56
|
-
"@jsenv/runtime-compat": "1.
|
|
32
|
+
"@babel/plugin-transform-arrow-functions": "7.24.7",
|
|
33
|
+
"@babel/plugin-transform-block-scoped-functions": "7.24.7",
|
|
34
|
+
"@babel/plugin-transform-block-scoping": "7.24.7",
|
|
35
|
+
"@babel/plugin-transform-classes": "7.24.7",
|
|
36
|
+
"@babel/plugin-transform-computed-properties": "7.24.7",
|
|
37
|
+
"@babel/plugin-transform-destructuring": "7.24.7",
|
|
38
|
+
"@babel/plugin-transform-dotall-regex": "7.24.7",
|
|
39
|
+
"@babel/plugin-transform-duplicate-keys": "7.24.7",
|
|
40
|
+
"@babel/plugin-transform-exponentiation-operator": "7.24.7",
|
|
41
|
+
"@babel/plugin-transform-for-of": "7.24.7",
|
|
42
|
+
"@babel/plugin-transform-function-name": "7.24.7",
|
|
43
|
+
"@babel/plugin-transform-literals": "7.24.7",
|
|
44
|
+
"@babel/plugin-transform-new-target": "7.24.7",
|
|
45
|
+
"@babel/plugin-transform-object-super": "7.24.7",
|
|
46
|
+
"@babel/plugin-transform-parameters": "7.24.7",
|
|
47
|
+
"@babel/plugin-transform-regenerator": "7.24.7",
|
|
48
|
+
"@babel/plugin-transform-shorthand-properties": "7.24.7",
|
|
49
|
+
"@babel/plugin-transform-spread": "7.24.7",
|
|
50
|
+
"@babel/plugin-transform-sticky-regex": "7.24.7",
|
|
51
|
+
"@babel/plugin-transform-template-literals": "7.24.7",
|
|
52
|
+
"@babel/plugin-transform-typeof-symbol": "7.24.7",
|
|
53
|
+
"@babel/plugin-transform-unicode-regex": "7.24.7",
|
|
54
|
+
"@jsenv/ast": "6.0.4",
|
|
55
|
+
"@jsenv/js-module-fallback": "1.3.13",
|
|
56
|
+
"@jsenv/runtime-compat": "1.3.0",
|
|
57
57
|
"babel-plugin-transform-async-to-promises": "0.8.18",
|
|
58
58
|
"construct-style-sheets-polyfill": "3.1.0",
|
|
59
|
-
"lightningcss": "1.
|
|
59
|
+
"lightningcss": "1.25.1"
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -44,7 +44,10 @@ function AsyncFromSyncIterator(s) {
|
|
|
44
44
|
},
|
|
45
45
|
throw: function (value) {
|
|
46
46
|
var thr = this.s.return;
|
|
47
|
-
if (thr === undefined)
|
|
47
|
+
if (thr === undefined) {
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
|
|
49
|
+
return Promise.reject(maybeError);
|
|
50
|
+
}
|
|
48
51
|
return AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
|
|
49
52
|
},
|
|
50
53
|
};
|
|
@@ -11,7 +11,7 @@ export default function _isNativeReflectConstruct() {
|
|
|
11
11
|
var result = !Boolean.prototype.valueOf.call(
|
|
12
12
|
Reflect.construct(Boolean, [], function () {}),
|
|
13
13
|
);
|
|
14
|
-
} catch (
|
|
14
|
+
} catch (_) {}
|
|
15
15
|
// @ts-expect-error assign to function
|
|
16
16
|
return (_isNativeReflectConstruct = function () {
|
|
17
17
|
return !!result;
|
|
@@ -10,7 +10,7 @@ export default (source, excluded) => {
|
|
|
10
10
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
11
11
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
12
12
|
key = sourceSymbolKeys[i];
|
|
13
|
-
if (excluded.
|
|
13
|
+
if (excluded.includes(key)) continue;
|
|
14
14
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
15
15
|
target[key] = source[key];
|
|
16
16
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// https://tc39.es/ecma262/#sec-setfunctionname
|
|
4
4
|
export default function setFunctionName(fn, name, prefix) {
|
|
5
5
|
if (typeof name === "symbol") {
|
|
6
|
+
// Here `undefined` is possible, we check for it in the next line.
|
|
6
7
|
name = name.description;
|
|
7
8
|
name = name ? "[" + name + "]" : "";
|
|
8
9
|
}
|