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

mf-utilities

Package Overview
Dependencies
Maintainers
0
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mf-utilities - npm Package Compare versions

Comparing version 3.2.5 to 3.2.6

5

lib/src/preprocessRanges.js

@@ -18,2 +18,3 @@ "use strict";

// the idea is that has long as we don't have a range we don't really care
// but the range should only applied on the previous atom, group or parenthesis
// there is a limitation is that the range has to be first level of parenthesis

@@ -59,2 +60,6 @@ let parenthesisLevel = 0;

case mf_parser_1.Kind.OPENING_PARENTHESIS:
if (parenthesisLevel === 0 && currentMF) {
current.mf += currentMF;
currentMF = '';
}
parenthesisLevel++;

@@ -61,0 +66,0 @@ currentMF += '(';

4

package.json
{
"name": "mf-utilities",
"version": "3.2.5",
"version": "3.2.6",
"description": "Small utilities dealing with molecular formula",

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

},
"gitHead": "2b83132c523cebb4b3c395a70cfd5de04fbf7f28"
"gitHead": "ead08ac8b436c6d4eb0016e938cb17a0dc5e2b06"
}

@@ -17,2 +17,3 @@ import { Kind, MF, parse } from 'mf-parser';

// the idea is that has long as we don't have a range we don't really care
// but the range should only applied on the previous atom, group or parenthesis
// there is a limitation is that the range has to be first level of parenthesis

@@ -57,2 +58,6 @@ let parenthesisLevel = 0;

case Kind.OPENING_PARENTHESIS:
if (parenthesisLevel === 0 && currentMF) {
current.mf += currentMF;
currentMF = '';
}
parenthesisLevel++;

@@ -59,0 +64,0 @@ currentMF += '(';

Sorry, the diff of this file is not supported yet

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