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

spectrum-generator

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spectrum-generator - npm Package Compare versions

Comparing version 8.0.0 to 8.0.1

3

lib-esm/Spectrum2DGenerator.js

@@ -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

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