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

openchemlib-utils

Package Overview
Dependencies
Maintainers
4
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openchemlib-utils - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

2

lib-esm/hose/getHoseCodesAndInfo.d.ts

@@ -23,3 +23,3 @@ /**

hoses: any[];
diaIDs: any[];
diaIDs: any[] | undefined;
moleculeWithHydrogens: import("openchemlib").Molecule;

@@ -26,0 +26,0 @@ distanceMatrix: any[];

@@ -21,3 +21,3 @@ import { ensureHeterotopicChiralBonds } from '../diastereotopic/ensureHeterotopicChiralBonds.js';

export function getHoseCodesAndInfo(molecule, options = {}) {
const { minSphereSize, maxSphereSize, calculateDiastereotopicIDs } = options;
const { minSphereSize, maxSphereSize, calculateDiastereotopicIDs = true, } = options;
const { Molecule } = molecule.getOCL();

@@ -63,3 +63,3 @@ molecule = molecule.getCompactCopy();

hoses,
diaIDs,
diaIDs: calculateDiastereotopicIDs ? diaIDs : undefined,
moleculeWithHydrogens: molecule,

@@ -66,0 +66,0 @@ distanceMatrix,

@@ -23,3 +23,3 @@ /**

hoses: any[];
diaIDs: any[];
diaIDs: any[] | undefined;
moleculeWithHydrogens: import("openchemlib").Molecule;

@@ -26,0 +26,0 @@ distanceMatrix: any[];

@@ -24,3 +24,3 @@ "use strict";

function getHoseCodesAndInfo(molecule, options = {}) {
const { minSphereSize, maxSphereSize, calculateDiastereotopicIDs } = options;
const { minSphereSize, maxSphereSize, calculateDiastereotopicIDs = true, } = options;
const { Molecule } = molecule.getOCL();

@@ -66,3 +66,3 @@ molecule = molecule.getCompactCopy();

hoses,
diaIDs,
diaIDs: calculateDiastereotopicIDs ? diaIDs : undefined,
moleculeWithHydrogens: molecule,

@@ -69,0 +69,0 @@ distanceMatrix,

{
"name": "openchemlib-utils",
"version": "4.2.0",
"version": "4.2.1",
"description": "Various utilities that extends openchemlib-js like HOSE codes or diastereotopic IDs",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -23,3 +23,7 @@ import { ensureHeterotopicChiralBonds } from '../diastereotopic/ensureHeterotopicChiralBonds.js';

export function getHoseCodesAndInfo(molecule, options = {}) {
const { minSphereSize, maxSphereSize, calculateDiastereotopicIDs } = options;
const {
minSphereSize,
maxSphereSize,
calculateDiastereotopicIDs = true,
} = options;
const { Molecule } = molecule.getOCL();

@@ -36,3 +40,2 @@ molecule = molecule.getCompactCopy();

const symmetryRanks = getSymmetryRanks(molecule);
const cache = {};

@@ -49,3 +52,2 @@ const hoses = [];

}
const tempMolecule = molecule.getCompactCopy();

@@ -77,3 +79,3 @@ tagAtom(tempMolecule, i);

hoses,
diaIDs,
diaIDs: calculateDiastereotopicIDs ? diaIDs : undefined,
moleculeWithHydrogens: molecule,

@@ -80,0 +82,0 @@ distanceMatrix,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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