Comparing version 0.12.0 to 0.12.1
{ | ||
"name": "mf-finder", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"description": "Find a molecular formula from a monoisotopic mass", | ||
@@ -22,8 +22,8 @@ "main": "src/index.js", | ||
"atom-sorter": "^0.12.0", | ||
"chemical-elements": "^0.12.0", | ||
"chemical-elements": "^0.12.1", | ||
"mf-parser": "^0.12.0", | ||
"mf-utilities": "^0.12.0", | ||
"molecular-formula": "^1.1.0" | ||
"mf-utilities": "^0.12.1", | ||
"molecular-formula": "^1.1.5" | ||
}, | ||
"gitHead": "aa2e6571c5f7121dda616b7d6920b7a653a8f9c7" | ||
"gitHead": "cc0873275c6a22fafb6babe866e8164ee25e0d30" | ||
} |
@@ -71,3 +71,6 @@ 'use strict'; | ||
let result = findMFs(24, { | ||
ranges: [{ mf: 'C', min: 0, max: 2 }, { mf: 'H', min: 0, max: 1 }], | ||
ranges: [ | ||
{ mf: 'C', min: 0, max: 2 }, | ||
{ mf: 'H', min: 0, max: 1 }, | ||
], | ||
precision: 1e5, | ||
@@ -83,3 +86,6 @@ allowNeutral: true, | ||
let result = findMFs(16, { | ||
ranges: [{ mf: 'C', min: 0, max: 100 }, { mf: 'H', min: 0, max: 100 }], | ||
ranges: [ | ||
{ mf: 'C', min: 0, max: 100 }, | ||
{ mf: 'H', min: 0, max: 100 }, | ||
], | ||
precision: 1e5, | ||
@@ -98,3 +104,6 @@ allowNeutral: true, | ||
let result = findMFs(16, { | ||
ranges: [{ mf: 'C', min: 0, max: 100 }, { mf: 'H', min: 0, max: 100 }], | ||
ranges: [ | ||
{ mf: 'C', min: 0, max: 100 }, | ||
{ mf: 'H', min: 0, max: 100 }, | ||
], | ||
precision: 1e5, | ||
@@ -209,3 +218,6 @@ allowNeutral: true, | ||
let result = findMFs(1200.0001, { | ||
ranges: [{ mf: 'C', min: 0, max: 100 }, { mf: 'H', min: 0, max: 100 }], | ||
ranges: [ | ||
{ mf: 'C', min: 0, max: 100 }, | ||
{ mf: 'H', min: 0, max: 100 }, | ||
], | ||
precision: 1, | ||
@@ -255,3 +267,6 @@ allowNeutral: true, | ||
let result = findMFs(24, { | ||
ranges: [{ mf: 'C', min: 0, max: 2 }, { mf: 'H+', min: 0, max: 2 }], | ||
ranges: [ | ||
{ mf: 'C', min: 0, max: 2 }, | ||
{ mf: 'H+', min: 0, max: 2 }, | ||
], | ||
precision: 1e4, | ||
@@ -264,3 +279,6 @@ }); | ||
let result = findMFs(12, { | ||
ranges: [{ mf: 'C', min: 0, max: 2 }, { mf: 'C+', min: 0, max: 2 }], | ||
ranges: [ | ||
{ mf: 'C', min: 0, max: 2 }, | ||
{ mf: 'C+', min: 0, max: 2 }, | ||
], | ||
precision: 1e5, | ||
@@ -312,3 +330,6 @@ }); | ||
let result = findMFs(24, { | ||
ranges: [{ mf: 'C', min: 0, max: 100 }, { mf: 'H', min: 0, max: 100 }], | ||
ranges: [ | ||
{ mf: 'C', min: 0, max: 100 }, | ||
{ mf: 'H', min: 0, max: 100 }, | ||
], | ||
allowNeutral: true, | ||
@@ -322,3 +343,6 @@ }); | ||
let result = findMFs(24, { | ||
ranges: [{ mf: 'C', min: 0, max: 3 }, { mf: 'H', min: 0, max: 40 }], | ||
ranges: [ | ||
{ mf: 'C', min: 0, max: 3 }, | ||
{ mf: 'H', min: 0, max: 40 }, | ||
], | ||
precision: 10000, | ||
@@ -325,0 +349,0 @@ allowNeutral: true, |
@@ -20,3 +20,3 @@ 'use strict'; | ||
module.exports = function (targetMass, options = {}) { | ||
module.exports = function(targetMass, options = {}) { | ||
const { | ||
@@ -23,0 +23,0 @@ minCharge = Number.MIN_SAFE_INTEGER, |
@@ -70,3 +70,3 @@ 'use strict'; | ||
TargetMassCache.prototype.getMinMass = function (charge) { | ||
TargetMassCache.prototype.getMinMass = function(charge) { | ||
return this.data[charge - this.minCharge] | ||
@@ -77,3 +77,3 @@ ? this.data[charge - this.minCharge].minMass | ||
TargetMassCache.prototype.getMaxMass = function (charge) { | ||
TargetMassCache.prototype.getMaxMass = function(charge) { | ||
return this.data[charge - this.minCharge] | ||
@@ -80,0 +80,0 @@ ? this.data[charge - this.minCharge].maxMass |
33972
998
Updatedchemical-elements@^0.12.1
Updatedmf-utilities@^0.12.1
Updatedmolecular-formula@^1.1.5