github-issue-tower-defence-management 1.131.0 → 1.131.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.131.1](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.131.0...v1.131.1) (2026-07-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* crash on startup with Node.js v22+ due to removed SlowBuffer in buffer-equal-constant-time ([#826](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/826)) ([626853b](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/commit/626853b32fe8ca0f8985983b9bbf161b1a2e616d))
|
|
7
|
+
|
|
1
8
|
# [1.131.0](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.130.0...v1.131.0) (2026-07-24)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var crypto = require('crypto');
|
|
3
|
+
|
|
4
|
+
module.exports = bufferEq;
|
|
5
|
+
|
|
6
|
+
function bufferEq(a, b) {
|
|
7
|
+
if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
if (a.length !== b.length) {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
return crypto.timingSafeEqual(a, b);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
bufferEq.install = function () {};
|
|
17
|
+
bufferEq.restore = function () {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var bufferEq = require('./index');
|
|
3
|
+
|
|
4
|
+
describe('bufferEq', () => {
|
|
5
|
+
it('should return true when both buffers have equal content', () => {
|
|
6
|
+
var a = Buffer.from('hello');
|
|
7
|
+
var b = Buffer.from('hello');
|
|
8
|
+
expect(bufferEq(a, b)).toBe(true);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('should return false when buffers have different content', () => {
|
|
12
|
+
var a = Buffer.from('hello');
|
|
13
|
+
var b = Buffer.from('world');
|
|
14
|
+
expect(bufferEq(a, b)).toBe(false);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
it('should return false when buffers have different lengths', () => {
|
|
18
|
+
var a = Buffer.from('short');
|
|
19
|
+
var b = Buffer.from('longer');
|
|
20
|
+
expect(bufferEq(a, b)).toBe(false);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('should return false when first argument is not a Buffer', () => {
|
|
24
|
+
expect(bufferEq('hello', Buffer.from('hello'))).toBe(false);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it('should return false when second argument is not a Buffer', () => {
|
|
28
|
+
expect(bufferEq(Buffer.from('hello'), 'hello')).toBe(false);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('should return false when both arguments are not Buffers', () => {
|
|
32
|
+
expect(bufferEq('hello', 'hello')).toBe(false);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('should return false when first argument is null', () => {
|
|
36
|
+
expect(bufferEq(null, Buffer.from('hello'))).toBe(false);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it('should return false when second argument is null', () => {
|
|
40
|
+
expect(bufferEq(Buffer.from('hello'), null)).toBe(false);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
describe('install', () => {
|
|
44
|
+
it('should not throw when called', () => {
|
|
45
|
+
expect(() => bufferEq.install()).not.toThrow();
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
describe('restore', () => {
|
|
50
|
+
it('should not throw when called', () => {
|
|
51
|
+
expect(() => bufferEq.restore()).not.toThrow();
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-issue-tower-defence-management",
|
|
3
|
-
"version": "1.131.
|
|
3
|
+
"version": "1.131.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -111,5 +111,8 @@
|
|
|
111
111
|
"marked-emoji": "2.0.3",
|
|
112
112
|
"typia": "^12.0.0",
|
|
113
113
|
"yaml": "^2.6.0"
|
|
114
|
+
},
|
|
115
|
+
"overrides": {
|
|
116
|
+
"buffer-equal-constant-time": "file:./lib/buffer-equal-constant-time-compat"
|
|
114
117
|
}
|
|
115
118
|
}
|