@izak0s/spacebring-api 0.1.0 → 0.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.
package/dist/index.cjs CHANGED
@@ -539,17 +539,17 @@ async function* paginate(fetchPage, itemsKey) {
539
539
  function createAltcurrencies(client, defaults) {
540
540
  return {
541
541
  /**
542
- * Retrieve alt currencies
542
+ * Retrieve alternative currencies
543
543
  *
544
- * Retrieve all alt currencies in the location.
544
+ * Retrieve all alternative currencies in the location.
545
545
  */
546
546
  async list(query) {
547
547
  return unwrap(await client.GET("/alt_currencies/v1", { params: { query } }));
548
548
  },
549
549
  /**
550
- * Retrieve alt currencies — iterates every item across all pages.
550
+ * Retrieve alternative currencies — iterates every item across all pages.
551
551
  *
552
- * Retrieve all alt currencies in the location.
552
+ * Retrieve all alternative currencies in the location.
553
553
  */
554
554
  iterate(query) {
555
555
  return paginate(
@@ -557,15 +557,15 @@ function createAltcurrencies(client, defaults) {
557
557
  "altCurrencies"
558
558
  );
559
559
  },
560
- /** Create an alt currency */
560
+ /** Create an alternative currency */
561
561
  async create(body) {
562
562
  return unwrapProp(await client.POST("/alt_currencies/v1", { body }), "altCurrency");
563
563
  },
564
- /** Update an alt currency */
564
+ /** Update an alternative currency */
565
565
  async update(id, body) {
566
566
  return unwrap(await client.PATCH("/alt_currencies/v1/{id}", { params: { path: { id } }, body }));
567
567
  },
568
- /** Delete an alt currency */
568
+ /** Delete an alternative currency */
569
569
  async delete(id) {
570
570
  return unwrap(await client.DELETE("/alt_currencies/v1/{id}", { params: { path: { id } } }));
571
571
  }