@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-transpilation",
3
- "version": "1.3.12",
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.23.4",
24
- "@babel/plugin-transform-numeric-separator": "7.23.4",
25
- "@babel/plugin-transform-object-rest-spread": "7.23.4",
26
- "@babel/plugin-transform-optional-catch-binding": "7.23.4",
27
- "@babel/plugin-transform-optional-chaining": "7.23.4",
28
- "@babel/plugin-transform-unicode-property-regex": "7.23.3",
29
- "@babel/plugin-syntax-import-assertions": "7.23.3",
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.23.3",
33
- "@babel/plugin-transform-block-scoped-functions": "7.23.3",
34
- "@babel/plugin-transform-block-scoping": "7.23.4",
35
- "@babel/plugin-transform-classes": "7.23.8",
36
- "@babel/plugin-transform-computed-properties": "7.23.3",
37
- "@babel/plugin-transform-destructuring": "7.23.3",
38
- "@babel/plugin-transform-dotall-regex": "7.23.3",
39
- "@babel/plugin-transform-duplicate-keys": "7.23.3",
40
- "@babel/plugin-transform-exponentiation-operator": "7.23.3",
41
- "@babel/plugin-transform-for-of": "7.23.6",
42
- "@babel/plugin-transform-function-name": "7.23.3",
43
- "@babel/plugin-transform-literals": "7.23.3",
44
- "@babel/plugin-transform-new-target": "7.23.3",
45
- "@babel/plugin-transform-object-super": "7.23.3",
46
- "@babel/plugin-transform-parameters": "7.23.3",
47
- "@babel/plugin-transform-regenerator": "7.23.3",
48
- "@babel/plugin-transform-shorthand-properties": "7.23.3",
49
- "@babel/plugin-transform-spread": "7.23.3",
50
- "@babel/plugin-transform-sticky-regex": "7.23.3",
51
- "@babel/plugin-transform-template-literals": "7.23.3",
52
- "@babel/plugin-transform-typeof-symbol": "7.23.3",
53
- "@babel/plugin-transform-unicode-regex": "7.23.3",
54
- "@jsenv/ast": "6.0.3",
55
- "@jsenv/js-module-fallback": "1.3.12",
56
- "@jsenv/runtime-compat": "1.2.2",
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.23.0"
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) return Promise.reject(value);
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 (e) {}
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.indexOf(key) >= 0) continue;
13
+ if (excluded.includes(key)) continue;
14
14
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
15
15
  target[key] = source[key];
16
16
  }
@@ -6,7 +6,7 @@ export default (source, excluded) => {
6
6
  var i;
7
7
  for (i = 0; i < sourceKeys.length; i++) {
8
8
  key = sourceKeys[i];
9
- if (excluded.indexOf(key) >= 0) continue;
9
+ if (excluded.includes(key)) continue;
10
10
  target[key] = source[key];
11
11
  }
12
12
  return target;
@@ -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
  }
@@ -1,4 +1,3 @@
1
- export default function (name) {
2
- // eslint-disable-next-line prefer-template
3
- throw new TypeError(name + " is write-only");
1
+ export default function _writeOnlyError(name) {
2
+ throw new TypeError('"' + name + '" is write-only');
4
3
  }