Comparing version 1.2.1 to 1.3.0
{ | ||
"name": "mf-parser", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "", | ||
@@ -23,3 +23,3 @@ "main": "src/index.js", | ||
"chemical-elements": "^1.1.10", | ||
"chemical-groups": "^1.1.4" | ||
"chemical-groups": "^1.1.5" | ||
}, | ||
@@ -29,3 +29,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "9104d8db5dfb5d6b4c9ee1a4ae98258a3573043d" | ||
"gitHead": "e9c5c4525684ab4d0f2e6abe481bd0ca3d332859" | ||
} |
@@ -6,2 +6,3 @@ 'use strict'; | ||
const getEA = require('./util/getEA'); | ||
const getElements = require('./util/getElements'); | ||
const getInfo = require('./util/getInfo'); | ||
@@ -69,2 +70,14 @@ const getIsotopesInfo = require('./util/getIsotopesInfo'); | ||
/** | ||
* Get the different elements for each part | ||
* @returns an array | ||
*/ | ||
getElements() { | ||
if (!this.cache.elements) { | ||
this.toParts(); | ||
this.cache.elements = getElements(this.cache.parts); | ||
} | ||
return this.cache.elements; | ||
} | ||
/** | ||
* Returns an array with each atom and isotopic composition | ||
@@ -71,0 +84,0 @@ */ |
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
68834
38
2266
Updatedchemical-groups@^1.1.5