@appbaseio/reactivesearch-vue 1.16.0-alpha.40 → 1.16.0-alpha.41

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.
@@ -105,18 +105,9 @@ var ReactiveComponent = {
105
105
  queryToBeSet = obj.query.query;
106
106
  }
107
107
 
108
- var customQueryCalc = _rollupPluginBabelHelpers._extends({}, options); // Update customQuery field for RS API
109
-
108
+ var customQueryCalc = queryToBeSet; // Update customQuery field for RS API
110
109
 
111
110
  if (queryToBeSet || options) {
112
- if (queryToBeSet.query) {
113
- if (queryToBeSet.id) {
114
- customQueryCalc = queryToBeSet;
115
- } else {
116
- customQueryCalc.query = queryToBeSet;
117
- }
118
- }
119
-
120
111
  _this.setCustomQuery(props.componentId, customQueryCalc);
121
112
  }
122
113
 
@@ -272,7 +272,8 @@ function initReactivesearch(componentCollection, searchState, settings) {
272
272
  });
273
273
  }
274
274
 
275
- var customQuery = getCustomQuery(component, value); // set custom query for main component
275
+ var customQuery = getCustomQuery(component, value);
276
+ console.log('SETTING CUSTOM QUERY', component.componentId, customQuery); // set custom query for main component
276
277
 
277
278
  queryList = queryReducer(queryList, {
278
279
  type: 'SET_QUERY',
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "1.16.0-alpha.40";
5
+ var version = "1.16.0-alpha.41";
6
6
 
7
7
  exports.default = version;
@@ -98,18 +98,9 @@ var ReactiveComponent = {
98
98
  queryToBeSet = obj.query.query;
99
99
  }
100
100
 
101
- var customQueryCalc = _extends({}, options); // Update customQuery field for RS API
102
-
101
+ var customQueryCalc = queryToBeSet; // Update customQuery field for RS API
103
102
 
104
103
  if (queryToBeSet || options) {
105
- if (queryToBeSet.query) {
106
- if (queryToBeSet.id) {
107
- customQueryCalc = queryToBeSet;
108
- } else {
109
- customQueryCalc.query = queryToBeSet;
110
- }
111
- }
112
-
113
104
  _this.setCustomQuery(props.componentId, customQueryCalc);
114
105
  }
115
106
 
@@ -266,7 +266,8 @@ function initReactivesearch(componentCollection, searchState, settings) {
266
266
  });
267
267
  }
268
268
 
269
- var customQuery = getCustomQuery(component, value); // set custom query for main component
269
+ var customQuery = getCustomQuery(component, value);
270
+ console.log('SETTING CUSTOM QUERY', component.componentId, customQuery); // set custom query for main component
270
271
 
271
272
  queryList = queryReducer(queryList, {
272
273
  type: 'SET_QUERY',
@@ -1,3 +1,3 @@
1
- var version = "1.16.0-alpha.40";
1
+ var version = "1.16.0-alpha.41";
2
2
 
3
3
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appbaseio/reactivesearch-vue",
3
- "version": "1.16.0-alpha.40",
3
+ "version": "1.16.0-alpha.41",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "jsnext:main": "dist/es/index.js",