@rebilly/instruments 16.175.0 → 16.175.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.175.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.174.0...instruments/core-v16.175.0) (2026-08-19)
1
+ ## [16.175.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.175.0...instruments/core-v16.175.1) (2026-08-19)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * **cashier:** Highlight CVV and EXP fields on gateway mismatch ([#24496](https://github.com/Rebilly/rebilly/issues/24496)) ([b8821e7](https://github.com/Rebilly/rebilly/commit/b8821e75fcb2bb543e01b072b2689bc7f082618e))
6
+ * **instruments:** Preserve quantity 0 when mapping storefront items ([#25004](https://github.com/Rebilly/rebilly/issues/25004)) ([478cde4](https://github.com/Rebilly/rebilly/commit/478cde47b6a6e0667c7a45b740555af064c6a6d3))
package/dist/index.js CHANGED
@@ -6175,7 +6175,7 @@ function O$1({ options: e }) {
6175
6175
  }
6176
6176
  function o() {
6177
6177
  const g = {
6178
- "REB-API-CONSUMER": `${["Rebilly", e.appName, "js-sdk"].filter((m2) => m2).join("/")}@b8821e7`
6178
+ "REB-API-CONSUMER": `${["Rebilly", e.appName, "js-sdk"].filter((m2) => m2).join("/")}@478cde4`
6179
6179
  };
6180
6180
  return e.apiKey && (g["REB-APIKEY"] = e.apiKey), g;
6181
6181
  }
@@ -11253,10 +11253,13 @@ function getQuantityValue(quantity) {
11253
11253
  return isObject(quantity) ? quantity.default : quantity;
11254
11254
  }
11255
11255
  function mapItemsQuantities(items) {
11256
- return items.map(({ planId, quantity }) => ({
11257
- planId,
11258
- quantity: quantity && getQuantityValue(quantity) || defaultOptions.default
11259
- }));
11256
+ return items.map(({ planId, quantity }) => {
11257
+ const value = quantity != null ? getQuantityValue(quantity) : void 0;
11258
+ return {
11259
+ planId,
11260
+ quantity: value ?? defaultOptions.default
11261
+ };
11262
+ });
11260
11263
  }
11261
11264
  function createQuantitiesMap(items) {
11262
11265
  return items.reduce((map, item) => {