@apps-in-toss/cli 0.0.6 → 0.0.7

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.
package/dist/index.cjs CHANGED
@@ -30482,8 +30482,9 @@ var DeployCommand = class extends import_clipanion.Command {
30482
30482
  const { appName, deploymentId } = await readZipContent(resolvedArtifactPath, APP_MANIFEST_NAME).then((rawAppManifest) => {
30483
30483
  const appManifest = JSON.parse(rawAppManifest);
30484
30484
  const appName2 = appManifest.appName;
30485
- const deploymentId2 = appManifest.deploymentId;
30485
+ const deploymentId2 = appManifest._metadata.deploymentId;
30486
30486
  (0, import_assert.default)(typeof appName2 === "string", "invalid appName");
30487
+ (0, import_assert.default)(typeof deploymentId2 === "string", "invalid deploymentId");
30487
30488
  return { appName: appName2, deploymentId: deploymentId2 };
30488
30489
  }).catch((error) => {
30489
30490
  debug2("invalid ait file", error);
@@ -30505,9 +30506,7 @@ var DeployCommand = class extends import_clipanion.Command {
30505
30506
  }
30506
30507
  }
30507
30508
  ]);
30508
- if (deploymentId) {
30509
- p.note(import_picocolors.default.underline(import_picocolors.default.green(`intoss-private://${appName}?_deploymentId=${deploymentId}`)));
30510
- }
30509
+ p.note(import_picocolors.default.underline(import_picocolors.default.green(`intoss-private://${appName}?_deploymentId=${deploymentId}`)));
30511
30510
  } catch (error) {
30512
30511
  if (error instanceof Error) {
30513
30512
  p.log.error(error.message);
package/dist/index.js CHANGED
@@ -30485,8 +30485,9 @@ var DeployCommand = class extends Command {
30485
30485
  const { appName, deploymentId } = await readZipContent(resolvedArtifactPath, APP_MANIFEST_NAME).then((rawAppManifest) => {
30486
30486
  const appManifest = JSON.parse(rawAppManifest);
30487
30487
  const appName2 = appManifest.appName;
30488
- const deploymentId2 = appManifest.deploymentId;
30488
+ const deploymentId2 = appManifest._metadata.deploymentId;
30489
30489
  assert(typeof appName2 === "string", "invalid appName");
30490
+ assert(typeof deploymentId2 === "string", "invalid deploymentId");
30490
30491
  return { appName: appName2, deploymentId: deploymentId2 };
30491
30492
  }).catch((error) => {
30492
30493
  debug2("invalid ait file", error);
@@ -30508,9 +30509,7 @@ var DeployCommand = class extends Command {
30508
30509
  }
30509
30510
  }
30510
30511
  ]);
30511
- if (deploymentId) {
30512
- p.note(import_picocolors.default.underline(import_picocolors.default.green(`intoss-private://${appName}?_deploymentId=${deploymentId}`)));
30513
- }
30512
+ p.note(import_picocolors.default.underline(import_picocolors.default.green(`intoss-private://${appName}?_deploymentId=${deploymentId}`)));
30514
30513
  } catch (error) {
30515
30514
  if (error instanceof Error) {
30516
30515
  p.log.error(error.message);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/cli",
3
3
  "type": "module",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "description": "CLI for Apps In Toss",
6
6
  "scripts": {
7
7
  "prepack": "yarn build",
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "95b1413098fb63f0c735fbe0f1fd82adc3646eed"
49
+ "gitHead": "66c7ad26e7180aec19b4c6ab168c638708997aff"
50
50
  }