We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0fbfab commit b83e41dCopy full SHA for b83e41d
lib/zip-name.js
@@ -1,2 +1,4 @@
1
-export const zipName = (benthos) =>
2
- `${benthos.name}_${benthos.version}_${benthos.platform}.zip`
+export const zipName = (benthos) => {
+ const { name, version, platform } = benthos
3
+ return `${[name, version, platform].filter((x) => !!x).join('_')}.zip`
4
+}
0 commit comments