@boltic/sdk 0.1.0 → 0.1.1

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/sdk.js CHANGED
@@ -4875,12 +4875,15 @@ class BolticClient {
4875
4875
  * ```
4876
4876
  */
4877
4877
  async useDatabase(dbInternalName) {
4878
+ console.log(`Database internal name:${dbInternalName}`);
4878
4879
  if (!dbInternalName || dbInternalName === "") {
4879
4880
  this.currentDatabase = null;
4880
4881
  return;
4881
4882
  }
4882
4883
  const result = await this.databaseResource.findOne(dbInternalName);
4884
+ console.log(`Result:${JSON.stringify(result, null, 2)}`);
4883
4885
  if (isErrorResponse(result)) {
4886
+ console.log(`Error:${result.error.message}`);
4884
4887
  throw new Error(
4885
4888
  result.error.message || `Failed to switch database to internal name '${dbInternalName}'`
4886
4889
  );