Skip to content

Commit a4c4321

Browse files
committed
chore: update dependencies
1 parent 0bb7942 commit a4c4321

File tree

4 files changed

+17
-20
lines changed

4 files changed

+17
-20
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,26 @@
4040
},
4141
"dependencies": {
4242
"binary-search": "^1.3.6",
43-
"cheminfo-types": "^1.8.1",
43+
"cheminfo-types": "^1.9.0",
4444
"fft.js": "^4.0.4",
4545
"is-any-array": "^2.0.1",
4646
"ml-matrix": "^6.12.1",
4747
"ml-xsadd": "^3.0.1"
4848
},
4949
"devDependencies": {
50-
"@types/node": "^24.5.2",
51-
"@vitest/coverage-v8": "^3.2.4",
50+
"@types/node": "^25.0.3",
51+
"@vitest/coverage-v8": "^4.0.16",
5252
"@zakodium/tsconfig": "^1.0.2",
53-
"cheminfo-build": "^1.3.1",
54-
"eslint": "^9.36.0",
55-
"eslint-config-cheminfo-typescript": "^20.0.0",
53+
"cheminfo-build": "^1.3.2",
54+
"eslint": "^9.39.2",
55+
"eslint-config-cheminfo-typescript": "^21.0.1",
5656
"jest-matcher-deep-close-to": "^3.0.2",
5757
"ml-spectra-fitting": "^5.0.1",
58-
"prettier": "^3.6.2",
59-
"rimraf": "^6.0.1",
58+
"prettier": "^3.7.4",
59+
"rimraf": "^6.1.2",
6060
"spectrum-generator": "^8.1.1",
61-
"typescript": "^5.9.2",
62-
"vitest": "^3.2.4"
61+
"typescript": "^5.9.3",
62+
"vitest": "^4.0.16"
6363
},
6464
"repository": {
6565
"type": "git",

src/matrix/matrixGetSubMatrix.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ export function matrixGetSubMatrix(
3939
options: MatrixGetSubMatrixOptions,
4040
): Float64Array[] {
4141
const {
42-
startRow = 0,
43-
endRow = matrix.length - 1,
44-
startColumn = 0,
45-
endColumn = matrix[0].length - 1,
42+
startRow,
43+
endRow,
44+
startColumn,
45+
endColumn,
4646
duplicate = true,
4747
} = options;
4848
matrixCheckRanges(matrix, { startColumn, startRow, endColumn, endRow });

src/xy/xyCumulativeDistributionStatistics.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,16 @@ export function xyCumulativeDistributionStatistics(
3434
}
3535

3636
const result: XYCumulativeDistributionStatisticsResult = {
37-
x0: 0,
37+
x0: x[0],
3838
x25: 0,
3939
x50: 0,
4040
x75: 0,
41-
x100: 0,
41+
x100: x.at(-1) as number,
4242
xMode: 0,
4343
xMean: 0,
4444
};
4545

4646
// need to find the x values closest to STEPS/100
47-
result.x0 = x[0];
48-
result.x100 = x.at(-1) as number;
4947

5048
let currentStep = 0;
5149
breakPoint: for (let i = 1; i < cumulativeSum.length; i++) {

src/xyObject/__tests__/xyObjectSlotX.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ test('xyObjectSlotX', () => {
1010
{ x: 1.9, y: 4 },
1111
];
1212

13-
const expected = [];
14-
expected.push({ x: 1, y: 6 }, { x: 2, y: 4 });
13+
const expected = [ { x: 1, y: 6 }, { x: 2, y: 4 }];
1514

1615
expect(xyObjectSlotX(arrayXY)).toStrictEqual(expected);
1716

0 commit comments

Comments
 (0)