oxc-parser 0.40.0 → 0.40.1

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.
Files changed (2) hide show
  1. package/index.d.ts +8 -8
  2. package/package.json +10 -10
package/index.d.ts CHANGED
@@ -26,7 +26,7 @@ export declare class ParseResult {
26
26
  get program(): import("@oxc-project/types").Program
27
27
  get module(): EcmaScriptModule
28
28
  get comments(): Array<Comment>
29
- get errors(): Array<Error>
29
+ get errors(): Array<OxcError>
30
30
  get magicString(): MagicString
31
31
  }
32
32
 
@@ -54,13 +54,6 @@ export interface EcmaScriptModule {
54
54
  importMetas: Array<Span>
55
55
  }
56
56
 
57
- export interface Error {
58
- severity: Severity
59
- message: string
60
- labels: Array<ErrorLabel>
61
- helpMessage?: string
62
- }
63
-
64
57
  export interface ErrorLabel {
65
58
  message?: string
66
59
  start: number
@@ -145,6 +138,13 @@ export interface OverwriteOptions {
145
138
  contentOnly: boolean
146
139
  }
147
140
 
141
+ export interface OxcError {
142
+ severity: Severity
143
+ message: string
144
+ labels: Array<ErrorLabel>
145
+ helpMessage?: string
146
+ }
147
+
148
148
  /**
149
149
  * Parse asynchronously.
150
150
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxc-parser",
3
- "version": "0.40.0",
3
+ "version": "0.40.1",
4
4
  "description": "Oxc Parser Node API",
5
5
  "keywords": [
6
6
  "Parser"
@@ -24,16 +24,16 @@
24
24
  "bindings.js"
25
25
  ],
26
26
  "dependencies": {
27
- "@oxc-project/types": "^0.40.0"
27
+ "@oxc-project/types": "^0.40.1"
28
28
  },
29
29
  "optionalDependencies": {
30
- "@oxc-parser/binding-win32-x64-msvc": "0.40.0",
31
- "@oxc-parser/binding-win32-arm64-msvc": "0.40.0",
32
- "@oxc-parser/binding-linux-x64-gnu": "0.40.0",
33
- "@oxc-parser/binding-linux-arm64-gnu": "0.40.0",
34
- "@oxc-parser/binding-linux-x64-musl": "0.40.0",
35
- "@oxc-parser/binding-linux-arm64-musl": "0.40.0",
36
- "@oxc-parser/binding-darwin-x64": "0.40.0",
37
- "@oxc-parser/binding-darwin-arm64": "0.40.0"
30
+ "@oxc-parser/binding-win32-x64-msvc": "0.40.1",
31
+ "@oxc-parser/binding-win32-arm64-msvc": "0.40.1",
32
+ "@oxc-parser/binding-linux-x64-gnu": "0.40.1",
33
+ "@oxc-parser/binding-linux-arm64-gnu": "0.40.1",
34
+ "@oxc-parser/binding-linux-x64-musl": "0.40.1",
35
+ "@oxc-parser/binding-linux-arm64-musl": "0.40.1",
36
+ "@oxc-parser/binding-darwin-x64": "0.40.1",
37
+ "@oxc-parser/binding-darwin-arm64": "0.40.1"
38
38
  }
39
39
  }