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

chemical-elements

Package Overview
Dependencies
Maintainers
0
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chemical-elements - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

lib/src/constants.d.ts.map

3

lib/src/constants.d.ts

@@ -1,1 +0,2 @@

export const ELECTRON_MASS: 0.00054857990907;
export declare const ELECTRON_MASS = 0.00054857990907;
//# sourceMappingURL=constants.d.ts.map

@@ -5,1 +5,2 @@ "use strict";

exports.ELECTRON_MASS = 5.4857990907e-4;
//# sourceMappingURL=constants.js.map

@@ -1,7 +0,3 @@

export const elements: {
number: number;
symbol: string;
mass: any;
name: string;
monoisotopicMass: number;
}[];
import type { Element } from './types.js';
export declare const elements: Element[];
//# sourceMappingURL=elements.d.ts.map

@@ -12,1 +12,2 @@ "use strict";

}));
//# sourceMappingURL=elements.js.map

@@ -1,26 +0,3 @@

export const elementsAndIsotopes: ({
number: number;
isotopes: ({
nominal: number;
mass: number;
abundance: number;
} | {
nominal: number;
mass: number;
abundance?: undefined;
})[];
symbol: string;
mass: number;
name: string;
monoisotopicMass: number;
} | {
number: number;
isotopes: {
nominal: number;
mass: number;
}[];
symbol: string;
mass: any;
name: string;
monoisotopicMass?: undefined;
})[];
import type { ElementAndIsotopes } from './types.js';
export declare const elementsAndIsotopes: ElementAndIsotopes[];
//# sourceMappingURL=elementsAndIsotopes.d.ts.map

@@ -1,1 +0,3 @@

export const elementsAndIsotopesObject: {};
import type { ElementAndIsotopes } from './types.js';
export declare const elementsAndIsotopesObject: Record<string, ElementAndIsotopes | undefined>;
//# sourceMappingURL=elementsAndIsotopesObject.d.ts.map

@@ -9,1 +9,2 @@ "use strict";

}
//# sourceMappingURL=elementsAndIsotopesObject.js.map

@@ -1,26 +0,2 @@

export const elementsAndStableIsotopes: ({
number: number;
isotopes: ({
nominal: number;
mass: number;
abundance: number;
} | {
nominal: number;
mass: number;
abundance?: undefined;
})[];
symbol: string;
mass: number;
name: string;
monoisotopicMass: number;
} | {
number: number;
isotopes: {
nominal: number;
mass: number;
}[];
symbol: string;
mass: any;
name: string;
monoisotopicMass?: undefined;
})[];
export declare const elementsAndStableIsotopes: import("./types.js").ElementAndIsotopes[];
//# sourceMappingURL=elementsAndStableIsotopes.d.ts.map

@@ -7,3 +7,6 @@ "use strict";

for (const element of exports.elementsAndStableIsotopes) {
element.isotopes = element.isotopes.filter((i) => i.abundance > 0);
element.isotopes = element.isotopes.filter((i) => {
return typeof i.abundance === 'number' && i.abundance > 0;
});
}
//# sourceMappingURL=elementsAndStableIsotopes.js.map

@@ -1,1 +0,3 @@

export const elementsAndStableIsotopesObject: {};
import type { ElementAndIsotopes } from './types.js';
export declare const elementsAndStableIsotopesObject: Record<string, ElementAndIsotopes | undefined>;
//# sourceMappingURL=elementsAndStableIsotopesObject.d.ts.map

@@ -9,1 +9,2 @@ "use strict";

}
//# sourceMappingURL=elementsAndStableIsotopesObject.js.map

@@ -1,1 +0,3 @@

export const elementsObject: {};
import type { Element } from './types.js';
export declare const elementsObject: Record<string, Element | undefined>;
//# sourceMappingURL=elementsObject.d.ts.map

@@ -9,1 +9,2 @@ "use strict";

}
//# sourceMappingURL=elementsObject.js.map

@@ -1,10 +0,12 @@

export * from "./constants.js";
export * from "./elements.js";
export * from "./elementsAndIsotopes.js";
export * from "./elementsAndIsotopesObject.js";
export * from "./elementsAndStableIsotopes.js";
export * from "./elementsAndStableIsotopesObject.js";
export * from "./elementsObject.js";
export * from "./stableIsotopesObject.js";
export * from "./isotopesObject.js";
export * from "./unsaturationsObject.js";
export * from './constants.js';
export * from './elements.js';
export * from './elementsAndIsotopes.js';
export * from './elementsAndIsotopesObject';
export * from './elementsAndStableIsotopes';
export * from './elementsAndStableIsotopesObject';
export * from './elementsObject';
export * from './isotopesObject';
export * from './stableIsotopesObject';
export * from './types.js';
export * from './unsaturationsObject';
//# sourceMappingURL=index.d.ts.map

@@ -20,8 +20,10 @@ "use strict";

__exportStar(require("./elementsAndIsotopes.js"), exports);
__exportStar(require("./elementsAndIsotopesObject.js"), exports);
__exportStar(require("./elementsAndStableIsotopes.js"), exports);
__exportStar(require("./elementsAndStableIsotopesObject.js"), exports);
__exportStar(require("./elementsObject.js"), exports);
__exportStar(require("./stableIsotopesObject.js"), exports);
__exportStar(require("./isotopesObject.js"), exports);
__exportStar(require("./unsaturationsObject.js"), exports);
__exportStar(require("./elementsAndIsotopesObject"), exports);
__exportStar(require("./elementsAndStableIsotopes"), exports);
__exportStar(require("./elementsAndStableIsotopesObject"), exports);
__exportStar(require("./elementsObject"), exports);
__exportStar(require("./isotopesObject"), exports);
__exportStar(require("./stableIsotopesObject"), exports);
__exportStar(require("./types.js"), exports);
__exportStar(require("./unsaturationsObject"), exports);
//# sourceMappingURL=index.js.map

@@ -1,1 +0,7 @@

export const isotopesObject: {};
interface Isotope {
abundance: number | undefined;
mass: number;
}
export declare const isotopesObject: Record<string, Isotope | undefined>;
export {};
//# sourceMappingURL=isotopesObject.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isotopesObject = void 0;
const elementsAndIsotopesObject_1 = require("./elementsAndIsotopesObject");
const elementsAndIsotopesObject_js_1 = require("./elementsAndIsotopesObject.js");
exports.isotopesObject = {};
for (const key of Object.keys(elementsAndIsotopesObject_1.elementsAndIsotopesObject)) {
let e = elementsAndIsotopesObject_1.elementsAndIsotopesObject[key];
for (const i of e.isotopes) {
exports.isotopesObject[i.nominal + key] = {
abundance: i.abundance,
mass: i.mass,
for (const [symbol, element] of Object.entries(elementsAndIsotopesObject_js_1.elementsAndIsotopesObject)) {
if (!element)
continue;
for (const isotope of element.isotopes) {
exports.isotopesObject[`${isotope.nominal}${symbol}`] = {
abundance: isotope.abundance,
mass: isotope.mass,
};
}
}
//# sourceMappingURL=isotopesObject.js.map

@@ -1,1 +0,9 @@

export const stableIsotopesObject: {};
interface StableIsotope {
name: string;
mass: number;
symbol: string;
mostAbundant: boolean;
}
export declare const stableIsotopesObject: Record<string, StableIsotope | undefined>;
export {};
//# sourceMappingURL=stableIsotopesObject.d.ts.map

@@ -10,3 +10,4 @@ "use strict";

for (const isotope of element.isotopes) {
if (isotope.abundance > abundance) {
if (typeof isotope.abundance === 'number' &&
isotope.abundance > abundance) {
abundance = isotope.abundance;

@@ -23,2 +24,3 @@ mostAbundant = isotope.nominal;

symbol: element.symbol,
mostAbundant: false,
};

@@ -28,4 +30,5 @@ if (isotope.nominal === mostAbundant) {

}
exports.stableIsotopesObject[isotope.nominal + element.symbol] = entry;
exports.stableIsotopesObject[`${isotope.nominal}${element.symbol}`] = entry;
}
}
//# sourceMappingURL=stableIsotopesObject.js.map

@@ -1,17 +0,2 @@

export namespace unsaturationsObject {
let O: number;
let N: number;
let H: number;
let Na: number;
let K: number;
let Li: number;
let Ca: number;
let C: number;
let F: number;
let Si: number;
let Cl: number;
let Br: number;
let I: number;
let S: number;
let P: number;
}
export declare const unsaturationsObject: Record<string, number | undefined>;
//# sourceMappingURL=unsaturationsObject.d.ts.map

@@ -21,1 +21,2 @@ "use strict";

};
//# sourceMappingURL=unsaturationsObject.js.map
{
"name": "chemical-elements",
"version": "2.1.2",
"version": "2.2.0",
"description": "JSON containing information about chemical elements and isotopes",
"main": "lib/src/index.js",
"module": "src/index.js",
"files": [

@@ -26,3 +25,3 @@ "src",

},
"gitHead": "2b83132c523cebb4b3c395a70cfd5de04fbf7f28"
"gitHead": "a5a0497a4a284ffcbeaf90a39baba0170a6b1e24"
}

Sorry, the diff of this file is too big to display

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