oxc-transform 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 +9 -9
  2. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -20,13 +20,6 @@ export interface CompilerAssumptions {
20
20
  setPublicClassFields?: boolean
21
21
  }
22
22
 
23
- export interface Error {
24
- severity: Severity
25
- message: string
26
- labels: Array<ErrorLabel>
27
- helpMessage?: string
28
- }
29
-
30
23
  export interface ErrorLabel {
31
24
  message?: string
32
25
  start: number
@@ -85,7 +78,7 @@ export interface IsolatedDeclarationsOptions {
85
78
  export interface IsolatedDeclarationsResult {
86
79
  code: string
87
80
  map?: SourceMap
88
- errors: Array<Error>
81
+ errors: Array<OxcError>
89
82
  }
90
83
 
91
84
  /**
@@ -183,6 +176,13 @@ export interface JsxOptions {
183
176
  refresh?: boolean | ReactRefreshOptions
184
177
  }
185
178
 
179
+ export interface OxcError {
180
+ severity: Severity
181
+ message: string
182
+ labels: Array<ErrorLabel>
183
+ helpMessage?: string
184
+ }
185
+
186
186
  export interface ReactRefreshOptions {
187
187
  /**
188
188
  * Specify the identifier of the refresh registration variable.
@@ -332,7 +332,7 @@ export interface TransformResult {
332
332
  * transformed code may still be available even if there are errors in this
333
333
  * list.
334
334
  */
335
- errors: Array<Error>
335
+ errors: Array<OxcError>
336
336
  }
337
337
 
338
338
  export interface TypeScriptOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxc-transform",
3
- "version": "0.40.0",
3
+ "version": "0.40.1",
4
4
  "description": "Oxc transform Node API",
5
5
  "keywords": [
6
6
  "transform"
@@ -23,13 +23,13 @@
23
23
  "index.js"
24
24
  ],
25
25
  "optionalDependencies": {
26
- "@oxc-transform/binding-win32-x64-msvc": "0.40.0",
27
- "@oxc-transform/binding-win32-arm64-msvc": "0.40.0",
28
- "@oxc-transform/binding-linux-x64-gnu": "0.40.0",
29
- "@oxc-transform/binding-linux-arm64-gnu": "0.40.0",
30
- "@oxc-transform/binding-linux-x64-musl": "0.40.0",
31
- "@oxc-transform/binding-linux-arm64-musl": "0.40.0",
32
- "@oxc-transform/binding-darwin-x64": "0.40.0",
33
- "@oxc-transform/binding-darwin-arm64": "0.40.0"
26
+ "@oxc-transform/binding-win32-x64-msvc": "0.40.1",
27
+ "@oxc-transform/binding-win32-arm64-msvc": "0.40.1",
28
+ "@oxc-transform/binding-linux-x64-gnu": "0.40.1",
29
+ "@oxc-transform/binding-linux-arm64-gnu": "0.40.1",
30
+ "@oxc-transform/binding-linux-x64-musl": "0.40.1",
31
+ "@oxc-transform/binding-linux-arm64-musl": "0.40.1",
32
+ "@oxc-transform/binding-darwin-x64": "0.40.1",
33
+ "@oxc-transform/binding-darwin-arm64": "0.40.1"
34
34
  }
35
35
  }