Skip to content

Commit

Permalink
rewrite package.json.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushik-rishi committed Apr 29, 2024
1 parent c5db980 commit 038d50f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/package.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 038d50f

Please sign in to comment.