@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.js
CHANGED
|
@@ -3021,7 +3021,16 @@ var ORDER = {
|
|
|
3021
3021
|
refundedAmount: M,
|
|
3022
3022
|
compAmount: M,
|
|
3023
3023
|
shippingMethod: { amount: M },
|
|
3024
|
-
lineItems: [LINE_ITEM]
|
|
3024
|
+
lineItems: [LINE_ITEM],
|
|
3025
|
+
// MC4-R93: what order creation writes into metadata (commerce-orders).
|
|
3026
|
+
// `appliedDiscount.amount` is the order's own discount, in its currency. The
|
|
3027
|
+
// F-6 `discountScope.value` is the code's config copied as it was: on a fixed
|
|
3028
|
+
// code, the main-currency amount (500 USD on a EUR order), so it is dropped;
|
|
3029
|
+
// a percentage code's value is its percent and stays.
|
|
3030
|
+
metadata: {
|
|
3031
|
+
discountScope: { value: DROP_WHEN("type", "fixed_amount") },
|
|
3032
|
+
appliedDiscount: { amount: M }
|
|
3033
|
+
}
|
|
3025
3034
|
};
|
|
3026
3035
|
var PAYMENT = { amount: M, capturedAmount: M, usdAmountMinor: DROP };
|
|
3027
3036
|
var TRANSACTION = { amount: M };
|
|
@@ -3922,7 +3931,7 @@ var OAUTH_PROJECTIONS = {
|
|
|
3922
3931
|
};
|
|
3923
3932
|
|
|
3924
3933
|
// src/server.ts
|
|
3925
|
-
var VERSION = true ? "0.5.
|
|
3934
|
+
var VERSION = true ? "0.5.1" : "0.0.0-dev";
|
|
3926
3935
|
function registerableActions(policy) {
|
|
3927
3936
|
const isProduction = policy.identity.environment.providerEnvironment === "production";
|
|
3928
3937
|
return actionsForChannel("mcp").filter((action) => {
|