Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jcampconverter

Package Overview
Dependencies
Maintainers
4
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jcampconverter - npm Package Compare versions

Comparing version 9.1.0 to 9.1.1

28

lib-esm/convert.d.ts

@@ -14,3 +14,3 @@ /**

* @property {number} [noiseMultiplier=5] - Define for 2D the level as 5 times the median as default.
* @property {import('@types/pino').Logger} [logger] - A logger like 'pino'
* @property {import('cheminfo-types').Logger} [logger] - A logger like 'pino'
* @property {boolean} [profiling=false] - Add profiling information.

@@ -46,2 +46,14 @@ */

*
* @typedef {object} MinMax
* @property {number[][]} [z]
* @property {number} minX
* @property {number} maxX
* @property {number} minY
* @property {number} maxY
* @property {number} minZ
* @property {number} maxZ
* @property {number} median
*/
/**
*
* @typedef {object} Entry

@@ -57,2 +69,3 @@ * @property {Spectrum[]} spectra

* @property {boolean} [twoD]
* @property {MinMax} [minMax]
*/

@@ -123,3 +136,3 @@ /**

*/
logger?: any;
logger?: import("cheminfo-types").Logger | undefined;
/**

@@ -145,2 +158,12 @@ * - Add profiling information.

export type Spectrum = Record<string, any>;
export type MinMax = {
z?: number[][] | undefined;
minX: number;
maxX: number;
minY: number;
maxY: number;
minZ: number;
maxZ: number;
median: number;
};
export type Entry = {

@@ -156,2 +179,3 @@ spectra: Spectrum[];

twoD?: boolean | undefined;
minMax?: MinMax | undefined;
};

@@ -158,0 +182,0 @@ export type ConvertResult = {

@@ -40,3 +40,3 @@ import { parseString } from 'dynamic-typing';

* @property {number} [noiseMultiplier=5] - Define for 2D the level as 5 times the median as default.
* @property {import('@types/pino').Logger} [logger] - A logger like 'pino'
* @property {import('cheminfo-types').Logger} [logger] - A logger like 'pino'
* @property {boolean} [profiling=false] - Add profiling information.

@@ -72,2 +72,14 @@ */

*
* @typedef {object} MinMax
* @property {number[][]} [z]
* @property {number} minX
* @property {number} maxX
* @property {number} minY
* @property {number} maxY
* @property {number} minZ
* @property {number} maxZ
* @property {number} median
*/
/**
*
* @typedef {object} Entry

@@ -83,2 +95,3 @@ * @property {Spectrum[]} spectra

* @property {boolean} [twoD]
* @property {MinMax} [minMax]
*/

@@ -85,0 +98,0 @@ /**

@@ -14,3 +14,3 @@ /**

* @property {number} [noiseMultiplier=5] - Define for 2D the level as 5 times the median as default.
* @property {import('@types/pino').Logger} [logger] - A logger like 'pino'
* @property {import('cheminfo-types').Logger} [logger] - A logger like 'pino'
* @property {boolean} [profiling=false] - Add profiling information.

@@ -46,2 +46,14 @@ */

*
* @typedef {object} MinMax
* @property {number[][]} [z]
* @property {number} minX
* @property {number} maxX
* @property {number} minY
* @property {number} maxY
* @property {number} minZ
* @property {number} maxZ
* @property {number} median
*/
/**
*
* @typedef {object} Entry

@@ -57,2 +69,3 @@ * @property {Spectrum[]} spectra

* @property {boolean} [twoD]
* @property {MinMax} [minMax]
*/

@@ -123,3 +136,3 @@ /**

*/
logger?: any;
logger?: import("cheminfo-types").Logger | undefined;
/**

@@ -145,2 +158,12 @@ * - Add profiling information.

export type Spectrum = Record<string, any>;
export type MinMax = {
z?: number[][] | undefined;
minX: number;
maxX: number;
minY: number;
maxY: number;
minZ: number;
maxZ: number;
median: number;
};
export type Entry = {

@@ -156,2 +179,3 @@ spectra: Spectrum[];

twoD?: boolean | undefined;
minMax?: MinMax | undefined;
};

@@ -158,0 +182,0 @@ export type ConvertResult = {

@@ -46,3 +46,3 @@ "use strict";

* @property {number} [noiseMultiplier=5] - Define for 2D the level as 5 times the median as default.
* @property {import('@types/pino').Logger} [logger] - A logger like 'pino'
* @property {import('cheminfo-types').Logger} [logger] - A logger like 'pino'
* @property {boolean} [profiling=false] - Add profiling information.

@@ -78,2 +78,14 @@ */

*
* @typedef {object} MinMax
* @property {number[][]} [z]
* @property {number} minX
* @property {number} maxX
* @property {number} minY
* @property {number} maxY
* @property {number} minZ
* @property {number} maxZ
* @property {number} median
*/
/**
*
* @typedef {object} Entry

@@ -89,2 +101,3 @@ * @property {Spectrum[]} spectra

* @property {boolean} [twoD]
* @property {MinMax} [minMax]
*/

@@ -91,0 +104,0 @@ /**

25

package.json
{
"name": "jcampconverter",
"version": "9.1.0",
"version": "9.1.1",
"description": "Parse and convert JCAMP data",

@@ -47,20 +47,21 @@ "main": "lib/index.js",

"devDependencies": {
"@types/jest": "^29.4.4",
"@types/jest": "^29.5.1",
"@types/pino": "^7.0.5",
"@vitest/coverage-c8": "^0.29.3",
"@vitest/coverage-c8": "^0.30.1",
"benchmark": "^2.1.4",
"c8": "^7.13.0",
"cheminfo-build": "^1.2.0",
"eslint": "^8.36.0",
"eslint-config-cheminfo-typescript": "^11.3.0",
"eslint": "^8.39.0",
"eslint-config-cheminfo-typescript": "^11.3.1",
"esm": "^3.2.25",
"fifo-logger": "^0.6.0",
"fifo-logger": "^0.6.1",
"jest-matcher-deep-close-to": "^3.0.2",
"jscpd": "^3.5.3",
"prettier": "^2.8.4",
"rimraf": "^4.4.0",
"typescript": "^4.9.5",
"vitest": "^0.29.3"
"jscpd": "^3.5.4",
"prettier": "^2.8.8",
"rimraf": "^5.0.0",
"typescript": "^5.0.4",
"vitest": "^0.30.1"
},
"dependencies": {
"cheminfo-types": "^1.7.0",
"dynamic-typing": "^1.0.0",

@@ -70,4 +71,4 @@ "ensure-string": "^1.2.0",

"ml-array-median": "^1.1.6",
"ml-spectra-processing": "^12.0.0"
"ml-spectra-processing": "^12.2.0"
}
}

@@ -44,3 +44,3 @@ import { parseString } from 'dynamic-typing';

* @property {number} [noiseMultiplier=5] - Define for 2D the level as 5 times the median as default.
* @property {import('@types/pino').Logger} [logger] - A logger like 'pino'
* @property {import('cheminfo-types').Logger} [logger] - A logger like 'pino'
* @property {boolean} [profiling=false] - Add profiling information.

@@ -79,2 +79,15 @@ */

*
* @typedef {object} MinMax
* @property {number[][]} [z]
* @property {number} minX
* @property {number} maxX
* @property {number} minY
* @property {number} maxY
* @property {number} minZ
* @property {number} maxZ
* @property {number} median
*/
/**
*
* @typedef {object} Entry

@@ -90,2 +103,3 @@ * @property {Spectrum[]} spectra

* @property {boolean} [twoD]
* @property {MinMax} [minMax]
*/

@@ -110,3 +124,2 @@

*/
export function convert(jcamp, options = {}) {

@@ -113,0 +126,0 @@ jcamp = ensureString(jcamp);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc