cocoda-sdk 3.0.0 → 3.0.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.
@@ -1497,6 +1497,9 @@ var ConceptApiProvider = class extends BaseProvider {
1497
1497
  }
1498
1498
  }
1499
1499
  this.has.schemes = !!this._api.schemes;
1500
+ if (!this.has.schemes && Array.isArray(this.schemes)) {
1501
+ this.has.schemes = true;
1502
+ }
1500
1503
  this.has.top = !!this._api.top;
1501
1504
  this.has.data = !!this._api.data;
1502
1505
  this.has.concepts = !!this._api.concepts || this.has.data;
@@ -1549,6 +1552,9 @@ var ConceptApiProvider = class extends BaseProvider {
1549
1552
  }
1550
1553
  async getSchemes(config) {
1551
1554
  if (!this._api.schemes) {
1555
+ if (Array.isArray(this.schemes)) {
1556
+ return this.schemes;
1557
+ }
1552
1558
  throw new MissingApiUrlError();
1553
1559
  }
1554
1560
  const schemes = await this.axios({