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

mf-parser

Package Overview
Dependencies
Maintainers
6
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.1.1 to 1.1.2

8

package.json
{
"name": "mf-parser",
"version": "1.1.1",
"version": "1.1.2",
"description": "",

@@ -21,4 +21,4 @@ "main": "src/index.js",

"dependencies": {
"atom-sorter": "^1.1.1",
"chemical-elements": "^1.1.1",
"atom-sorter": "^1.1.2",
"chemical-elements": "^1.1.2",
"chemical-groups": "^1.0.0"

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

},
"gitHead": "6b2d07885895d1eb6ffdbb51bbccdf15cc8d0aec"
"gitHead": "03f4aca58a117f78aaceffce4b968507cd964b74"
}

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

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

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

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

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

'use strict';
const parse = require('./parse');
const toDisplay = require('./util/toDisplay');
const parse = require('./parse');
const toHtml = require('./util/toHtml');

@@ -6,0 +6,0 @@

'use strict';
const ensureCase = require('./ensureCase');
const parse = require('./parse');
const getEA = require('./util/getEA');
const getInfo = require('./util/getInfo');
const getIsotopesInfo = require('./util/getIsotopesInfo');
const partsToDisplay = require('./util/partsToDisplay');
const partsToMF = require('./util/partsToMF');
const toDisplay = require('./util/toDisplay');
const toHtml = require('./util/toHtml');
const toParts = require('./util/toParts');
const getInfo = require('./util/getInfo');
const ensureCase = require('./ensureCase');
const getEA = require('./util/getEA');
const getIsotopesInfo = require('./util/getIsotopesInfo');
const partsToMF = require('./util/partsToMF');
const partsToDisplay = require('./util/partsToDisplay');

@@ -14,0 +14,0 @@ class MF {

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

test('formatCharge', function() {
test('formatCharge', function () {
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', function () {
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', function (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', function (aTest) {
let parsed = parse(aTest.mf);

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

@@ -8,4 +8,4 @@ 'use strict';

const getIsotopeRatioInfo = require('./getIsotopeRatioInfo');
const isotopes = require('./getIsotopesObject');
const getIsotopeRatioInfo = require('./getIsotopeRatioInfo');

@@ -12,0 +12,0 @@ /**

'use strict';
const { ELECTRON_MASS } = require('chemical-elements/src/constants');
const elements = require('chemical-elements/src/elementsAndIsotopesObject.js');
const unsaturations = require('chemical-elements/src/unsaturationsObject.js');
const groups = require('chemical-groups/src/groupsObject.js');
const unsaturations = require('chemical-elements/src/unsaturationsObject.js');
const { ELECTRON_MASS } = require('chemical-elements/src/constants');
const Kind = require('../Kind');
const getIsotopeRatioInfo = require('./getIsotopeRatioInfo');
const isotopes = require('./getIsotopesObject');
const partToAtoms = require('./partToAtoms');
const partToMF = require('./partToMF');
const partToAtoms = require('./partToAtoms');
const isotopes = require('./getIsotopesObject');
const getIsotopeRatioInfo = require('./getIsotopeRatioInfo');

@@ -15,0 +15,0 @@ /**

'use strict';
const Format = require('../Format');
const Kind = require('../Kind');
const Format = require('../Format');

@@ -6,0 +6,0 @@ const formatCharge = require('./formatCharge');

'use strict';
const atomSorter = require('atom-sorter');
const groups = require('chemical-groups/src/groupsObject.js');
const atomSorter = require('atom-sorter');

@@ -6,0 +6,0 @@ const Kind = require('../Kind');

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