Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

oxc-parser

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oxc-parser - npm Package Compare versions

Comparing version
0.128.0
to
0.129.0
+22
-22
package.json
{
"name": "oxc-parser",
"version": "0.128.0",
"version": "0.129.0",
"description": "Oxc Parser Node API",

@@ -62,3 +62,3 @@ "keywords": [

"dependencies": {
"@oxc-project/types": "^0.128.0"
"@oxc-project/types": "^0.129.0"
},

@@ -117,22 +117,22 @@ "devDependencies": {

"optionalDependencies": {
"@oxc-parser/binding-darwin-arm64": "0.128.0",
"@oxc-parser/binding-android-arm64": "0.128.0",
"@oxc-parser/binding-win32-arm64-msvc": "0.128.0",
"@oxc-parser/binding-linux-arm64-gnu": "0.128.0",
"@oxc-parser/binding-linux-arm64-musl": "0.128.0",
"@oxc-parser/binding-openharmony-arm64": "0.128.0",
"@oxc-parser/binding-android-arm-eabi": "0.128.0",
"@oxc-parser/binding-linux-arm-gnueabihf": "0.128.0",
"@oxc-parser/binding-linux-arm-musleabihf": "0.128.0",
"@oxc-parser/binding-win32-ia32-msvc": "0.128.0",
"@oxc-parser/binding-linux-ppc64-gnu": "0.128.0",
"@oxc-parser/binding-linux-riscv64-gnu": "0.128.0",
"@oxc-parser/binding-linux-riscv64-musl": "0.128.0",
"@oxc-parser/binding-linux-s390x-gnu": "0.128.0",
"@oxc-parser/binding-wasm32-wasi": "0.128.0",
"@oxc-parser/binding-darwin-x64": "0.128.0",
"@oxc-parser/binding-win32-x64-msvc": "0.128.0",
"@oxc-parser/binding-freebsd-x64": "0.128.0",
"@oxc-parser/binding-linux-x64-gnu": "0.128.0",
"@oxc-parser/binding-linux-x64-musl": "0.128.0"
"@oxc-parser/binding-darwin-arm64": "0.129.0",
"@oxc-parser/binding-android-arm64": "0.129.0",
"@oxc-parser/binding-win32-arm64-msvc": "0.129.0",
"@oxc-parser/binding-linux-arm64-gnu": "0.129.0",
"@oxc-parser/binding-linux-arm64-musl": "0.129.0",
"@oxc-parser/binding-openharmony-arm64": "0.129.0",
"@oxc-parser/binding-android-arm-eabi": "0.129.0",
"@oxc-parser/binding-linux-arm-gnueabihf": "0.129.0",
"@oxc-parser/binding-linux-arm-musleabihf": "0.129.0",
"@oxc-parser/binding-win32-ia32-msvc": "0.129.0",
"@oxc-parser/binding-linux-ppc64-gnu": "0.129.0",
"@oxc-parser/binding-linux-riscv64-gnu": "0.129.0",
"@oxc-parser/binding-linux-riscv64-musl": "0.129.0",
"@oxc-parser/binding-linux-s390x-gnu": "0.129.0",
"@oxc-parser/binding-wasm32-wasi": "0.129.0",
"@oxc-parser/binding-darwin-x64": "0.129.0",
"@oxc-parser/binding-win32-x64-msvc": "0.129.0",
"@oxc-parser/binding-freebsd-x64": "0.129.0",
"@oxc-parser/binding-linux-x64-gnu": "0.129.0",
"@oxc-parser/binding-linux-x64-musl": "0.129.0"
},

@@ -139,0 +139,0 @@ "scripts": {

@@ -84,4 +84,4 @@ // prettier-ignore

const bindingPackageVersion = require('@oxc-parser/binding-android-arm64/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -101,4 +101,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-android-arm-eabi/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -123,4 +123,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-win32-x64-gnu/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -140,4 +140,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-win32-x64-msvc/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -158,4 +158,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-win32-ia32-msvc/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -175,4 +175,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-win32-arm64-msvc/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -195,4 +195,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-darwin-universal/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -212,4 +212,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-darwin-x64/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -229,4 +229,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-darwin-arm64/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -250,4 +250,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-freebsd-x64/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -267,4 +267,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-freebsd-arm64/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -289,4 +289,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-linux-x64-musl/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -306,4 +306,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-linux-x64-gnu/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -325,4 +325,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-linux-arm64-musl/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -342,4 +342,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-linux-arm64-gnu/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -361,4 +361,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-linux-arm-musleabihf/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -378,4 +378,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-linux-arm-gnueabihf/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -397,4 +397,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-linux-loong64-musl/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -414,4 +414,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-linux-loong64-gnu/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -433,4 +433,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-linux-riscv64-musl/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -450,4 +450,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-linux-riscv64-gnu/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -468,4 +468,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-linux-ppc64-gnu/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -485,4 +485,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-linux-s390x-gnu/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -506,4 +506,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-openharmony-arm64/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -523,4 +523,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-openharmony-x64/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -540,4 +540,4 @@ return binding

const bindingPackageVersion = require('@oxc-parser/binding-openharmony-arm/package.json').version
if (bindingPackageVersion !== '0.128.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.128.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.129.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.129.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -544,0 +544,0 @@ return binding

// Auto-generated code, DO NOT EDIT DIRECTLY!
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/raw_transfer.rs`.
// See `crates/oxc_allocator/src/pool/fixed_size.rs` for a diagram showing
// how the constituent parts of the arena fit together.
/**
* Total size of the transfer buffer in bytes (block size minus allocator metadata).
* Total size of the allocator block (including metadata and allocator `ChunkFooter`).
*/
export const BUFFER_SIZE = 2147483616;
export const BLOCK_SIZE = 2147483632;
/**
* Required alignment of the transfer buffer (4 GiB).
* Required alignment of the allocator block (4 GiB).
*/
export const BUFFER_ALIGN = 4294967296;
export const BLOCK_ALIGN = 4294967296;
/**
* Size of the active data area in bytes (buffer size minus raw metadata and chunk footer).
* Total size of the transfer buffer used on JS side, in bytes
* (`BLOCK_SIZE` minus `FixedSizeAllocatorMetadata` and `ChunkFooter`).
*/
export const ACTIVE_SIZE = 2147483552;
export const BUFFER_SIZE = 2147483576;
/**
* Size of the active data region in bytes - the region where source text and AST live
* (`BUFFER_SIZE` minus `RawTransferMetadata`).
*/
export const ACTIVE_SIZE = 2147483560;
/**
* Byte offset of the data pointer within the buffer, divided by 4 (for `Int32Array` indexing).
*/
export const DATA_POINTER_POS_32 = 536870900;
export const DATA_POINTER_POS_32 = 536870890;

@@ -27,3 +37,3 @@ /**

*/
export const IS_TS_FLAG_POS = 2147483612;
export const IS_TS_FLAG_POS = 2147483572;

@@ -33,3 +43,3 @@ /**

*/
export const IS_JSX_FLAG_POS = 2147483613;
export const IS_JSX_FLAG_POS = 2147483573;

@@ -39,3 +49,3 @@ /**

*/
export const HAS_BOM_FLAG_POS = 2147483614;
export const HAS_BOM_FLAG_POS = 2147483574;

@@ -45,3 +55,3 @@ /**

*/
export const TOKENS_OFFSET_POS_32 = 536870901;
export const TOKENS_OFFSET_POS_32 = 536870891;

@@ -51,3 +61,3 @@ /**

*/
export const TOKENS_LEN_POS_32 = 536870902;
export const TOKENS_LEN_POS_32 = 536870892;

@@ -54,0 +64,0 @@ /**

import os from "node:os";
import { BUFFER_ALIGN, BUFFER_SIZE, IS_TS_FLAG_POS } from "../generated/constants.js";
import { BLOCK_SIZE, BLOCK_ALIGN, BUFFER_SIZE, IS_TS_FLAG_POS } from "../generated/constants.js";
import {

@@ -37,3 +37,3 @@ getBufferOffset,

const { buffer, sourceByteLen } = prepareRaw(sourceText);
parseRawSyncBinding(filename, buffer, sourceByteLen, options);
parseRawSyncBinding(filename, buffer.block, sourceByteLen, options);
return convert(buffer, sourceText, sourceByteLen, options);

@@ -118,3 +118,3 @@ }

const { buffer, sourceByteLen } = prepareRaw(sourceText);
await parseRawBinding(filename, buffer, sourceByteLen, options);
await parseRawBinding(filename, buffer.block, sourceByteLen, options);
const data = convert(buffer, sourceText, sourceByteLen, options);

@@ -136,3 +136,3 @@

const ARRAY_BUFFER_SIZE = BUFFER_SIZE + BUFFER_ALIGN;
const ARRAY_BUFFER_SIZE = BLOCK_SIZE + BLOCK_ALIGN;
const ONE_GIB = 1 << 30;

@@ -266,2 +266,8 @@

*
* `buffer` itself, and `int32` and `float64` views of `buffer`, are `BUFFER_SIZE` bytes,
* which excludes `FixedSizeAllocatorMetadata` and `ChunkFooter`.
* This ensures this critical data cannot be accidentally overwritten on JS side.
* `block` is `BLOCK_SIZE` bytes, which includes `FixedSizeAllocatorMetadata` and `ChunkFooter`.
* `block` is what we pass to Rust, which needs to write `ChunkFooter`.
*
* Note: On systems with virtual memory, this only consumes 6 GiB of *virtual* memory.

@@ -279,3 +285,4 @@ * It does not consume physical memory until data is actually written to the `Uint8Array`.

buffer.float64 = new Float64Array(arrayBuffer, offset, BUFFER_SIZE / 8);
buffer.block = new Uint8Array(arrayBuffer, offset, BLOCK_SIZE);
return buffer;
}

@@ -5,2 +5,4 @@ export * from "@oxc-parser/binding-wasm32-wasi";

export { default as visitorKeys } from "./generated/visit/keys.js";
export async function parse(...args) {

@@ -7,0 +9,0 @@ return wrap(await bindings.parse(...args));

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display