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.15 to 1.0.16

4

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

@@ -62,3 +62,3 @@ "main": "src/index.js",

"dependencies": {
"@aicore/libcommonutils": "1.0.19",
"@aicore/libcommonutils": "1.0.20",
"ws": "8.13.0"

@@ -65,0 +65,0 @@ },

@@ -28,2 +28,3 @@ /*

deleteDocument,
deleteDocuments,
deleteDb,

@@ -84,2 +85,2 @@ getFromIndex,

* @module @aicore/cocodb-ws-client
*/
*/

@@ -245,2 +245,28 @@ import {sendMessage} from "./client.js";

/**
* > This function deletes all documents satisfying query condition from a table
* @param {string} tableName - The name of the table in which the key is to be deleted.
* @param {string} queryString - The cocDB query string.
* @param {Array[string]} useIndexForFields - List of indexed fields in the document.
* @returns {Promise} A promise.
*/
export function deleteDocuments(tableName, queryString, useIndexForFields = []) {
if (isStringEmpty(tableName)) {
throw new Error('Please provide valid table name');
}
if (isStringEmpty(queryString)) {
throw new Error('Please provide valid queryString');
}
return sendMessage(
{
fn: COCO_DB_FUNCTIONS.deleteDocuments,
request: {
tableName,
queryString,
useIndexForFields
}
});
}
/**
* > This function deletes a table from the database

@@ -247,0 +273,0 @@ * @param {string} tableName - The name of the table to delete.

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