jcampconverter 8.2.0 → 8.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/index.js +2 -2
- package/package.json +12 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### [8.2.1](https://www.github.com/cheminfo/jcampconverter/compare/v8.2.0...v8.2.1) (2021-09-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* ensure compatibility with node 12 ([c5c68cc](https://www.github.com/cheminfo/jcampconverter/commit/c5c68cc9de6330088f7c838573369c280ba68ff6))
|
|
9
|
+
* update nmr-processing library ([0732b3a](https://www.github.com/cheminfo/jcampconverter/commit/0732b3a44fd9bd92a721f6694bb98e46d12ea7bd))
|
|
10
|
+
|
|
3
11
|
## [8.2.0](https://www.github.com/cheminfo/jcampconverter/compare/v8.1.5...v8.2.0) (2021-09-07)
|
|
4
12
|
|
|
5
13
|
|
package/lib/index.js
CHANGED
|
@@ -452,9 +452,9 @@ function convertTo3DZ(spectra) {
|
|
|
452
452
|
for (let i = 0; i < row.length; i++) {
|
|
453
453
|
if (row[i] < 0) row[i] = -row[i];
|
|
454
454
|
}
|
|
455
|
-
medians.push(getMedian__default[
|
|
455
|
+
medians.push(getMedian__default["default"](row));
|
|
456
456
|
}
|
|
457
|
-
const median = getMedian__default[
|
|
457
|
+
const median = getMedian__default["default"](medians);
|
|
458
458
|
|
|
459
459
|
return {
|
|
460
460
|
z: z,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jcampconverter",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.1",
|
|
4
4
|
"description": "Parse and convert JCAMP data",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -17,10 +17,9 @@
|
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "cheminfo-build --entry src/index.js --root JcampConverter",
|
|
20
|
-
"compile": "rollup -c",
|
|
21
|
-
"prepack": "npm run compile",
|
|
22
20
|
"eslint": "eslint src __tests__",
|
|
23
21
|
"eslint-fix": "npm run eslint -- --fix",
|
|
22
|
+
"prepack": "rollup -c",
|
|
24
23
|
"test": "npm run test-coverage && npm run eslint",
|
|
25
24
|
"test-coverage": "jest --coverage",
|
|
26
25
|
"test-only": "jest",
|
|
@@ -47,24 +46,24 @@
|
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
48
|
"@babel/plugin-transform-modules-commonjs": "^7.15.4",
|
|
50
|
-
"@types/jest": "^27.0.
|
|
49
|
+
"@types/jest": "^27.0.2",
|
|
51
50
|
"benchmark": "^2.1.4",
|
|
52
51
|
"cheminfo-build": "^1.1.11",
|
|
53
52
|
"eslint": "^7.32.0",
|
|
54
|
-
"eslint-config-cheminfo": "^5.
|
|
53
|
+
"eslint-config-cheminfo": "^5.5.0",
|
|
55
54
|
"eslint-plugin-import": "^2.24.2",
|
|
56
|
-
"eslint-plugin-jest": "^24.
|
|
55
|
+
"eslint-plugin-jest": "^24.5.0",
|
|
57
56
|
"eslint-plugin-prettier": "^4.0.0",
|
|
58
57
|
"esm": "^3.2.25",
|
|
59
|
-
"jest": "^27.
|
|
60
|
-
"jest-matcher-deep-close-to": "^
|
|
61
|
-
"prettier": "^2.
|
|
62
|
-
"rollup": "^2.
|
|
58
|
+
"jest": "^27.2.4",
|
|
59
|
+
"jest-matcher-deep-close-to": "^3.0.0",
|
|
60
|
+
"prettier": "^2.4.1",
|
|
61
|
+
"rollup": "^2.57.0"
|
|
63
62
|
},
|
|
64
63
|
"dependencies": {
|
|
65
|
-
"dynamic-typing": "^0.1.
|
|
66
|
-
"ensure-string": "^1.
|
|
64
|
+
"dynamic-typing": "^0.1.3",
|
|
65
|
+
"ensure-string": "^1.1.0",
|
|
67
66
|
"ml-array-median": "^1.1.5",
|
|
68
|
-
"nmr-processing": "^
|
|
67
|
+
"nmr-processing": "^3.0.2"
|
|
69
68
|
}
|
|
70
69
|
}
|