@usethrottle/mcp 0.5.0 → 0.5.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/dist/contract-index.json +1 -1
- package/dist/docs-index.json +1 -1
- package/dist/lib.cjs +11 -2
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.js +11 -2
- package/dist/lib.js.map +1 -1
- package/dist/mcp.js +11 -2
- package/dist/mcp.js.map +1 -1
- package/package.json +1 -1
package/dist/mcp.js
CHANGED
|
@@ -2937,7 +2937,16 @@ var ORDER = {
|
|
|
2937
2937
|
refundedAmount: M,
|
|
2938
2938
|
compAmount: M,
|
|
2939
2939
|
shippingMethod: { amount: M },
|
|
2940
|
-
lineItems: [LINE_ITEM]
|
|
2940
|
+
lineItems: [LINE_ITEM],
|
|
2941
|
+
// MC4-R93: what order creation writes into metadata (commerce-orders).
|
|
2942
|
+
// `appliedDiscount.amount` is the order's own discount, in its currency. The
|
|
2943
|
+
// F-6 `discountScope.value` is the code's config copied as it was: on a fixed
|
|
2944
|
+
// code, the main-currency amount (500 USD on a EUR order), so it is dropped;
|
|
2945
|
+
// a percentage code's value is its percent and stays.
|
|
2946
|
+
metadata: {
|
|
2947
|
+
discountScope: { value: DROP_WHEN("type", "fixed_amount") },
|
|
2948
|
+
appliedDiscount: { amount: M }
|
|
2949
|
+
}
|
|
2941
2950
|
};
|
|
2942
2951
|
var PAYMENT = { amount: M, capturedAmount: M, usdAmountMinor: DROP };
|
|
2943
2952
|
var TRANSACTION = { amount: M };
|
|
@@ -3838,7 +3847,7 @@ var OAUTH_PROJECTIONS = {
|
|
|
3838
3847
|
};
|
|
3839
3848
|
|
|
3840
3849
|
// src/server.ts
|
|
3841
|
-
var VERSION = true ? "0.5.
|
|
3850
|
+
var VERSION = true ? "0.5.1" : "0.0.0-dev";
|
|
3842
3851
|
function registerableActions(policy) {
|
|
3843
3852
|
const isProduction = policy.identity.environment.providerEnvironment === "production";
|
|
3844
3853
|
return actionsForChannel("mcp").filter((action) => {
|