Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/argon2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @ts-nocheck
/* auto-generated by NAPI-RS */

const { readFileSync } = require('node:fs')
const { readFileSync } = require('fs')
let nativeBinding = null
const loadErrors = []

Expand Down Expand Up @@ -33,7 +33,7 @@ const isMuslFromFilesystem = () => {

const isMuslFromReport = () => {
let report = null
if (typeof process.report?.getReport === 'function') {
if (process.report && typeof process.report.getReport === 'function') {
process.report.excludeNetwork = true
report = process.report.getReport()
}
Expand Down Expand Up @@ -105,7 +105,7 @@ function requireNative() {
}
} else if (process.platform === 'win32') {
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 {
return require('./argon2.win32-x64-gnu.node')
} catch (e) {
Expand Down
6 changes: 3 additions & 3 deletions packages/bcrypt/binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @ts-nocheck
/* auto-generated by NAPI-RS */

const { readFileSync } = require('node:fs')
const { readFileSync } = require('fs')
let nativeBinding = null
const loadErrors = []

Expand Down Expand Up @@ -33,7 +33,7 @@ const isMuslFromFilesystem = () => {

const isMuslFromReport = () => {
let report = null
if (typeof process.report?.getReport === 'function') {
if (process.report && typeof process.report.getReport === 'function') {
process.report.excludeNetwork = true
report = process.report.getReport()
}
Expand Down Expand Up @@ -105,7 +105,7 @@ function requireNative() {
}
} else if (process.platform === 'win32') {
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 {
return require('./bcrypt.win32-x64-gnu.node')
} catch (e) {
Expand Down
6 changes: 3 additions & 3 deletions packages/crc32/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @ts-nocheck
/* auto-generated by NAPI-RS */

const { readFileSync } = require('node:fs')
const { readFileSync } = require('fs')
let nativeBinding = null
const loadErrors = []

Expand Down Expand Up @@ -33,7 +33,7 @@ const isMuslFromFilesystem = () => {

const isMuslFromReport = () => {
let report = null
if (typeof process.report?.getReport === 'function') {
if (process.report && typeof process.report.getReport === 'function') {
process.report.excludeNetwork = true
report = process.report.getReport()
}
Expand Down Expand Up @@ -105,7 +105,7 @@ function requireNative() {
}
} else if (process.platform === 'win32') {
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 {
return require('./crc32.win32-x64-gnu.node')
} catch (e) {
Expand Down
6 changes: 3 additions & 3 deletions packages/jieba/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @ts-nocheck
/* auto-generated by NAPI-RS */

const { readFileSync } = require('node:fs')
const { readFileSync } = require('fs')
let nativeBinding = null
const loadErrors = []

Expand Down Expand Up @@ -33,7 +33,7 @@ const isMuslFromFilesystem = () => {

const isMuslFromReport = () => {
let report = null
if (typeof process.report?.getReport === 'function') {
if (process.report && typeof process.report.getReport === 'function') {
process.report.excludeNetwork = true
report = process.report.getReport()
}
Expand Down Expand Up @@ -105,7 +105,7 @@ function requireNative() {
}
} else if (process.platform === 'win32') {
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 {
return require('./jieba.win32-x64-gnu.node')
} catch (e) {
Expand Down
6 changes: 3 additions & 3 deletions packages/jsonwebtoken/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @ts-nocheck
/* auto-generated by NAPI-RS */

const { readFileSync } = require('node:fs')
const { readFileSync } = require('fs')
let nativeBinding = null
const loadErrors = []

Expand Down Expand Up @@ -33,7 +33,7 @@ const isMuslFromFilesystem = () => {

const isMuslFromReport = () => {
let report = null
if (typeof process.report?.getReport === 'function') {
if (process.report && typeof process.report.getReport === 'function') {
process.report.excludeNetwork = true
report = process.report.getReport()
}
Expand Down Expand Up @@ -105,7 +105,7 @@ function requireNative() {
}
} else if (process.platform === 'win32') {
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 {
return require('./jsonwebtoken.win32-x64-gnu.node')
} catch (e) {
Expand Down
6 changes: 3 additions & 3 deletions packages/xxhash/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @ts-nocheck
/* auto-generated by NAPI-RS */

const { readFileSync } = require('node:fs')
const { readFileSync } = require('fs')
let nativeBinding = null
const loadErrors = []

Expand Down Expand Up @@ -33,7 +33,7 @@ const isMuslFromFilesystem = () => {

const isMuslFromReport = () => {
let report = null
if (typeof process.report?.getReport === 'function') {
if (process.report && typeof process.report.getReport === 'function') {
process.report.excludeNetwork = true
report = process.report.getReport()
}
Expand Down Expand Up @@ -105,7 +105,7 @@ function requireNative() {
}
} else if (process.platform === 'win32') {
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 {
return require('./xxhash.win32-x64-gnu.node')
} catch (e) {
Expand Down