@wraps.dev/cli 2.2.1 → 2.2.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.
package/dist/cli.js CHANGED
@@ -147,7 +147,7 @@ var require_package = __commonJS({
147
147
  "package.json"(exports, module) {
148
148
  module.exports = {
149
149
  name: "@wraps.dev/cli",
150
- version: "2.2.1",
150
+ version: "2.2.2",
151
151
  description: "CLI for deploying Wraps email infrastructure to your AWS account",
152
152
  type: "module",
153
153
  main: "./dist/cli.js",
@@ -13737,6 +13737,7 @@ async function fetchEmailById(messageId, options) {
13737
13737
  destination: sendEvent.destination,
13738
13738
  availableKeys: Object.keys(sendEvent)
13739
13739
  });
13740
+ const subjectFromEvents = events.find((e) => e.subject)?.subject;
13740
13741
  let htmlBody;
13741
13742
  let textBody;
13742
13743
  if (sendEvent.eventData) {
@@ -13840,7 +13841,7 @@ async function fetchEmailById(messageId, options) {
13840
13841
  from: sendEvent.from || "unknown",
13841
13842
  to: toAddresses,
13842
13843
  replyTo: sendEvent.replyTo,
13843
- subject: sendEvent.subject || "(no subject)",
13844
+ subject: sendEvent.subject || subjectFromEvents || "(no subject)",
13844
13845
  htmlBody: htmlBody || sendEvent.htmlBody,
13845
13846
  textBody: textBody || sendEvent.textBody,
13846
13847
  status: status2,
@@ -16000,12 +16001,12 @@ async function dashboard(options) {
16000
16001
  } catch (_smsError) {
16001
16002
  }
16002
16003
  try {
16003
- const storageStack = await pulumi12.automation.LocalWorkspace.selectStack({
16004
- stackName: `wraps-storage-${identity.accountId}-${region}`,
16004
+ const cdnStack = await pulumi12.automation.LocalWorkspace.selectStack({
16005
+ stackName: `wraps-cdn-${identity.accountId}-${region}`,
16005
16006
  workDir: getPulumiWorkDir()
16006
16007
  });
16007
- storageStackOutputs = await storageStack.outputs();
16008
- } catch (_storageError) {
16008
+ storageStackOutputs = await cdnStack.outputs();
16009
+ } catch (_cdnError) {
16009
16010
  }
16010
16011
  if (Object.keys(emailStackOutputs).length === 0 && Object.keys(smsStackOutputs).length === 0 && Object.keys(storageStackOutputs).length === 0) {
16011
16012
  throw new Error("No infrastructure found");