Skip to content

Commit beebf51

Browse files
committed
fix: update dependencies
1 parent fd108ca commit beebf51

File tree

9 files changed

+32
-32
lines changed

9 files changed

+32
-32
lines changed

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,22 @@
3838
},
3939
"homepage": "https://github.com/mljs/signal-processing#readme",
4040
"devDependencies": {
41-
"@types/jest": "^29.5.0",
42-
"eslint": "^8.36.0",
43-
"eslint-config-cheminfo-typescript": "^11.3.1",
44-
"jest": "^29.5.0",
41+
"@types/jest": "^29.5.12",
42+
"eslint": "^8.57.0",
43+
"eslint-config-cheminfo-typescript": "^12.2.0",
44+
"jest": "^29.7.0",
4545
"jest-matcher-deep-close-to": "^3.0.2",
46-
"prettier": "^2.8.7",
47-
"rimraf": "^4.4.1",
48-
"ts-jest": "^29.0.5",
49-
"typescript": "^5.0.2",
50-
"typescript-json-schema": "^0.55.0"
46+
"prettier": "^3.2.5",
47+
"rimraf": "^5.0.5",
48+
"ts-jest": "^29.1.2",
49+
"typescript": "^5.4.2",
50+
"typescript-json-schema": "^0.63.0"
5151
},
5252
"dependencies": {
53-
"baselines": "^1.1.5",
54-
"cheminfo-types": "^1.4.0",
55-
"ml-gsd": "^12.1.3",
53+
"baselines": "^1.1.7",
54+
"cheminfo-types": "^1.7.2",
55+
"ml-gsd": "^12.1.5",
5656
"ml-savitzky-golay-generalized": "^4.0.1",
57-
"ml-spectra-processing": "^12.0.0"
57+
"ml-spectra-processing": "^14.2.0"
5858
}
5959
}

src/filterMatrix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function filterMatrix(
88
// eslint-disable-next-line @typescript-eslint/no-unused-vars
99
filters: FilterMatrixType[],
1010
) {
11-
let result = {
11+
const result = {
1212
data: matrix,
1313
};
1414

src/filterXY.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function filterXY(data: DataXY, filters: FilterXYType[]) {
1515

1616
const logs = [];
1717

18-
for (let filter of filters) {
18+
for (const filter of filters) {
1919
const start = Date.now();
2020
// eslint-disable-next-line import/namespace
2121
const filterFct = Filters[filter.name];

src/filters/sg/__tests__/firstDerivative.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { firstDerivative } from '../firstDerivative';
66
expect.extend({ toBeDeepCloseTo, toMatchCloseTo });
77

88
test('firstDerivative', () => {
9-
let result = firstDerivative(linear);
9+
const result = firstDerivative(linear);
1010
expect(result.data).toMatchCloseTo({
1111
x: Float64Array.from([1, 2, 3, 4, 5, 6, 7, 8, 9]),
1212
y: Float64Array.from([

src/filters/sg/__tests__/savitzkyGolay.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { savitzkyGolay } from '../savitzkyGolay';
66
expect.extend({ toBeDeepCloseTo, toMatchCloseTo });
77

88
test('savitzkyGolay', () => {
9-
let result = savitzkyGolay(linear, {
9+
const result = savitzkyGolay(linear, {
1010
derivative: 1,
1111
});
1212
expect(result.data).toMatchCloseTo({

src/filters/sg/__tests__/secondDerivative.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { secondDerivative } from '../secondDerivative';
66
expect.extend({ toBeDeepCloseTo, toMatchCloseTo });
77

88
test('secondDerivative', () => {
9-
let result = secondDerivative(linear);
9+
const result = secondDerivative(linear);
1010
expect(result.data).toMatchCloseTo({
1111
x: Float64Array.from([1, 2, 3, 4, 5, 6, 7, 8, 9]),
1212
y: Float64Array.from([

src/filters/sg/__tests__/thirdDerivate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { thirdDerivative } from '../thirdDerivative';
66
expect.extend({ toBeDeepCloseTo, toMatchCloseTo });
77

88
test('thirdDerivative', () => {
9-
let result = thirdDerivative(linear);
9+
const result = thirdDerivative(linear);
1010
expect(result.data).toMatchCloseTo({
1111
x: Float64Array.from([1, 2, 3, 4, 5, 6, 7, 8, 9]),
1212
y: Float64Array.from([0, 0, 0, 0, 0, 0, 0, 0, 0]),

src/filters/x/__tests__/calibrateX.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ expect.extend({ toBeDeepCloseTo, toMatchCloseTo });
66

77
describe('calibrateX', () => {
88
it('undefined params', () => {
9-
let data = {
9+
const data = {
1010
x: Float64Array.from([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
1111
y: Float64Array.from([1, 1, 1, 1, 1, 1, 700, 1, 1, 1, 1, 1, 1]),
1212
};
1313

14-
let shifted = calibrateX(data);
14+
const shifted = calibrateX(data);
1515
expect(shifted.data.x).toMatchCloseTo(
1616
Float64Array.from([-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6]),
1717
);
1818
expect(shifted.data.y).toStrictEqual(data.y);
1919
});
2020

2121
it('too small data', () => {
22-
let data = {
22+
const data = {
2323
x: Float64Array.from([0, 1, 2, 3]),
2424
y: Float64Array.from([1, 1, 5, 1]),
2525
};
@@ -29,12 +29,12 @@ describe('calibrateX', () => {
2929
});
3030

3131
it('no shift', () => {
32-
let data = {
32+
const data = {
3333
x: Float64Array.from([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
3434
y: Float64Array.from([1, 1, 5, 1, 1, 1, 700, 1, 1, 1, 1, 1, 1]),
3535
};
3636

37-
let gsdOptions = {
37+
const gsdOptions = {
3838
minMaxRatio: 0.4,
3939
realTopDetection: true,
4040
smoothY: true,
@@ -44,7 +44,7 @@ describe('calibrateX', () => {
4444
},
4545
};
4646

47-
let shifted = calibrateX(data, {
47+
const shifted = calibrateX(data, {
4848
from: 1,
4949
to: 10,
5050
targetX: 6,
@@ -58,12 +58,12 @@ describe('calibrateX', () => {
5858
});
5959

6060
it('shift of 2', () => {
61-
let data = {
61+
const data = {
6262
x: Float64Array.from([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
6363
y: Float64Array.from([1, 1, 1, 1, 700, 1, 5, 1, 1, 1, 1, 1, 1]),
6464
};
6565

66-
let gsdOptions = {
66+
const gsdOptions = {
6767
minMaxRatio: 0.4,
6868
realTopDetection: true,
6969
smoothY: true,
@@ -73,7 +73,7 @@ describe('calibrateX', () => {
7373
},
7474
};
7575

76-
let shifted = calibrateX(data, {
76+
const shifted = calibrateX(data, {
7777
targetX: 6,
7878
gsd: gsdOptions,
7979
from: 1,
@@ -89,7 +89,7 @@ describe('calibrateX', () => {
8989
});
9090

9191
it('2 peaks', () => {
92-
let data = {
92+
const data = {
9393
x: Float64Array.from([
9494
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
9595
20,
@@ -99,7 +99,7 @@ describe('calibrateX', () => {
9999
]),
100100
};
101101

102-
let gsdOptions = {
102+
const gsdOptions = {
103103
minMaxRatio: 0.4,
104104
realTopDetection: true,
105105
smoothY: true,
@@ -109,7 +109,7 @@ describe('calibrateX', () => {
109109
},
110110
};
111111

112-
let shifted = calibrateX(data, {
112+
const shifted = calibrateX(data, {
113113
targetX: 6,
114114
gsd: gsdOptions,
115115
nbPeaks: 2,

src/filters/x/calibrateX.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function calibrateX(
5555
const fromIndex = xFindClosestIndex(data.x, from);
5656
const toIndex = xFindClosestIndex(data.x, to);
5757

58-
let peaks = gsd(
58+
const peaks = gsd(
5959
{
6060
x: data.x.subarray(fromIndex, toIndex),
6161
y: data.y.subarray(fromIndex, toIndex),

0 commit comments

Comments
 (0)