oxc-transform 0.45.0 → 0.47.0
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/index.d.ts +0 -12
- package/index.js +6 -3
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -205,17 +205,6 @@ export declare const enum Severity {
|
|
|
205
205
|
Advice = 'Advice'
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
export interface SourceMap {
|
|
209
|
-
file?: string
|
|
210
|
-
mappings: string
|
|
211
|
-
names: Array<string>
|
|
212
|
-
sourceRoot?: string
|
|
213
|
-
sources: Array<string>
|
|
214
|
-
sourcesContent?: Array<string>
|
|
215
|
-
version: number
|
|
216
|
-
x_google_ignoreList?: Array<number>
|
|
217
|
-
}
|
|
218
|
-
|
|
219
208
|
/**
|
|
220
209
|
* Transpile a JavaScript or TypeScript into a target ECMAScript version.
|
|
221
210
|
*
|
|
@@ -363,4 +352,3 @@ export interface TypeScriptOptions {
|
|
|
363
352
|
*/
|
|
364
353
|
rewriteImportExtensions?: 'rewrite' | 'remove' | boolean
|
|
365
354
|
}
|
|
366
|
-
|
package/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
// prettier-ignore
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
// @ts-nocheck
|
|
3
4
|
/* auto-generated by NAPI-RS */
|
|
4
5
|
|
|
5
|
-
const {
|
|
6
|
+
const { createRequire } = require('node:module')
|
|
7
|
+
require = createRequire(__filename)
|
|
6
8
|
|
|
9
|
+
const { readFileSync } = require('node:fs')
|
|
7
10
|
let nativeBinding = null
|
|
8
11
|
const loadErrors = []
|
|
9
12
|
|
|
@@ -336,7 +339,7 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
|
336
339
|
nativeBinding = require('./transform.wasi.cjs')
|
|
337
340
|
} catch (err) {
|
|
338
341
|
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
339
|
-
|
|
342
|
+
loadErrors.push(err)
|
|
340
343
|
}
|
|
341
344
|
}
|
|
342
345
|
if (!nativeBinding) {
|
|
@@ -344,7 +347,7 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
|
344
347
|
nativeBinding = require('@oxc-transform/binding-wasm32-wasi')
|
|
345
348
|
} catch (err) {
|
|
346
349
|
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
347
|
-
|
|
350
|
+
loadErrors.push(err)
|
|
348
351
|
}
|
|
349
352
|
}
|
|
350
353
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxc-transform",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
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.
|
|
27
|
-
"@oxc-transform/binding-win32-arm64-msvc": "0.
|
|
28
|
-
"@oxc-transform/binding-linux-x64-gnu": "0.
|
|
29
|
-
"@oxc-transform/binding-linux-arm64-gnu": "0.
|
|
30
|
-
"@oxc-transform/binding-linux-x64-musl": "0.
|
|
31
|
-
"@oxc-transform/binding-linux-arm64-musl": "0.
|
|
32
|
-
"@oxc-transform/binding-darwin-x64": "0.
|
|
33
|
-
"@oxc-transform/binding-darwin-arm64": "0.
|
|
26
|
+
"@oxc-transform/binding-win32-x64-msvc": "0.47.0",
|
|
27
|
+
"@oxc-transform/binding-win32-arm64-msvc": "0.47.0",
|
|
28
|
+
"@oxc-transform/binding-linux-x64-gnu": "0.47.0",
|
|
29
|
+
"@oxc-transform/binding-linux-arm64-gnu": "0.47.0",
|
|
30
|
+
"@oxc-transform/binding-linux-x64-musl": "0.47.0",
|
|
31
|
+
"@oxc-transform/binding-linux-arm64-musl": "0.47.0",
|
|
32
|
+
"@oxc-transform/binding-darwin-x64": "0.47.0",
|
|
33
|
+
"@oxc-transform/binding-darwin-arm64": "0.47.0"
|
|
34
34
|
}
|
|
35
35
|
}
|