@awsless/awsless 0.0.161 → 0.0.163

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/bin.js CHANGED
@@ -1640,6 +1640,7 @@ var UserPool = class extends Resource {
1640
1640
  properties() {
1641
1641
  return {
1642
1642
  UserPoolName: this.name,
1643
+ DeletionProtection: this.props.deletionProtection ? "ACTIVE" : "INACTIVE",
1643
1644
  // UserPoolTags: [],
1644
1645
  ...this.props.username?.emailAlias ? {
1645
1646
  AliasAttributes: ["email"],
@@ -1847,6 +1848,7 @@ var authPlugin = definePlugin({
1847
1848
  }
1848
1849
  const userPool = new UserPool(id, {
1849
1850
  name: `${config2.app.name}-${id}`,
1851
+ deletionProtection: true,
1850
1852
  allowUserRegistration: props.allowUserRegistration,
1851
1853
  username: props.username,
1852
1854
  password: props.password,
@@ -7308,7 +7310,7 @@ var assetBuilder = (app) => {
7308
7310
  async read(fingerprint, files) {
7309
7311
  const prev = await getFingerPrint();
7310
7312
  if (prev !== fingerprint) {
7311
- debug("Outdated fingerprint:", asset.type, asset.id);
7313
+ debug("Outdated fingerprint:", stack.name, asset.type, asset.id);
7312
7314
  throw new TypeError(`Outdated fingerprint: ${fingerprint}`);
7313
7315
  }
7314
7316
  return Promise.all(
@@ -7865,7 +7867,13 @@ var runTaskGroup = (concurrency, tasks) => {
7865
7867
  status2.set(text);
7866
7868
  });
7867
7869
  } catch (error) {
7870
+ debugError(error);
7868
7871
  icon.set(style.error(symbol.error));
7872
+ if (error instanceof Error) {
7873
+ status2.set(error.message);
7874
+ } else {
7875
+ status2.set("Error");
7876
+ }
7869
7877
  status2.update(style.error);
7870
7878
  throw error;
7871
7879
  } finally {
@@ -7971,7 +7979,7 @@ var assetPublisher = (config2, app) => {
7971
7979
  async read(fingerprint, files) {
7972
7980
  const prev = await readFile7(getFullPath("FINGER_PRINT"), "utf8");
7973
7981
  if (prev !== fingerprint) {
7974
- debug("Outdated fingerprint:", asset.type, asset.id);
7982
+ debug("Outdated fingerprint:", stack.name, asset.type, asset.id);
7975
7983
  throw new TypeError(`Outdated fingerprint: ${fingerprint}`);
7976
7984
  }
7977
7985
  return Promise.all(
@@ -8383,13 +8391,7 @@ var deploy = (program2) => {
8383
8391
  label: stack.name,
8384
8392
  task: async (update) => {
8385
8393
  update("deploying...");
8386
- try {
8387
- await client.deploy(stack);
8388
- } catch (error) {
8389
- debugError(error);
8390
- update("failed");
8391
- throw error;
8392
- }
8394
+ await client.deploy(stack);
8393
8395
  update("deployed");
8394
8396
  return "done";
8395
8397
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.161",
3
+ "version": "0.0.163",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@awsless/lambda": "^0.0.18",
32
- "@awsless/redis": "^0.0.10",
32
+ "@awsless/redis": "^0.0.11",
33
33
  "@awsless/s3": "^0.0.10",
34
34
  "@awsless/sns": "^0.0.7",
35
35
  "@awsless/sqs": "^0.0.7",