Comparing version 3.2.7 to 3.2.8
@@ -1,14 +0,15 @@ | ||
export * from "./parse.js"; | ||
export * from "./util/subSuperscript.js"; | ||
export * from "./util/toDisplay.js"; | ||
export * from "./util/isMF.js"; | ||
export * from "./util/toHtml.js"; | ||
export * from "./Kind.js"; | ||
export * from "./Format.js"; | ||
export * from "./Style.js"; | ||
export * from "./ensureCase.js"; | ||
export * from "./MF"; | ||
export * from "./parseToHtml.js"; | ||
export { IsotopesInfo } from "./util/getIsotopesInfo.types"; | ||
export { PartInfo, PartInfoWithParts, GetInfoOptions, GetInfoOptionsAllowed } from "./util/getInfo.types"; | ||
export * from './parse.js'; | ||
export * from './util/subSuperscript.js'; | ||
export * from './util/toDisplay.js'; | ||
export * from './util/isMF.js'; | ||
export * from './util/toHtml.js'; | ||
export * from './Kind.js'; | ||
export * from './Format.js'; | ||
export * from './Style.js'; | ||
export * from './ensureCase.js'; | ||
export * from './MF'; | ||
export * from './parseToHtml.js'; | ||
export type { AtomsMap } from './util/partToAtoms.types'; | ||
export type { IsotopesInfo } from './util/getIsotopesInfo.types'; | ||
export type { PartInfo, PartInfoWithParts, GetInfoOptions, GetInfoOptionsAllowed, } from './util/getInfo.types'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseToHtml = parseToHtml; | ||
const index_js_1 = require("./index.js"); | ||
const parse_js_1 = require("./parse.js"); | ||
const toDisplay_js_1 = require("./util/toDisplay.js"); | ||
const toHtml_js_1 = require("./util/toHtml.js"); | ||
/** | ||
@@ -10,6 +12,6 @@ * Parse a molecular formula and converts it to an HTML code | ||
function parseToHtml(mf) { | ||
let parsed = (0, index_js_1.parse)(mf); | ||
let display = (0, index_js_1.toDisplay)(parsed); | ||
return (0, index_js_1.toHtml)(display); | ||
let parsed = (0, parse_js_1.parse)(mf); | ||
let display = (0, toDisplay_js_1.toDisplay)(parsed); | ||
return (0, toHtml_js_1.toHtml)(display); | ||
} | ||
//# sourceMappingURL=parseToHtml.js.map |
@@ -1,2 +0,2 @@ | ||
import type { AtomsMap } from './partToAtoms'; | ||
import type { AtomsMap } from './partToAtoms.types'; | ||
type ImpossibleCustomNames = 'mass' | 'charge' | 'mf' | 'atoms' | 'unsaturation' | 'parts'; | ||
@@ -3,0 +3,0 @@ type AllowedCustomNames = Exclude<string, ImpossibleCustomNames> | undefined; |
@@ -1,2 +0,2 @@ | ||
/** @typedef {Record<string, number>} AtomsMap */ | ||
/** @typedef {import('./partToAtoms.types').AtomsMap} AtomsMap */ | ||
/** | ||
@@ -9,3 +9,3 @@ * Convert a MF part to a map of atoms | ||
export function partToAtoms(part: any): AtomsMap; | ||
export type AtomsMap = Record<string, number>; | ||
export type AtomsMap = import("./partToAtoms.types").AtomsMap; | ||
//# sourceMappingURL=partToAtoms.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
const Kind_js_1 = require("../Kind.js"); | ||
/** @typedef {Record<string, number>} AtomsMap */ | ||
/** @typedef {import('./partToAtoms.types').AtomsMap} AtomsMap */ | ||
/** | ||
@@ -8,0 +8,0 @@ * Convert a MF part to a map of atoms |
{ | ||
"name": "mf-parser", | ||
"version": "3.2.7", | ||
"version": "3.2.8", | ||
"description": "Parse a molecular formula", | ||
"main": "lib/src/index.js", | ||
"module": "src/index.js", | ||
"files": [ | ||
@@ -30,3 +29,3 @@ "src", | ||
}, | ||
"gitHead": "4c2eecf10c273a5d83023ee6a160b9fb69b50cb9" | ||
"gitHead": "4dddbfbe7419d995ed5c2b5aaa32d1987ef3aa71" | ||
} |
@@ -1,2 +0,4 @@ | ||
import { parse, toDisplay, toHtml } from './index.js'; | ||
import { parse } from './parse.js'; | ||
import { toDisplay } from './util/toDisplay.js'; | ||
import { toHtml } from './util/toHtml.js'; | ||
@@ -3,0 +5,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import type { AtomsMap } from './partToAtoms'; | ||
import type { AtomsMap } from './partToAtoms.types'; | ||
@@ -3,0 +3,0 @@ type ImpossibleCustomNames = |
import { Kind } from '../Kind.js'; | ||
/** @typedef {Record<string, number>} AtomsMap */ | ||
/** @typedef {import('./partToAtoms.types').AtomsMap} AtomsMap */ | ||
@@ -5,0 +5,0 @@ /** |
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
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
Sorry, the diff of this file is not supported yet
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
307328
170
4240