openchemlib 8.0.1 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openchemlib",
3
- "version": "8.0.1",
3
+ "version": "8.1.0",
4
4
  "description": "Manipulate molecules",
5
5
  "keywords": [
6
6
  "chemistry",
@@ -56,13 +56,14 @@
56
56
  "homepage": "https://github.com/cheminfo/openchemlib-js",
57
57
  "devDependencies": {
58
58
  "benchmark": "^2.1.4",
59
- "eslint": "^8.22.0",
59
+ "eslint": "^8.25.0",
60
60
  "eslint-config-cheminfo": "^8.0.2",
61
61
  "fs-extra": "^10.1.0",
62
62
  "gwt-api-exporter": "^2.0.0",
63
- "jest": "^28.1.3",
63
+ "jest": "^29.2.0",
64
+ "openchemlib-utils": "^2.1.3",
64
65
  "prettier": "^2.7.1",
65
66
  "rimraf": "^3.0.2",
66
- "yargs": "^17.5.1"
67
+ "yargs": "^17.6.0"
67
68
  }
68
69
  }
package/types.d.ts CHANGED
@@ -2849,6 +2849,17 @@ export declare class Reaction {
2849
2849
  getMergedCopy(): Reaction;
2850
2850
  }
2851
2851
 
2852
+ export declare class ReactionEncoder {
2853
+ static encode(reaction: Reaction): string;
2854
+ static decode(reaction: string): Reaction;
2855
+ }
2856
+
2857
+ export declare class Reactor {
2858
+ constructor(reaction: Reaction);
2859
+ setReactant(no: number, reactant: Molecule): boolean;
2860
+ getProducts(): Molecule[][];
2861
+ }
2862
+
2852
2863
  export declare class SDFileParser {
2853
2864
  /**
2854
2865
  * Creates a new parser.
@@ -3004,6 +3015,12 @@ export declare class SSSearcherWithIndex {
3004
3015
  createIndex(molecule: Molecule): number[];
3005
3016
  }
3006
3017
 
3018
+ export declare class Transformer {
3019
+ constructor(reactant: Molecule, product: Molecule, name: string);
3020
+ setMolecule(molecule: Molecule, countMode: number): number;
3021
+ applyTransformation(molecule: Molecule, matchNo: number): void;
3022
+ }
3023
+
3007
3024
  export declare namespace Util {
3008
3025
  /**
3009
3026
  * Returns the HOSE(Hierarchical Organisation of Spherical Environments) code