Chore: Fix Node 25 compatibility in jwa and update lockfiles

This commit is contained in:
Josh Roskos 2026-05-16 21:11:13 -05:00
parent 9ac3dae265
commit 5f92babc02
2 changed files with 23 additions and 3 deletions

15
package-lock.json generated
View file

@ -2113,6 +2113,21 @@
"integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
"devOptional": true "devOptional": true
}, },
"node_modules/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
"dev": true,
"hasInstallScript": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
"node_modules/function-bind": { "node_modules/function-bind": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",

View file

@ -28,14 +28,19 @@ function bufferEq(a, b) {
} }
bufferEq.install = function () { bufferEq.install = function () {
Buffer.prototype.equal = SlowBuffer.prototype.equal = function equal(that) { Buffer.prototype.equal = function equal(that) {
return bufferEq(this, that); return bufferEq(this, that);
}; };
if (SlowBuffer && SlowBuffer.prototype) {
SlowBuffer.prototype.equal = Buffer.prototype.equal;
}
}; };
var origBufEqual = Buffer.prototype.equal; var origBufEqual = Buffer.prototype.equal;
var origSlowBufEqual = SlowBuffer.prototype.equal; var origSlowBufEqual = SlowBuffer && SlowBuffer.prototype ? SlowBuffer.prototype.equal : undefined;
bufferEq.restore = function () { bufferEq.restore = function () {
Buffer.prototype.equal = origBufEqual; Buffer.prototype.equal = origBufEqual;
if (SlowBuffer && SlowBuffer.prototype) {
SlowBuffer.prototype.equal = origSlowBufEqual; SlowBuffer.prototype.equal = origSlowBufEqual;
}
}; };