🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

oxc-parser

Package Overview
Dependencies
Maintainers
1
Versions
172
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.135.0
to
0.136.0
+27
-27
package.json
{
"name": "oxc-parser",
"version": "0.135.0",
"version": "0.136.0",
"description": "Oxc Parser Node API",

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

"dependencies": {
"@oxc-project/types": "^0.135.0"
"@oxc-project/types": "^0.136.0"
},
"devDependencies": {
"@codspeed/vitest-plugin": "^5.0.0",
"@emnapi/core": "1.10.0",
"@emnapi/runtime": "1.10.0",
"@napi-rs/cli": "3.7.0",
"@napi-rs/wasm-runtime": "1.1.4",
"@emnapi/core": "1.11.1",
"@emnapi/runtime": "1.11.1",
"@napi-rs/cli": "3.7.2",
"@napi-rs/wasm-runtime": "1.1.5",
"@types/node": "24.1.0",

@@ -77,3 +77,3 @@ "@typescript-eslint/visitor-keys": "^8.54.0",

"publint": "0.3.21",
"rolldown": "1.1.0",
"rolldown": "1.1.1",
"tinypool": "^2.0.0",

@@ -118,22 +118,22 @@ "vitest": "4.1.8"

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

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

@@ -6,7 +6,7 @@ // prettier-ignore

import { createRequire } from 'node:module'
import { createRequire } from 'module'
const require = createRequire(import.meta.url)
const __dirname = new URL('.', import.meta.url).pathname
const { readFileSync } = require('node:fs')
const { readFileSync } = require('fs')
let nativeBinding = null

@@ -41,3 +41,3 @@ const loadErrors = []

let report = null
if (typeof process.report?.getReport === 'function') {
if (process.report && typeof process.report.getReport === 'function') {
process.report.excludeNetwork = true

@@ -86,4 +86,4 @@ report = process.report.getReport()

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

@@ -103,4 +103,4 @@ return binding

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

@@ -116,3 +116,3 @@ return binding

if (process.arch === 'x64') {
if (process.config?.variables?.shlib_suffix === 'dll.a' || process.config?.variables?.node_target_type === 'shared_library') {
if ((process.config && process.config.variables && process.config.variables.shlib_suffix === 'dll.a') || (process.config && process.config.variables && process.config.variables.node_target_type === 'shared_library')) {
try {

@@ -126,4 +126,4 @@ return require('./parser.win32-x64-gnu.node')

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

@@ -143,4 +143,4 @@ return binding

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

@@ -161,4 +161,4 @@ return binding

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

@@ -178,4 +178,4 @@ return binding

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

@@ -198,4 +198,4 @@ return binding

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

@@ -215,4 +215,4 @@ return binding

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

@@ -232,4 +232,4 @@ return binding

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

@@ -253,4 +253,4 @@ return binding

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

@@ -270,4 +270,4 @@ return binding

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

@@ -292,4 +292,4 @@ return binding

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

@@ -309,4 +309,4 @@ return binding

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

@@ -328,4 +328,4 @@ return binding

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

@@ -345,4 +345,4 @@ return binding

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

@@ -364,4 +364,4 @@ return binding

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

@@ -381,4 +381,4 @@ return binding

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

@@ -400,4 +400,4 @@ return binding

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

@@ -417,4 +417,4 @@ return binding

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

@@ -436,4 +436,4 @@ return binding

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

@@ -453,4 +453,4 @@ return binding

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

@@ -471,4 +471,4 @@ return binding

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

@@ -488,4 +488,4 @@ return binding

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

@@ -509,4 +509,4 @@ return binding

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

@@ -526,4 +526,4 @@ return binding

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

@@ -543,4 +543,4 @@ return binding

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

@@ -614,13 +614,14 @@ return binding

if (loadErrors.length > 0) {
throw new Error(
const error = new Error(
`Cannot find native binding. ` +
`npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` +
'Please try `npm i` again after removing both package-lock.json and node_modules directory.',
{
cause: loadErrors.reduce((err, cur) => {
cur.cause = err
return cur
}),
},
)
// assign instead of the `new Error(message, { cause })` options form,
// which Node < 16.9 silently ignores
error.cause = loadErrors.reduce((err, cur) => {
cur.cause = err
return cur
})
throw error
}

@@ -627,0 +628,0 @@ throw new Error(`Failed to load native binding`)