ir-spectrum 1.1.0 → 2.0.0
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 +17 -0
- package/lib/index.js +6 -16
- package/package.json +16 -14
- package/src/from/fromJcamp.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.0](https://www.github.com/cheminfo/ir-spectrum/compare/v1.1.0...v2.0.0) (2022-05-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* remove node 12 compatibility
|
|
9
|
+
* update dependencies to use new ml-signal-processing package
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* update dependencies to use new ml-signal-processing package ([41e89c2](https://www.github.com/cheminfo/ir-spectrum/commit/41e89c29fec7d228fd9c65828b471cde15af5a9c))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Miscellaneous Chores
|
|
17
|
+
|
|
18
|
+
* remove node 12 compatibility ([fd426fc](https://www.github.com/cheminfo/ir-spectrum/commit/fd426fce70fcf8260de58a49224e6b66b07641e8))
|
|
19
|
+
|
|
3
20
|
## [1.1.0](https://www.github.com/cheminfo/ir-spectrum/compare/v1.0.3...v1.1.0) (2021-09-07)
|
|
4
21
|
|
|
5
22
|
|
package/lib/index.js
CHANGED
|
@@ -219,7 +219,7 @@ function spectrumCallback(variables) {
|
|
|
219
219
|
* Creates a new Analysis from a SPC buffer
|
|
220
220
|
* @param {ArrayBuffer|string} jcamp
|
|
221
221
|
* @param {object} [options={}]
|
|
222
|
-
* @param {
|
|
222
|
+
* @param {string|number} [options.id=Math.random()]
|
|
223
223
|
* @param {string} [options.label=options.id] human redeable label
|
|
224
224
|
* @param {string} [options.spectrumCallback] a callback to apply on variables when creating spectrum. Default will add a and t
|
|
225
225
|
* @return {Analysis} - New class element with the given data
|
|
@@ -259,33 +259,23 @@ const JSGraph = { ...commonSpectrum.JSGraph, getAnnotations };
|
|
|
259
259
|
|
|
260
260
|
Object.defineProperty(exports, 'AnalysesManager', {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () {
|
|
263
|
-
return commonSpectrum.AnalysesManager;
|
|
264
|
-
}
|
|
262
|
+
get: function () { return commonSpectrum.AnalysesManager; }
|
|
265
263
|
});
|
|
266
264
|
Object.defineProperty(exports, 'Analysis', {
|
|
267
265
|
enumerable: true,
|
|
268
|
-
get: function () {
|
|
269
|
-
return commonSpectrum.Analysis;
|
|
270
|
-
}
|
|
266
|
+
get: function () { return commonSpectrum.Analysis; }
|
|
271
267
|
});
|
|
272
268
|
Object.defineProperty(exports, 'autoPeakPicking', {
|
|
273
269
|
enumerable: true,
|
|
274
|
-
get: function () {
|
|
275
|
-
return commonSpectrum.autoPeakPicking;
|
|
276
|
-
}
|
|
270
|
+
get: function () { return commonSpectrum.autoPeakPicking; }
|
|
277
271
|
});
|
|
278
272
|
Object.defineProperty(exports, 'peakPicking', {
|
|
279
273
|
enumerable: true,
|
|
280
|
-
get: function () {
|
|
281
|
-
return commonSpectrum.peakPicking;
|
|
282
|
-
}
|
|
274
|
+
get: function () { return commonSpectrum.peakPicking; }
|
|
283
275
|
});
|
|
284
276
|
Object.defineProperty(exports, 'toJcamp', {
|
|
285
277
|
enumerable: true,
|
|
286
|
-
get: function () {
|
|
287
|
-
return commonSpectrum.toJcamp;
|
|
288
|
-
}
|
|
278
|
+
get: function () { return commonSpectrum.toJcamp; }
|
|
289
279
|
});
|
|
290
280
|
exports.JSGraph = JSGraph;
|
|
291
281
|
exports.fromJcamp = fromJcamp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ir-spectrum",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
"eslint": "eslint src",
|
|
15
15
|
"eslint-fix": "npm run eslint -- --fix",
|
|
16
16
|
"prepublishOnly": "rollup -c",
|
|
17
|
+
"prettier": "prettier --check src",
|
|
18
|
+
"prettier-write": "prettier --write src",
|
|
17
19
|
"test": "npm run test-coverage && npm run eslint",
|
|
18
20
|
"test-coverage": "jest --coverage",
|
|
19
21
|
"test-only": "jest"
|
|
@@ -33,25 +35,25 @@
|
|
|
33
35
|
"testEnvironment": "node"
|
|
34
36
|
},
|
|
35
37
|
"devDependencies": {
|
|
36
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
37
|
-
"@types/jest": "^27.0
|
|
38
|
+
"@babel/plugin-transform-modules-commonjs": "^7.17.9",
|
|
39
|
+
"@types/jest": "^27.5.0",
|
|
38
40
|
"cheminfo-build": "^1.1.11",
|
|
39
41
|
"codecov": "^3.8.3",
|
|
40
|
-
"eslint": "^
|
|
41
|
-
"eslint-config-cheminfo": "^
|
|
42
|
-
"eslint-plugin-import": "^2.
|
|
43
|
-
"eslint-plugin-jest": "^
|
|
42
|
+
"eslint": "^8.14.0",
|
|
43
|
+
"eslint-config-cheminfo": "^7.3.0",
|
|
44
|
+
"eslint-plugin-import": "^2.26.0",
|
|
45
|
+
"eslint-plugin-jest": "^26.1.5",
|
|
44
46
|
"eslint-plugin-prettier": "^4.0.0",
|
|
45
47
|
"esm": "^3.2.25",
|
|
46
|
-
"jest": "^
|
|
47
|
-
"jest-matcher-deep-close-to": "^
|
|
48
|
-
"prettier": "^2.
|
|
49
|
-
"rollup": "^2.
|
|
48
|
+
"jest": "^28.0.3",
|
|
49
|
+
"jest-matcher-deep-close-to": "^3.0.2",
|
|
50
|
+
"prettier": "^2.6.2",
|
|
51
|
+
"rollup": "^2.72.0"
|
|
50
52
|
},
|
|
51
53
|
"dependencies": {
|
|
52
|
-
"common-spectrum": "0.
|
|
53
|
-
"ml-gsd": "^
|
|
54
|
-
"spc-parser": "^0.5.
|
|
54
|
+
"common-spectrum": "1.0.2",
|
|
55
|
+
"ml-gsd": "^11.2.0",
|
|
56
|
+
"spc-parser": "^0.5.2"
|
|
55
57
|
},
|
|
56
58
|
"info": {
|
|
57
59
|
"logo": "https://raw.githubusercontent.com/cheminfo/font/master/src/ir/assignment.svg",
|
package/src/from/fromJcamp.js
CHANGED
|
@@ -6,7 +6,7 @@ import { spectrumCallback } from './utils/spectrumCallback';
|
|
|
6
6
|
* Creates a new Analysis from a SPC buffer
|
|
7
7
|
* @param {ArrayBuffer|string} jcamp
|
|
8
8
|
* @param {object} [options={}]
|
|
9
|
-
* @param {
|
|
9
|
+
* @param {string|number} [options.id=Math.random()]
|
|
10
10
|
* @param {string} [options.label=options.id] human redeable label
|
|
11
11
|
* @param {string} [options.spectrumCallback] a callback to apply on variables when creating spectrum. Default will add a and t
|
|
12
12
|
* @return {Analysis} - New class element with the given data
|