@modern-js/babel-compiler 2.58.3 → 2.60.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.
@@ -1,9 +1,9 @@
1
1
  import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
2
+ import { _ as _call_super } from "@swc/helpers/_/_call_super";
2
3
  import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
3
4
  import { _ as _inherits } from "@swc/helpers/_/_inherits";
4
5
  import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
5
6
  import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
6
- import { _ as _create_super } from "@swc/helpers/_/_create_super";
7
7
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
8
8
  import * as Event from "events";
9
9
  import * as path from "path";
@@ -18,10 +18,9 @@ var BuildWatchEvent = {
18
18
  var BuildWatchEmitter = /* @__PURE__ */ function(_Event_EventEmitter) {
19
19
  "use strict";
20
20
  _inherits(BuildWatchEmitter2, _Event_EventEmitter);
21
- var _super = _create_super(BuildWatchEmitter2);
22
21
  function BuildWatchEmitter2() {
23
22
  _class_call_check(this, BuildWatchEmitter2);
24
- return _super.apply(this, arguments);
23
+ return _call_super(this, BuildWatchEmitter2, arguments);
25
24
  }
26
25
  var _proto = BuildWatchEmitter2.prototype;
27
26
  _proto.setInitFn = function setInitFn(fn) {
@@ -13,7 +13,7 @@ var CompilerErrorResult = /* @__PURE__ */ function() {
13
13
  _proto.update = function update(messageDetails) {
14
14
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
15
15
  try {
16
- var _this = this, _loop = function() {
16
+ var _this, _loop = function() {
17
17
  var messageDetail = _step.value;
18
18
  var addError = !_this._messageDetails.some(function(detail) {
19
19
  if (detail.filename === messageDetail.filename) {
@@ -27,7 +27,7 @@ var CompilerErrorResult = /* @__PURE__ */ function() {
27
27
  }
28
28
  };
29
29
  for (var _iterator = messageDetails[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)
30
- _loop();
30
+ _this = this, _loop();
31
31
  } catch (err) {
32
32
  _didIteratorError = true;
33
33
  _iteratorError = err;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.58.3",
18
+ "version": "2.60.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/core": "^7.24.7",
35
- "@swc/helpers": "0.5.3",
36
- "@modern-js/utils": "2.58.3"
35
+ "@swc/helpers": "0.5.13",
36
+ "@modern-js/utils": "2.60.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@babel/plugin-transform-classes": "^7.22.15",
@@ -44,8 +44,8 @@
44
44
  "@types/node": "^14",
45
45
  "jest": "^29",
46
46
  "typescript": "^5",
47
- "@scripts/build": "2.58.3",
48
- "@scripts/jest-config": "2.58.3"
47
+ "@scripts/build": "2.60.0",
48
+ "@scripts/jest-config": "2.60.0"
49
49
  },
50
50
  "sideEffects": false,
51
51
  "publishConfig": {