@swc/core 1.2.104 → 1.2.105

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +12 -14
package/index.js CHANGED
@@ -34,7 +34,7 @@ exports.DEFAULT_EXTENSIONS = exports.minifySync = exports.minify = exports.bundl
34
34
  __exportStar(require("./types"), exports);
35
35
  const spack_1 = require("./spack");
36
36
  const helper_1 = require("@node-rs/helper");
37
- const bindings = (0, helper_1.loadBinding)(__dirname, "swc", "@swc/core");
37
+ const bindings = helper_1.loadBinding(__dirname, "swc", "@swc/core");
38
38
  /**
39
39
  * Version of the swc binding.
40
40
  */
@@ -166,7 +166,7 @@ class Compiler {
166
166
  }
167
167
  bundle(options) {
168
168
  return __awaiter(this, void 0, void 0, function* () {
169
- const opts = yield (0, spack_1.compileBundleOptions)(options);
169
+ const opts = yield spack_1.compileBundleOptions(options);
170
170
  if (Array.isArray(opts)) {
171
171
  const all = yield Promise.all(opts.map((opt) => __awaiter(this, void 0, void 0, function* () {
172
172
  return this.bundle(opt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.104",
3
+ "version": "1.2.105",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -36,7 +36,6 @@
36
36
  "armv7-unknown-linux-gnueabihf",
37
37
  "aarch64-apple-darwin",
38
38
  "aarch64-linux-android",
39
- "x86_64-unknown-freebsd",
40
39
  "aarch64-unknown-linux-musl",
41
40
  "aarch64-pc-windows-msvc"
42
41
  ]
@@ -50,18 +49,17 @@
50
49
  "@node-rs/helper": "^1.0.0"
51
50
  },
52
51
  "optionalDependencies": {
53
- "@swc/core-win32-x64-msvc": "1.2.104",
54
- "@swc/core-darwin-x64": "1.2.104",
55
- "@swc/core-linux-x64-gnu": "1.2.104",
56
- "@swc/core-linux-x64-musl": "1.2.104",
57
- "@swc/core-win32-ia32-msvc": "1.2.104",
58
- "@swc/core-linux-arm64-gnu": "1.2.104",
59
- "@swc/core-linux-arm-gnueabihf": "1.2.104",
60
- "@swc/core-darwin-arm64": "1.2.104",
61
- "@swc/core-android-arm64": "1.2.104",
62
- "@swc/core-freebsd-x64": "1.2.104",
63
- "@swc/core-linux-arm64-musl": "1.2.104",
64
- "@swc/core-win32-arm64-msvc": "1.2.104"
52
+ "@swc/core-win32-x64-msvc": "^1.2.105",
53
+ "@swc/core-darwin-x64": "^1.2.105",
54
+ "@swc/core-linux-x64-gnu": "^1.2.105",
55
+ "@swc/core-linux-x64-musl": "^1.2.105",
56
+ "@swc/core-win32-ia32-msvc": "^1.2.105",
57
+ "@swc/core-linux-arm64-gnu": "^1.2.105",
58
+ "@swc/core-linux-arm-gnueabihf": "^1.2.105",
59
+ "@swc/core-darwin-arm64": "^1.2.105",
60
+ "@swc/core-android-arm64": "^1.2.105",
61
+ "@swc/core-linux-arm64-musl": "^1.2.105",
62
+ "@swc/core-win32-arm64-msvc": "^1.2.105"
65
63
  },
66
64
  "types": "./index.d.ts",
67
65
  "scripts": {