ywana-core8 0.0.33 → 0.0.34

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": "ywana-core8",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -369,21 +369,13 @@ const TableAPI = (url) => {
369
369
  all(filters) {
370
370
  let queryParams = "?"
371
371
  if (filters) {
372
-
373
- console.log('filters', filters)
374
-
375
372
  const filterQuery = Object.keys(filters).reduce((query, key) => {
376
-
377
373
  const value = filters[key]
378
- console.log(value)
379
-
380
374
  if (typeof (value) === 'boolean') {
381
375
  return query.concat(`${key}=${value}&`)
382
-
383
376
  } else if (Array.isArray(value)) {
384
377
  const param = value.length === 0 ? '' : value.reduce((param,item) => {
385
378
  param = param.concat(`${key}=${item}&`)
386
- console.log(item, param)
387
379
  return param
388
380
  }, "")
389
381
  console.log(param)
@@ -392,8 +384,6 @@ const TableAPI = (url) => {
392
384
  return query.concat(`${key}=%${filters[key]}%&`)
393
385
  }
394
386
  }, "")
395
-
396
- console.log('filterQuery')
397
387
  queryParams = queryParams.concat(filterQuery)
398
388
  }
399
389
  return http.GET(url + queryParams)