Skip to content

Commit

Permalink
fix: update ml-spectra-processing and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Mar 7, 2024
1 parent 51b1a6a commit d342f60
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@
},
"homepage": "https://github.com/cheminfo/spc-parser#readme",
"devDependencies": {
"@babel/preset-typescript": "^7.22.15",
"@types/jest": "^29.5.4",
"@types/node": "^20.5.9",
"@babel/preset-typescript": "^7.23.3",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.25",
"cheminfo-build": "^1.2.0",
"eslint": "^8.48.0",
"eslint-config-cheminfo-typescript": "^12.0.4",
"jest": "^29.6.4",
"prettier": "^3.0.3",
"rimraf": "^5.0.1",
"typescript": "~5.1.6"
"eslint": "^8.57.0",
"eslint-config-cheminfo-typescript": "^12.2.0",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typescript": "~5.4.2"
},
"dependencies": {
"cheminfo-types": "^1.7.2",
"iobuffer": "^5.3.2",
"ml-spectra-processing": "^12.5.0"
"ml-spectra-processing": "^14.2.0"
}
}
5 changes: 1 addition & 4 deletions src/dataBlock/newDataBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ export function getNewY(
if (subHeader.exponentY === 0) {
subHeader.exponentY = exponentY;
}
const yFactor = Math.pow(
2,
subHeader.exponentY - (y16BitPrecision ? 16 : 32),
);
const yFactor = 2 ** (subHeader.exponentY - (y16BitPrecision ? 16 : 32));

if (y16BitPrecision) {
for (let j = 0; j < y.length; j++) {
Expand Down
5 changes: 1 addition & 4 deletions src/dataBlock/oldDataBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ export function getOldY(
if (subHeader.exponentY === 0) {
subHeader.exponentY = exponentY;
}
const yFactor = Math.pow(
2,
subHeader.exponentY - (y16BitPrecision ? 16 : 32),
);
const yFactor = 2 ** (subHeader.exponentY - (y16BitPrecision ? 16 : 32));

if (y16BitPrecision) {
for (let j = 0; j < y.length; j++) {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"allowJs": true,
"esModuleInterop": true,
"moduleResolution": "node16",
"moduleResolution": "node",
"outDir": "lib",
"sourceMap": true,
"strict": true,
Expand Down

0 comments on commit d342f60

Please sign in to comment.