sst 2.0.36 → 2.0.38

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/sst.mjs CHANGED
@@ -506,21 +506,21 @@ function getProjectIdByGit() {
506
506
  return null;
507
507
  }
508
508
  }
509
- function normalizeGitUrl(url9) {
510
- url9 = url9.trim();
511
- url9 = url9.endsWith(".git") ? url9.substring(0, url9.length - 4) : url9;
512
- if (url9.startsWith("git@")) {
513
- const match = url9.match(/git@([^:]+):(.*)/);
509
+ function normalizeGitUrl(url10) {
510
+ url10 = url10.trim();
511
+ url10 = url10.endsWith(".git") ? url10.substring(0, url10.length - 4) : url10;
512
+ if (url10.startsWith("git@")) {
513
+ const match = url10.match(/git@([^:]+):(.*)/);
514
514
  if (match && match.length > 2) {
515
515
  return `${match[1]}/${match[2]}`;
516
516
  }
517
- } else if (url9.startsWith("http://") || url9.startsWith("https://")) {
518
- const match = url9.match(/https?:\/\/([^@]+@)?(.*)/);
517
+ } else if (url10.startsWith("http://") || url10.startsWith("https://")) {
518
+ const match = url10.match(/https?:\/\/([^@]+@)?(.*)/);
519
519
  if (match && match.length > 2) {
520
520
  return match[2];
521
521
  }
522
522
  }
523
- return url9;
523
+ return url10;
524
524
  }
525
525
  function getRawProjectId() {
526
526
  const gitUrl = getProjectIdByGit();
@@ -1266,57 +1266,85 @@ var init_tslib_es6 = __esm({
1266
1266
  }
1267
1267
  });
1268
1268
 
1269
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/abort.js
1269
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/abort.js
1270
1270
  var require_abort = __commonJS({
1271
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/abort.js"(exports) {
1271
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/abort.js"(exports) {
1272
1272
  "use strict";
1273
1273
  Object.defineProperty(exports, "__esModule", { value: true });
1274
1274
  }
1275
1275
  });
1276
1276
 
1277
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/auth.js
1277
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/auth.js
1278
1278
  var require_auth = __commonJS({
1279
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/auth.js"(exports) {
1279
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/auth.js"(exports) {
1280
1280
  "use strict";
1281
1281
  Object.defineProperty(exports, "__esModule", { value: true });
1282
+ exports.HttpAuthLocation = void 0;
1283
+ var HttpAuthLocation;
1284
+ (function(HttpAuthLocation2) {
1285
+ HttpAuthLocation2["HEADER"] = "header";
1286
+ HttpAuthLocation2["QUERY"] = "query";
1287
+ })(HttpAuthLocation = exports.HttpAuthLocation || (exports.HttpAuthLocation = {}));
1282
1288
  }
1283
1289
  });
1284
1290
 
1285
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/client.js
1291
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/checksum.js
1292
+ var require_checksum = __commonJS({
1293
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/checksum.js"(exports) {
1294
+ "use strict";
1295
+ Object.defineProperty(exports, "__esModule", { value: true });
1296
+ }
1297
+ });
1298
+
1299
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/client.js
1286
1300
  var require_client = __commonJS({
1287
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/client.js"(exports) {
1301
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/client.js"(exports) {
1288
1302
  "use strict";
1289
1303
  Object.defineProperty(exports, "__esModule", { value: true });
1290
1304
  }
1291
1305
  });
1292
1306
 
1293
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/command.js
1307
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/command.js
1294
1308
  var require_command = __commonJS({
1295
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/command.js"(exports) {
1309
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/command.js"(exports) {
1296
1310
  "use strict";
1297
1311
  Object.defineProperty(exports, "__esModule", { value: true });
1298
1312
  }
1299
1313
  });
1300
1314
 
1301
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/credentials.js
1315
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/credentials.js
1302
1316
  var require_credentials = __commonJS({
1303
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/credentials.js"(exports) {
1317
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/credentials.js"(exports) {
1304
1318
  "use strict";
1305
1319
  Object.defineProperty(exports, "__esModule", { value: true });
1306
1320
  }
1307
1321
  });
1308
1322
 
1309
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/crypto.js
1323
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/crypto.js
1310
1324
  var require_crypto = __commonJS({
1311
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/crypto.js"(exports) {
1325
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/crypto.js"(exports) {
1326
+ "use strict";
1327
+ Object.defineProperty(exports, "__esModule", { value: true });
1328
+ }
1329
+ });
1330
+
1331
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/dns.js
1332
+ var require_dns = __commonJS({
1333
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/dns.js"(exports) {
1312
1334
  "use strict";
1313
1335
  Object.defineProperty(exports, "__esModule", { value: true });
1336
+ exports.HostAddressType = void 0;
1337
+ var HostAddressType;
1338
+ (function(HostAddressType2) {
1339
+ HostAddressType2["AAAA"] = "AAAA";
1340
+ HostAddressType2["A"] = "A";
1341
+ })(HostAddressType = exports.HostAddressType || (exports.HostAddressType = {}));
1314
1342
  }
1315
1343
  });
1316
1344
 
1317
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/endpoint.js
1345
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/endpoint.js
1318
1346
  var require_endpoint = __commonJS({
1319
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/endpoint.js"(exports) {
1347
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/endpoint.js"(exports) {
1320
1348
  "use strict";
1321
1349
  Object.defineProperty(exports, "__esModule", { value: true });
1322
1350
  exports.EndpointURLScheme = void 0;
@@ -1328,146 +1356,221 @@ var require_endpoint = __commonJS({
1328
1356
  }
1329
1357
  });
1330
1358
 
1331
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/eventStream.js
1359
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/eventStream.js
1332
1360
  var require_eventStream = __commonJS({
1333
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/eventStream.js"(exports) {
1361
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/eventStream.js"(exports) {
1334
1362
  "use strict";
1335
1363
  Object.defineProperty(exports, "__esModule", { value: true });
1336
1364
  }
1337
1365
  });
1338
1366
 
1339
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/http.js
1367
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/http.js
1340
1368
  var require_http = __commonJS({
1341
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/http.js"(exports) {
1369
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/http.js"(exports) {
1370
+ "use strict";
1371
+ Object.defineProperty(exports, "__esModule", { value: true });
1372
+ }
1373
+ });
1374
+
1375
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js
1376
+ var require_AnonymousIdentity = __commonJS({
1377
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js"(exports) {
1378
+ "use strict";
1379
+ Object.defineProperty(exports, "__esModule", { value: true });
1380
+ }
1381
+ });
1382
+
1383
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js
1384
+ var require_AwsCredentialIdentity = __commonJS({
1385
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js"(exports) {
1386
+ "use strict";
1387
+ Object.defineProperty(exports, "__esModule", { value: true });
1388
+ }
1389
+ });
1390
+
1391
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js
1392
+ var require_Identity = __commonJS({
1393
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js"(exports) {
1342
1394
  "use strict";
1343
1395
  Object.defineProperty(exports, "__esModule", { value: true });
1344
1396
  }
1345
1397
  });
1346
1398
 
1347
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/logger.js
1399
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js
1400
+ var require_LoginIdentity = __commonJS({
1401
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js"(exports) {
1402
+ "use strict";
1403
+ Object.defineProperty(exports, "__esModule", { value: true });
1404
+ }
1405
+ });
1406
+
1407
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js
1408
+ var require_TokenIdentity = __commonJS({
1409
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js"(exports) {
1410
+ "use strict";
1411
+ Object.defineProperty(exports, "__esModule", { value: true });
1412
+ }
1413
+ });
1414
+
1415
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/identity/index.js
1416
+ var require_identity = __commonJS({
1417
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/identity/index.js"(exports) {
1418
+ "use strict";
1419
+ Object.defineProperty(exports, "__esModule", { value: true });
1420
+ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
1421
+ tslib_1.__exportStar(require_AnonymousIdentity(), exports);
1422
+ tslib_1.__exportStar(require_AwsCredentialIdentity(), exports);
1423
+ tslib_1.__exportStar(require_Identity(), exports);
1424
+ tslib_1.__exportStar(require_LoginIdentity(), exports);
1425
+ tslib_1.__exportStar(require_TokenIdentity(), exports);
1426
+ }
1427
+ });
1428
+
1429
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/logger.js
1348
1430
  var require_logger = __commonJS({
1349
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/logger.js"(exports) {
1431
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/logger.js"(exports) {
1350
1432
  "use strict";
1351
1433
  Object.defineProperty(exports, "__esModule", { value: true });
1352
1434
  }
1353
1435
  });
1354
1436
 
1355
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/middleware.js
1437
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/middleware.js
1356
1438
  var require_middleware = __commonJS({
1357
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/middleware.js"(exports) {
1439
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/middleware.js"(exports) {
1358
1440
  "use strict";
1359
1441
  Object.defineProperty(exports, "__esModule", { value: true });
1360
1442
  }
1361
1443
  });
1362
1444
 
1363
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/pagination.js
1445
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/pagination.js
1364
1446
  var require_pagination = __commonJS({
1365
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/pagination.js"(exports) {
1447
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/pagination.js"(exports) {
1366
1448
  "use strict";
1367
1449
  Object.defineProperty(exports, "__esModule", { value: true });
1368
1450
  }
1369
1451
  });
1370
1452
 
1371
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/profile.js
1453
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/profile.js
1372
1454
  var require_profile = __commonJS({
1373
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/profile.js"(exports) {
1455
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/profile.js"(exports) {
1374
1456
  "use strict";
1375
1457
  Object.defineProperty(exports, "__esModule", { value: true });
1376
1458
  }
1377
1459
  });
1378
1460
 
1379
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/response.js
1461
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/request.js
1462
+ var require_request = __commonJS({
1463
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/request.js"(exports) {
1464
+ "use strict";
1465
+ Object.defineProperty(exports, "__esModule", { value: true });
1466
+ }
1467
+ });
1468
+
1469
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/response.js
1380
1470
  var require_response = __commonJS({
1381
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/response.js"(exports) {
1471
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/response.js"(exports) {
1382
1472
  "use strict";
1383
1473
  Object.defineProperty(exports, "__esModule", { value: true });
1384
1474
  }
1385
1475
  });
1386
1476
 
1387
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/serde.js
1477
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/retry.js
1478
+ var require_retry = __commonJS({
1479
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/retry.js"(exports) {
1480
+ "use strict";
1481
+ Object.defineProperty(exports, "__esModule", { value: true });
1482
+ }
1483
+ });
1484
+
1485
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/serde.js
1388
1486
  var require_serde = __commonJS({
1389
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/serde.js"(exports) {
1487
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/serde.js"(exports) {
1390
1488
  "use strict";
1391
1489
  Object.defineProperty(exports, "__esModule", { value: true });
1392
1490
  }
1393
1491
  });
1394
1492
 
1395
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/shapes.js
1493
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/shapes.js
1396
1494
  var require_shapes = __commonJS({
1397
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/shapes.js"(exports) {
1495
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/shapes.js"(exports) {
1398
1496
  "use strict";
1399
1497
  Object.defineProperty(exports, "__esModule", { value: true });
1400
1498
  }
1401
1499
  });
1402
1500
 
1403
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/signature.js
1501
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/signature.js
1404
1502
  var require_signature = __commonJS({
1405
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/signature.js"(exports) {
1503
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/signature.js"(exports) {
1406
1504
  "use strict";
1407
1505
  Object.defineProperty(exports, "__esModule", { value: true });
1408
1506
  }
1409
1507
  });
1410
1508
 
1411
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/stream.js
1509
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/stream.js
1412
1510
  var require_stream = __commonJS({
1413
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/stream.js"(exports) {
1511
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/stream.js"(exports) {
1414
1512
  "use strict";
1415
1513
  Object.defineProperty(exports, "__esModule", { value: true });
1416
1514
  }
1417
1515
  });
1418
1516
 
1419
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/token.js
1517
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/token.js
1420
1518
  var require_token = __commonJS({
1421
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/token.js"(exports) {
1519
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/token.js"(exports) {
1422
1520
  "use strict";
1423
1521
  Object.defineProperty(exports, "__esModule", { value: true });
1424
1522
  }
1425
1523
  });
1426
1524
 
1427
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/transfer.js
1525
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/transfer.js
1428
1526
  var require_transfer = __commonJS({
1429
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/transfer.js"(exports) {
1527
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/transfer.js"(exports) {
1430
1528
  "use strict";
1431
1529
  Object.defineProperty(exports, "__esModule", { value: true });
1432
1530
  }
1433
1531
  });
1434
1532
 
1435
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/util.js
1533
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/util.js
1436
1534
  var require_util = __commonJS({
1437
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/util.js"(exports) {
1535
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/util.js"(exports) {
1438
1536
  "use strict";
1439
1537
  Object.defineProperty(exports, "__esModule", { value: true });
1440
1538
  }
1441
1539
  });
1442
1540
 
1443
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/waiter.js
1541
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/waiter.js
1444
1542
  var require_waiter = __commonJS({
1445
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/waiter.js"(exports) {
1543
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/waiter.js"(exports) {
1446
1544
  "use strict";
1447
1545
  Object.defineProperty(exports, "__esModule", { value: true });
1448
1546
  }
1449
1547
  });
1450
1548
 
1451
- // ../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/index.js
1549
+ // ../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/index.js
1452
1550
  var require_dist_cjs = __commonJS({
1453
- "../../node_modules/.pnpm/@aws-sdk+types@3.208.0/node_modules/@aws-sdk/types/dist-cjs/index.js"(exports) {
1551
+ "../../node_modules/.pnpm/@aws-sdk+types@3.272.0/node_modules/@aws-sdk/types/dist-cjs/index.js"(exports) {
1454
1552
  "use strict";
1455
1553
  Object.defineProperty(exports, "__esModule", { value: true });
1456
1554
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
1457
1555
  tslib_1.__exportStar(require_abort(), exports);
1458
1556
  tslib_1.__exportStar(require_auth(), exports);
1557
+ tslib_1.__exportStar(require_checksum(), exports);
1459
1558
  tslib_1.__exportStar(require_client(), exports);
1460
1559
  tslib_1.__exportStar(require_command(), exports);
1461
1560
  tslib_1.__exportStar(require_credentials(), exports);
1462
1561
  tslib_1.__exportStar(require_crypto(), exports);
1562
+ tslib_1.__exportStar(require_dns(), exports);
1463
1563
  tslib_1.__exportStar(require_endpoint(), exports);
1464
1564
  tslib_1.__exportStar(require_eventStream(), exports);
1465
1565
  tslib_1.__exportStar(require_http(), exports);
1566
+ tslib_1.__exportStar(require_identity(), exports);
1466
1567
  tslib_1.__exportStar(require_logger(), exports);
1467
1568
  tslib_1.__exportStar(require_middleware(), exports);
1468
1569
  tslib_1.__exportStar(require_pagination(), exports);
1469
1570
  tslib_1.__exportStar(require_profile(), exports);
1571
+ tslib_1.__exportStar(require_request(), exports);
1470
1572
  tslib_1.__exportStar(require_response(), exports);
1573
+ tslib_1.__exportStar(require_retry(), exports);
1471
1574
  tslib_1.__exportStar(require_serde(), exports);
1472
1575
  tslib_1.__exportStar(require_shapes(), exports);
1473
1576
  tslib_1.__exportStar(require_signature(), exports);
@@ -1592,7 +1695,7 @@ var init_credentials = __esm({
1592
1695
  Logger.debug("Loading v2 AWS SDK");
1593
1696
  const project = useProject();
1594
1697
  const creds = await useAWSCredentials();
1595
- const chain = new CredentialProviderChain([
1698
+ const chain2 = new CredentialProviderChain([
1596
1699
  () => ({
1597
1700
  ...creds,
1598
1701
  get(cb) {
@@ -1615,7 +1718,7 @@ var init_credentials = __esm({
1615
1718
  secretAccessKey: creds.secretAccessKey
1616
1719
  })
1617
1720
  ]);
1618
- const provider = new SdkProvider(chain, project.config.region, {
1721
+ const provider = new SdkProvider(chain2, project.config.region, {
1619
1722
  maxRetries: 1e4,
1620
1723
  region: project.config.region
1621
1724
  });
@@ -2302,11 +2405,9 @@ var init_server2 = __esm({
2302
2405
  "Lambda-Runtime-Client-Context": JSON.stringify(
2303
2406
  payload.context.clientContext || {}
2304
2407
  ),
2305
- ...payload.context.identity ? {
2306
- "Lambda-Runtime-Cognito-Identity": JSON.stringify(
2307
- payload.context.identity
2308
- )
2309
- } : {}
2408
+ "Lambda-Runtime-Cognito-Identity": JSON.stringify(
2409
+ payload.context.identity || {}
2410
+ )
2310
2411
  });
2311
2412
  res.json(payload.event);
2312
2413
  }
@@ -2711,7 +2812,7 @@ async function bootstrapSST(tags) {
2711
2812
  path8.resolve(__dirname, "support/bootstrap-metadata-function")
2712
2813
  ),
2713
2814
  handler: "index.handler",
2714
- runtime: app.region?.startsWith("us-gov-") ? Runtime.NODEJS_16_X : Runtime.NODEJS_18_X,
2815
+ runtime: project.config.region?.startsWith("us-gov-") ? Runtime.NODEJS_16_X : Runtime.NODEJS_18_X,
2715
2816
  environment: {
2716
2817
  BUCKET_NAME: bucket.bucketName
2717
2818
  },
@@ -3445,21 +3546,21 @@ function compareTags(a, b) {
3445
3546
  }
3446
3547
  return true;
3447
3548
  }
3448
- function restUrlFromManifest(url9, environment, sdk) {
3549
+ function restUrlFromManifest(url10, environment, sdk) {
3449
3550
  const doNotUseMarker = "**DONOTUSE**";
3450
- url9 = cxapi.EnvironmentPlaceholders.replace(url9, {
3551
+ url10 = cxapi.EnvironmentPlaceholders.replace(url10, {
3451
3552
  accountId: environment.account,
3452
3553
  region: environment.region,
3453
3554
  partition: doNotUseMarker
3454
3555
  });
3455
- if (url9.indexOf(doNotUseMarker) > -1) {
3556
+ if (url10.indexOf(doNotUseMarker) > -1) {
3456
3557
  throw new Error(
3457
3558
  "Cannot use '${AWS::Partition}' in the 'stackTemplateAssetObjectUrl' field"
3458
3559
  );
3459
3560
  }
3460
- const s3Url = url9.match(/s3:\/\/([^/]+)\/(.*)$/);
3561
+ const s3Url = url10.match(/s3:\/\/([^/]+)\/(.*)$/);
3461
3562
  if (!s3Url) {
3462
- return url9;
3563
+ return url10;
3463
3564
  }
3464
3565
  const bucketName = s3Url[1];
3465
3566
  const objectKey = s3Url[2];
@@ -5185,18 +5286,100 @@ var init_rust = __esm({
5185
5286
  }
5186
5287
  });
5187
5288
 
5289
+ // src/runtime/handlers/pythonBundling.ts
5290
+ import fs13 from "fs";
5291
+ import url6 from "url";
5292
+ import path13 from "path";
5293
+ import {
5294
+ AssetStaging,
5295
+ DockerImage,
5296
+ FileSystem
5297
+ } from "aws-cdk-lib";
5298
+ function bundle(options) {
5299
+ const { entry, runtime, outputPathSuffix, installCommands } = options;
5300
+ const stagedir = FileSystem.mkdtemp("python-bundling-");
5301
+ const hasDeps = stageDependencies(entry, stagedir);
5302
+ const hasInstallCommands = stageInstallCommands(
5303
+ installCommands || [],
5304
+ stagedir
5305
+ );
5306
+ const depsCommand = chain([
5307
+ hasDeps || hasInstallCommands ? `rsync -r ${BUNDLER_DEPENDENCIES_CACHE}/. ${AssetStaging.BUNDLING_OUTPUT_DIR}/${outputPathSuffix}` : "",
5308
+ `rsync -r . ${AssetStaging.BUNDLING_OUTPUT_DIR}/${outputPathSuffix}`
5309
+ ]);
5310
+ console.log("Commands", depsCommand);
5311
+ const dockerfile = hasInstallCommands ? "Dockerfile.custom" : hasDeps ? "Dockerfile.dependencies" : "Dockerfile";
5312
+ fs13.copyFileSync(
5313
+ path13.join(__dirname2, "../../support/python-runtime", dockerfile),
5314
+ path13.join(stagedir, dockerfile)
5315
+ );
5316
+ const image = DockerImage.fromBuild(stagedir, {
5317
+ buildArgs: {
5318
+ IMAGE: runtime.bundlingImage.image
5319
+ },
5320
+ file: dockerfile
5321
+ });
5322
+ image.run({
5323
+ command: ["bash", "-c", depsCommand],
5324
+ workingDirectory: AssetStaging.BUNDLING_INPUT_DIR,
5325
+ volumes: [
5326
+ {
5327
+ hostPath: entry,
5328
+ containerPath: AssetStaging.BUNDLING_INPUT_DIR
5329
+ },
5330
+ {
5331
+ hostPath: options.out,
5332
+ containerPath: AssetStaging.BUNDLING_OUTPUT_DIR
5333
+ }
5334
+ ]
5335
+ });
5336
+ }
5337
+ function stageDependencies(entry, stagedir) {
5338
+ const prefixes = ["Pipfile", "pyproject", "poetry", "requirements.txt"];
5339
+ let found = false;
5340
+ for (const file of fs13.readdirSync(entry)) {
5341
+ for (const prefix of prefixes) {
5342
+ if (file.startsWith(prefix)) {
5343
+ fs13.copyFileSync(path13.join(entry, file), path13.join(stagedir, file));
5344
+ found = true;
5345
+ }
5346
+ }
5347
+ }
5348
+ return found;
5349
+ }
5350
+ function stageInstallCommands(installCommands, stagedir) {
5351
+ let found = false;
5352
+ if (installCommands.length > 0) {
5353
+ const filePath = path13.join(stagedir, "sst-deps-install-command.sh");
5354
+ fs13.writeFileSync(filePath, installCommands.join(" && "));
5355
+ fs13.chmodSync(filePath, "755");
5356
+ found = true;
5357
+ }
5358
+ return found;
5359
+ }
5360
+ function chain(commands) {
5361
+ return commands.filter((c) => !!c).join(" && ");
5362
+ }
5363
+ var __dirname2, BUNDLER_DEPENDENCIES_CACHE;
5364
+ var init_pythonBundling = __esm({
5365
+ "src/runtime/handlers/pythonBundling.ts"() {
5366
+ "use strict";
5367
+ __dirname2 = path13.dirname(url6.fileURLToPath(import.meta.url));
5368
+ BUNDLER_DEPENDENCIES_CACHE = "/var/dependencies";
5369
+ }
5370
+ });
5371
+
5188
5372
  // src/runtime/handlers/python.ts
5189
5373
  var python_exports = {};
5190
5374
  __export(python_exports, {
5191
5375
  usePythonHandler: () => usePythonHandler
5192
5376
  });
5193
- import path13 from "path";
5377
+ import path14 from "path";
5194
5378
  import { exec as exec5, spawn as spawn5 } from "child_process";
5195
5379
  import { promisify as promisify4 } from "util";
5196
5380
  import { Runtime as Runtime2 } from "aws-cdk-lib/aws-lambda";
5197
- import fs13 from "fs/promises";
5198
5381
  import os3 from "os";
5199
- import url6 from "url";
5382
+ import url7 from "url";
5200
5383
  var execAsync4, RUNTIME_MAP, usePythonHandler;
5201
5384
  var init_python = __esm({
5202
5385
  "src/runtime/handlers/python.ts"() {
@@ -5206,6 +5389,7 @@ var init_python = __esm({
5206
5389
  init_context();
5207
5390
  init_server2();
5208
5391
  init_fs();
5392
+ init_pythonBundling();
5209
5393
  execAsync4 = promisify4(exec5);
5210
5394
  RUNTIME_MAP = {
5211
5395
  "python2.7": Runtime2.PYTHON_2_7,
@@ -5240,13 +5424,13 @@ var init_python = __esm({
5240
5424
  const src = await findSrc(input.handler);
5241
5425
  if (!src)
5242
5426
  throw new Error(`Could not find src for ${input.handler}`);
5243
- const parsed = path13.parse(path13.relative(src, input.handler));
5244
- const target = [...parsed.dir.split(path13.sep), parsed.name].join(".");
5427
+ const parsed = path14.parse(path14.relative(src, input.handler));
5428
+ const target = [...parsed.dir.split(path14.sep), parsed.name].join(".");
5245
5429
  const proc = spawn5(
5246
5430
  os3.platform() === "win32" ? "python.exe" : "python3",
5247
5431
  [
5248
5432
  "-u",
5249
- url6.fileURLToPath(
5433
+ url7.fileURLToPath(
5250
5434
  new URL("../../support/python-runtime/runtime.py", import.meta.url)
5251
5435
  ),
5252
5436
  target,
@@ -5293,40 +5477,17 @@ var init_python = __esm({
5293
5477
  type: "error",
5294
5478
  errors: [`Could not find src for ${input.props.handler}`]
5295
5479
  };
5296
- await fs13.cp(src, input.out, {
5297
- recursive: true,
5298
- filter: (src2) => !src2.includes(".sst")
5480
+ bundle({
5481
+ installCommands: input.props.python?.installCommands,
5482
+ entry: src,
5483
+ runtime: RUNTIME_MAP[input.props.runtime],
5484
+ outputPathSuffix: ".",
5485
+ out: input.out
5299
5486
  });
5300
- if (await existsAsync(path13.join(src, "Pipfile"))) {
5301
- await execAsync4("pipenv requirements > requirements.txt", {
5302
- cwd: input.out
5303
- });
5304
- }
5305
- if (await existsAsync(path13.join(src, "poetry.lock"))) {
5306
- await execAsync4(
5307
- "poetry export --with-credentials --format requirements.txt --output requirements.txt",
5308
- {
5309
- cwd: input.out
5310
- }
5311
- );
5312
- }
5313
- if (await existsAsync(path13.join(src, "requirements.txt"))) {
5314
- await execAsync4("pip install -r requirements.txt", {
5315
- cwd: input.out
5316
- });
5317
- }
5318
- if (input.props.python?.installCommands) {
5319
- for (const cmd of input.props.python.installCommands) {
5320
- await execAsync4(cmd, {
5321
- cwd: input.out
5322
- });
5323
- }
5324
- }
5325
- const result = {
5487
+ return {
5326
5488
  type: "success",
5327
- handler: path13.relative(src, path13.resolve(input.props.handler))
5489
+ handler: path14.relative(src, path14.resolve(input.props.handler))
5328
5490
  };
5329
- return result;
5330
5491
  }
5331
5492
  });
5332
5493
  });
@@ -5338,14 +5499,14 @@ var java_exports = {};
5338
5499
  __export(java_exports, {
5339
5500
  useJavaHandler: () => useJavaHandler
5340
5501
  });
5341
- import path14 from "path";
5502
+ import path15 from "path";
5342
5503
  import fs14 from "fs/promises";
5343
5504
  import os4 from "os";
5344
5505
  import zipLocal from "zip-local";
5345
5506
  import { spawn as spawn6 } from "child_process";
5346
- import url7 from "url";
5507
+ import url8 from "url";
5347
5508
  async function getGradleBinary(srcPath) {
5348
- const gradleWrapperPath = path14.resolve(path14.join(srcPath, "gradlew"));
5509
+ const gradleWrapperPath = path15.resolve(path15.join(srcPath, "gradlew"));
5349
5510
  return await existsAsync(gradleWrapperPath) ? gradleWrapperPath : "gradle";
5350
5511
  }
5351
5512
  var useJavaHandler;
@@ -5382,7 +5543,7 @@ var init_java = __esm({
5382
5543
  [
5383
5544
  `-cp`,
5384
5545
  [
5385
- url7.fileURLToPath(
5546
+ url8.fileURLToPath(
5386
5547
  new URL("../../support/java-runtime/release/*", import.meta.url)
5387
5548
  )
5388
5549
  ].join(os4.platform() === "win32" ? ";" : ":"),
@@ -5429,11 +5590,11 @@ var init_java = __esm({
5429
5590
  cwd: srcPath
5430
5591
  }
5431
5592
  );
5432
- const buildOutput = path14.join(srcPath, "build", outputDir);
5593
+ const buildOutput = path15.join(srcPath, "build", outputDir);
5433
5594
  const zip = (await fs14.readdir(buildOutput)).find(
5434
5595
  (f) => f.endsWith(".zip")
5435
5596
  );
5436
- zipLocal.sync.unzip(path14.join(buildOutput, zip)).save(input.out);
5597
+ zipLocal.sync.unzip(path15.join(buildOutput, zip)).save(input.out);
5437
5598
  return {
5438
5599
  type: "success",
5439
5600
  handler: input.props.handler
@@ -5452,7 +5613,7 @@ var init_java = __esm({
5452
5613
 
5453
5614
  // src/stacks/synth.ts
5454
5615
  import * as contextproviders from "aws-cdk/lib/context-providers/index.js";
5455
- import path15 from "path";
5616
+ import path16 from "path";
5456
5617
  async function synth(opts) {
5457
5618
  Logger.debug("Synthesizing stacks...");
5458
5619
  const { App: App2 } = await import("../src/constructs/App.js");
@@ -5472,7 +5633,7 @@ async function synth(opts) {
5472
5633
  const identity = await useSTSIdentity();
5473
5634
  opts = {
5474
5635
  ...opts,
5475
- buildDir: opts.buildDir || path15.join(project.paths.out, "dist")
5636
+ buildDir: opts.buildDir || path16.join(project.paths.out, "dist")
5476
5637
  };
5477
5638
  const cfg = new Configuration();
5478
5639
  await cfg.load();
@@ -5847,14 +6008,14 @@ import babel from "@babel/core";
5847
6008
  import generator from "@babel/generator";
5848
6009
  import esbuild3 from "esbuild";
5849
6010
  import fs15 from "fs/promises";
5850
- import path16 from "path";
5851
- import url8 from "url";
6011
+ import path17 from "path";
6012
+ import url9 from "url";
5852
6013
  async function generate(opts) {
5853
6014
  const { printSchema, lexicographicSortSchema } = await import("graphql");
5854
6015
  const contents = await extractSchema(opts);
5855
- const out = path16.join(path16.dirname(opts.schema), "out.mjs");
6016
+ const out = path17.join(path17.dirname(opts.schema), "out.mjs");
5856
6017
  await fs15.writeFile(out, contents, "utf8");
5857
- const { schema } = await import(url8.pathToFileURL(out).href + "?bust=" + Date.now());
6018
+ const { schema } = await import(url9.pathToFileURL(out).href + "?bust=" + Date.now());
5858
6019
  await fs15.rm(out);
5859
6020
  const schemaAsString = printSchema(lexicographicSortSchema(schema));
5860
6021
  return schemaAsString;
@@ -5890,15 +6051,15 @@ async function extractSchema(opts) {
5890
6051
  {
5891
6052
  name: "pothos-extractor",
5892
6053
  visitor: {
5893
- Program(path19) {
5894
- const dummyResolverId = path19.scope.generateUidIdentifier("DUMMY_RESOLVER");
6054
+ Program(path20) {
6055
+ const dummyResolverId = path20.scope.generateUidIdentifier("DUMMY_RESOLVER");
5895
6056
  const resolverNode = dummyResolver({
5896
6057
  dummy_resolver: dummyResolverId
5897
6058
  });
5898
- path19.unshiftContainer("body", resolverNode);
5899
- path19.scope.crawl();
6059
+ path20.unshiftContainer("body", resolverNode);
6060
+ path20.scope.crawl();
5900
6061
  let schemaBuilder = null;
5901
- path19.traverse({
6062
+ path20.traverse({
5902
6063
  ImportDeclaration(declarator) {
5903
6064
  if (!declarator)
5904
6065
  return;
@@ -5956,17 +6117,17 @@ async function extractSchema(opts) {
5956
6117
  );
5957
6118
  return contents.code;
5958
6119
  }
5959
- function getBindings(path19, globalPaths) {
6120
+ function getBindings(path20, globalPaths) {
5960
6121
  const bindings = [];
5961
- path19.traverse({
6122
+ path20.traverse({
5962
6123
  Expression(expressionPath) {
5963
6124
  if (!expressionPath.isIdentifier())
5964
6125
  return;
5965
- const binding = path19.scope.getBinding(expressionPath);
6126
+ const binding = path20.scope.getBinding(expressionPath);
5966
6127
  if (!binding || globalPaths.has(binding.path) || bindings.includes(binding.path))
5967
6128
  return;
5968
6129
  const rootBinding = findRootBinding(binding.path);
5969
- if (path19 === rootBinding) {
6130
+ if (path20 === rootBinding) {
5970
6131
  bindings.push(binding.path);
5971
6132
  return;
5972
6133
  }
@@ -5979,8 +6140,8 @@ function getBindings(path19, globalPaths) {
5979
6140
  }
5980
6141
  return bindings;
5981
6142
  }
5982
- function findRootBinding(path19) {
5983
- let rootPath = path19;
6143
+ function findRootBinding(path20) {
6144
+ let rootPath = path20;
5984
6145
  while (rootPath.parentPath?.node !== void 0 && !rootPath.parentPath?.isProgram()) {
5985
6146
  rootPath = rootPath.parentPath;
5986
6147
  }
@@ -6006,7 +6167,7 @@ __export(pothos_exports2, {
6006
6167
  import fs16 from "fs/promises";
6007
6168
  import { exec as exec6 } from "child_process";
6008
6169
  import { promisify as promisify5 } from "util";
6009
- import path17 from "path";
6170
+ import path18 from "path";
6010
6171
  var execAsync5, usePothosBuilder;
6011
6172
  var init_pothos2 = __esm({
6012
6173
  "src/cli/commands/plugins/pothos.ts"() {
@@ -6040,9 +6201,9 @@ var init_pothos2 = __esm({
6040
6201
  if (evt.properties.file.endsWith("out.mjs"))
6041
6202
  return;
6042
6203
  for (const route of routes) {
6043
- const dir = path17.dirname(route.schema);
6044
- const relative = path17.relative(dir, evt.properties.file);
6045
- if (relative && !relative.startsWith("..") && !path17.isAbsolute(relative))
6204
+ const dir = path18.dirname(route.schema);
6205
+ const relative = path18.relative(dir, evt.properties.file);
6206
+ if (relative && !relative.startsWith("..") && !path18.isAbsolute(relative))
6046
6207
  build2(route);
6047
6208
  }
6048
6209
  });
@@ -6558,7 +6719,7 @@ var dev = (program2) => program2.command(
6558
6719
  const { Colors: Colors2 } = await Promise.resolve().then(() => (init_colors(), colors_exports));
6559
6720
  const { printHeader: printHeader2 } = await Promise.resolve().then(() => (init_header(), header_exports));
6560
6721
  const { mapValues, omitBy: omitBy2, pipe: pipe3 } = await import("remeda");
6561
- const path19 = await import("path");
6722
+ const path20 = await import("path");
6562
6723
  const { useRuntimeWorkers: useRuntimeWorkers2 } = await Promise.resolve().then(() => (init_workers(), workers_exports));
6563
6724
  const { useIOTBridge: useIOTBridge2 } = await Promise.resolve().then(() => (init_iot2(), iot_exports));
6564
6725
  const { useRuntimeServer: useRuntimeServer2 } = await Promise.resolve().then(() => (init_server2(), server_exports2));
@@ -6761,7 +6922,7 @@ var dev = (program2) => program2.command(
6761
6922
  }
6762
6923
  await SiteEnv.writeValues(result);
6763
6924
  fs19.writeFile(
6764
- path19.join(project.paths.out, "outputs.json"),
6925
+ path20.join(project.paths.out, "outputs.json"),
6765
6926
  JSON.stringify(
6766
6927
  pipe3(
6767
6928
  results,
@@ -6777,7 +6938,7 @@ var dev = (program2) => program2.command(
6777
6938
  build2();
6778
6939
  }
6779
6940
  async function checksum(cdkOutPath) {
6780
- const manifestPath = path19.join(cdkOutPath, "manifest.json");
6941
+ const manifestPath = path20.join(cdkOutPath, "manifest.json");
6781
6942
  const cdkManifest = JSON.parse(
6782
6943
  await fs19.readFile(manifestPath).then((x) => x.toString())
6783
6944
  );
@@ -6786,7 +6947,7 @@ var dev = (program2) => program2.command(
6786
6947
  (key) => cdkManifest.artifacts[key].type === "aws:cloudformation:stack"
6787
6948
  ).map(async (key) => {
6788
6949
  const { templateFile } = cdkManifest.artifacts[key].properties;
6789
- const templatePath = path19.join(cdkOutPath, templateFile);
6950
+ const templatePath = path20.join(cdkOutPath, templateFile);
6790
6951
  const templateContent = await fs19.readFile(templatePath);
6791
6952
  return templateContent;
6792
6953
  })
@@ -6797,7 +6958,7 @@ var dev = (program2) => program2.command(
6797
6958
  watcher.subscribe("file.changed", async (evt) => {
6798
6959
  if (!project.metafile)
6799
6960
  return;
6800
- if (!project.metafile.inputs[evt.properties.relative.split(path19.sep).join(path19.posix.sep)])
6961
+ if (!project.metafile.inputs[evt.properties.relative.split(path20.sep).join(path20.posix.sep)])
6801
6962
  return;
6802
6963
  build2();
6803
6964
  });
@@ -6897,7 +7058,7 @@ var build = (program2) => program2.command(
6897
7058
  const { useProject: useProject2 } = await Promise.resolve().then(() => (init_project(), project_exports));
6898
7059
  const { Stacks } = await Promise.resolve().then(() => (init_stacks(), stacks_exports));
6899
7060
  const { Colors: Colors2 } = await Promise.resolve().then(() => (init_colors(), colors_exports));
6900
- const path19 = await import("path");
7061
+ const path20 = await import("path");
6901
7062
  const result = await Stacks.synth({
6902
7063
  fn: useProject2().stacks,
6903
7064
  buildDir: args.to,
@@ -6907,7 +7068,7 @@ var build = (program2) => program2.command(
6907
7068
  Colors2.line(
6908
7069
  Colors2.success(`\u2714`),
6909
7070
  Colors2.bold(" Built:"),
6910
- `${result.stacks.length} stack${result.stacks.length > 1 ? "s" : ""} to ${path19.relative(process.cwd(), result.directory)}`
7071
+ `${result.stacks.length} stack${result.stacks.length > 1 ? "s" : ""} to ${path20.relative(process.cwd(), result.directory)}`
6911
7072
  );
6912
7073
  process.exit(0);
6913
7074
  }
@@ -6917,7 +7078,7 @@ var build = (program2) => program2.command(
6917
7078
  init_credentials();
6918
7079
  init_colors();
6919
7080
  import fs18 from "fs/promises";
6920
- import path18 from "path";
7081
+ import path19 from "path";
6921
7082
  var deploy2 = (program2) => program2.command(
6922
7083
  "deploy [filter]",
6923
7084
  "Deploy your app to AWS",
@@ -6987,7 +7148,7 @@ var deploy2 = (program2) => program2.command(
6987
7148
  if (Object.values(results).some((stack) => Stacks.isFailed(stack.status)))
6988
7149
  process.exit(1);
6989
7150
  fs18.writeFile(
6990
- path18.join(project.paths.out, "outputs.json"),
7151
+ path19.join(project.paths.out, "outputs.json"),
6991
7152
  JSON.stringify(
6992
7153
  mapValues(results, (val) => val.outputs),
6993
7154
  null,
@@ -7272,7 +7433,7 @@ var update = (program2) => program2.command(
7272
7433
  async (args) => {
7273
7434
  const { green, yellow } = await import("colorette");
7274
7435
  const fs19 = await import("fs/promises");
7275
- const path19 = await import("path");
7436
+ const path20 = await import("path");
7276
7437
  const { fetch } = await import("undici");
7277
7438
  const { useProject: useProject2 } = await Promise.resolve().then(() => (init_project(), project_exports));
7278
7439
  const { Colors: Colors2 } = await Promise.resolve().then(() => (init_colors(), colors_exports));
@@ -7283,7 +7444,7 @@ var update = (program2) => program2.command(
7283
7444
  return [];
7284
7445
  if (/(^|\/)\.[^\/\.]/g.test(item))
7285
7446
  return [];
7286
- const full = path19.join(dir, item);
7447
+ const full = path20.join(dir, item);
7287
7448
  if (item === "package.json")
7288
7449
  return [full];
7289
7450
  const stat = await fs19.stat(full);
@@ -7338,7 +7499,7 @@ var update = (program2) => program2.command(
7338
7499
  for (const [file, pkgs] of results.entries()) {
7339
7500
  Colors2.line(
7340
7501
  Colors2.success(`\u2714 `),
7341
- Colors2.bold.dim(path19.relative(project.paths.root, file))
7502
+ Colors2.bold.dim(path20.relative(project.paths.root, file))
7342
7503
  );
7343
7504
  for (const [pkg, version2] of pkgs) {
7344
7505
  Colors2.line(Colors2.dim(` ${pkg}@${version2}`));