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

jcampconverter

Package Overview
Dependencies
Maintainers
8
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 6.0.0 to 6.0.1

11

History.md

@@ -0,1 +1,12 @@

## [6.0.1](https://github.com/cheminfo-js/jcampconverter/compare/v6.0.0...v6.0.1) (2020-06-10)
### Bug Fixes
* improve 2d spectra discovery ([5a7c15a](https://github.com/cheminfo-js/jcampconverter/commit/5a7c15afbadb133d3ecb89d5e816354c0d207441))
* improve detection of 2d spectra ([02e966f](https://github.com/cheminfo-js/jcampconverter/commit/02e966f108578578fe717d259b16a7c933a0db44))
* ntuples separator must contain a comma ([3bbf182](https://github.com/cheminfo-js/jcampconverter/commit/3bbf1829acffeeed4a888fd502afdd6637d070b8))
# [6.0.0](https://github.com/cheminfo-js/jcampconverter/compare/v5.0.2...v6.0.0) (2020-06-10)

@@ -2,0 +13,0 @@

6

lib/index.js

@@ -772,3 +772,3 @@ 'use strict';

// the following RegExp can only be used for XYdata, some peakTables have values with a "E-5" ...
const ntuplesSeparator = /[, \t]+/;
const ntuplesSeparator = /[ \t]*,[ \t]*/;

@@ -924,7 +924,7 @@ class Spectrum {}

currentEntry.dataType = dataValue;
if (dataValue.indexOf('nD') > -1) {
if (dataValue.toLowerCase().indexOf('nd') > -1) {
currentEntry.twoD = true;
}
} else if (canonicDataLabel === 'NTUPLES') {
if (dataValue.indexOf('nD') > -1) {
if (dataValue.toLowerCase().indexOf('nd') > -1) {
currentEntry.twoD = true;

@@ -931,0 +931,0 @@ }

{
"name": "jcampconverter",
"version": "6.0.0",
"version": "6.0.1",
"description": "Parse and convert JCAMP data",

@@ -61,2 +61,3 @@ "main": "lib/index.js",

"jest": "^25.2.6",
"jest-matcher-deep-close-to": "^2.0.1",
"prettier": "^2.0.2",

@@ -63,0 +64,0 @@ "rollup": "^2.3.2"

@@ -12,3 +12,3 @@ import { isMSField, convertMSFieldToLabel } from './complexChromatogram';

// the following RegExp can only be used for XYdata, some peakTables have values with a "E-5" ...
const ntuplesSeparator = /[, \t]+/;
const ntuplesSeparator = /[ \t]*,[ \t]*/;

@@ -164,7 +164,7 @@ class Spectrum {}

currentEntry.dataType = dataValue;
if (dataValue.indexOf('nD') > -1) {
if (dataValue.toLowerCase().indexOf('nd') > -1) {
currentEntry.twoD = true;
}
} else if (canonicDataLabel === 'NTUPLES') {
if (dataValue.indexOf('nD') > -1) {
if (dataValue.toLowerCase().indexOf('nd') > -1) {
currentEntry.twoD = true;

@@ -171,0 +171,0 @@ }

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