chromatography
Advanced tools
Comparing version 3.2.4 to 3.2.5
@@ -254,3 +254,7 @@ 'use strict'; | ||
for (var massSpectrum of massSpectra) { | ||
bpc.push(max(massSpectrum[1])); | ||
if (massSpectrum[1].length > 0) { | ||
bpc.push(max(massSpectrum[1])); | ||
} else { | ||
bpc.push(0); | ||
} | ||
} | ||
@@ -257,0 +261,0 @@ |
{ | ||
"name": "chromatography", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "Tools for storing, search and analize GC/MS spectra", | ||
@@ -46,3 +46,3 @@ "main": "lib/index.js", | ||
"documentation": "^5.3.3", | ||
"eslint": "^4.11.0", | ||
"eslint": "^4.12.0", | ||
"eslint-config-cheminfo": "^1.8.0", | ||
@@ -49,0 +49,0 @@ "eslint-plugin-no-only-tests": "^2.0.0", |
@@ -16,3 +16,7 @@ import max from 'ml-array-max'; | ||
for (var massSpectrum of massSpectra) { | ||
bpc.push(max(massSpectrum[1])); | ||
if (massSpectrum[1].length > 0) { | ||
bpc.push(max(massSpectrum[1])); | ||
} else { | ||
bpc.push(0); | ||
} | ||
} | ||
@@ -19,0 +23,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
168444
4402