@swc/core 1.2.105 → 1.2.106
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/Visitor.d.ts +3 -3
- package/Visitor.js +6 -6
- package/cspell.json +1 -0
- package/package.json +15 -12
- package/.kodiak.toml +0 -3
package/Visitor.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ export declare class Visitor {
|
|
|
11
11
|
visitTsImportEqualsDeclaration(n: TsImportEqualsDeclaration): ModuleDeclaration;
|
|
12
12
|
visitTsModuleReference(n: TsModuleReference): TsModuleReference;
|
|
13
13
|
visitTsExternalModuleReference(n: TsExternalModuleReference): TsExternalModuleReference;
|
|
14
|
-
|
|
14
|
+
visitExportAllDeclaration(n: ExportAllDeclaration): ModuleDeclaration;
|
|
15
15
|
visitExportDefaultExpression(n: ExportDefaultExpression): ModuleDeclaration;
|
|
16
|
-
|
|
16
|
+
visitExportNamedDeclaration(n: ExportNamedDeclaration): ModuleDeclaration;
|
|
17
17
|
visitExportSpecifiers(nodes: ExportSpecifier[]): ExportSpecifier[];
|
|
18
18
|
visitExportSpecifier(n: ExportSpecifier): ExportSpecifier;
|
|
19
19
|
visitNamedExportSpecifier(n: NamedExportSpecifier): ExportSpecifier;
|
|
@@ -73,7 +73,7 @@ export declare class Visitor {
|
|
|
73
73
|
visitTsEnumMember(n: TsEnumMember): TsEnumMember;
|
|
74
74
|
visitTsEnumMemberId(n: TsEnumMemberId): TsEnumMemberId;
|
|
75
75
|
visitFunctionDeclaration(decl: FunctionDeclaration): Declaration;
|
|
76
|
-
|
|
76
|
+
visitClassDeclaration(decl: ClassDeclaration): Declaration;
|
|
77
77
|
visitClassBody(members: ClassMember[]): ClassMember[];
|
|
78
78
|
visitClassMember(member: ClassMember): ClassMember;
|
|
79
79
|
visitTsIndexSignature(n: TsIndexSignature): ClassMember;
|
package/Visitor.js
CHANGED
|
@@ -44,13 +44,13 @@ class Visitor {
|
|
|
44
44
|
case "ExportDefaultDeclaration":
|
|
45
45
|
return this.visitExportDefaultDeclaration(n);
|
|
46
46
|
case "ExportNamedDeclaration":
|
|
47
|
-
return this.
|
|
47
|
+
return this.visitExportNamedDeclaration(n);
|
|
48
48
|
case "ExportDefaultExpression":
|
|
49
49
|
return this.visitExportDefaultExpression(n);
|
|
50
50
|
case "ImportDeclaration":
|
|
51
51
|
return this.visitImportDeclaration(n);
|
|
52
52
|
case "ExportAllDeclaration":
|
|
53
|
-
return this.
|
|
53
|
+
return this.visitExportAllDeclaration(n);
|
|
54
54
|
case "TsImportEqualsDeclaration":
|
|
55
55
|
return this.visitTsImportEqualsDeclaration(n);
|
|
56
56
|
case "TsExportAssignment":
|
|
@@ -86,7 +86,7 @@ class Visitor {
|
|
|
86
86
|
n.expression = this.visitExpression(n.expression);
|
|
87
87
|
return n;
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
visitExportAllDeclaration(n) {
|
|
90
90
|
n.source = this.visitStringLiteral(n.source);
|
|
91
91
|
return n;
|
|
92
92
|
}
|
|
@@ -94,7 +94,7 @@ class Visitor {
|
|
|
94
94
|
n.expression = this.visitExpression(n.expression);
|
|
95
95
|
return n;
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
visitExportNamedDeclaration(n) {
|
|
98
98
|
n.specifiers = this.visitExportSpecifiers(n.specifiers);
|
|
99
99
|
n.source = this.visitOptionalStringLiteral(n.source);
|
|
100
100
|
return n;
|
|
@@ -381,7 +381,7 @@ class Visitor {
|
|
|
381
381
|
visitDeclaration(decl) {
|
|
382
382
|
switch (decl.type) {
|
|
383
383
|
case "ClassDeclaration":
|
|
384
|
-
return this.
|
|
384
|
+
return this.visitClassDeclaration(decl);
|
|
385
385
|
case "FunctionDeclaration":
|
|
386
386
|
return this.visitFunctionDeclaration(decl);
|
|
387
387
|
case "TsEnumDeclaration":
|
|
@@ -496,7 +496,7 @@ class Visitor {
|
|
|
496
496
|
decl = this.visitFunction(decl);
|
|
497
497
|
return decl;
|
|
498
498
|
}
|
|
499
|
-
|
|
499
|
+
visitClassDeclaration(decl) {
|
|
500
500
|
decl = this.visitClass(decl);
|
|
501
501
|
decl.identifier = this.visitIdentifier(decl.identifier);
|
|
502
502
|
return decl;
|
package/cspell.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.106",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"defaults": true,
|
|
32
32
|
"additional": [
|
|
33
33
|
"x86_64-unknown-linux-musl",
|
|
34
|
+
"x86_64-unknown-freebsd",
|
|
34
35
|
"i686-pc-windows-msvc",
|
|
35
36
|
"aarch64-unknown-linux-gnu",
|
|
36
37
|
"armv7-unknown-linux-gnueabihf",
|
|
@@ -49,17 +50,18 @@
|
|
|
49
50
|
"@node-rs/helper": "^1.0.0"
|
|
50
51
|
},
|
|
51
52
|
"optionalDependencies": {
|
|
52
|
-
"@swc/core-win32-x64-msvc": "^1.2.
|
|
53
|
-
"@swc/core-darwin-x64": "^1.2.
|
|
54
|
-
"@swc/core-linux-x64-gnu": "^1.2.
|
|
55
|
-
"@swc/core-linux-x64-musl": "^1.2.
|
|
56
|
-
"@swc/core-
|
|
57
|
-
"@swc/core-
|
|
58
|
-
"@swc/core-linux-
|
|
59
|
-
"@swc/core-
|
|
60
|
-
"@swc/core-
|
|
61
|
-
"@swc/core-
|
|
62
|
-
"@swc/core-
|
|
53
|
+
"@swc/core-win32-x64-msvc": "^1.2.106",
|
|
54
|
+
"@swc/core-darwin-x64": "^1.2.106",
|
|
55
|
+
"@swc/core-linux-x64-gnu": "^1.2.106",
|
|
56
|
+
"@swc/core-linux-x64-musl": "^1.2.106",
|
|
57
|
+
"@swc/core-freebsd-x64": "^1.2.106",
|
|
58
|
+
"@swc/core-win32-ia32-msvc": "^1.2.106",
|
|
59
|
+
"@swc/core-linux-arm64-gnu": "^1.2.106",
|
|
60
|
+
"@swc/core-linux-arm-gnueabihf": "^1.2.106",
|
|
61
|
+
"@swc/core-darwin-arm64": "^1.2.106",
|
|
62
|
+
"@swc/core-android-arm64": "^1.2.106",
|
|
63
|
+
"@swc/core-linux-arm64-musl": "^1.2.106",
|
|
64
|
+
"@swc/core-win32-arm64-msvc": "^1.2.106"
|
|
63
65
|
},
|
|
64
66
|
"types": "./index.d.ts",
|
|
65
67
|
"scripts": {
|
|
@@ -68,6 +70,7 @@
|
|
|
68
70
|
"prepublishOnly": "tsc -d && napi prepublish -p scripts/npm --tagstyle npm",
|
|
69
71
|
"build": "tsc -d && napi build --platform --release --cargo-name node --cargo-flags=\"-p node\"",
|
|
70
72
|
"build:dev": "tsc -d && napi build --platform --cargo-name node --cargo-flags=\"-p node\"",
|
|
73
|
+
"build:ts": "tsc -d",
|
|
71
74
|
"test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest node-swc/__tests__",
|
|
72
75
|
"version": "napi version -p scripts/npm"
|
|
73
76
|
},
|
package/.kodiak.toml
DELETED