@aicore/coco-db-client
Advanced tools
Comparing version 1.0.15 to 1.0.16
{ | ||
"name": "@aicore/coco-db-client", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "JS client for cocoDb", | ||
@@ -52,10 +52,10 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"@commitlint/cli": "17.3.0", | ||
"@commitlint/config-conventional": "17.3.0", | ||
"c8": "7.12.0", | ||
"@commitlint/cli": "17.5.1", | ||
"@commitlint/config-conventional": "17.4.4", | ||
"c8": "7.13.0", | ||
"chai": "4.3.7", | ||
"cli-color": "2.0.3", | ||
"documentation": "14.0.1", | ||
"eslint": "8.31.0", | ||
"glob": "8.0.3", | ||
"eslint": "8.37.0", | ||
"glob": "8.1.0", | ||
"husky": "8.0.3", | ||
@@ -65,5 +65,5 @@ "mocha": "10.2.0" | ||
"dependencies": { | ||
"node-fetch": "3.3.0", | ||
"node-fetch": "3.3.1", | ||
"@aicore/libcommonutils": "1.0.19" | ||
} | ||
} |
@@ -84,5 +84,7 @@ // @INCLUDE_IN_API_DOCS | ||
* @param documentId - The documentId of the document you want 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 A promise | ||
*/ | ||
export function deleteDocument(tableName, documentId) { | ||
export function deleteDocument(tableName, documentId, condition) { | ||
if (isStringEmpty(tableName)) { | ||
@@ -96,3 +98,4 @@ throw new Error('Please provide valid table Name'); | ||
tableName: tableName, | ||
documentId: documentId | ||
documentId: documentId, | ||
condition | ||
}); | ||
@@ -99,0 +102,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61029
432
+ Addednode-fetch@3.3.1(transitive)
- Removednode-fetch@3.3.0(transitive)
Updatednode-fetch@3.3.1