create-cartbase 0.1.4 → 0.1.5
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/package.json
CHANGED
|
@@ -86,6 +86,12 @@ foreign key → 400 `invalid_publishable_key`.
|
|
|
86
86
|
"thumbnail": null,
|
|
87
87
|
"allow_backorder": false,
|
|
88
88
|
"manage_inventory": true,
|
|
89
|
+
// Computed server-side by the platform's availability predicate:
|
|
90
|
+
// untracked or backorderable variants are always true; otherwise true
|
|
91
|
+
// iff available stock (kit-aware, reservations subtracted) is above
|
|
92
|
+
// zero. Read this — never re-derive stock client-side (the exact
|
|
93
|
+
// quantity is deliberately not exposed).
|
|
94
|
+
"in_stock": true,
|
|
89
95
|
"variant_rank": 0,
|
|
90
96
|
"metadata": null,
|
|
91
97
|
"options": [
|