@squiz/dxp-cli-next 5.12.1 → 5.12.2-develop.1

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.
@@ -86,6 +86,7 @@ const createAddCommand = () => {
86
86
  ${utils_2.datastoreRepo}`);
87
87
  }
88
88
  catch (error) {
89
+ (0, utils_1.logDebug)(`ERROR: ${JSON.stringify(error)}`);
89
90
  if (error.message.includes('already in use') === true) {
90
91
  throw new Error('There is already a container running with this blueprint.');
91
92
  }
@@ -27,7 +27,6 @@ const createListCommand = () => {
27
27
  },
28
28
  })
29
29
  .action((options) => __awaiter(void 0, void 0, void 0, function* () {
30
- yield (0, utils_1.throwErrorIfNotLoggedIn)(listCommand);
31
30
  console.log('');
32
31
  const spinner = (0, ora_1.default)();
33
32
  try {
@@ -74,7 +73,6 @@ const createListCommand = () => {
74
73
  results = yield Promise.all(observableBatch.map((item) => (0, utils_2.executeCommand)(item)));
75
74
  }
76
75
  results.forEach((result) => {
77
- console.log(result);
78
76
  if (result !== '') {
79
77
  const resultArray = JSON.parse(result);
80
78
  console.log('');
@@ -28,7 +28,6 @@ const createPauseCommand = () => {
28
28
  },
29
29
  })
30
30
  .action((options) => __awaiter(void 0, void 0, void 0, function* () {
31
- yield (0, utils_1.throwErrorIfNotLoggedIn)(pauseCommand);
32
31
  console.log('');
33
32
  if (options.blueprint !== undefined) {
34
33
  const { fullPath, dirPath, yamlFile, containerName } = (0, utils_2.getSimulatorDetails)(options.blueprint);
@@ -28,7 +28,6 @@ const createResumeCommand = () => {
28
28
  },
29
29
  })
30
30
  .action((options) => __awaiter(void 0, void 0, void 0, function* () {
31
- yield (0, utils_1.throwErrorIfNotLoggedIn)(resumeCommand);
32
31
  console.log('');
33
32
  if (options.blueprint !== undefined) {
34
33
  const { fullPath, dirPath, yamlFile, containerName } = (0, utils_2.getSimulatorDetails)(options.blueprint);
@@ -77,6 +77,7 @@ function upgradeContainer(container, tempFolder, dockerDigest) {
77
77
  yield (0, utils_2.executeCommand)(`docker exec -i ${containerName} bash -c "echo '${jsonData}' > /var/www/data/containerData.json"`);
78
78
  }
79
79
  catch (error) {
80
+ (0, utils_1.logDebug)(`ERROR: ${JSON.stringify(error)}`);
80
81
  upgradeSpinner.fail(`Unable to upgrade simulator Container ID "${containerName}"`);
81
82
  throw new Error(`Unable to upgrade simulator Container ID "${containerName}"`);
82
83
  }
@@ -134,6 +135,7 @@ const createUpgradeCommand = () => {
134
135
  yield (0, utils_2.executeCommand)(`docker pull ${utils_2.datastoreRepo}`);
135
136
  }
136
137
  catch (error) {
138
+ (0, utils_1.logDebug)(`ERROR: ${JSON.stringify(error)}`);
137
139
  throw new Error('Sorry, could not download simulator image. Ask for help in our support forums.');
138
140
  }
139
141
  const mkdirTemp = yield (0, utils_2.executeCommand)('mktemp -d -t datastore-XXXXXXXXXX');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/dxp-cli-next",
3
- "version": "5.12.1",
3
+ "version": "5.12.2-develop.1",
4
4
  "repository": {
5
5
  "url": "https://gitlab.squiz.net/dxp/dxp-cli-next"
6
6
  },