From 3573337ef0af6bf4f11727431e5b5985dd1aa13a Mon Sep 17 00:00:00 2001 From: Luc Patiny Date: Tue, 7 May 2024 17:16:51 +0200 Subject: [PATCH] chore: update dependencies and 'fix' eslint --- package.json | 24 ++++++++++++------------ src/from/fromJcamp.ts | 3 ++- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index fae073e..0bf5d57 100644 --- a/package.json +++ b/package.json @@ -50,33 +50,33 @@ "@types/js-quantities": "^1.6.6", "cheminfo-build": "^1.2.0", "eslint": "^8.57.0", - "eslint-config-cheminfo-typescript": "^12.2.0", + "eslint-config-cheminfo-typescript": "^12.4.0", "jest": "^29.7.0", "jest-matcher-deep-close-to": "^3.0.2", "prettier": "^3.2.5", "rimraf": "^5.0.5", "ts-jest": "^29.1.2", - "typescript": "^5.3.3" + "typescript": "^5.4.5" }, "dependencies": { - "@types/react": "^18.2.61", - "baselines": "^1.1.6", - "cheminfo-types": "^1.7.2", - "convert-to-jcamp": "^5.4.9", + "@types/react": "^18.3.1", + "baselines": "^1.1.7", + "cheminfo-types": "^1.7.3", + "convert-to-jcamp": "^5.4.10", "is-any-array": "^2.0.1", - "jcampconverter": "^9.6.1", + "jcampconverter": "^9.6.4", "js-quantities": "^1.8.0", "ml-array-normed": "^1.3.7", "ml-array-rescale": "^1.3.7", "ml-array-xy-equally-spaced": "^1.2.1", "ml-array-xy-filter-x": "^1.0.2", - "ml-gsd": "^12.1.3", + "ml-gsd": "^12.1.6", "ml-peak-shape-generator": "^4.1.2", "ml-savitzky-golay": "^5.0.0", - "ml-signal-processing": "^1.0.3", - "ml-spectra-fitting": "^4.2.1", - "ml-spectra-processing": "^14.0.0", + "ml-signal-processing": "^1.0.4", + "ml-spectra-fitting": "^4.2.3", + "ml-spectra-processing": "^14.5.0", "react-plot": "^0.10.1", - "xy-parser": "^5.0.4" + "xy-parser": "^5.0.5" } } diff --git a/src/from/fromJcamp.ts b/src/from/fromJcamp.ts index bc3d1a3..3ffcb64 100644 --- a/src/from/fromJcamp.ts +++ b/src/from/fromJcamp.ts @@ -45,8 +45,9 @@ function addJcamp(analysis: Analysis, jcamp: string | ArrayBuffer) { for (const key in currentSpectrum.variables) { const variable = currentSpectrum.variables[key]; if (variable.label) continue; - variable.label = variable.name || variable.symbol || key; + variable.label = variable.name || variable.symbol || key ; if (variable.units && !variable.label.includes(variable.units)) { + // eslint-disable-next-line @typescript-eslint/restrict-plus-operands variable.label += ` [${variable.units}]`; } }