pinata 2.4.8 → 2.4.9

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/index.mjs CHANGED
@@ -3418,8 +3418,11 @@ var AnalyticsFilter = class {
3418
3418
  this.query.end_date = end;
3419
3419
  return this;
3420
3420
  }
3421
- then(onfulfilled) {
3422
- return analyticsTopUsage(this.config, this.query).then(onfulfilled);
3421
+ then(onfulfilled, onrejected) {
3422
+ return analyticsTopUsage(this.config, this.query).then(
3423
+ onfulfilled,
3424
+ onrejected
3425
+ );
3423
3426
  }
3424
3427
  };
3425
3428
 
@@ -3501,8 +3504,8 @@ var AnalyticsBuilder = class {
3501
3504
  async getAnalytics() {
3502
3505
  throw new Error("getAnalytics method must be implemented in derived class");
3503
3506
  }
3504
- then(onfulfilled) {
3505
- return this.getAnalytics().then(onfulfilled);
3507
+ then(onfulfilled, onrejected) {
3508
+ return this.getAnalytics().then(onfulfilled, onrejected);
3506
3509
  }
3507
3510
  };
3508
3511
 
@@ -3571,11 +3574,11 @@ var FilterGroups = class {
3571
3574
  this.query.pageToken = pageToken;
3572
3575
  return this;
3573
3576
  }
3574
- then(onfulfilled) {
3577
+ then(onfulfilled, onrejected) {
3575
3578
  return this.fetchPage().then((response) => {
3576
3579
  this.nextPageToken = response.next_page_token;
3577
3580
  return response;
3578
- }).then(onfulfilled);
3581
+ }).then(onfulfilled, onrejected);
3579
3582
  }
3580
3583
  async fetchPage() {
3581
3584
  if (this.nextPageToken) {
@@ -3742,8 +3745,8 @@ var FilterKeys = class {
3742
3745
  this.query.name = name;
3743
3746
  return this;
3744
3747
  }
3745
- then(onfulfilled) {
3746
- return listKeys(this.config, this.query).then(onfulfilled);
3748
+ then(onfulfilled, onrejected) {
3749
+ return listKeys(this.config, this.query).then(onfulfilled, onrejected);
3747
3750
  }
3748
3751
  // private async rateLimit(): Promise<void> {
3749
3752
  // this.requestCount++;
@@ -3806,9 +3809,10 @@ var OptimizeImageCreateAccessLink = class {
3806
3809
  this.imgOpts = { ...this.imgOpts, ...options };
3807
3810
  return this;
3808
3811
  }
3809
- then(onfulfilled) {
3812
+ then(onfulfilled, onrejected) {
3810
3813
  return createAccessLink(this.config, this.urlOpts, this.imgOpts).then(
3811
- onfulfilled
3814
+ onfulfilled,
3815
+ onrejected
3812
3816
  );
3813
3817
  }
3814
3818
  };
@@ -3825,9 +3829,10 @@ var OptimizeImageGetCid = class {
3825
3829
  this.options = { ...this.options, ...options };
3826
3830
  return this;
3827
3831
  }
3828
- then(onfulfilled) {
3832
+ then(onfulfilled, onrejected) {
3829
3833
  return getCid(this.config, this.cid, this.gatewayType, this.options).then(
3830
- onfulfilled
3834
+ onfulfilled,
3835
+ onrejected
3831
3836
  );
3832
3837
  }
3833
3838
  };
@@ -3977,8 +3982,8 @@ var FilterFiles = class {
3977
3982
  this.query.pageToken = pageToken;
3978
3983
  return this;
3979
3984
  }
3980
- then(onfulfilled) {
3981
- return this.fetchPage().then(onfulfilled);
3985
+ then(onfulfilled, onrejected) {
3986
+ return this.fetchPage().then(onfulfilled, onrejected);
3982
3987
  }
3983
3988
  async fetchPage() {
3984
3989
  if (this.currentPageToken) {
@@ -4061,8 +4066,8 @@ var FilterQueue = class {
4061
4066
  this.query.sort = sort;
4062
4067
  return this;
4063
4068
  }
4064
- then(onfulfilled) {
4065
- return queue(this.config, this.query).then(onfulfilled);
4069
+ then(onfulfilled, onrejected) {
4070
+ return queue(this.config, this.query).then(onfulfilled, onrejected);
4066
4071
  }
4067
4072
  // rate limit, hopefully temporary?
4068
4073
  async rateLimit() {