Skip to content

Commit

Permalink
feat: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Jan 30, 2024
1 parent 15837e3 commit 016077c
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
extends: cheminfo
parserOptions:
sourceType: module
env:
jest: true
node: true
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package-lock=false

31 changes: 15 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"build": "cheminfo-build --entry src/index.js --root XPS",
"eslint": "eslint src",
"eslint-fix": "npm run eslint -- --fix",
"prepublishOnly": "rollup -c",
"prepack": "rollup -c",
"prettier": "prettier --check src",
"prettier-write": "prettier --write src",
"test": "npm run test-coverage && npm run eslint",
"test-coverage": "jest --coverage",
"test-only": "jest"
Expand All @@ -39,23 +41,20 @@
"trailingComma": "all"
},
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.14.5",
"@types/jest": "^26.0.24",
"cheminfo-build": "^1.1.11",
"eslint": "^7.31.0",
"eslint-config-cheminfo": "^5.2.4",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jest": "^24.3.7",
"eslint-plugin-prettier": "^3.4.0",
"jest": "^27.0.6",
"papaparse": "^5.3.1",
"prettier": "^2.3.2",
"rollup": "^2.53.3"
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@types/jest": "^29.5.11",
"cheminfo-build": "^1.2.0",
"eslint": "^8.56.0",
"eslint-config-cheminfo": "^9.1.1",
"jest": "^29.7.0",
"papaparse": "^5.4.1",
"prettier": "^3.2.4",
"rollup": "^4.9.6"
},
"dependencies": {
"common-spectrum": "0.40.0",
"ensure-string": "^0.1.1",
"ml-gsd": "^6.6.3",
"common-spectrum": "2.4.0",
"ensure-string": "^1.2.0",
"ml-gsd": "^12.1.3",
"vamas": "^0.1.2"
},
"info": {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ describe('fromVamas', () => {
expect(cheminfo).toHaveLength(54);
expect(cheminfo[0]).toMatch('region');
expect(cheminfo[7]).toMatch('S 2p WS2');
})
});
});
2 changes: 1 addition & 1 deletion src/__tests__/peakPicking.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ describe('peakPicking', () => {

it('check number of peaks with default options', () => {
let result = peakPicking(analysis.getXYSpectrum());
expect(result).toHaveLength(118);
expect(result).toHaveLength(12);
});
});
1 change: 0 additions & 1 deletion src/from/__tests__/fromVamas.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ describe('fromVamas', () => {
expect(typeof result.meta.cheminfo.meta).toBe('object');
});


it('auger', () => {
let result = fromVamas(augerText).spectra[0];
expect(Object.keys(result.variables)).toHaveLength(2);
Expand Down
4 changes: 2 additions & 2 deletions src/jsgraph/getAnnotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export function getAnnotations(components, options = {}) {
let annotation = {
line: 1,
type: 'rect',
strokeColor: strokeColor,
strokeColor,
strokeWidth: 0,
fillColor: fillColor,
fillColor,
};
if (creationFct) {
creationFct(annotation, component);
Expand Down

0 comments on commit 016077c

Please sign in to comment.