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

mf-parser

Package Overview
Dependencies
Maintainers
4
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mf-parser - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

src/__tests__/getElements.test.js

6

package.json
{
"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 @@ */

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