|
|
|
@@ -75,8 +75,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-android-arm64')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-android-arm64/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-android-arm64')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-android-arm64/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -91,8 +91,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-android-arm-eabi')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-android-arm-eabi/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-android-arm-eabi')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-android-arm-eabi/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -112,8 +112,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-win32-x64-gnu')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-win32-x64-gnu/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-win32-x64-gnu')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-win32-x64-gnu/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -128,8 +128,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-win32-x64-msvc')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-win32-x64-msvc/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-win32-x64-msvc')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-win32-x64-msvc/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -145,8 +145,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-win32-ia32-msvc')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-win32-ia32-msvc/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-win32-ia32-msvc')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-win32-ia32-msvc/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -161,8 +161,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-win32-arm64-msvc')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-win32-arm64-msvc/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-win32-arm64-msvc')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-win32-arm64-msvc/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -180,8 +180,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-darwin-universal')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-darwin-universal/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-darwin-universal')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-darwin-universal/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -196,8 +196,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-darwin-x64')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-darwin-x64/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-darwin-x64')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-darwin-x64/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -212,8 +212,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-darwin-arm64')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-darwin-arm64/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-darwin-arm64')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-darwin-arm64/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -232,8 +232,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-freebsd-x64')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-freebsd-x64/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-freebsd-x64')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-freebsd-x64/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -248,8 +248,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-freebsd-arm64')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-freebsd-arm64/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-freebsd-arm64')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-freebsd-arm64/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -269,8 +269,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-linux-x64-musl')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-linux-x64-musl/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-linux-x64-musl')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-linux-x64-musl/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -285,8 +285,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-linux-x64-gnu')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-linux-x64-gnu/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-linux-x64-gnu')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-linux-x64-gnu/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -303,8 +303,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-linux-arm64-musl')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-linux-arm64-musl/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-linux-arm64-musl')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-linux-arm64-musl/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -319,8 +319,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-linux-arm64-gnu')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-linux-arm64-gnu/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-linux-arm64-gnu')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-linux-arm64-gnu/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -337,8 +337,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-linux-arm-musleabihf')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-linux-arm-musleabihf/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-linux-arm-musleabihf')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-linux-arm-musleabihf/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -353,8 +353,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-linux-arm-gnueabihf')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-linux-arm-gnueabihf/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-linux-arm-gnueabihf')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-linux-arm-gnueabihf/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -371,8 +371,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-linux-loong64-musl')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-linux-loong64-musl/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-linux-loong64-musl')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-linux-loong64-musl/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -387,8 +387,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-linux-loong64-gnu')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-linux-loong64-gnu/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-linux-loong64-gnu')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-linux-loong64-gnu/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -405,8 +405,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-linux-riscv64-musl')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-linux-riscv64-musl/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-linux-riscv64-musl')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-linux-riscv64-musl/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -421,8 +421,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-linux-riscv64-gnu')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-linux-riscv64-gnu/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-linux-riscv64-gnu')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-linux-riscv64-gnu/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -438,8 +438,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-linux-ppc64-gnu')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-linux-ppc64-gnu/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-linux-ppc64-gnu')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-linux-ppc64-gnu/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -454,8 +454,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-linux-s390x-gnu')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-linux-s390x-gnu/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-linux-s390x-gnu')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-linux-s390x-gnu/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -474,8 +474,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-openharmony-arm64')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-openharmony-arm64/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-openharmony-arm64')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-openharmony-arm64/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -490,8 +490,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-openharmony-x64')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-openharmony-x64/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-openharmony-x64')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-openharmony-x64/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -506,8 +506,8 @@ function requireNative() {
|
|
|
|
|
loadErrors.push(e)
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const binding = require('@firecrawl/pdf-inspector-js-openharmony-arm')
|
|
|
|
|
const bindingPackageVersion = require('@firecrawl/pdf-inspector-js-openharmony-arm/package.json').version
|
|
|
|
|
const binding = require('firecrawl-pdf-inspector-openharmony-arm')
|
|
|
|
|
const bindingPackageVersion = require('firecrawl-pdf-inspector-openharmony-arm/package.json').version
|
|
|
|
|
if (bindingPackageVersion !== '0.2.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.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
|
|
|
}
|
|
|
|
@@ -538,7 +538,7 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
|
|
|
}
|
|
|
|
|
if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
|
|
|
try {
|
|
|
|
|
wasiBinding = require('@firecrawl/pdf-inspector-js-wasm32-wasi')
|
|
|
|
|
wasiBinding = require('firecrawl-pdf-inspector-wasm32-wasi')
|
|
|
|
|
nativeBinding = wasiBinding
|
|
|
|
|
} catch (err) {
|
|
|
|
|
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
|
|
|