oxc-transform 0.46.0 → 0.47.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 (3) hide show
  1. package/index.d.ts +0 -1
  2. package/index.js +6 -3
  3. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -352,4 +352,3 @@ export interface TypeScriptOptions {
352
352
  */
353
353
  rewriteImportExtensions?: 'rewrite' | 'remove' | boolean
354
354
  }
355
-
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 { readFileSync } = require('fs')
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
- console.error(err)
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
- console.error(err)
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.46.0",
3
+ "version": "0.47.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.46.0",
27
- "@oxc-transform/binding-win32-arm64-msvc": "0.46.0",
28
- "@oxc-transform/binding-linux-x64-gnu": "0.46.0",
29
- "@oxc-transform/binding-linux-arm64-gnu": "0.46.0",
30
- "@oxc-transform/binding-linux-x64-musl": "0.46.0",
31
- "@oxc-transform/binding-linux-arm64-musl": "0.46.0",
32
- "@oxc-transform/binding-darwin-x64": "0.46.0",
33
- "@oxc-transform/binding-darwin-arm64": "0.46.0"
26
+ "@oxc-transform/binding-win32-x64-msvc": "0.47.1",
27
+ "@oxc-transform/binding-win32-arm64-msvc": "0.47.1",
28
+ "@oxc-transform/binding-linux-x64-gnu": "0.47.1",
29
+ "@oxc-transform/binding-linux-arm64-gnu": "0.47.1",
30
+ "@oxc-transform/binding-linux-x64-musl": "0.47.1",
31
+ "@oxc-transform/binding-linux-arm64-musl": "0.47.1",
32
+ "@oxc-transform/binding-darwin-x64": "0.47.1",
33
+ "@oxc-transform/binding-darwin-arm64": "0.47.1"
34
34
  }
35
35
  }