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.0 to 2.1.1

lib/src/constants.d.ts

7

package.json
{
"name": "chemical-elements",
"version": "2.1.0",
"version": "2.1.1",
"description": "JSON containing information about chemical elements and isotopes",
"main": "lib/index.js",
"main": "lib/src/index.js",
"module": "src/index.js",

@@ -23,7 +23,6 @@ "files": [

"devDependencies": {
"cross-fetch": "^4.0.0",
"papaparse": "^5.4.1",
"wikidata-sdk": "^8.1.0"
},
"gitHead": "28dae91d3b42556a23097ee08acfe4061f276ed0"
"gitHead": "838f98a30846d4b1721b8ed7aa94a55e854d7521"
}
import { elementsAndIsotopes } from './elementsAndIsotopes.js';
export const elementsAndIsotopesObject = {};
elementsAndIsotopes.forEach((element) => {
for (const element of elementsAndIsotopes) {
elementsAndIsotopesObject[element.symbol] = element;
});
}
import { elementsAndIsotopes } from './elementsAndIsotopes.js';
export const elementsAndStableIsotopes = JSON.parse(
JSON.stringify(elementsAndIsotopes),
);
export const elementsAndStableIsotopes = structuredClone(elementsAndIsotopes);
elementsAndStableIsotopes.forEach((element) => {
for (const element of elementsAndStableIsotopes) {
element.isotopes = element.isotopes.filter((i) => i.abundance > 0);
});
}
import { elementsAndStableIsotopes } from './elementsAndStableIsotopes.js';
export const elementsAndStableIsotopesObject = {};
elementsAndStableIsotopes.forEach((element) => {
for (const element of elementsAndStableIsotopes) {
elementsAndStableIsotopesObject[element.symbol] = element;
});
}
import { elements } from './elements.js';
export const elementsObject = {};
elements.forEach((element) => {
for (const element of elements) {
elementsObject[element.symbol] = element;
});
}
import { elementsAndIsotopesObject as elements } from './elementsAndIsotopesObject';
export const isotopesObject = {};
Object.keys(elements).forEach((key) => {
for (const key of Object.keys(elements)) {
let e = elements[key];
e.isotopes.forEach((i) => {
for (const i of e.isotopes) {
isotopesObject[i.nominal + key] = {

@@ -11,3 +11,3 @@ abundance: i.abundance,

};
});
});
}
}
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