Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
style(scripts): format the contract-shape gate
Yudhi Armyndharisb973ecab99b9
diff --git a/scripts/check-contract-shapes.mjs b/scripts/check-contract-shapes.mjsindex 7e1f2834d..dec74a398 100644--- a/scripts/check-contract-shapes.mjs+++ b/scripts/check-contract-shapes.mjs@@ -1020,7 +1020,10 @@ export function parseJavaTypes(sources) {members.push(serialized[1]);continue;}- const bare = part.replace(/@\w+\([^)]*\)/g, '').trim().match(/^([A-Z][A-Z0-9_]*)$/);+ const bare = part+ .replace(/@\w+\([^)]*\)/g, '')+ .trim()+ .match(/^([A-Z][A-Z0-9_]*)$/);// A bare UNKNOWN is the client-side sentinel the SDK decodes an unrecognised token to, not// a wire member. An annotated @SerializedName("unknown") is a real member and counts above.if (bare && bare[1] !== 'UNKNOWN') members.push(bare[1]);