@iebh/polyglot 4.5.0 → 4.6.0

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.
@@ -4,17 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
- /**
9
- * Collection of supported engines
10
- * Each engine should specify:
11
- * title - Human readable name of the engine
12
- * aliases - Alternative names for each engine
13
- * compile() - function that takes a parsed tree array and returns a string (string can contain HTML markup of the form <span class="black-underline" v-tooltip="message"> content </span>)
14
- * open() - optional function that takes a query and provides the direct searching method
15
- * debugging - optional boolean specifying that the engine is for debugging purposes only
16
- *
17
- * @var {array}
7
+ /**
8
+ * Collection of supported engines
9
+ * Each engine should specify:
10
+ * title - Human readable name of the engine
11
+ * aliases - Alternative names for each engine
12
+ * compile() - function that takes a parsed tree array and returns a string (string can contain HTML markup of the form <span class="black-underline" v-tooltip="message"> content </span>)
13
+ * open() - optional function that takes a query and provides the direct searching method
14
+ * debugging - optional boolean specifying that the engine is for debugging purposes only
15
+ *
16
+ * @var {array}
18
17
  */
19
18
  var _default = {
20
19
  // Lexical tree (JSON) {{{
@@ -25,19 +24,20 @@ var _default = {
25
24
  debugging: true,
26
25
  // Mark this module for debugging only
27
26
 
28
- /**
29
- * Compile a tree structure to JSON output
30
- * @param {array} tree The parsed tree to process
31
- * @param {Object} [options] Optional options to use when compiling
32
- * @return {string} The compiled output
27
+ /**
28
+ * Compile a tree structure to JSON output
29
+ * @param {array} tree The parsed tree to process
30
+ * @param {Object} [options] Optional options to use when compiling
31
+ * @return {string} The compiled output
33
32
  */
34
33
  compile: function compile(tree, options) {
35
34
  return tree;
36
35
  }
37
- } // }}}
36
+ }
37
+ // }}}
38
+
38
39
  // MongoDB {{{
39
40
  // mongodb: mongodbImport,
40
41
  // }}}
41
-
42
42
  };
43
43
  exports["default"] = _default;
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  // File contains global variables
8
8
  var _default = {
9
- /**
10
- * List of example search queries
11
- * See tests/examples.js for the outputs in each case
12
- * @var {array}
9
+ /**
10
+ * List of example search queries
11
+ * See tests/examples.js for the outputs in each case
12
+ * @var {array}
13
13
  */
14
14
  examples: [{
15
15
  title: 'Failure of antibiotic prescribing for bacterial infections',
@@ -33,16 +33,15 @@ var _default = {
33
33
  },
34
34
  variables: {
35
35
  no_field_tag: [] // Stores offsets for phrases with no field tags (for replacement)
36
-
37
36
  },
38
37
 
39
- /**
40
- * List of templates
41
- * Each key is the (case insensitive; specify in lowercase) keyword used in angular brackets
42
- * Each value is an object containing 'name', 'description', 'debugging' and an engines object with an additional 'default' key
43
- * @var {Object}
44
- * @example
45
- * {rct: {engines: {default: 'foo', ovid: 'bar'}}} // `<rct>` => 'foo' in most databases and 'bar' in Ovid MEDLINE
38
+ /**
39
+ * List of templates
40
+ * Each key is the (case insensitive; specify in lowercase) keyword used in angular brackets
41
+ * Each value is an object containing 'name', 'description', 'debugging' and an engines object with an additional 'default' key
42
+ * @var {Object}
43
+ * @example
44
+ * {rct: {engines: {default: 'foo', ovid: 'bar'}}} // `<rct>` => 'foo' in most databases and 'bar' in Ovid MEDLINE
46
45
  */
47
46
  // TODO: Update templates to match new engines
48
47
  templates: {