@taphubhq/sdk-core 0.22.2 → 0.22.3
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/index.cjs +4 -1
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -533,7 +533,10 @@ var BidModule = class {
|
|
|
533
533
|
price2: input.price2,
|
|
534
534
|
coefficient: input.coefficient,
|
|
535
535
|
amount: input.amount,
|
|
536
|
-
slippage: input.slippage
|
|
536
|
+
slippage: input.slippage,
|
|
537
|
+
// QA-only late-bid passthrough (bid-260610). Omitted entirely when absent
|
|
538
|
+
// so no `bidToken: null` is sent. sdk-react sets it from localStorage.
|
|
539
|
+
...input.bidToken ? { bidToken: input.bidToken } : {}
|
|
537
540
|
}
|
|
538
541
|
};
|
|
539
542
|
try {
|
package/dist/index.d.mts
CHANGED
|
@@ -243,6 +243,13 @@ interface PlaceBidInput {
|
|
|
243
243
|
coefficient: string;
|
|
244
244
|
amount: string;
|
|
245
245
|
slippage: number;
|
|
246
|
+
/**
|
|
247
|
+
* QA-only late-bid token (dev/local). Forwarded verbatim to grid-api, which
|
|
248
|
+
* honours it only when it matches its env secret on a dev/local stage. sdk-core
|
|
249
|
+
* is environment-agnostic and never reads it from storage — the browser-only
|
|
250
|
+
* sdk-react reads `localStorage["bidToken"]` and injects it. Omit when absent.
|
|
251
|
+
*/
|
|
252
|
+
bidToken?: string;
|
|
246
253
|
}
|
|
247
254
|
|
|
248
255
|
declare const isPending: (bid: Bid) => boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -243,6 +243,13 @@ interface PlaceBidInput {
|
|
|
243
243
|
coefficient: string;
|
|
244
244
|
amount: string;
|
|
245
245
|
slippage: number;
|
|
246
|
+
/**
|
|
247
|
+
* QA-only late-bid token (dev/local). Forwarded verbatim to grid-api, which
|
|
248
|
+
* honours it only when it matches its env secret on a dev/local stage. sdk-core
|
|
249
|
+
* is environment-agnostic and never reads it from storage — the browser-only
|
|
250
|
+
* sdk-react reads `localStorage["bidToken"]` and injects it. Omit when absent.
|
|
251
|
+
*/
|
|
252
|
+
bidToken?: string;
|
|
246
253
|
}
|
|
247
254
|
|
|
248
255
|
declare const isPending: (bid: Bid) => boolean;
|
package/dist/index.js
CHANGED
|
@@ -468,7 +468,10 @@ var BidModule = class {
|
|
|
468
468
|
price2: input.price2,
|
|
469
469
|
coefficient: input.coefficient,
|
|
470
470
|
amount: input.amount,
|
|
471
|
-
slippage: input.slippage
|
|
471
|
+
slippage: input.slippage,
|
|
472
|
+
// QA-only late-bid passthrough (bid-260610). Omitted entirely when absent
|
|
473
|
+
// so no `bidToken: null` is sent. sdk-react sets it from localStorage.
|
|
474
|
+
...input.bidToken ? { bidToken: input.bidToken } : {}
|
|
472
475
|
}
|
|
473
476
|
};
|
|
474
477
|
try {
|