jcampconverter
Advanced tools
Comparing version 3.0.2 to 3.0.4
{ | ||
"name": "jcampconverter", | ||
"version": "3.0.2", | ||
"version": "3.0.4", | ||
"description": "Parse and convert JCAMP data", | ||
@@ -39,9 +39,9 @@ "main": "./src/index.js", | ||
"benchmark": "^2.1.4", | ||
"cheminfo-tools": "^1.23.2", | ||
"cheminfo-tools": "^1.23.3", | ||
"eslint": "^5.16.0", | ||
"eslint-config-cheminfo": "^1.20.1", | ||
"eslint-plugin-import": "^2.17.3", | ||
"eslint-plugin-jest": "^22.6.4", | ||
"eslint-plugin-import": "^2.18.0", | ||
"eslint-plugin-jest": "^22.7.1", | ||
"jest": "^24.8.0" | ||
} | ||
} |
@@ -520,2 +520,13 @@ 'use strict'; | ||
// Because the min / max value are the only information about the matrix if we invert | ||
// min and max we need to invert the array | ||
if (firstX > lastX) { | ||
for (let spectrum of z) { | ||
spectrum.reverse(); | ||
} | ||
} | ||
if (firstY > lastY) { | ||
z.reverse(); | ||
} | ||
return { | ||
@@ -522,0 +533,0 @@ z: z, |
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
44146
995