Skip to content

Commit

Permalink
chore: update dependencies and 'fix' eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed May 7, 2024
1 parent 97b26a2 commit 3573337
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
3 changes: 2 additions & 1 deletion src/from/fromJcamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}]`;
}
}
Expand Down

0 comments on commit 3573337

Please sign in to comment.