@awsless/cli 0.1.29 → 0.1.30

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.
@@ -1016870,8 +1016870,11 @@ var data = await /* @__PURE__ */ loadConfigData();
1016870
1016870
  var getConfigValue = (name) => {
1016871
1016871
  const key = kebabCase(name);
1016872
1016872
  const value = data[key];
1016873
- if (typeof value === "undefined")
1016873
+ if (typeof value === "undefined") {
1016874
+ if (!IS_TEST && !process.env.CONFIGS)
1016875
+ throw new Error(`The "${name}" config value isn't available: this lambda loads no configs at all - the on-failure & on-error-log consumers run config free, so a broken config can never take down error reporting. Pass the value through a plain environment variable instead.`);
1016874
1016876
  throw new Error(`The "${name}" config value hasn't been set yet. ${IS_TEST ? `Use "mock.config.${name} = 'VALUE'" to define your mock value.` : `Define access to the desired config value inside your awsless stack file.`}`);
1016877
+ }
1016875
1016878
  return value;
1016876
1016879
  };
1016877
1016880
  var setConfigValue = (name, value) => {
@@ -422,7 +422,7 @@ var handle_default = async (event) => {
422
422
  }
423
423
  const auth = await authenticate(request.output.headers.authentication);
424
424
  if (!auth.authorized) {
425
- return response(405, UNAUTHORIZED(auth.reason));
425
+ return response(401, UNAUTHORIZED(auth.reason));
426
426
  }
427
427
  const calls = request.output.body.map((fn) => {
428
428
  return {
@@ -195,7 +195,7 @@ if (manifestFile) {
195
195
  process.env.AWS_ACCESS_KEY_ID ??= "local";
196
196
  process.env.AWS_SECRET_ACCESS_KEY ??= "local";
197
197
  if (manifest.servers?.search) {
198
- process.env.SEARCH_DOMAIN = manifest.servers.search.domain;
198
+ process.env.SEARCH_ENDPOINT = manifest.servers.search.endpoint;
199
199
  }
200
200
  const { constantCase: constantCase2 } = await Promise.resolve().then(() => (init_dist(), exports_dist));
201
201
  for (const table of manifest.tableKeys ?? []) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/cli",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "bugs": {
5
5
  "url": "https://github.com/awsless/awsless/issues"
6
6
  },
@@ -19,6 +19,7 @@
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
21
  "@aws-sdk/signature-v4-crt": "3.1113.0",
22
+ "@jridgewell/trace-mapping": "0.3.31",
22
23
  "rolldown": "1.2.4",
23
24
  "vitest": "4.1.11"
24
25
  },
@@ -46,8 +47,8 @@
46
47
  "@awsless/dynamodb-server": "^0.1.11",
47
48
  "@awsless/iot": "^0.0.6",
48
49
  "@awsless/json": "^0.0.12",
49
- "@awsless/lambda": "^0.0.49",
50
- "@awsless/open-search": "^0.0.30",
50
+ "@awsless/lambda": "^0.0.50",
51
+ "@awsless/open-search": "^0.0.31",
51
52
  "@awsless/redis": "^0.1.14",
52
53
  "@awsless/s3": "^0.0.23",
53
54
  "@awsless/size": "^0.0.3",
@@ -71,7 +72,7 @@
71
72
  "@vitest/runner": "4.1.11",
72
73
  "@vitest/utils": "4.1.11",
73
74
  "aws-cron-expression-validator": "1.0.5",
74
- "awsless": "^0.1.8",
75
+ "awsless": "^0.1.9",
75
76
  "change-case": "5.4.4",
76
77
  "chunk": "0.0.3",
77
78
  "cli-table3": "0.6.5",
@@ -119,13 +120,13 @@
119
120
  "@awsless/dynamodb": "^0.3.28",
120
121
  "@awsless/dynamodb-server": "^0.1.11",
121
122
  "@awsless/json": "^0.0.12",
122
- "@awsless/lambda": "^0.0.49",
123
+ "@awsless/lambda": "^0.0.50",
123
124
  "@awsless/s3": "^0.0.23",
124
125
  "@awsless/ts-file-cache": "^0.0.22",
125
126
  "@awsless/validate": "^0.2.1",
126
127
  "@awsless/weak-cache": "^0.0.2",
127
128
  "@opensearch-project/opensearch": "3.6.0",
128
- "awsless": "^0.1.8"
129
+ "awsless": "^0.1.9"
129
130
  },
130
131
  "scripts": {
131
132
  "test": "bun cli/build-handlers.ts && pnpm vitest run",