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

jcampconverter

Package Overview
Dependencies
Maintainers
4
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jcampconverter - npm Package Compare versions

Comparing version 7.9.0 to 7.10.0

12

CHANGELOG.md
# Changelog
## [7.10.0](https://www.github.com/cheminfo/jcampconverter/compare/v7.9.0...v7.10.0) (2021-04-27)
### Features
* simplify ORG.CHEMINFO comment. Iif ##$cheminfo parsed the JSON in meta.cheminfo property ([2c65658](https://www.github.com/cheminfo/jcampconverter/commit/2c65658331103f4552ffa7def310e695911424c3))
### Bug Fixes
* remote ORG.CHEMINFO.META LDR from meta ([20c5467](https://www.github.com/cheminfo/jcampconverter/commit/20c54673a9d5f8dd666ed4dd58f460002bd405b8))
## [7.9.0](https://www.github.com/cheminfo/jcampconverter/compare/v7.8.0...v7.9.0) (2021-04-27)

@@ -4,0 +16,0 @@

7

lib/index.js

@@ -782,6 +782,7 @@ 'use strict';

for (let key in entry.meta) {
if (key.toLocaleLowerCase() === 'org.cheminfo.meta') {
if (!entry.cheminfo) entry.cheminfo = {};
if (key.toLowerCase() === 'cheminfo') {
try {
entry.cheminfo.meta = JSON.parse(entry.meta[key]);
let parsed = JSON.parse(entry.meta[key]);
delete entry.meta[key];
entry.meta.cheminfo = parsed;
} catch (e) {

@@ -788,0 +789,0 @@ //do nothing

{
"name": "jcampconverter",
"version": "7.9.0",
"version": "7.10.0",
"description": "Parse and convert JCAMP data",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -46,6 +46,7 @@ import add2D from './2d/add2D';

for (let key in entry.meta) {
if (key.toLocaleLowerCase() === 'org.cheminfo.meta') {
if (!entry.cheminfo) entry.cheminfo = {};
if (key.toLowerCase() === 'cheminfo') {
try {
entry.cheminfo.meta = JSON.parse(entry.meta[key]);
let parsed = JSON.parse(entry.meta[key]);
delete entry.meta[key];
entry.meta.cheminfo = parsed;
} catch (e) {

@@ -52,0 +53,0 @@ //do nothing

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