Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Aug 22, 2023
1 parent b060163 commit c12237b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@
"testEnvironment": "node"
},
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.20.11",
"@types/jest": "^29.4.0",
"@babel/plugin-transform-modules-commonjs": "^7.22.5",
"@types/jest": "^29.5.3",
"cheminfo-build": "^1.2.0",
"codecov": "^3.8.3",
"eslint": "^8.33.0",
"eslint-config-cheminfo": "^8.1.3",
"eslint": "^8.47.0",
"eslint-config-cheminfo": "^9.0.2",
"esm": "^3.2.25",
"jest": "^29.4.1",
"jest": "^29.6.3",
"jest-matcher-deep-close-to": "^3.0.2",
"prettier": "^2.8.3",
"rollup": "^3.12.0"
"prettier": "^3.0.2",
"rollup": "^3.28.1"
},
"dependencies": {
"common-spectrum": "2.2.1",
"ml-gsd": "^12.1.2",
"spc-parser": "^0.7.1"
"ml-gsd": "^12.1.3",
"spc-parser": "^0.7.2"
},
"info": {
"logo": "https://raw.githubusercontent.com/cheminfo/font/master/src/ir/assignment.svg",
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ export { Analysis, AnalysesManager, toJcamp } from 'common-spectrum';

export function peakPicking(spectrum, target, options) {
const peak = originalPeakPicking(spectrum, target, options);
if (!peak) return undefined;
return convertPeak(peak, spectrum);
}

export function autoPeakPicking(spectrum, options) {
const peaks = originalAutoPeakPicking(spectrum, options);
if (!peaks) return [];
return peaks.map((peak) => convertPeak(peak, spectrum));
}

Expand Down

0 comments on commit c12237b

Please sign in to comment.