@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.
package/dist/azure/cosmos.js
CHANGED
|
@@ -175,8 +175,7 @@ export async function cosmosSelect(databaseId, collectionId, partitionKey, query
|
|
|
175
175
|
return resources;
|
|
176
176
|
}
|
|
177
177
|
catch (err) {
|
|
178
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
263
|
-
return false;
|
|
259
|
+
throw new Error(`COSMOS: Update error: ${err.message}`);
|
|
264
260
|
}
|
|
265
261
|
}
|
|
266
262
|
/**
|