Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aicore/cocodb-ws-client

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aicore/cocodb-ws-client - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

2

package.json
{
"name": "@aicore/cocodb-ws-client",
"version": "1.0.11",
"version": "1.0.12",
"description": "Websocket client for cocoDb",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -166,5 +166,10 @@ import {sendMessage} from "./client.js";

* @param{Object} queryObject - This is the object that you want to query the table with.
* @param {Object} options Optional parameter to add pagination.
* @param {number} options.pageOffset specify which row to start retrieving documents from. Eg: to get 10 documents from
* the 100'th document, you should specify `pageOffset = 100` and `pageLimit = 10`
* @param {number} options.pageLimit specify number of documents to retrieve. Eg: to get 10 documents from
* the 100'th document, you should specify `pageOffset = 100` and `pageLimit = 10`
* @returns {Promise}
*/
export function getFromIndex(tableName, queryObject) {
export function getFromIndex(tableName, queryObject, options= {}) {
if (isStringEmpty(tableName)) {

@@ -181,3 +186,4 @@ throw new Error('Please provide valid table name');

tableName: tableName,
queryObject: queryObject
queryObject: queryObject,
options
}

@@ -191,5 +197,10 @@ });

* @param{Object} queryObject - This is the object that you want to query the table with.
* @param {Object} options Optional parameter to add pagination.
* @param {number} options.pageOffset specify which row to start retrieving documents from. Eg: to get 10 documents from
* the 100'th document, you should specify `pageOffset = 100` and `pageLimit = 10`
* @param {number} options.pageLimit specify number of documents to retrieve. Eg: to get 10 documents from
* the 100'th document, you should specify `pageOffset = 100` and `pageLimit = 10`
* @returns {Promise}
*/
export function getFromNonIndex(tableName, queryObject = {}) {
export function getFromNonIndex(tableName, queryObject = {}, options= {}) {
if (isStringEmpty(tableName)) {

@@ -203,3 +214,4 @@ throw new Error('Please provide valid table name');

tableName: tableName,
queryObject: queryObject
queryObject: queryObject,
options
}

@@ -314,5 +326,10 @@ });

* @param {Array<string>}[useIndexForFields=null] - This is an array of fields that you want to use the index for.
* @param {Object} options Optional parameter to add pagination.
* @param {number} options.pageOffset specify which row to start retrieving documents from. Eg: to get 10 documents from
* the 100'th document, you should specify `pageOffset = 100` and `pageLimit = 10`
* @param {number} options.pageLimit specify number of documents to retrieve. Eg: to get 10 documents from
* the 100'th document, you should specify `pageOffset = 100` and `pageLimit = 10`
* @returns {Promise}A promise
*/
export function query(tableName, queryString, useIndexForFields = null) {
export function query(tableName, queryString, useIndexForFields = null, options= {}) {
if (isStringEmpty(tableName)) {

@@ -330,3 +347,4 @@ throw new Error('Please provide valid table name');

tableName: tableName,
queryString: queryString
queryString: queryString,
options
}

@@ -333,0 +351,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc