@rebilly/instruments 16.159.0 → 16.159.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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [16.159.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.158.0...instruments/core-v16.159.0) (2026-07-17)
1
+ ## [16.159.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.159.0...instruments/core-v16.159.1) (2026-07-20)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#23726](https://github.com/Rebilly/rebilly/issues/23726)) ([bb68948](https://github.com/Rebilly/rebilly/commit/bb68948682298f022ed4c50e1c5fa193488d7da8))
6
+ * **instruments:** Default missing line item quantity to 1 in order preview payload ([#23855](https://github.com/Rebilly/rebilly/issues/23855)) ([6908bd3](https://github.com/Rebilly/rebilly/commit/6908bd3557d388dba0cff841b117979c1fec71b0))
package/dist/index.js CHANGED
@@ -5779,7 +5779,7 @@ function O$1({ options: t2 }) {
5779
5779
  }
5780
5780
  function o2() {
5781
5781
  const a = {
5782
- "REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((m2) => m2).join("/")}@bb68948`
5782
+ "REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((m2) => m2).join("/")}@6908bd3`
5783
5783
  };
5784
5784
  return t2.apiKey && (a["REB-APIKEY"] = t2.apiKey), a;
5785
5785
  }
@@ -10865,7 +10865,7 @@ function getQuantityValue(quantity) {
10865
10865
  function mapItemsQuantities(items) {
10866
10866
  return items.map(({ planId, quantity }) => ({
10867
10867
  planId,
10868
- quantity: quantity && getQuantityValue(quantity)
10868
+ quantity: quantity && getQuantityValue(quantity) || defaultOptions.default
10869
10869
  }));
10870
10870
  }
10871
10871
  function createQuantitiesMap(items) {