lesgo 0.7.5 → 0.7.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lesgo",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "Core framework for lesgo node.js serverless framework.",
5
5
  "main": "./src/index.js",
6
6
  "author": "Sufiyan Rahmat",
@@ -51,14 +51,14 @@
51
51
  "prettier": "^1.18.2"
52
52
  },
53
53
  "dependencies": {
54
- "@elastic/elasticsearch": "^7.16.0",
55
- "@firebase/app": "^0.6.12",
54
+ "@elastic/elasticsearch": "^7.10.0",
55
+ "@firebase/app": "^0.7.16",
56
56
  "data-api-client": "^1.1.0",
57
57
  "firebase-admin": "^9.3.0",
58
58
  "jsonwebtoken": "^8.5.1",
59
59
  "memcached-elasticache": "^1.1.1",
60
60
  "mysql2": "^2.2.5",
61
- "nanoid": "^3.1.16"
61
+ "nanoid": "^3.2.0"
62
62
  },
63
63
  "husky": {
64
64
  "hooks": {
@@ -104,6 +104,17 @@ class ElasticsearchService {
104
104
  return this.client.get(params);
105
105
  }
106
106
 
107
+ /**
108
+ * Multi search API
109
+ *
110
+ * Executes several searches with a single API request.
111
+ *
112
+ * @see https://www.elastic.co/guide/en/elasticsearch/reference/7.16/search-multi-search.html
113
+ */
114
+ msearch(body) {
115
+ return this.client.msearch({ body });
116
+ }
117
+
107
118
  indexOrCreateById(body, refresh = false) {
108
119
  const params = {
109
120
  index: this.index,