@awsless/cli 0.1.21 → 0.1.22

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.
Files changed (2) hide show
  1. package/dist/bin.js +11 -5
  2. package/package.json +16 -16
package/dist/bin.js CHANGED
@@ -178649,19 +178649,25 @@ var startDev = async (props) => {
178649
178649
  throw error52;
178650
178650
  }
178651
178651
  };
178652
- const reportFailure = createFailureReporter({
178652
+ const report = createFailureReporter({
178653
178653
  enabled: Boolean(appConfig.onFailure),
178654
178654
  dispatch,
178655
178655
  log: log2,
178656
- onReport(report) {
178656
+ onReport(report2) {
178657
178657
  dev.events.emit("problems", {
178658
178658
  date: Date.now(),
178659
- kind: report.kind,
178660
- title: report.routeKey ?? report.queue?.name ?? "async invoke",
178661
- detail: report.error instanceof Error ? report.error.message : String(report.error)
178659
+ kind: report2.kind,
178660
+ title: report2.routeKey ?? report2.queue?.name ?? "async invoke",
178661
+ detail: report2.error instanceof Error ? report2.error.message : String(report2.error)
178662
178662
  });
178663
178663
  }
178664
178664
  });
178665
+ const reportFailure = (failure) => {
178666
+ if (stopping) {
178667
+ return;
178668
+ }
178669
+ report(failure);
178670
+ };
178665
178671
  lambda.connect(dispatch, reportFailure);
178666
178672
  await phase({ start: "Starting the local servers...", done: "Started the local servers" }, async (detail) => {
178667
178673
  const timings = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/cli",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "bugs": {
5
5
  "url": "https://github.com/awsless/awsless/issues"
6
6
  },
@@ -81,24 +81,24 @@
81
81
  "wrap-ansi": "10.0.1",
82
82
  "zod": "4.4.3",
83
83
  "@awsless/big-float": "^0.1.8",
84
- "@awsless/cloudwatch": "^0.0.1",
85
- "@awsless/clui": "^0.0.10",
84
+ "@awsless/cloudwatch": "^0.0.2",
85
+ "@awsless/duration": "^0.0.4",
86
86
  "@awsless/dynamodb": "^0.3.26",
87
+ "@awsless/clui": "^0.0.10",
87
88
  "@awsless/dynamodb-server": "^0.1.11",
88
- "@awsless/iot": "^0.0.5",
89
89
  "@awsless/json": "^0.0.12",
90
- "@awsless/duration": "^0.0.4",
91
90
  "@awsless/open-search": "^0.0.29",
91
+ "@awsless/lambda": "^0.0.49",
92
92
  "@awsless/redis": "^0.1.14",
93
- "@awsless/s3": "^0.0.23",
94
93
  "@awsless/size": "^0.0.3",
95
94
  "@awsless/sns": "^0.0.12",
95
+ "@awsless/iot": "^0.0.6",
96
96
  "@awsless/sqs": "^0.0.25",
97
- "@awsless/ts-file-cache": "^0.0.19",
98
- "@awsless/weak-cache": "^0.0.2",
99
- "awsless": "^0.1.5",
97
+ "@awsless/s3": "^0.0.23",
100
98
  "@awsless/validate": "^0.2.1",
101
- "@awsless/lambda": "^0.0.49"
99
+ "@awsless/ts-file-cache": "^0.0.20",
100
+ "awsless": "^0.1.5",
101
+ "@awsless/weak-cache": "^0.0.2"
102
102
  },
103
103
  "peerDependencies": {
104
104
  "@aws-sdk/client-cloudfront-keyvaluestore": "3.1113.0",
@@ -115,17 +115,17 @@
115
115
  "@aws-sdk/credential-providers": "3.1113.0",
116
116
  "@aws-sdk/lib-dynamodb": "3.1113.0",
117
117
  "@opensearch-project/opensearch": "3.6.0",
118
- "@awsless/dynamodb": "^0.3.26",
119
118
  "@awsless/big-float": "^0.1.8",
120
119
  "@awsless/dynamodb-server": "^0.1.11",
121
- "@awsless/json": "^0.0.12",
120
+ "@awsless/dynamodb": "^0.3.26",
122
121
  "@awsless/duration": "^0.0.4",
123
- "@awsless/s3": "^0.0.23",
122
+ "@awsless/json": "^0.0.12",
124
123
  "@awsless/lambda": "^0.0.49",
124
+ "@awsless/s3": "^0.0.23",
125
+ "@awsless/ts-file-cache": "^0.0.20",
125
126
  "@awsless/validate": "^0.2.1",
126
- "@awsless/ts-file-cache": "^0.0.19",
127
- "@awsless/weak-cache": "^0.0.2",
128
- "awsless": "^0.1.5"
127
+ "awsless": "^0.1.5",
128
+ "@awsless/weak-cache": "^0.0.2"
129
129
  },
130
130
  "scripts": {
131
131
  "test": "pnpm typecheck && bun cli/build-handlers.ts && pnpm vitest",