@spacinbox/sdk 2.1.0 → 2.2.0

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.
@@ -5982,16 +5982,17 @@
5982
5982
  var controller = null;
5983
5983
  var bootPromise = null;
5984
5984
  var Spacinbox = {
5985
- boot(options) {
5985
+ async boot(options) {
5986
5986
  if (typeof document === "undefined") {
5987
- return Promise.resolve();
5987
+ return Promise.resolve({ success: false });
5988
5988
  }
5989
5989
  if (bootPromise) {
5990
5990
  return bootPromise;
5991
5991
  }
5992
5992
  bootPromise = mountWidget(options).then((instance) => {
5993
5993
  controller = instance;
5994
- });
5994
+ return { success: true };
5995
+ }).catch(() => ({ success: false }));
5995
5996
  return bootPromise;
5996
5997
  },
5997
5998
  async identify(user) {