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.0.1 to 9.0.2

6

lib-esm/2d/convertTo3DZ.js

@@ -43,3 +43,3 @@ import getMedian from 'ml-array-median';

return {
z: z,
z,
minX: Math.min(firstX, lastX),

@@ -49,4 +49,4 @@ maxX: Math.max(firstX, lastX),

maxY: Math.max(firstY, lastY),
minZ: minZ,
maxZ: maxZ,
minZ,
maxZ,
noise: median,

@@ -53,0 +53,0 @@ };

@@ -48,2 +48,3 @@ /**

* @property {object} meta
* @property {object} info
* @property {object} tmp

@@ -136,2 +137,3 @@ * @property {string} [title]

meta: object;
info: object;
tmp: object;

@@ -138,0 +140,0 @@ title?: string | undefined;

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

* @property {object} meta
* @property {object} info
* @property {object} tmp

@@ -76,0 +77,0 @@ * @property {string} [title]

@@ -22,5 +22,4 @@ export default function fastParseXYData(spectrum, value) {

}
else {
if (endLine)
break;
else if (endLine) {
break;
}

@@ -57,2 +56,3 @@ }

// it is a number that is either new or we continue
// eslint-disable-next-line no-lonely-if
if (ascii <= 57 && ascii >= 48) {

@@ -87,2 +87,3 @@ // a number

// need to deal with duplicate and differences
// eslint-disable-next-line no-lonely-if
if (skipFirstValue) {

@@ -89,0 +90,0 @@ skipFirstValue = false;

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

return {
z: z,
z,
minX: Math.min(firstX, lastX),

@@ -54,4 +54,4 @@ maxX: Math.max(firstX, lastX),

maxY: Math.max(firstY, lastY),
minZ: minZ,
maxZ: maxZ,
minZ,
maxZ,
noise: median,

@@ -58,0 +58,0 @@ };

@@ -48,2 +48,3 @@ /**

* @property {object} meta
* @property {object} info
* @property {object} tmp

@@ -136,2 +137,3 @@ * @property {string} [title]

meta: object;
info: object;
tmp: object;

@@ -138,0 +140,0 @@ title?: string | undefined;

@@ -80,2 +80,3 @@ "use strict";

* @property {object} meta
* @property {object} info
* @property {object} tmp

@@ -82,0 +83,0 @@ * @property {string} [title]

@@ -24,5 +24,4 @@ "use strict";

}
else {
if (endLine)
break;
else if (endLine) {
break;
}

@@ -59,2 +58,3 @@ }

// it is a number that is either new or we continue
// eslint-disable-next-line no-lonely-if
if (ascii <= 57 && ascii >= 48) {

@@ -89,2 +89,3 @@ // a number

// need to deal with duplicate and differences
// eslint-disable-next-line no-lonely-if
if (skipFirstValue) {

@@ -91,0 +92,0 @@ skipFirstValue = false;

{
"name": "jcampconverter",
"version": "9.0.1",
"version": "9.0.2",
"description": "Parse and convert JCAMP data",

@@ -13,9 +13,2 @@ "main": "lib/index.js",

],
"prettier": {
"arrowParens": "always",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
},
"scripts": {

@@ -31,5 +24,4 @@ "build": "cheminfo-build --entry src/index.js --root JcampConverter",

"prettier-write": "prettier --write src",
"test": "npm run test-coverage && npm run eslint && npm run prettier && npm run check-types",
"test-coverage": "jest --coverage",
"test-only": "jest",
"test": "npm run test-only && npm run eslint && npm run prettier && npm run check-types",
"test-only": "vitest run --globals --coverage",
"tsc": "npm run clean && npm run tsc-cjs && npm run tsc-esm",

@@ -57,9 +49,9 @@ "tsc-cjs": "tsc --project tsconfig.cjs.json",

"devDependencies": {
"@types/jest": "^27.5.0",
"@types/jest": "^28.1.1",
"benchmark": "^2.1.4",
"c8": "^7.11.3",
"cheminfo-build": "^1.1.11",
"eslint": "^8.14.0",
"eslint-config-cheminfo-typescript": "^10.4.0",
"eslint": "^8.17.0",
"eslint-config-cheminfo-typescript": "^11.0.1",
"esm": "^3.2.25",
"jest": "^28.0.3",
"jest-matcher-deep-close-to": "^3.0.2",

@@ -69,4 +61,4 @@ "jscpd": "^3.4.5",

"rimraf": "^3.0.2",
"ts-jest": "^28.0.1",
"typescript": "^4.6.4"
"typescript": "^4.7.3",
"vitest": "^0.14.1"
},

@@ -73,0 +65,0 @@ "dependencies": {

@@ -19,3 +19,3 @@ # JCAMP converter

[![npm download][download-image]][download-url]
[![DOI](https://www.zenodo.org/badge/22728620.svg)](https://www.zenodo.org/badge/latestdoi/22728620)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5091526.svg)](https://doi.org/10.5281/zenodo.5091526)

@@ -22,0 +22,0 @@ </h3>

@@ -46,3 +46,3 @@ import getMedian from 'ml-array-median';

return {
z: z,
z,
minX: Math.min(firstX, lastX),

@@ -52,6 +52,6 @@ maxX: Math.max(firstX, lastX),

maxY: Math.max(firstY, lastY),
minZ: minZ,
maxZ: maxZ,
minZ,
maxZ,
noise: median,
};
}

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

* @property {object} meta
* @property {object} info
* @property {object} tmp

@@ -83,0 +84,0 @@ * @property {string} [title]

@@ -25,4 +25,4 @@ export default function fastParseXYData(spectrum, value) {

endLine = true;
} else {
if (endLine) break;
} else if (endLine) {
break;
}

@@ -57,2 +57,3 @@ }

// it is a number that is either new or we continue
// eslint-disable-next-line no-lonely-if
if (ascii <= 57 && ascii >= 48) {

@@ -82,2 +83,3 @@ // a number

// need to deal with duplicate and differences
// eslint-disable-next-line no-lonely-if
if (skipFirstValue) {

@@ -84,0 +86,0 @@ skipFirstValue = false;

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

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

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