@datagrok-libraries/chem-meta
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -6,8 +6,6 @@ { | ||
}, | ||
"beta": true, | ||
"friendlyName": "Datagrok chem-meta library", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
"dependencies": { | ||
"@datagrok-libraries/utils": "^2.1.2", | ||
"wu": "latest" | ||
@@ -14,0 +12,0 @@ }, |
@@ -10,3 +10,3 @@ /** Base singleton for Molfile or Mol2 parser/handler */ | ||
init(file) { | ||
this.file = file.replaceAll('\r', ''); | ||
this.file = file.replace(/\r/g, ''); | ||
this._atomCount = undefined; | ||
@@ -131,2 +131,2 @@ this._atomTypes = undefined; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlbWljYWwtdGFibGUtcGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY2hlbWljYWwtdGFibGUtcGFyc2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9CQSx3REFBd0Q7QUFDeEQsTUFBTSxPQUFnQix1QkFBdUI7SUFDM0MsWUFBc0IsSUFBWTtRQUNoQyxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQ2xCLENBQUM7SUFBQSxDQUFDO0lBRUYsaUJBQWlCO0lBRWpCLGdGQUFnRjtJQUV6RSxJQUFJLENBQUMsSUFBWTtRQUN0QixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ3RDLElBQUksQ0FBQyxVQUFVLEdBQUcsU0FBUyxDQUFDO1FBQzVCLElBQUksQ0FBQyxVQUFVLEdBQUcsU0FBUyxDQUFDO1FBQzVCLElBQUksQ0FBQyxVQUFVLEdBQUcsU0FBUyxDQUFDO1FBQzVCLElBQUksQ0FBQyxlQUFlLEdBQUcsU0FBUy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bWVyaWNWYWx1ZShwYXJzZUludCwgaWR4KTtcbiAgfVxuXG4gIC8qKiBQYXJzZSBhIG51bWVyaWMgdmFsdWUgZGVwZW5kaW5nIG9uIHRoZSBmdW5jdGlvbmFsIGFyZ3VtZW50ICAqL1xuICBwcm90ZWN0ZWQgcGFyc2VOdW1lcmljVmFsdWUoXG4gICAgcGFyc2VyRnVuY3Rpb246IChzdHI6IHN0cmluZykgPT4gbnVtYmVyLFxuICAgIGlkeDogbnVtYmVyXG4gICk6IG51bWJlciB7XG4gICAgbGV0IGVuZCA9IGlkeCArIDE7XG4gICAgd2hpbGUgKCF0aGlzLmlzV2hpdGVzcGFjZShlbmQpKVxuICAgICAgKytlbmQ7XG4gICAgY29uc3QgdmFsdWUgPSBwYXJzZXJGdW5jdGlvbih0aGlzLmZpbGUuc3Vic3RyaW5nKGlkeCwgZW5kKSk7XG4gICAgcmV0dXJuIHZhbHVlO1xuICB9XG5cbiAgcHJvdGVjdGVkIHN0YXRpYyBpbnN0YW5jZTogQ2hlbWljYWxUYWJsZVBhcnNlckJhc2U7XG59XG4iXX0= |
@@ -7,5 +7,5 @@ { | ||
// "incremental": true, /* Enable incremental compilation */ | ||
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ | ||
"module": "es2020", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ | ||
"lib": ["es2022", "dom"], /* Specify library files to be included in the compilation. */ | ||
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ | ||
"module": "es2020", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ | ||
"lib": ["esnext", "dom"], /* Specify library files to be included in the compilation. */ | ||
// "allowJs": true, /* Allow javascript files to be compiled. */ | ||
@@ -12,0 +12,0 @@ // "checkJs": true, /* Report errors in .js files. */ |
1
66575
- Removed@datagrok-libraries/utils@^2.1.2
- Removed@datagrok-libraries/chem-meta@1.2.8(transitive)
- Removed@datagrok-libraries/utils@2.5.0(transitive)
- Removed@fast-csv/format@4.3.5(transitive)
- Removed@fast-csv/parse@4.3.6(transitive)
- Removed@types/node@14.18.63(transitive)
- Removed@types/prop-types@15.7.13(transitive)
- Removed@types/react@18.3.12(transitive)
- Removed@types/wu@2.1.44(transitive)
- Removedarchiver@5.3.2(transitive)
- Removedarchiver-utils@2.1.03.0.4(transitive)
- Removedasync@3.2.6(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase64-arraybuffer@1.0.2(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbig-integer@1.6.52(transitive)
- Removedbinary@0.3.0(transitive)
- Removedbl@4.1.0(transitive)
- Removedbluebird@3.4.7(transitive)
- Removedbrace-expansion@1.1.112.0.1(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedbuffer-crc32@0.2.13(transitive)
- Removedbuffer-indexof-polyfill@1.0.2(transitive)
- Removedbuffers@0.1.1(transitive)
- Removedcash-dom@8.1.5(transitive)
- Removedchainsaw@0.1.0(transitive)
- Removedcompress-commons@4.1.2(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcrc-32@1.2.2(transitive)
- Removedcrc32-stream@4.0.3(transitive)
- Removedcss-line-break@2.1.0(transitive)
- Removedcsstype@3.1.3(transitive)
- Removeddatagrok-api@1.22.2(transitive)
- Removeddayjs@1.11.13(transitive)
- Removedduplexer2@0.1.4(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedexceljs@4.4.0(transitive)
- Removedfast-csv@4.3.6(transitive)
- Removedfast-sha256@1.3.0(transitive)
- Removedfs-constants@1.0.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfstream@1.0.12(transitive)
- Removedglob@7.2.3(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhtml2canvas@1.4.1(transitive)
- Removedieee754@1.2.1(transitive)
- Removedimmediate@3.0.6(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjszip@3.10.1(transitive)
- Removedlazystream@1.0.1(transitive)
- Removedlie@3.3.0(transitive)
- Removedlistenercount@1.0.1(transitive)
- Removedlodash.defaults@4.2.0(transitive)
- Removedlodash.difference@4.5.0(transitive)
- Removedlodash.escaperegexp@4.1.2(transitive)
- Removedlodash.flatten@4.4.0(transitive)
- Removedlodash.groupby@4.6.0(transitive)
- Removedlodash.isboolean@3.0.3(transitive)
- Removedlodash.isequal@4.5.0(transitive)
- Removedlodash.isfunction@3.0.9(transitive)
- Removedlodash.isnil@4.0.0(transitive)
- Removedlodash.isplainobject@4.0.6(transitive)
- Removedlodash.isundefined@3.0.1(transitive)
- Removedlodash.union@4.6.0(transitive)
- Removedlodash.uniq@4.5.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedminimatch@3.1.25.1.6(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedopenchemlib@7.5.0(transitive)
- Removedpako@1.0.11(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreact@18.3.1(transitive)
- Removedreadable-stream@2.3.83.6.2(transitive)
- Removedreaddir-glob@1.1.3(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedrxjs@6.6.7(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsaxes@5.0.1(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedtar-stream@2.2.0(transitive)
- Removedtext-segmentation@1.0.3(transitive)
- Removedtmp@0.2.3(transitive)
- Removedtraverse@0.3.9(transitive)
- Removedtslib@1.14.1(transitive)
- Removedtypeahead-standalone@4.14.14.26.0(transitive)
- Removedunzipper@0.10.14(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedutrie@1.0.2(transitive)
- Removeduuid@8.3.2(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxmlchars@2.2.0(transitive)
- Removedzip-stream@4.1.1(transitive)