@cellaware/utils 5.5.0 → 5.5.2

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.
@@ -175,8 +175,7 @@ export async function cosmosSelect(databaseId, collectionId, partitionKey, query
175
175
  return resources;
176
176
  }
177
177
  catch (err) {
178
- console.log(`COSMOS: Select error: ${err.message}`);
179
- return [];
178
+ throw new Error(`COSMOS: Select error: ${err.message}`);
180
179
  }
181
180
  }
182
181
  export async function cosmosInsert(databaseId, collectionId, partitionKey, data) {
@@ -194,8 +193,7 @@ export async function cosmosInsert(databaseId, collectionId, partitionKey, data)
194
193
  return true;
195
194
  }
196
195
  catch (err) {
197
- console.log(`COSMOS: Insert error: ${err.message}`);
198
- return false;
196
+ throw new Error(`COSMOS: Insert error: ${err.message}`);
199
197
  }
200
198
  }
201
199
  /**
@@ -221,8 +219,7 @@ export async function cosmosDelete(databaseId, collectionId, partitionKey, query
221
219
  return true;
222
220
  }
223
221
  catch (err) {
224
- console.log(`COSMOS: Delete error: ${err.message}`);
225
- return false;
222
+ throw new Error(`COSMOS: Delete error: ${err.message}`);
226
223
  }
227
224
  }
228
225
  /**
@@ -259,8 +256,7 @@ export async function cosmosUpdate(databaseId, collectionId, partitionKey, query
259
256
  }
260
257
  }
261
258
  catch (err) {
262
- console.log(`COSMOS: Update error: ${err.message}`);
263
- return false;
259
+ throw new Error(`COSMOS: Update error: ${err.message}`);
264
260
  }
265
261
  }
266
262
  /**
@@ -51,6 +51,7 @@ export interface ChatWMSProductExample {
51
51
  sequence: number;
52
52
  specification: string;
53
53
  query: string;
54
+ comments?: string;
54
55
  }
55
56
  export interface ChatWMSProductColumnDescription {
56
57
  columnName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "5.5.0",
3
+ "version": "5.5.2",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",