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

mf-generator

Package Overview
Dependencies
Maintainers
2
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mf-generator - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

12

lib/index.js

@@ -220,11 +220,11 @@ 'use strict';

if (links.filter) {
let stars = [];
let sharps = [];
for (let i = 0; i < keys.length; i++) {
let anchors = keys[i][currents[i]].match(/#[0-9]+/g);
if (anchors) stars.push(...anchors);
if (anchors) sharps.push(...anchors);
}
if (stars.length % 2 === 1) return;
stars = stars.sort();
for (let i = 0; i < stars.length; i += 2) {
if (stars[i] !== stars[i + 1]) return;
if (sharps.length % 2 === 1) return;
sharps = sharps.sort();
for (let i = 0; i < sharps.length; i += 2) {
if (sharps[i] !== sharps[i + 1]) return;
}

@@ -231,0 +231,0 @@ }

{
"name": "mf-generator",
"version": "2.0.3",
"version": "2.0.4",
"description": "Generate molecular formula based on a range and filters",

@@ -23,7 +23,7 @@ "main": "lib/index.js",

"dependencies": {
"chemical-elements": "^2.0.0",
"mf-finder": "^2.2.1",
"mf-matcher": "^2.0.2",
"mf-parser": "^2.1.0",
"mf-utilities": "^2.0.1",
"chemical-elements": "^2.0.1",
"mf-finder": "^2.2.2",
"mf-matcher": "^2.0.3",
"mf-parser": "^2.2.0",
"mf-utilities": "^2.0.2",
"sum-object-keys": "^1.0.2"

@@ -34,3 +34,3 @@ },

},
"gitHead": "293d2e42b8623a1b0092e968d5f84fc8cc25fd62"
"gitHead": "91eb5af24bbad5cde6f018447f50552140253c2f"
}

@@ -211,11 +211,11 @@ import { ELECTRON_MASS } from 'chemical-elements';

if (links.filter) {
let stars = [];
let sharps = [];
for (let i = 0; i < keys.length; i++) {
let anchors = keys[i][currents[i]].match(/#[0-9]+/g);
if (anchors) stars.push(...anchors);
if (anchors) sharps.push(...anchors);
}
if (stars.length % 2 === 1) return;
stars = stars.sort();
for (let i = 0; i < stars.length; i += 2) {
if (stars[i] !== stars[i + 1]) return;
if (sharps.length % 2 === 1) return;
sharps = sharps.sort();
for (let i = 0; i < sharps.length; i += 2) {
if (sharps[i] !== sharps[i + 1]) return;
}

@@ -222,0 +222,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