Comparing version 2.1.0 to 2.1.1
@@ -429,3 +429,2 @@ 'use strict'; | ||
function chargePeptide(mf, options = {}) { | ||
if (options.pH === undefined) options.pH = 0; | ||
if (Array.isArray(mf)) { | ||
@@ -442,3 +441,3 @@ for (let i = 0; i < mf.length; i++) { | ||
function chargeOnePeptide(mf, options) { | ||
let pH = options.pH; | ||
const { pH = 0 } = options; | ||
// we will allow to charge the peptide at a specific pH | ||
@@ -445,0 +444,0 @@ |
{ | ||
"name": "peptide", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Peptide", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
], | ||
"gitHead": "5c97fecfd23faf2cc4120ce5e22f0c85b8e734b1" | ||
"gitHead": "3300321a615311f64760cb500afac49f1f0f7d23" | ||
} |
@@ -6,3 +6,2 @@ import { getAA } from './getAA'; | ||
export function chargePeptide(mf, options = {}) { | ||
if (options.pH === undefined) options.pH = 0; | ||
if (Array.isArray(mf)) { | ||
@@ -19,3 +18,3 @@ for (let i = 0; i < mf.length; i++) { | ||
function chargeOnePeptide(mf, options) { | ||
let pH = options.pH; | ||
const { pH = 0 } = options; | ||
// we will allow to charge the peptide at a specific pH | ||
@@ -22,0 +21,0 @@ |
61449
2136