@awsless/awsless 0.0.256 → 0.0.257

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
@@ -3891,6 +3891,7 @@ var siteFeature = defineFeature({
3891
3891
 
3892
3892
  // src/feature/store/index.ts
3893
3893
  import { aws as aws15, Node as Node15 } from "@awsless/formation";
3894
+ import { paramCase as paramCase6 } from "change-case";
3894
3895
  var typeGenCode5 = `
3895
3896
  import { Body, PutObjectProps, BodyStream, createPresignedPost } from '@awsless/s3'
3896
3897
  import { Size } from '@awsless/size'
@@ -3939,7 +3940,8 @@ var storeFeature = defineFeature({
3939
3940
  };
3940
3941
  for (const [event, funcProps] of Object.entries(props.events ?? {})) {
3941
3942
  const eventGroup = new Node15(group, "event", event);
3942
- const { lambda } = createAsyncLambdaFunction(eventGroup, ctx, `store`, id, funcProps);
3943
+ const eventId = paramCase6(`${id}-${shortId(event)}`);
3944
+ const { lambda } = createAsyncLambdaFunction(eventGroup, ctx, `store`, eventId, funcProps);
3943
3945
  new aws15.lambda.Permission(eventGroup, "permission", {
3944
3946
  action: "lambda:InvokeFunction",
3945
3947
  principal: "s3.amazonaws.com",
package/dist/client.js CHANGED
@@ -30,7 +30,7 @@ var GraphQL = /* @__PURE__ */ createProxy((name) => {
30
30
  var getGraphQLProps = (name) => {
31
31
  const id = constantCase2(name);
32
32
  return {
33
- endpoint: getBindEnv(`AUTH_${id}_USER_POOL_ID`)
33
+ endpoint: getBindEnv(`GRAPHQL_${id}_ENDPOINT`)
34
34
  };
35
35
  };
36
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.256",
3
+ "version": "0.0.257",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -28,8 +28,8 @@
28
28
  }
29
29
  },
30
30
  "peerDependencies": {
31
- "@awsless/open-search": "^0.0.12",
32
31
  "@awsless/lambda": "^0.0.19",
32
+ "@awsless/open-search": "^0.0.12",
33
33
  "@awsless/redis": "^0.0.12",
34
34
  "@awsless/s3": "^0.0.10",
35
35
  "@awsless/sns": "^0.0.7",
@@ -98,11 +98,11 @@
98
98
  "wrap-ansi": "^8.1.0",
99
99
  "zod": "^3.21.4",
100
100
  "zod-to-json-schema": "^3.22.3",
101
- "@awsless/graphql": "^0.0.9",
102
- "@awsless/formation": "^0.0.28",
103
- "@awsless/validate": "^0.0.14",
104
101
  "@awsless/duration": "^0.0.1",
102
+ "@awsless/formation": "^0.0.28",
103
+ "@awsless/graphql": "^0.0.9",
105
104
  "@awsless/size": "^0.0.1",
105
+ "@awsless/validate": "^0.0.14",
106
106
  "@awsless/code": "^0.0.10"
107
107
  },
108
108
  "scripts": {