+16
-0
@@ -8,2 +8,18 @@ # Changelog | ||
| ## [Unreleased] | ||
| ## [0.3.1-beta.0] - 2026-07-20 | ||
| ### Fixed | ||
| - **EK CreatePrimary fallback** — when persistent EK handles are absent, use TCG | ||
| `tpm2_createek`-equivalent templates (RSA-2048 and ECC P-256, low + high range: | ||
| attrs `0x300b2` / `0x304b2`, PolicySecret authPolicy, correct `unique` sizing) | ||
| instead of the storage-primary template. Certificate SPKI drives algorithm selection; | ||
| mismatch fails loudly. Fixes GCP Confidential Compute vTPM and similar devices. | ||
| - **TPM_RC policy failures** — `POLICY_FAIL` (e.g. `0xA9D`) maps to `AUTH_FAILED`, | ||
| not `MARSHALLING_ERROR`. | ||
| Beta only — validate fallback on a no-persistent-handle TPM before `latest` promotion. | ||
| ## [0.3.0] - 2026-07-20 | ||
@@ -10,0 +26,0 @@ |
@@ -11,2 +11,3 @@ #!/usr/bin/env node | ||
| import { X509Certificate } from 'node:crypto'; | ||
| import fs from 'node:fs'; | ||
@@ -42,4 +43,16 @@ import path from 'node:path'; | ||
| log(`getEkPublic publicKeyDer=${resolved.publicKeyDer.length}B name=${resolved.name.length}B`); | ||
| log(`getEkPublic name hex=${resolved.name.toString('hex')}`); | ||
| const cert = await Tpm.readEkCertificate(); | ||
| if (cert) { | ||
| const certSpki = new X509Certificate(cert).publicKey.export({ type: 'spki', format: 'der' }); | ||
| const certEq = Buffer.from(resolved.publicKeyDer).equals(certSpki); | ||
| log(`certEqGetEk=${certEq}`); | ||
| if (!certEq) { | ||
| console.log(`FAIL - getEkPublic SPKI does not match EK certificate (see ${logPath})`); | ||
| process.exit(1); | ||
| } | ||
| } else { | ||
| log('readEkCertificate=null (no cert to compare)'); | ||
| } | ||
| let rsa; | ||
@@ -46,0 +59,0 @@ try { |
+156
-156
@@ -80,6 +80,6 @@ // prettier-ignore | ||
| const bindingPackageVersion = require('node-tpm2-android-arm64/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -89,6 +89,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -98,4 +98,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -115,6 +115,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-android-arm-eabi/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -124,6 +124,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -133,4 +133,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -155,6 +155,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-win32-x64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -164,6 +164,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -173,4 +173,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -190,6 +190,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-windows-x64-msvc/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -199,6 +199,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -208,4 +208,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -226,6 +226,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-win32-ia32-msvc/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -235,6 +235,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -244,4 +244,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -261,6 +261,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-windows-arm64-msvc/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -270,6 +270,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -279,4 +279,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -299,6 +299,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-darwin-universal/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -308,6 +308,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -317,4 +317,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -334,6 +334,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-darwin-x64/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -343,6 +343,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -352,4 +352,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -369,6 +369,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-darwin-arm64/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -378,6 +378,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -387,4 +387,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -408,6 +408,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-freebsd-x64/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -417,6 +417,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -426,4 +426,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -443,6 +443,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-freebsd-arm64/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -452,6 +452,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -461,4 +461,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -483,6 +483,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-linux-x64-musl/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -492,6 +492,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -501,4 +501,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -518,6 +518,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-linux-x64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -527,6 +527,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -536,4 +536,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -555,6 +555,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-linux-arm64-musl/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -564,6 +564,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -573,4 +573,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -590,6 +590,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-linux-arm64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -599,6 +599,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -608,4 +608,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -627,6 +627,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-linux-arm-musleabihf/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -636,6 +636,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -645,4 +645,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -662,6 +662,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-linux-arm-gnueabihf/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -671,6 +671,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -680,4 +680,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -699,6 +699,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-linux-loong64-musl/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -708,6 +708,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -717,4 +717,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -734,6 +734,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-linux-loong64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -743,6 +743,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -752,4 +752,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -771,6 +771,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-linux-riscv64-musl/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -780,6 +780,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -789,4 +789,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -806,6 +806,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-linux-riscv64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -815,6 +815,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -824,4 +824,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -842,6 +842,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-linux-ppc64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -851,6 +851,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -860,4 +860,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -877,6 +877,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-linux-s390x-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -886,6 +886,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -895,4 +895,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -916,6 +916,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-openharmony-arm64/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -925,6 +925,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -934,4 +934,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -951,6 +951,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-openharmony-x64/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -960,6 +960,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -969,4 +969,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -986,6 +986,6 @@ return binding | ||
| const bindingPackageVersion = require('node-tpm2-openharmony-arm/package.json').version | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -995,6 +995,6 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.0') { | ||
| if (bindingPackageVersion !== '0.3.1-beta.0') { | ||
| if (typeof process !== 'undefined' && process.emitWarning) { | ||
| process.emitWarning( | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.0; run npm install or npm run build`, | ||
| `[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.3.1-beta.0; run npm install or npm run build`, | ||
| { type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' }, | ||
@@ -1004,4 +1004,4 @@ ) | ||
| } | ||
| if (bindingPackageVersion !== '0.3.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.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| if (bindingPackageVersion !== '0.3.1-beta.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.3.1-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
@@ -1008,0 +1008,0 @@ return binding |
+10
-10
| { | ||
| "name": "node-tpm2", | ||
| "version": "0.3.0", | ||
| "version": "0.3.1-beta.0", | ||
| "description": "TPM 2.0 attestation for Node.js — prebuilt native bindings, PCR quotes, and fleet-ready Windows PCP keys. No tpm2-tools.", | ||
@@ -99,12 +99,12 @@ "type": "module", | ||
| "optionalDependencies": { | ||
| "node-tpm2-windows-x64-msvc": "0.3.0", | ||
| "node-tpm2-windows-arm64-msvc": "0.3.0", | ||
| "node-tpm2-linux-x64-gnu": "0.3.0", | ||
| "node-tpm2-linux-arm64-gnu": "0.3.0", | ||
| "node-tpm2-linux-x64-musl": "0.3.0", | ||
| "node-tpm2-linux-arm64-musl": "0.3.0", | ||
| "node-tpm2-darwin-arm64": "0.3.0", | ||
| "node-tpm2-win32-x64-msvc": "0.3.0", | ||
| "node-tpm2-win32-arm64-msvc": "0.3.0" | ||
| "node-tpm2-windows-x64-msvc": "0.3.1-beta.0", | ||
| "node-tpm2-windows-arm64-msvc": "0.3.1-beta.0", | ||
| "node-tpm2-linux-x64-gnu": "0.3.1-beta.0", | ||
| "node-tpm2-linux-arm64-gnu": "0.3.1-beta.0", | ||
| "node-tpm2-linux-x64-musl": "0.3.1-beta.0", | ||
| "node-tpm2-linux-arm64-musl": "0.3.1-beta.0", | ||
| "node-tpm2-darwin-arm64": "0.3.1-beta.0", | ||
| "node-tpm2-win32-x64-msvc": "0.3.1-beta.0", | ||
| "node-tpm2-win32-arm64-msvc": "0.3.1-beta.0" | ||
| } | ||
| } |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
194104
1.21%2378
0.51%68
1.49%