@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 +3 -3
- package/dist/index.js +2 -2
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [16.159.
|
|
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
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* **
|
|
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("/")}@
|
|
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) {
|