@aicore/cocodb-ws-client
Advanced tools
Comparing version 1.0.14 to 1.0.15
{ | ||
"name": "@aicore/cocodb-ws-client", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "Websocket client for cocoDb", | ||
@@ -50,4 +50,4 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"@commitlint/cli": "17.4.3", | ||
"@commitlint/config-conventional": "17.4.3", | ||
"@commitlint/cli": "17.4.4", | ||
"@commitlint/config-conventional": "17.4.4", | ||
"c8": "7.13.0", | ||
@@ -57,4 +57,4 @@ "chai": "4.3.7", | ||
"documentation": "14.0.1", | ||
"eslint": "8.34.0", | ||
"glob": "8.1.0", | ||
"eslint": "8.36.0", | ||
"glob": "9.3.0", | ||
"husky": "8.0.3", | ||
@@ -65,8 +65,8 @@ "mocha": "10.2.0" | ||
"@aicore/libcommonutils": "1.0.19", | ||
"ws": "8.12.1" | ||
"ws": "8.13.0" | ||
}, | ||
"optionalDependencies": { | ||
"bufferutil": "4.0.7", | ||
"utf-8-validate": "6.0.2" | ||
"utf-8-validate": "6.0.3" | ||
} | ||
} |
@@ -222,5 +222,7 @@ import {sendMessage} from "./client.js"; | ||
* @param {string} documentId - The id of the document to delete. | ||
* @param {string} [condition] - Optional coco query condition of the form "$.cost<35" that must be satisfied | ||
* for delete to happen. See query API for more details on how to write coco query strings. | ||
* @returns {Promise} A promise. | ||
*/ | ||
export function deleteDocument(tableName, documentId) { | ||
export function deleteDocument(tableName, documentId, condition) { | ||
if (isStringEmpty(tableName)) { | ||
@@ -237,3 +239,4 @@ throw new Error('Please provide valid table name'); | ||
tableName: tableName, | ||
documentId: documentId | ||
documentId: documentId, | ||
condition | ||
} | ||
@@ -240,0 +243,0 @@ }); |
73808
728
+ Addedutf-8-validate@6.0.3(transitive)
+ Addedws@8.13.0(transitive)
- Removedutf-8-validate@6.0.2(transitive)
- Removedws@8.12.1(transitive)
Updatedws@8.13.0