@wraps.dev/cli 2.3.0 → 2.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.
package/dist/cli.js
CHANGED
|
@@ -4,9 +4,6 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
4
4
|
var __esm = (fn, res) => function __init() {
|
|
5
5
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
6
6
|
};
|
|
7
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
-
};
|
|
10
7
|
var __export = (target, all5) => {
|
|
11
8
|
for (var name in all5)
|
|
12
9
|
__defProp(target, name, { get: all5[name], enumerable: true });
|
|
@@ -142,118 +139,8 @@ var init_config = __esm({
|
|
|
142
139
|
}
|
|
143
140
|
});
|
|
144
141
|
|
|
145
|
-
// package.json
|
|
146
|
-
var require_package = __commonJS({
|
|
147
|
-
"package.json"(exports, module) {
|
|
148
|
-
module.exports = {
|
|
149
|
-
name: "@wraps.dev/cli",
|
|
150
|
-
version: "2.3.0",
|
|
151
|
-
description: "CLI for deploying Wraps email infrastructure to your AWS account",
|
|
152
|
-
type: "module",
|
|
153
|
-
main: "./dist/cli.js",
|
|
154
|
-
bin: {
|
|
155
|
-
wraps: "./dist/cli.js"
|
|
156
|
-
},
|
|
157
|
-
files: [
|
|
158
|
-
"dist",
|
|
159
|
-
"README.md",
|
|
160
|
-
"LICENSE"
|
|
161
|
-
],
|
|
162
|
-
repository: {
|
|
163
|
-
type: "git",
|
|
164
|
-
url: "https://github.com/wraps-team/wraps.git",
|
|
165
|
-
directory: "packages/cli"
|
|
166
|
-
},
|
|
167
|
-
homepage: "https://wraps.dev",
|
|
168
|
-
bugs: {
|
|
169
|
-
url: "https://github.com/wraps-team/wraps/issues"
|
|
170
|
-
},
|
|
171
|
-
publishConfig: {
|
|
172
|
-
access: "public"
|
|
173
|
-
},
|
|
174
|
-
scripts: {
|
|
175
|
-
dev: "tsup --watch",
|
|
176
|
-
build: "pnpm build:console && pnpm build:lambda && tsup",
|
|
177
|
-
"build:lambda": "tsx scripts/build-lambda.ts",
|
|
178
|
-
"build:console": "pnpm --filter @wraps/console build",
|
|
179
|
-
test: "vitest run",
|
|
180
|
-
"test:watch": "vitest --watch",
|
|
181
|
-
"test:ui": "vitest --ui",
|
|
182
|
-
"test:coverage": "vitest run --coverage",
|
|
183
|
-
typecheck: "tsc --noEmit",
|
|
184
|
-
lint: "eslint src",
|
|
185
|
-
prepublishOnly: "pnpm build"
|
|
186
|
-
},
|
|
187
|
-
keywords: [
|
|
188
|
-
"aws",
|
|
189
|
-
"ses",
|
|
190
|
-
"email",
|
|
191
|
-
"infrastructure",
|
|
192
|
-
"cli"
|
|
193
|
-
],
|
|
194
|
-
author: "Wraps",
|
|
195
|
-
license: "AGPL-3.0-or-later",
|
|
196
|
-
dependencies: {
|
|
197
|
-
"@aws-sdk/client-acm": "3.933.0",
|
|
198
|
-
"@aws-sdk/client-cloudformation": "^3.490.0",
|
|
199
|
-
"@aws-sdk/client-cloudfront": "3.933.0",
|
|
200
|
-
"@aws-sdk/client-cloudwatch": "^3.490.0",
|
|
201
|
-
"@aws-sdk/client-dynamodb": "^3.490.0",
|
|
202
|
-
"@aws-sdk/client-iam": "3.932.0",
|
|
203
|
-
"@aws-sdk/client-lambda": "3.925.0",
|
|
204
|
-
"@aws-sdk/client-mailmanager": "3.925.0",
|
|
205
|
-
"@aws-sdk/client-pinpoint-sms-voice-v2": "3.955.0",
|
|
206
|
-
"@aws-sdk/client-route-53": "3.925.0",
|
|
207
|
-
"@aws-sdk/client-s3": "3.933.0",
|
|
208
|
-
"@aws-sdk/client-ses": "^3.490.0",
|
|
209
|
-
"@aws-sdk/client-sesv2": "3.925.0",
|
|
210
|
-
"@aws-sdk/client-sns": "^3.490.0",
|
|
211
|
-
"@aws-sdk/client-sqs": "3.933.0",
|
|
212
|
-
"@aws-sdk/client-sts": "^3.490.0",
|
|
213
|
-
"@aws-sdk/s3-request-presigner": "3.964.0",
|
|
214
|
-
"@aws-sdk/util-dynamodb": "3.927.0",
|
|
215
|
-
"@clack/prompts": "^0.11.0",
|
|
216
|
-
"@pulumi/aws": "^7.11.1",
|
|
217
|
-
"@pulumi/pulumi": "^3.207.0",
|
|
218
|
-
args: "^5.0.3",
|
|
219
|
-
conf: "^13.0.1",
|
|
220
|
-
cosmiconfig: "^9.0.0",
|
|
221
|
-
esbuild: "^0.25.12",
|
|
222
|
-
express: "^4.21.2",
|
|
223
|
-
"get-port": "^7.1.0",
|
|
224
|
-
"http-terminator": "^3.2.0",
|
|
225
|
-
"isomorphic-dompurify": "2.32.0",
|
|
226
|
-
mailparser: "3.9.0",
|
|
227
|
-
open: "^10.1.0",
|
|
228
|
-
picocolors: "^1.1.1",
|
|
229
|
-
tabtab: "^3.0.2",
|
|
230
|
-
uuid: "^11.0.3"
|
|
231
|
-
},
|
|
232
|
-
devDependencies: {
|
|
233
|
-
"@wraps/core": "workspace:*",
|
|
234
|
-
"@types/args": "5.0.4",
|
|
235
|
-
"@types/express": "^5.0.0",
|
|
236
|
-
"@types/mailparser": "3.4.6",
|
|
237
|
-
"@types/node": "^20.11.0",
|
|
238
|
-
"@types/uuid": "^10.0.0",
|
|
239
|
-
"@vitest/coverage-v8": "4.0.7",
|
|
240
|
-
"@wraps/email-check": "workspace:*",
|
|
241
|
-
"aws-sdk-client-mock": "4.1.0",
|
|
242
|
-
"aws-sdk-client-mock-vitest": "7.0.1",
|
|
243
|
-
eslint: "^8.56.0",
|
|
244
|
-
tsup: "^8.0.1",
|
|
245
|
-
tsx: "4.20.6",
|
|
246
|
-
typescript: "catalog:",
|
|
247
|
-
vitest: "^4.0.7"
|
|
248
|
-
},
|
|
249
|
-
engines: {
|
|
250
|
-
node: ">=20.0.0"
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
|
|
256
142
|
// src/telemetry/client.ts
|
|
143
|
+
import { createRequire } from "module";
|
|
257
144
|
import pc from "picocolors";
|
|
258
145
|
function getTelemetryClient() {
|
|
259
146
|
if (!telemetryInstance) {
|
|
@@ -261,13 +148,14 @@ function getTelemetryClient() {
|
|
|
261
148
|
}
|
|
262
149
|
return telemetryInstance;
|
|
263
150
|
}
|
|
264
|
-
var DEFAULT_ENDPOINT, DEFAULT_TIMEOUT, TelemetryClient, telemetryInstance;
|
|
151
|
+
var require2, DEFAULT_ENDPOINT, DEFAULT_TIMEOUT, TelemetryClient, telemetryInstance;
|
|
265
152
|
var init_client = __esm({
|
|
266
153
|
"src/telemetry/client.ts"() {
|
|
267
154
|
"use strict";
|
|
268
155
|
init_esm_shims();
|
|
269
156
|
init_ci_detection();
|
|
270
157
|
init_config();
|
|
158
|
+
require2 = createRequire(import.meta.url);
|
|
271
159
|
DEFAULT_ENDPOINT = "https://wraps.dev/api/telemetry";
|
|
272
160
|
DEFAULT_TIMEOUT = 2e3;
|
|
273
161
|
TelemetryClient = class {
|
|
@@ -456,7 +344,7 @@ var init_client = __esm({
|
|
|
456
344
|
*/
|
|
457
345
|
getCLIVersion() {
|
|
458
346
|
try {
|
|
459
|
-
const packageJson2 =
|
|
347
|
+
const packageJson2 = require2("../../package.json");
|
|
460
348
|
return packageJson2.version;
|
|
461
349
|
} catch {
|
|
462
350
|
return "unknown";
|
|
@@ -12153,6 +12041,9 @@ async function createIAMRole(config2) {
|
|
|
12153
12041
|
// SES v2 API for listing/getting email identities (domains)
|
|
12154
12042
|
"ses:ListEmailIdentities",
|
|
12155
12043
|
"ses:GetEmailIdentity",
|
|
12044
|
+
// SES v2 API for configuration set scanning (needed by dashboard)
|
|
12045
|
+
"ses:GetConfigurationSet",
|
|
12046
|
+
"ses:GetConfigurationSetEventDestinations",
|
|
12156
12047
|
"cloudwatch:GetMetricData",
|
|
12157
12048
|
"cloudwatch:GetMetricStatistics"
|
|
12158
12049
|
],
|
|
@@ -16576,12 +16467,17 @@ function buildConsolePolicyDocument(emailConfig, smsConfig) {
|
|
|
16576
16467
|
statements.push({
|
|
16577
16468
|
Effect: "Allow",
|
|
16578
16469
|
Action: [
|
|
16470
|
+
"ses:GetAccount",
|
|
16471
|
+
// Get SES rate limits and quotas
|
|
16579
16472
|
"ses:GetSendStatistics",
|
|
16580
16473
|
"ses:ListIdentities",
|
|
16581
16474
|
"ses:GetIdentityVerificationAttributes",
|
|
16582
16475
|
// SES v2 API for listing/getting email identities (domains)
|
|
16583
16476
|
"ses:ListEmailIdentities",
|
|
16584
16477
|
"ses:GetEmailIdentity",
|
|
16478
|
+
// SES v2 API for configuration set scanning (needed by dashboard)
|
|
16479
|
+
"ses:GetConfigurationSet",
|
|
16480
|
+
"ses:GetConfigurationSetEventDestinations",
|
|
16585
16481
|
"cloudwatch:GetMetricData",
|
|
16586
16482
|
"cloudwatch:GetMetricStatistics"
|
|
16587
16483
|
],
|