chemical-elements
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"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, | ||
}; | ||
}); | ||
}); | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
387929
2
37
9085
2