@wraps.dev/cli 2.18.0 → 2.18.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.
package/dist/cli.js CHANGED
@@ -8470,10 +8470,14 @@ async function promptDNSToken(provider) {
8470
8470
  console.log();
8471
8471
  clack20.log.info(pc22.bold(`${providerName} API Token`));
8472
8472
  if (isVercel) {
8473
- clack20.log.info(pc22.dim("Scope: Full Access, or a scoped token with DNS access"));
8473
+ clack20.log.info(
8474
+ pc22.dim("Scope: Full Access, or a scoped token with DNS access")
8475
+ );
8474
8476
  } else {
8475
8477
  clack20.log.info(pc22.dim("Scope: Zone \u2192 DNS \u2192 Edit (for your domain's zone)"));
8476
- clack20.log.info(pc22.dim('Use the "Edit zone DNS" template when creating your token'));
8478
+ clack20.log.info(
8479
+ pc22.dim('Use the "Edit zone DNS" template when creating your token')
8480
+ );
8477
8481
  }
8478
8482
  clack20.log.info(pc22.dim(`Create one at: ${pc22.cyan(tokenUrl)}`));
8479
8483
  const token = await clack20.password({
@@ -22007,9 +22011,7 @@ ${pc28.yellow(pc28.bold("Configuration Warnings:"))}`);
22007
22011
  );
22008
22012
  const { shouldCreate, selectedCategories } = await promptDNSRecordSelection2(records, providerDisplayName);
22009
22013
  if (shouldCreate && selectedCategories.size > 0) {
22010
- progress.start(
22011
- `Creating DNS records in ${providerDisplayName}`
22012
- );
22014
+ progress.start(`Creating DNS records in ${providerDisplayName}`);
22013
22015
  const result = await createDNSRecordsForProvider2(
22014
22016
  credentials,
22015
22017
  recordData,
@@ -22050,7 +22052,10 @@ ${pc28.yellow(pc28.bold("Configuration Warnings:"))}`);
22050
22052
  }
22051
22053
  }
22052
22054
  if (outputs.domain && outputs.dkimTokens && outputs.dkimTokens.length > 0 && !dnsAutoCreated) {
22053
- const { buildEmailDNSRecords: buildRecords, formatManualDNSInstructions: formatManual } = await Promise.resolve().then(() => (init_dns(), dns_exports));
22055
+ const {
22056
+ buildEmailDNSRecords: buildRecords,
22057
+ formatManualDNSInstructions: formatManual
22058
+ } = await Promise.resolve().then(() => (init_dns(), dns_exports));
22054
22059
  const allRecords = buildRecords({
22055
22060
  domain: outputs.domain,
22056
22061
  dkimTokens: outputs.dkimTokens,
@@ -29823,11 +29828,9 @@ ${pc42.bold("Permissions:")}`);
29823
29828
  if (sendingEnabled) {
29824
29829
  console.log(` ${pc42.green("\u2713")} Email sending via SES`);
29825
29830
  }
29826
- if (eventTracking?.dynamoDBHistory) {
29827
- console.log(
29828
- ` ${pc42.green("\u2713")} DynamoDB read access (including DescribeTable)`
29829
- );
29830
- }
29831
+ console.log(
29832
+ ` ${pc42.green("\u2713")} DynamoDB read access (including DescribeTable)`
29833
+ );
29831
29834
  if (eventTracking?.enabled) {
29832
29835
  console.log(` ${pc42.green("\u2713")} EventBridge and SQS access`);
29833
29836
  }
@@ -29921,24 +29924,21 @@ function buildConsolePolicyDocument2(emailConfig, smsConfig) {
29921
29924
  Resource: "*"
29922
29925
  });
29923
29926
  }
29927
+ statements.push({
29928
+ Effect: "Allow",
29929
+ Action: [
29930
+ "dynamodb:DescribeTable",
29931
+ "dynamodb:Query",
29932
+ "dynamodb:Scan",
29933
+ "dynamodb:GetItem",
29934
+ "dynamodb:BatchGetItem"
29935
+ ],
29936
+ Resource: [
29937
+ "arn:aws:dynamodb:*:*:table/wraps-email-*",
29938
+ "arn:aws:dynamodb:*:*:table/wraps-email-*/index/*"
29939
+ ]
29940
+ });
29924
29941
  const eventTracking = emailConfig?.eventTracking;
29925
- if (eventTracking?.dynamoDBHistory) {
29926
- statements.push({
29927
- Effect: "Allow",
29928
- Action: [
29929
- "dynamodb:PutItem",
29930
- "dynamodb:GetItem",
29931
- "dynamodb:Query",
29932
- "dynamodb:Scan",
29933
- "dynamodb:BatchGetItem",
29934
- "dynamodb:DescribeTable"
29935
- ],
29936
- Resource: [
29937
- "arn:aws:dynamodb:*:*:table/wraps-email-*",
29938
- "arn:aws:dynamodb:*:*:table/wraps-email-*/index/*"
29939
- ]
29940
- });
29941
- }
29942
29942
  if (eventTracking?.enabled) {
29943
29943
  statements.push({
29944
29944
  Effect: "Allow",