@aiot-toolkit/parser 2.0.5-beta.3 → 2.0.5-beta.4

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.
@@ -173,11 +173,12 @@ class ScriptToTypescript {
173
173
  baseConfig: {
174
174
  env: {
175
175
  browser: true,
176
- es6: true,
177
- node: true
176
+ node: true,
177
+ es2022: true
178
178
  },
179
179
  parserOptions: {
180
- sourceType: 'module'
180
+ sourceType: 'module',
181
+ ecmaVersion: 'latest'
181
182
  },
182
183
  rules: {
183
184
  '*': 'off',
@@ -193,7 +194,7 @@ class ScriptToTypescript {
193
194
  item.messages.forEach(message => {
194
195
  result.push({
195
196
  filePath: this.options.filePath,
196
- level: message.severity === 2 ? _sharedUtils.Loglevel.ERROR : _sharedUtils.Loglevel.WARN,
197
+ level: _sharedUtils.Loglevel.WARN,
197
198
  message: message.message,
198
199
  position: {
199
200
  startLine: message.line + offsetLine,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiot-toolkit/parser",
3
- "version": "2.0.5-beta.3",
3
+ "version": "2.0.5-beta.4",
4
4
  "description": "Parse the source code of aiot and convert it to the AST (Abstract Syntax Tree) of the target code.",
5
5
  "keywords": [
6
6
  "aiot",
@@ -20,20 +20,20 @@
20
20
  "test": "node ./__tests__/parser.test.js"
21
21
  },
22
22
  "dependencies": {
23
- "@aiot-toolkit/generator": "2.0.5-beta.3",
24
- "@aiot-toolkit/shared-utils": "2.0.5-beta.3",
23
+ "@aiot-toolkit/generator": "2.0.5-beta.4",
24
+ "@aiot-toolkit/shared-utils": "2.0.5-beta.4",
25
25
  "@babel/core": "^7.23.6",
26
26
  "@babel/generator": "^7.24.10",
27
27
  "@babel/parser": "^7.24.8",
28
28
  "@babel/preset-env": "^7.25.4",
29
29
  "@babel/traverse": "^7.23.7",
30
30
  "@babel/types": "^7.23.6",
31
- "aiot-parse5": "^1.0.0",
31
+ "aiot-parse5": "^1.0.2",
32
32
  "colord": "^2.9.3",
33
33
  "css-tree": "npm:aiot-css-tree@^2.3.1",
34
34
  "csstree-validator": "^3.0.0",
35
35
  "eslint": "^8.46.0",
36
- "file-lane": "2.0.5-beta.3",
36
+ "file-lane": "2.0.5-beta.4",
37
37
  "fs-extra": "^11.2.0",
38
38
  "google-protobuf": "^3.21.2",
39
39
  "less": "^4.2.0",
@@ -60,5 +60,5 @@
60
60
  "@types/reserved-words": "^0.1.4",
61
61
  "babel-plugin-tester": "^11.0.4"
62
62
  },
63
- "gitHead": "273b9c3c85c4e199d642fd7aced0f140b7eac496"
63
+ "gitHead": "cfa77c8f2d3916b703ac23a93a9dcc0df1bc261a"
64
64
  }