Comparing version 3.2.5 to 3.2.6
@@ -7,1 +7,2 @@ /** | ||
export function ensureCase(mf: string): string; | ||
//# sourceMappingURL=ensureCase.d.ts.map |
@@ -52,1 +52,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=ensureCase.js.map |
@@ -7,1 +7,2 @@ export namespace Format { | ||
} | ||
//# sourceMappingURL=Format.d.ts.map |
@@ -13,1 +13,2 @@ "use strict"; | ||
}; | ||
//# sourceMappingURL=Format.js.map |
@@ -12,1 +12,2 @@ export * from "./parse.js"; | ||
export * from "./parseToHtml.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -28,1 +28,2 @@ "use strict"; | ||
__exportStar(require("./parseToHtml.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -17,1 +17,2 @@ export namespace Kind { | ||
} | ||
//# sourceMappingURL=Kind.d.ts.map |
@@ -23,1 +23,2 @@ "use strict"; | ||
}; | ||
//# sourceMappingURL=Kind.js.map |
@@ -11,6 +11,27 @@ /** @typedef {import('./util/getIsotopesInfo.types').IsotopesInfo} IsotopesInfo */ | ||
cache: {}; | ||
toDisplay(): any; | ||
toHtml(): any; | ||
toText(): any; | ||
toCanonicText(): any; | ||
/** | ||
* Returns an array of objects with kind and value that can be used to easily | ||
* display the molecular formula. | ||
* @returns {{kind: string, value: string}[]} | ||
*/ | ||
toDisplay(): { | ||
kind: string; | ||
value: string; | ||
}[]; | ||
/** | ||
* Returns a string that represents the molecular formula adding subscript and superscript in HTML. | ||
* @returns {string} | ||
*/ | ||
toHtml(): string; | ||
/** | ||
* Returns a string that represents the molecular formula adding subscript and superscript | ||
* using unicode characters. This can not be parsed anymore so kind of dead end ... | ||
* @returns {string} | ||
*/ | ||
toText(): string; | ||
/** | ||
* Similar to toText but returns a canonic string in which the atoms are sorted using the Hill system | ||
* @returns {string} | ||
*/ | ||
toCanonicText(): string; | ||
toParts(options: any): any; | ||
@@ -28,4 +49,4 @@ /** | ||
customUnsaturations?: object; | ||
emFieldName?: string; | ||
msemFieldName?: string; | ||
emFieldName?: string | undefined; | ||
msemFieldName?: string | undefined; | ||
}): PartInfo | PartInfoWithParts; | ||
@@ -48,4 +69,5 @@ /** | ||
* Get a canonized MF | ||
* @returns {string} | ||
*/ | ||
toMF(): any; | ||
toMF(): string; | ||
/** | ||
@@ -61,1 +83,2 @@ * Get a canonized MF | ||
export type PartInfoWithParts = import("./util/getInfo.types").PartInfoWithParts; | ||
//# sourceMappingURL=MF.d.ts.map |
@@ -31,2 +31,7 @@ "use strict"; | ||
} | ||
/** | ||
* Returns an array of objects with kind and value that can be used to easily | ||
* display the molecular formula. | ||
* @returns {{kind: string, value: string}[]} | ||
*/ | ||
toDisplay() { | ||
@@ -37,2 +42,6 @@ if (!this.cache.displayed) | ||
} | ||
/** | ||
* Returns a string that represents the molecular formula adding subscript and superscript in HTML. | ||
* @returns {string} | ||
*/ | ||
toHtml() { | ||
@@ -45,2 +54,7 @@ if (!this.cache.html) { | ||
} | ||
/** | ||
* Returns a string that represents the molecular formula adding subscript and superscript | ||
* using unicode characters. This can not be parsed anymore so kind of dead end ... | ||
* @returns {string} | ||
*/ | ||
toText() { | ||
@@ -53,2 +67,6 @@ if (!this.cache.text) { | ||
} | ||
/** | ||
* Similar to toText but returns a canonic string in which the atoms are sorted using the Hill system | ||
* @returns {string} | ||
*/ | ||
toCanonicText() { | ||
@@ -116,2 +134,3 @@ if (!this.cache.canonicText) { | ||
* Get a canonized MF | ||
* @returns {string} | ||
*/ | ||
@@ -145,1 +164,2 @@ toMF() { | ||
exports.MF = MF; | ||
//# sourceMappingURL=MF.js.map |
@@ -6,1 +6,2 @@ /** | ||
export function parse(mf: string): any[]; | ||
//# sourceMappingURL=parse.d.ts.map |
@@ -267,1 +267,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=parse.js.map |
@@ -6,1 +6,2 @@ /** | ||
export function parseToHtml(mf: string): string; | ||
//# sourceMappingURL=parseToHtml.d.ts.map |
@@ -14,1 +14,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=parseToHtml.js.map |
@@ -5,1 +5,2 @@ export namespace Style { | ||
} | ||
//# sourceMappingURL=Style.d.ts.map |
@@ -8,1 +8,2 @@ "use strict"; | ||
}; | ||
//# sourceMappingURL=Style.js.map |
@@ -5,1 +5,2 @@ /** | ||
export function capitalizeMF(mf: any): any; | ||
//# sourceMappingURL=capitalizeMF.d.ts.map |
@@ -68,1 +68,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=capitalizeMF.js.map |
export function flatten(parsed: any, options?: {}): string[]; | ||
//# sourceMappingURL=flatten.d.ts.map |
@@ -150,1 +150,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=flatten.js.map |
export function formatCharge(charge: any): string; | ||
//# sourceMappingURL=formatCharge.d.ts.map |
@@ -13,1 +13,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=formatCharge.js.map |
@@ -10,1 +10,2 @@ /** | ||
}[]; | ||
//# sourceMappingURL=getEA.d.ts.map |
@@ -68,1 +68,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=getEA.js.map |
@@ -7,1 +7,2 @@ /** | ||
export function getElements(parts: any): any[]; | ||
//# sourceMappingURL=getElements.d.ts.map |
@@ -59,1 +59,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=getElements.js.map |
@@ -12,1 +12,2 @@ /** @typedef {import('./getInfo.types').PartInfo} PartInfo */ | ||
export type PartInfoWithParts = import("./getInfo.types").PartInfoWithParts; | ||
//# sourceMappingURL=getInfo.d.ts.map |
@@ -141,1 +141,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=getInfo.js.map |
@@ -17,1 +17,2 @@ import type { AtomsMap } from './partToAtoms'; | ||
} | ||
//# sourceMappingURL=getInfo.types.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=getInfo.types.js.map |
@@ -5,1 +5,2 @@ export function getIsotopeRatioInfo(value: any): { | ||
}; | ||
//# sourceMappingURL=getIsotopeRatioInfo.d.ts.map |
@@ -28,1 +28,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=getIsotopeRatioInfo.js.map |
@@ -13,1 +13,2 @@ /** @typedef {import('./getIsotopesInfo.types').IsotopesInfo} IsotopesInfo | ||
export type IsotopesInfo = import("./getIsotopesInfo.types").IsotopesInfo; | ||
//# sourceMappingURL=getIsotopesInfo.d.ts.map |
@@ -98,1 +98,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=getIsotopesInfo.js.map |
@@ -14,1 +14,2 @@ interface IsotopeInfo { | ||
export {}; | ||
//# sourceMappingURL=getIsotopesInfo.types.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=getIsotopesInfo.types.js.map |
export function isMF(mf: any): boolean; | ||
//# sourceMappingURL=isMF.d.ts.map |
@@ -16,1 +16,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=isMF.js.map |
@@ -7,1 +7,2 @@ /** | ||
export function parseCharge(charge: any): number; | ||
//# sourceMappingURL=parseCharge.d.ts.map |
@@ -30,1 +30,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=parseCharge.js.map |
@@ -11,1 +11,2 @@ /** | ||
}[]; | ||
//# sourceMappingURL=partsToDisplay.d.ts.map |
@@ -27,1 +27,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=partsToDisplay.js.map |
export function partsToMF(parts: any, options: any): string; | ||
//# sourceMappingURL=partsToMF.d.ts.map |
@@ -12,1 +12,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=partsToMF.js.map |
@@ -10,1 +10,2 @@ /** @typedef {Record<string, number>} AtomsMap */ | ||
export type AtomsMap = Record<string, number>; | ||
//# sourceMappingURL=partToAtoms.d.ts.map |
@@ -42,1 +42,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=partToAtoms.js.map |
export function partToMF(part: any, options?: {}): string; | ||
//# sourceMappingURL=partToMF.d.ts.map |
@@ -34,1 +34,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=partToMF.js.map |
@@ -39,1 +39,2 @@ export const superscript: { | ||
}; | ||
//# sourceMappingURL=subSuperscript.d.ts.map |
@@ -42,1 +42,2 @@ "use strict"; | ||
}; | ||
//# sourceMappingURL=subSuperscript.js.map |
@@ -11,1 +11,2 @@ /** | ||
}[]; | ||
//# sourceMappingURL=toDisplay.d.ts.map |
@@ -103,1 +103,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=toDisplay.js.map |
export function toHtml(lines: any): string; | ||
//# sourceMappingURL=toHtml.d.ts.map |
@@ -25,1 +25,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=toHtml.js.map |
@@ -8,3 +8,4 @@ /** | ||
export function toParts(lines: any, options?: { | ||
expand?: boolean; | ||
expand?: boolean | undefined; | ||
}): any[][]; | ||
//# sourceMappingURL=toParts.d.ts.map |
@@ -217,1 +217,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=toParts.js.map |
export function toText(lines: any): string; | ||
//# sourceMappingURL=toText.d.ts.map |
@@ -66,1 +66,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=toText.js.map |
{ | ||
"name": "mf-parser", | ||
"version": "3.2.5", | ||
"version": "3.2.6", | ||
"description": "Parse a molecular formula", | ||
@@ -23,5 +23,5 @@ "main": "lib/src/index.js", | ||
"dependencies": { | ||
"atom-sorter": "^2.1.3", | ||
"chemical-elements": "^2.1.2", | ||
"chemical-groups": "^2.2.1" | ||
"atom-sorter": "^2.2.0", | ||
"chemical-elements": "^2.2.0", | ||
"chemical-groups": "^2.2.2" | ||
}, | ||
@@ -31,3 +31,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "2b83132c523cebb4b3c395a70cfd5de04fbf7f28" | ||
"gitHead": "a5a0497a4a284ffcbeaf90a39baba0170a6b1e24" | ||
} |
@@ -31,2 +31,7 @@ import { ensureCase } from './ensureCase'; | ||
/** | ||
* Returns an array of objects with kind and value that can be used to easily | ||
* display the molecular formula. | ||
* @returns {{kind: string, value: string}[]} | ||
*/ | ||
toDisplay() { | ||
@@ -37,2 +42,6 @@ if (!this.cache.displayed) this.cache.displayed = toDisplay(this.parsed); | ||
/** | ||
* Returns a string that represents the molecular formula adding subscript and superscript in HTML. | ||
* @returns {string} | ||
*/ | ||
toHtml() { | ||
@@ -46,2 +55,7 @@ if (!this.cache.html) { | ||
/** | ||
* Returns a string that represents the molecular formula adding subscript and superscript | ||
* using unicode characters. This can not be parsed anymore so kind of dead end ... | ||
* @returns {string} | ||
*/ | ||
toText() { | ||
@@ -55,2 +69,6 @@ if (!this.cache.text) { | ||
/** | ||
* Similar to toText but returns a canonic string in which the atoms are sorted using the Hill system | ||
* @returns {string} | ||
*/ | ||
toCanonicText() { | ||
@@ -124,2 +142,3 @@ if (!this.cache.canonicText) { | ||
* Get a canonized MF | ||
* @returns {string} | ||
*/ | ||
@@ -126,0 +145,0 @@ toMF() { |
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
287023
150
3795
Updatedatom-sorter@^2.2.0
Updatedchemical-elements@^2.2.0
Updatedchemical-groups@^2.2.2