@seamapi/http 0.25.0 → 0.25.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/connect.cjs CHANGED
@@ -653,9 +653,10 @@ var SeamActionAttemptTimeoutError = class extends SeamActionAttemptError {
653
653
  };
654
654
  var isSuccessfulActionAttempt = (actionAttempt) => actionAttempt.status === "success";
655
655
  var isFailedActionAttempt = (actionAttempt) => actionAttempt.status === "error";
656
- var _parent, _config;
656
+ var _a, _parent, _config;
657
657
  var SeamHttpRequest = class {
658
658
  constructor(parent, config) {
659
+ this[_a] = "SeamHttpRequest";
659
660
  __privateAdd(this, _parent, void 0);
660
661
  __privateAdd(this, _config, void 0);
661
662
  __privateSet(this, _parent, parent);
@@ -706,10 +707,17 @@ var SeamHttpRequest = class {
706
707
  }
707
708
  return data;
708
709
  }
709
- then(onfulfilled, onrejected) {
710
- return this.execute().then(onfulfilled, onrejected);
710
+ async then(onfulfilled, onrejected) {
711
+ return await this.execute().then(onfulfilled, onrejected);
712
+ }
713
+ async catch(onrejected) {
714
+ return await this.execute().catch(onrejected);
715
+ }
716
+ async finally(onfinally) {
717
+ return await this.execute().finally(onfinally);
711
718
  }
712
719
  };
720
+ _a = Symbol.toStringTag;
713
721
  _parent = new WeakMap();
714
722
  _config = new WeakMap();
715
723
  var getUrlPrefix = (input) => {
@@ -4377,6 +4385,7 @@ exports.SeamHttpNoiseSensors = SeamHttpNoiseSensors;
4377
4385
  exports.SeamHttpNoiseSensorsNoiseThresholds = SeamHttpNoiseSensorsNoiseThresholds;
4378
4386
  exports.SeamHttpPhones = SeamHttpPhones;
4379
4387
  exports.SeamHttpPhonesSimulate = SeamHttpPhonesSimulate;
4388
+ exports.SeamHttpRequest = SeamHttpRequest;
4380
4389
  exports.SeamHttpThermostats = SeamHttpThermostats;
4381
4390
  exports.SeamHttpThermostatsClimateSettingSchedules = SeamHttpThermostatsClimateSettingSchedules;
4382
4391
  exports.SeamHttpUnauthorizedError = SeamHttpUnauthorizedError;