@swc/core 1.2.101 → 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.
package/.kodiak.toml ADDED
@@ -0,0 +1,3 @@
1
+ # .kodiak.toml
2
+ # Minimal config. version is the only required field.
3
+ version = 1
package/cspell.json CHANGED
@@ -25,6 +25,7 @@
25
25
  "cname",
26
26
  "combinator",
27
27
  "Combinator",
28
+ "cond",
28
29
  "Cond",
29
30
  "constness",
30
31
  "corejs",
@@ -89,6 +90,7 @@
89
90
  "pointee",
90
91
  "prec",
91
92
  "PREC",
93
+ "proto",
92
94
  "punct",
93
95
  "putc",
94
96
  "qself",
@@ -108,14 +110,17 @@
108
110
  "stmts",
109
111
  "succ",
110
112
  "sugg",
113
+ "swcify",
111
114
  "swcpack",
112
115
  "swcrc",
116
+ "systemjs",
113
117
  "termcolor",
114
118
  "typeofs",
115
119
  "uncons",
116
120
  "Unexported",
117
121
  "Unexporter",
118
- "unimpl"
122
+ "unimpl",
123
+ "untrusted"
119
124
  ],
120
125
  "flagWords": [
121
126
  "actally"
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.101",
3
+ "version": "1.2.105",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -48,6 +48,19 @@
48
48
  "dependencies": {
49
49
  "@node-rs/helper": "^1.0.0"
50
50
  },
51
+ "optionalDependencies": {
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"
63
+ },
51
64
  "types": "./index.d.ts",
52
65
  "scripts": {
53
66
  "prepare": "husky install",
@@ -93,18 +106,5 @@
93
106
  "funding": {
94
107
  "type": "opencollective",
95
108
  "url": "https://opencollective.com/swc"
96
- },
97
- "optionalDependencies": {
98
- "@swc/core-win32-x64-msvc": "1.2.101",
99
- "@swc/core-darwin-x64": "1.2.101",
100
- "@swc/core-linux-x64-gnu": "1.2.101",
101
- "@swc/core-linux-x64-musl": "1.2.101",
102
- "@swc/core-win32-ia32-msvc": "1.2.101",
103
- "@swc/core-linux-arm64-gnu": "1.2.101",
104
- "@swc/core-linux-arm-gnueabihf": "1.2.101",
105
- "@swc/core-darwin-arm64": "1.2.101",
106
- "@swc/core-android-arm64": "1.2.101",
107
- "@swc/core-linux-arm64-musl": "1.2.101",
108
- "@swc/core-win32-arm64-msvc": "1.2.101"
109
109
  }
110
110
  }
package/types.d.ts CHANGED
@@ -333,7 +333,7 @@ export interface JscConfig {
333
333
  };
334
334
  minify?: JsMinifyOptions;
335
335
  }
336
- export declare type JscTarget = "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021";
336
+ export declare type JscTarget = "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022";
337
337
  export declare type ParserConfig = TsParserConfig | EsParserConfig;
338
338
  export interface TsParserConfig {
339
339
  syntax: "typescript";