From 038d50f25acafeda249e64aaedfd7b15b5b6e00a Mon Sep 17 00:00:00 2001 From: Kaushik Rishi Manchukonda Date: Mon, 29 Apr 2024 23:31:59 +0530 Subject: [PATCH] rewrite package.json.js --- template/package.json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/package.json.js b/template/package.json.js index d690acf8..cbd9dcaf 100644 --- a/template/package.json.js +++ b/template/package.json.js @@ -12,7 +12,7 @@ export default function packageFile({ asyncapi, params }) { 'node-yaml-config': '0.0.4', }; - const serverProtocol = asyncapi.server(params.server).protocol(); + const serverProtocol = asyncapi.allServers().get(params.server).protocol(); if (serverProtocol === 'mqtt' || serverProtocol === 'mqtts') { dependencies['hermesjs-mqtt'] = '2.x'; } else if (serverProtocol === 'kafka' || serverProtocol === 'kafka-secure') {