Comparing version 1.1.1 to 1.1.2
{ | ||
"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'); |
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
63649
Updatedatom-sorter@^1.1.2
Updatedchemical-elements@^1.1.2