@iebh/polyglot 4.7.3 → 4.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -511,7 +511,10 @@ var parse = function parse(query, options) {
511
511
  useLeaf = leaf;
512
512
  } else if (_lodash["default"].isArray(leaf) && lastGroup) {
513
513
  useLeaf = lastGroup;
514
+ } else if (_lodash["default"].isObject(leaf) && leaf.type == 'mesh') {
515
+ useLeaf = leaf;
514
516
  }
517
+ console.log("Here is the problem", _fieldCodesParse["default"][match[1].toLowerCase()]);
515
518
  useLeaf.field = _fieldCodesParse["default"][match[1].toLowerCase()];
516
519
  if (match[2]) {
517
520
  offset += match[0].length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iebh/polyglot",
3
- "version": "4.7.3",
3
+ "version": "4.7.4",
4
4
  "description": "IEBH-SRA tool to convert between different medical database search formats",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {