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.3.4 to 1.3.5

6

package.json
{
"name": "mf-parser",
"version": "1.3.4",
"version": "1.3.5",
"description": "Parse a molecular formula",

@@ -22,3 +22,3 @@ "main": "src/index.js",

"atom-sorter": "^1.1.9",
"chemical-elements": "^1.1.12",
"chemical-elements": "^1.1.13",
"chemical-groups": "^1.2.1"

@@ -29,3 +29,3 @@ },

},
"gitHead": "74a4d17d6ff57ec6e1fbeb5dbfc015c1293d98c4"
"gitHead": "3357658b99069e3a03c06471bc374c5effb919d8"
}

@@ -223,3 +223,3 @@ 'use strict';

test.each(Object.keys(tests))('parse molecular formula %s', function (key) {
test.each(Object.keys(tests))('parse molecular formula %s', (key) => {
let parsed = parse(key);

@@ -229,3 +229,3 @@ expect(parsed).toMatchObject(tests[key]);

test('not same opening and closing parenthesis', function () {
test('not same opening and closing parenthesis', () => {
expect(() => {

@@ -232,0 +232,0 @@ parse('C(');

@@ -5,3 +5,3 @@ 'use strict';

test('formatCharge', function () {
test('formatCharge', () => {
expect(formatCharge(-2)).toBe('-2');

@@ -8,0 +8,0 @@ expect(formatCharge(-1)).toBe('-1');

@@ -5,3 +5,3 @@ 'use strict';

test('getCharge', function () {
test('getCharge', () => {
expect(getCharge('---')).toBe(-3);

@@ -8,0 +8,0 @@ expect(getCharge('+++')).toBe(3);

@@ -112,5 +112,5 @@ 'use strict';

test.each(tests)('toDisplay', function (aTest) {
test.each(tests)('toDisplay', (aTest) => {
let display = toDisplay(aTest.parsed);
expect(display).toMatchObject(aTest.result);
});

@@ -55,3 +55,3 @@ 'use strict';

test.each(tests)('toParts %p', function (aTest) {
test.each(tests)('toParts %p', (aTest) => {
let parsed = parse(aTest.mf);

@@ -58,0 +58,0 @@ let parts = toParts(parsed);

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