Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Jun 29, 2024
1 parent e56e5c4 commit de4ea47
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 11 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@
"devDependencies": {
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"eslint": "^8.28.0",
"eslint-config-cheminfo": "^8.1.3",
"jest": "^29.3.1",
"eslint-config-cheminfo": "^9.2.0",
"jest": "^29.7.0",
"nmredata-data-test": "^0.4.0",
"prettier": "^2.8.0",
"rollup": "^3.5.0"
"prettier": "^3.3.2",
"rollup": "^4.18.0"
},
"dependencies": {
"filelist-utils": "^1.2.0",
"filelist-utils": "^1.11.0",
"jszip": "^3.10.1",
"openchemlib": "^8.0.1",
"openchemlib-utils": "^5.2.0"
"openchemlib": "^8.14.0",
"openchemlib-utils": "^6.1.0"
}
}
1 change: 1 addition & 0 deletions src/converter/nmredataToJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export async function nmredataToJSON(nmredata, options) {
return signalContent;
});

// eslint-disable-next-line no-await-in-loop
let zipAndJcamp = await getSpectra(nmredata[tag], options);
if (!zipAndJcamp.jcamp && !zipAndJcamp.bruker) {
spectra.push(spectrum);
Expand Down
2 changes: 1 addition & 1 deletion src/converter/nmriumToNmrRecord.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Jszip from 'jszip';
import { getGroupedDiastereotopicAtomIDs } from 'openchemlib-utils';
import { Molecule as OCLMolecule } from 'openchemlib/full';
import { getGroupedDiastereotopicAtomIDs } from 'openchemlib-utils';

import { create1DSignals } from './util/fromNmrium/create1DSignals';
import { create2DSignals } from './util/fromNmrium/create2DSignals';
Expand Down
6 changes: 5 additions & 1 deletion src/converter/util/toJSON/extractZipFolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export async function extractZipFolder(tag, options) {
let locationLine = tag.data.find((e) => e.value.spectrum_location);

if (!locationLine) {
// TODO: fix this

Check warning on line 9 in src/converter/util/toJSON/extractZipFolder.js

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Unexpected 'todo' comment: 'TODO: fix this'
// eslint-disable-next-line no-new
new Error(`There is not spectrum for ${tag}`);
return;
}
Expand All @@ -24,7 +26,9 @@ export async function extractZipFolder(tag, options) {
}
}
if (file.endsWith('/')) continue;
zipFolder.file(file, await zipFiles[file].async('arraybuffer'));
// eslint-disable-next-line no-await-in-loop
const arrayBuffer = await zipFiles[file].async('arraybuffer');
zipFolder.file(file, arrayBuffer);
}
return {
name: `${pathSpectrum}`,
Expand Down
2 changes: 2 additions & 0 deletions src/converter/util/toJSON/getBrukerFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export async function getBrukerFiles(tag, options) {
const sources = [];
for (const locationLine of locationLines) {
if (!locationLine) {
// TODO: fix this

Check warning on line 11 in src/converter/util/toJSON/getBrukerFiles.js

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Unexpected 'todo' comment: 'TODO: fix this'
// eslint-disable-next-line no-new
new Error(`There is not spectrum for ${tag}`);
return;
}
Expand Down
4 changes: 4 additions & 0 deletions src/converter/util/toJSON/getJcamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export async function getJcamp(tag, options) {
let locationLine = tag.data.find((e) => e.value.jcamp_location);

if (!locationLine) {
// TODO: fix this
// eslint-disable-next-line no-new
new Error(`There is not spectrum for ${tag}`);
return;
}
Expand All @@ -15,6 +17,8 @@ export async function getJcamp(tag, options) {
(file) => file.relativePath === pathJcamp,
);
if (!jcampFile) {
// TODO: fix this
// eslint-disable-next-line no-new
new Error(`There is not jcamp with path: ${pathJcamp}`);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/converter/util/toJSON/getSignalData1D.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export function getSignalData1D(data, labels) {
result.integration = integration
? Number(integration)
: nbAtoms
? Number(nbAtoms)
: null;
? Number(nbAtoms)
: null;

if (data.assignment) {
data.assignment.forEach((assignment) => {
Expand Down
1 change: 1 addition & 0 deletions src/util/getSDF.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export async function getSDF(files) {
for (const file of files) {
const pathFile = file.relativePath.split('/');
if (/^[^.].+sdf|nmredata$/.exec(file.name)) {
// eslint-disable-next-line no-await-in-loop
const sdf = await file.text();
if (!sdf.match('NMREDATA')) continue;

Expand Down

0 comments on commit de4ea47

Please sign in to comment.