@swc/core 1.2.137 → 1.2.141

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": "@swc/core",
3
- "version": "1.2.137",
3
+ "version": "1.2.141",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -47,24 +47,6 @@
47
47
  "registry": "https://registry.npmjs.org/",
48
48
  "access": "public"
49
49
  },
50
- "dependencies": {
51
- "ts-node": "^10.4.0"
52
- },
53
- "optionalDependencies": {
54
- "@swc/core-win32-x64-msvc": "1.2.137",
55
- "@swc/core-darwin-x64": "1.2.137",
56
- "@swc/core-linux-x64-gnu": "1.2.137",
57
- "@swc/core-linux-x64-musl": "1.2.137",
58
- "@swc/core-freebsd-x64": "1.2.137",
59
- "@swc/core-win32-ia32-msvc": "1.2.137",
60
- "@swc/core-linux-arm64-gnu": "1.2.137",
61
- "@swc/core-linux-arm-gnueabihf": "1.2.137",
62
- "@swc/core-darwin-arm64": "1.2.137",
63
- "@swc/core-android-arm64": "1.2.137",
64
- "@swc/core-linux-arm64-musl": "1.2.137",
65
- "@swc/core-win32-arm64-msvc": "1.2.137",
66
- "@swc/core-android-arm-eabi": "1.2.137"
67
- },
68
50
  "types": "./index.d.ts",
69
51
  "scripts": {
70
52
  "changelog": "git cliff --output CHANGELOG.md",
@@ -114,10 +96,26 @@
114
96
  "source-map-support": "^0.5.19",
115
97
  "sourcemap-validator": "^2.1.0",
116
98
  "terser": "^5.7.1",
99
+ "ts-node": "^10.5.0",
117
100
  "typescript": "^4.5.2"
118
101
  },
119
102
  "funding": {
120
103
  "type": "opencollective",
121
104
  "url": "https://opencollective.com/swc"
105
+ },
106
+ "optionalDependencies": {
107
+ "@swc/core-win32-x64-msvc": "1.2.141",
108
+ "@swc/core-darwin-x64": "1.2.141",
109
+ "@swc/core-linux-x64-gnu": "1.2.141",
110
+ "@swc/core-linux-x64-musl": "1.2.141",
111
+ "@swc/core-freebsd-x64": "1.2.141",
112
+ "@swc/core-win32-ia32-msvc": "1.2.141",
113
+ "@swc/core-linux-arm64-gnu": "1.2.141",
114
+ "@swc/core-linux-arm-gnueabihf": "1.2.141",
115
+ "@swc/core-darwin-arm64": "1.2.141",
116
+ "@swc/core-android-arm64": "1.2.141",
117
+ "@swc/core-linux-arm64-musl": "1.2.141",
118
+ "@swc/core-win32-arm64-msvc": "1.2.141",
119
+ "@swc/core-android-arm-eabi": "1.2.141"
122
120
  }
123
121
  }
package/types.d.ts CHANGED
@@ -420,7 +420,7 @@ export interface EsParserConfig {
420
420
  importAssertions?: boolean;
421
421
  }
422
422
  /**
423
- * Options for trasnform.
423
+ * Options for transform.
424
424
  */
425
425
  export interface TransformConfig {
426
426
  /**
@@ -960,7 +960,7 @@ export declare type Literal = StringLiteral | BooleanLiteral | NullLiteral | Num
960
960
  export interface StringLiteral extends Node, HasSpan {
961
961
  type: "StringLiteral";
962
962
  value: string;
963
- has_escape: boolean;
963
+ hasEscape: boolean;
964
964
  }
965
965
  export interface BooleanLiteral extends Node, HasSpan {
966
966
  type: "BooleanLiteral";