Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix index access
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBa committed May 9, 2023
1 parent b148820 commit c7ac86c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"build:configure": "node-gyp configure",
"build:configure:arm64": "node-gyp configure --arch=arm64",
"build:bindings": "node-gyp build && node scripts/copy-target.js",
"build:bindings:arm64": "BUILD_ARCH=arm64 node-gyp build --arch=arm64 && node scripts copy-target.js",
"build:bindings:arm64": "BUILD_ARCH=arm64 node-gyp build --arch=arm64 && node scripts/copy-target.js",
"build:benchmark:format": "node-gyp -DFORMAT_BENCHMARK=1 build",
"build:dev": "npm run clean && npm run build:configure && npm run build",
"benchmark": "npm run benchmark:methods && npm run benchmark:profiler && npm run benchmark:server && npm run benchmark:format",
Expand Down
2 changes: 1 addition & 1 deletion scripts/binaries.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url));
export function getModuleName() {
const stdlib = familySync();
const platform = os.platform();
const arch = process.env.BUILD_ARCH || os.arch();
const arch = process.env['BUILD_ARCH'] || os.arch();

const identifier = [platform, arch, stdlib, getAbi(process.versions.node, 'node')]
.filter((c) => c !== undefined && c !== null)
Expand Down
2 changes: 1 addition & 1 deletion src/cpu_profiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function importCppBindingsModule(): any {

const stdlib = familySync();
const platform = _platform();
const arch = process.env.BUILD_ARCH || _arch();
const arch = process.env['BUILD_ARCH'] || _arch();
const abi = getAbi(versions.node, 'node');
const identifier = [platform, arch, stdlib, abi].filter((c) => c !== undefined && c !== null).join('-');

Expand Down

0 comments on commit c7ac86c

Please sign in to comment.