@rebuy/rebuy 3.58.0 → 3.59.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/server/index.cjs
CHANGED
|
@@ -426,6 +426,8 @@ var filterByB2bAvailability = async (products, input, ctx) => {
|
|
|
426
426
|
productIds: products.map(productGid),
|
|
427
427
|
shopifyShopDomain: input.shop
|
|
428
428
|
},
|
|
429
|
+
/** admin-api verifies it (REB-25081); absent, the call is unauthenticated (log-only there until enforced). */
|
|
430
|
+
...ctx.sessionToken && { headers: { Authorization: `Bearer ${ctx.sessionToken}` } },
|
|
429
431
|
host: ctx.host,
|
|
430
432
|
method: "POST"
|
|
431
433
|
}
|
package/dist/server/index.mjs
CHANGED
|
@@ -353,6 +353,8 @@ var filterByB2bAvailability = async (products, input, ctx) => {
|
|
|
353
353
|
productIds: products.map(productGid),
|
|
354
354
|
shopifyShopDomain: input.shop
|
|
355
355
|
},
|
|
356
|
+
/** admin-api verifies it (REB-25081); absent, the call is unauthenticated (log-only there until enforced). */
|
|
357
|
+
...ctx.sessionToken && { headers: { Authorization: `Bearer ${ctx.sessionToken}` } },
|
|
356
358
|
host: ctx.host,
|
|
357
359
|
method: "POST"
|
|
358
360
|
}
|
package/dist/server/shared.d.ts
CHANGED
|
@@ -62,6 +62,12 @@ export type ServerContext = {
|
|
|
62
62
|
ipAddress?: string;
|
|
63
63
|
/** Optional sink for {@link ServerDrift} — a degraded-but-successful payload salvage. */
|
|
64
64
|
reportDrift?: (event: ServerDrift) => void;
|
|
65
|
+
/**
|
|
66
|
+
* The checkout extension's Shopify session token (the bare JWT, no `Bearer ` prefix), as the host received
|
|
67
|
+
* it. Forwarded unread to admin-api's B2B availability check, which verifies it and binds the shop and the
|
|
68
|
+
* company location to the buyer it names (REB-25081). Never logged. B2B data-source filtering only.
|
|
69
|
+
*/
|
|
70
|
+
sessionToken?: string;
|
|
65
71
|
/** Browser user-agent forwarded to the ads engine (the checkout worker can't read it). Monetize only. */
|
|
66
72
|
userAgent?: string;
|
|
67
73
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebuy/rebuy",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.59.0",
|
|
4
4
|
"description": "Shared zod schemas, legacy-to-CAB widget transforms, and server orchestrators for Rebuy's Shopify consumers (rebuy-api, admin-nextjs, rebuy-shopify-extensions)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Rebuy, Inc.",
|