jcampconverter
Advanced tools
Comparing version 7.9.0 to 7.10.0
# 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 @@ |
@@ -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 |
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
93745
2223