@swc/core 1.2.112 → 1.2.116

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/cspell.json CHANGED
@@ -41,6 +41,8 @@
41
41
  "deps",
42
42
  "Deque",
43
43
  "Deser",
44
+ "deserialization",
45
+ "docsrs",
44
46
  "dont",
45
47
  "DWORD",
46
48
  "ecma",
@@ -130,4 +132,4 @@
130
132
  "flagWords": [
131
133
  "actally"
132
134
  ]
133
- }
135
+ }
package/deny.toml CHANGED
@@ -75,6 +75,7 @@ allow = [
75
75
  "MIT",
76
76
  "Apache-2.0",
77
77
  "BSD-2-Clause",
78
+ "BSD-2-Clause-Patent",
78
79
  "BSD-3-Clause",
79
80
  "CC0-1.0",
80
81
  "ISC",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.112",
3
+ "version": "1.2.116",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -50,18 +50,18 @@
50
50
  "@node-rs/helper": "^1.0.0"
51
51
  },
52
52
  "optionalDependencies": {
53
- "@swc/core-win32-x64-msvc": "^1.2.112",
54
- "@swc/core-darwin-x64": "^1.2.112",
55
- "@swc/core-linux-x64-gnu": "^1.2.112",
56
- "@swc/core-linux-x64-musl": "^1.2.112",
57
- "@swc/core-freebsd-x64": "^1.2.112",
58
- "@swc/core-win32-ia32-msvc": "^1.2.112",
59
- "@swc/core-linux-arm64-gnu": "^1.2.112",
60
- "@swc/core-linux-arm-gnueabihf": "^1.2.112",
61
- "@swc/core-darwin-arm64": "^1.2.112",
62
- "@swc/core-android-arm64": "^1.2.112",
63
- "@swc/core-linux-arm64-musl": "^1.2.112",
64
- "@swc/core-win32-arm64-msvc": "^1.2.112"
53
+ "@swc/core-win32-x64-msvc": "^1.2.116",
54
+ "@swc/core-darwin-x64": "^1.2.116",
55
+ "@swc/core-linux-x64-gnu": "^1.2.116",
56
+ "@swc/core-linux-x64-musl": "^1.2.116",
57
+ "@swc/core-freebsd-x64": "^1.2.116",
58
+ "@swc/core-win32-ia32-msvc": "^1.2.116",
59
+ "@swc/core-linux-arm64-gnu": "^1.2.116",
60
+ "@swc/core-linux-arm-gnueabihf": "^1.2.116",
61
+ "@swc/core-darwin-arm64": "^1.2.116",
62
+ "@swc/core-android-arm64": "^1.2.116",
63
+ "@swc/core-linux-arm64-musl": "^1.2.116",
64
+ "@swc/core-win32-arm64-msvc": "^1.2.116"
65
65
  },
66
66
  "types": "./index.d.ts",
67
67
  "scripts": {
@@ -87,8 +87,11 @@
87
87
  "@swc/helpers": "^0.2.10",
88
88
  "@types/jest": "^26.0.23",
89
89
  "@types/node": "^14.14.41",
90
+ "acorn": "^8.6.0",
91
+ "acorn-jsx": "^5.3.2",
90
92
  "axios": "^0.21.1",
91
93
  "babel-plugin-transform-node-env-inline": "^0.4.3",
94
+ "benchmark": "^2.1.4",
92
95
  "class-validator": "^0.13.1",
93
96
  "core-js": "^2.6.11",
94
97
  "cross-env": "^7.0.3",
@@ -1,24 +0,0 @@
1
- Visitor pattern implementation for Babel AST.
2
-
3
- ### Example
4
-
5
- ```rust
6
- // Visit all Identifier nodes in the Babel AST and change the optional field to
7
- // Some(true) for each of them.
8
-
9
- use swc_babel_visit::{VisitMut, VisitMutWith};
10
- use swc_babel_ast::{Identifier, File};
11
-
12
- struct Visitor;
13
-
14
- impl VisitMut for Visitor {
15
- fn visit_mut_identifier(&mut self, node: &mut Identifier) {
16
- node.optional = Some(true);
17
- }
18
- }
19
-
20
- let ast: File = get_babel_ast();
21
- let mut v = Visitor {};
22
- ast.visit_mut_with(&mut v);
23
- ```
24
-