@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/lib.cjs
CHANGED
|
@@ -3058,7 +3058,16 @@ var ORDER = {
|
|
|
3058
3058
|
refundedAmount: M,
|
|
3059
3059
|
compAmount: M,
|
|
3060
3060
|
shippingMethod: { amount: M },
|
|
3061
|
-
lineItems: [LINE_ITEM]
|
|
3061
|
+
lineItems: [LINE_ITEM],
|
|
3062
|
+
// MC4-R93: what order creation writes into metadata (commerce-orders).
|
|
3063
|
+
// `appliedDiscount.amount` is the order's own discount, in its currency. The
|
|
3064
|
+
// F-6 `discountScope.value` is the code's config copied as it was: on a fixed
|
|
3065
|
+
// code, the main-currency amount (500 USD on a EUR order), so it is dropped;
|
|
3066
|
+
// a percentage code's value is its percent and stays.
|
|
3067
|
+
metadata: {
|
|
3068
|
+
discountScope: { value: DROP_WHEN("type", "fixed_amount") },
|
|
3069
|
+
appliedDiscount: { amount: M }
|
|
3070
|
+
}
|
|
3062
3071
|
};
|
|
3063
3072
|
var PAYMENT = { amount: M, capturedAmount: M, usdAmountMinor: DROP };
|
|
3064
3073
|
var TRANSACTION = { amount: M };
|
|
@@ -3959,7 +3968,7 @@ var OAUTH_PROJECTIONS = {
|
|
|
3959
3968
|
};
|
|
3960
3969
|
|
|
3961
3970
|
// src/server.ts
|
|
3962
|
-
var VERSION = true ? "0.5.
|
|
3971
|
+
var VERSION = true ? "0.5.1" : "0.0.0-dev";
|
|
3963
3972
|
function registerableActions(policy) {
|
|
3964
3973
|
const isProduction = policy.identity.environment.providerEnvironment === "production";
|
|
3965
3974
|
return actionsForChannel("mcp").filter((action) => {
|