@awsless/awsless 0.0.198 → 0.0.199

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 +3 -2
  2. package/package.json +3 -3
package/dist/bin.js CHANGED
@@ -3000,9 +3000,10 @@ var pubsubFeature = defineFeature({
3000
3000
  onStack(ctx) {
3001
3001
  for (const [id, props] of Object.entries(ctx.stackConfig.pubsub ?? {})) {
3002
3002
  const group = new Node8(ctx.stack, "pubsub", id);
3003
- const { lambda } = createLambdaFunction(group, ctx, `pubsub`, "function", props.consumer);
3003
+ const { lambda } = createLambdaFunction(group, ctx, `pubsub`, id, props.consumer);
3004
+ const name = formatLocalResourceName(ctx.app.name, ctx.stack.name, "pubsub", id);
3004
3005
  const topic = new aws8.iot.TopicRule(group, "rule", {
3005
- name: formatLocalResourceName(ctx.app.name, ctx.stack.name, "pubsub", id).replaceAll("-", "_"),
3006
+ name: name.replaceAll("-", "_"),
3006
3007
  sql: props.sql,
3007
3008
  sqlVersion: props.sqlVersion,
3008
3009
  actions: [{ lambda: { functionArn: lambda.arn } }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.198",
3
+ "version": "0.0.199",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -98,10 +98,10 @@
98
98
  "zod": "^3.21.4",
99
99
  "zod-to-json-schema": "^3.22.3",
100
100
  "@awsless/duration": "^0.0.1",
101
- "@awsless/size": "^0.0.1",
102
101
  "@awsless/graphql": "^0.0.9",
103
- "@awsless/validate": "^0.0.13",
104
102
  "@awsless/formation": "^0.0.15",
103
+ "@awsless/size": "^0.0.1",
104
+ "@awsless/validate": "^0.0.13",
105
105
  "@awsless/code": "^0.0.10"
106
106
  },
107
107
  "scripts": {