@cloud-cli/dx 1.3.0 → 1.3.2

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.
@@ -54,7 +54,7 @@ export async function startContainer(options, { run }) {
54
54
  }
55
55
  function getPorts(ports) {
56
56
  const map = {};
57
- ports.forEach((str) => {
57
+ ports.filter(Boolean).forEach((str) => {
58
58
  const [left, right] = str.split(':');
59
59
  map[left] = right;
60
60
  });
package/dist/images.js CHANGED
@@ -1,5 +1,8 @@
1
1
  import { exec } from '@cloud-cli/exec';
2
2
  export async function pull(options) {
3
+ if (!options.image) {
4
+ throw new Error('Image is required');
5
+ }
3
6
  return (await exec('docker', ['pull', options.image])).ok;
4
7
  }
5
8
  export async function prune() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/dx",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Docker container management",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",