oxc-transform
Advanced tools
+24
-15
@@ -188,3 +188,3 @@ /* auto-generated by NAPI-RS */ | ||
| * | ||
| * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx#options} | ||
| * @see {@link https://oxc.rs/docs/guide/usage/transformer/jsx} | ||
| */ | ||
@@ -205,4 +205,2 @@ export interface JsxOptions { | ||
| * @default false | ||
| * | ||
| * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx-development} | ||
| */ | ||
@@ -221,8 +219,4 @@ development?: boolean | ||
| /** | ||
| * Enables `@babel/plugin-transform-react-pure-annotations`. | ||
| * Mark JSX elements and top-level React method calls as pure for tree shaking. | ||
| * | ||
| * It will mark JSX elements and top-level React method calls as pure for tree shaking. | ||
| * | ||
| * @see {@link https://babeljs.io/docs/en/babel-plugin-transform-react-pure-annotations} | ||
| * | ||
| * @default true | ||
@@ -348,3 +342,3 @@ */ | ||
| * | ||
| * @see {@link https://styled-components.com/docs/tooling#babel-plugin} | ||
| * @see {@link https://oxc.rs/docs/guide/usage/transformer/plugins#styled-components} | ||
| */ | ||
@@ -468,5 +462,11 @@ export interface StyledComponentsOptions { | ||
| assumptions?: CompilerAssumptions | ||
| /** Configure how TypeScript is transformed. */ | ||
| /** | ||
| * Configure how TypeScript is transformed. | ||
| * @see {@link https://oxc.rs/docs/guide/usage/transformer/typescript} | ||
| */ | ||
| typescript?: TypeScriptOptions | ||
| /** Configure how TSX and JSX are transformed. */ | ||
| /** | ||
| * Configure how TSX and JSX are transformed. | ||
| * @see {@link https://oxc.rs/docs/guide/usage/transformer/jsx} | ||
| */ | ||
| jsx?: 'preserve' | JsxOptions | ||
@@ -485,3 +485,3 @@ /** | ||
| * | ||
| * @see [esbuild#target](https://esbuild.github.io/api/#target) | ||
| * @see {@link https://oxc.rs/docs/guide/usage/transformer/lowering#target} | ||
| */ | ||
@@ -491,9 +491,18 @@ target?: string | Array<string> | ||
| helpers?: Helpers | ||
| /** Define Plugin */ | ||
| /** | ||
| * Define Plugin | ||
| * @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#define} | ||
| */ | ||
| define?: Record<string, string> | ||
| /** Inject Plugin */ | ||
| /** | ||
| * Inject Plugin | ||
| * @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#inject} | ||
| */ | ||
| inject?: Record<string, string | [string, string]> | ||
| /** Decorator plugin */ | ||
| decorator?: DecoratorOptions | ||
| /** Third-party plugins to use. */ | ||
| /** | ||
| * Third-party plugins to use. | ||
| * @see {@link https://oxc.rs/docs/guide/usage/transformer/plugins} | ||
| */ | ||
| plugins?: PluginsOptions | ||
@@ -500,0 +509,0 @@ } |
+52
-52
@@ -84,4 +84,4 @@ // prettier-ignore | ||
| const bindingPackageVersion = require('@oxc-transform/binding-android-arm64/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -101,4 +101,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-android-arm-eabi/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -123,4 +123,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-win32-x64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -140,4 +140,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-win32-x64-msvc/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -158,4 +158,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-win32-ia32-msvc/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -175,4 +175,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-win32-arm64-msvc/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -195,4 +195,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-darwin-universal/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -212,4 +212,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-darwin-x64/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -229,4 +229,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-darwin-arm64/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -250,4 +250,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-freebsd-x64/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -267,4 +267,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-freebsd-arm64/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -289,4 +289,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-linux-x64-musl/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -306,4 +306,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-linux-x64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -325,4 +325,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-linux-arm64-musl/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -342,4 +342,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-linux-arm64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -361,4 +361,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-linux-arm-musleabihf/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -378,4 +378,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-linux-arm-gnueabihf/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -397,4 +397,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-linux-loong64-musl/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -414,4 +414,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-linux-loong64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -433,4 +433,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-linux-riscv64-musl/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -450,4 +450,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-linux-riscv64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -468,4 +468,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-linux-ppc64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -485,4 +485,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-linux-s390x-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -506,4 +506,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-openharmony-arm64/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -523,4 +523,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-openharmony-x64/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -540,4 +540,4 @@ return binding | ||
| const bindingPackageVersion = require('@oxc-transform/binding-openharmony-arm/package.json').version | ||
| if (bindingPackageVersion !== '0.111.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.111.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.112.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.112.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -544,0 +544,0 @@ return binding |
+23
-23
| { | ||
| "name": "oxc-transform", | ||
| "version": "0.111.0", | ||
| "version": "0.112.0", | ||
| "description": "Oxc Transformer Node API", | ||
@@ -43,4 +43,4 @@ "keywords": [ | ||
| "@types/node": "24.1.0", | ||
| "publint": "0.3.15", | ||
| "vitest": "4.0.15" | ||
| "publint": "0.3.17", | ||
| "vitest": "4.0.18" | ||
| }, | ||
@@ -82,22 +82,22 @@ "napi": { | ||
| "optionalDependencies": { | ||
| "@oxc-transform/binding-darwin-arm64": "0.111.0", | ||
| "@oxc-transform/binding-android-arm64": "0.111.0", | ||
| "@oxc-transform/binding-win32-arm64-msvc": "0.111.0", | ||
| "@oxc-transform/binding-linux-arm64-gnu": "0.111.0", | ||
| "@oxc-transform/binding-linux-arm64-musl": "0.111.0", | ||
| "@oxc-transform/binding-openharmony-arm64": "0.111.0", | ||
| "@oxc-transform/binding-android-arm-eabi": "0.111.0", | ||
| "@oxc-transform/binding-linux-arm-gnueabihf": "0.111.0", | ||
| "@oxc-transform/binding-linux-arm-musleabihf": "0.111.0", | ||
| "@oxc-transform/binding-win32-ia32-msvc": "0.111.0", | ||
| "@oxc-transform/binding-linux-ppc64-gnu": "0.111.0", | ||
| "@oxc-transform/binding-linux-riscv64-gnu": "0.111.0", | ||
| "@oxc-transform/binding-linux-riscv64-musl": "0.111.0", | ||
| "@oxc-transform/binding-linux-s390x-gnu": "0.111.0", | ||
| "@oxc-transform/binding-wasm32-wasi": "0.111.0", | ||
| "@oxc-transform/binding-darwin-x64": "0.111.0", | ||
| "@oxc-transform/binding-win32-x64-msvc": "0.111.0", | ||
| "@oxc-transform/binding-freebsd-x64": "0.111.0", | ||
| "@oxc-transform/binding-linux-x64-gnu": "0.111.0", | ||
| "@oxc-transform/binding-linux-x64-musl": "0.111.0" | ||
| "@oxc-transform/binding-darwin-arm64": "0.112.0", | ||
| "@oxc-transform/binding-android-arm64": "0.112.0", | ||
| "@oxc-transform/binding-win32-arm64-msvc": "0.112.0", | ||
| "@oxc-transform/binding-linux-arm64-gnu": "0.112.0", | ||
| "@oxc-transform/binding-linux-arm64-musl": "0.112.0", | ||
| "@oxc-transform/binding-openharmony-arm64": "0.112.0", | ||
| "@oxc-transform/binding-android-arm-eabi": "0.112.0", | ||
| "@oxc-transform/binding-linux-arm-gnueabihf": "0.112.0", | ||
| "@oxc-transform/binding-linux-arm-musleabihf": "0.112.0", | ||
| "@oxc-transform/binding-win32-ia32-msvc": "0.112.0", | ||
| "@oxc-transform/binding-linux-ppc64-gnu": "0.112.0", | ||
| "@oxc-transform/binding-linux-riscv64-gnu": "0.112.0", | ||
| "@oxc-transform/binding-linux-riscv64-musl": "0.112.0", | ||
| "@oxc-transform/binding-linux-s390x-gnu": "0.112.0", | ||
| "@oxc-transform/binding-wasm32-wasi": "0.112.0", | ||
| "@oxc-transform/binding-darwin-x64": "0.112.0", | ||
| "@oxc-transform/binding-win32-x64-msvc": "0.112.0", | ||
| "@oxc-transform/binding-freebsd-x64": "0.112.0", | ||
| "@oxc-transform/binding-linux-x64-gnu": "0.112.0", | ||
| "@oxc-transform/binding-linux-x64-musl": "0.112.0" | ||
| }, | ||
@@ -104,0 +104,0 @@ "scripts": { |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
52011
0.36%1219
0.74%