@aicore/cocodb-ws-client 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/utils/api.js +1 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicore/cocodb-ws-client",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Websocket client for cocoDb",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/utils/api.js CHANGED
@@ -188,13 +188,10 @@ export function getFromIndex(tableName, queryObject) {
188
188
  * @param{Object} queryObject - This is the object that you want to query the table with.
189
189
  * @returns {Promise}
190
190
  */
191
- export function getFromNonIndex(tableName, queryObject) {
191
+ export function getFromNonIndex(tableName, queryObject = {}) {
192
192
  if (isStringEmpty(tableName)) {
193
193
  throw new Error('Please provide valid table name');
194
194
  }
195
- if (isObjectEmpty(queryObject)) {
196
- throw new Error('Please provide valid queryObject');
197
- }
198
195
  return sendMessage(
199
196
  {
200
197
  fn: COCO_DB_FUNCTIONS.getFromNonIndex,