spectrum-generator
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -183,4 +183,3 @@ import { getShape2D } from 'ml-peak-shape-generator'; | ||
function ensureXYNumber(input) { | ||
let result = typeof input !== 'object' ? { x: input, y: input } : input; | ||
return result; | ||
return typeof input !== 'object' ? { x: input, y: input } : { ...input }; | ||
} | ||
@@ -187,0 +186,0 @@ function calculeIntervals(from, to, nbPoints) { |
@@ -188,4 +188,3 @@ "use strict"; | ||
function ensureXYNumber(input) { | ||
let result = typeof input !== 'object' ? { x: input, y: input } : input; | ||
return result; | ||
return typeof input !== 'object' ? { x: input, y: input } : { ...input }; | ||
} | ||
@@ -192,0 +191,0 @@ function calculeIntervals(from, to, nbPoints) { |
{ | ||
"name": "spectrum-generator", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "generate a spectrum from discrete peaks", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -354,4 +354,3 @@ import { getShape2D, Shape2DClass } from 'ml-peak-shape-generator'; | ||
function ensureXYNumber(input: number | XYNumber) { | ||
let result = typeof input !== 'object' ? { x: input, y: input } : input; | ||
return result; | ||
return typeof input !== 'object' ? { x: input, y: input } : { ...input }; | ||
} | ||
@@ -358,0 +357,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
108186
2031