@ez4/aws-topic 0.48.0 → 0.49.0

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/lib/message.ts +5 -5
  2. package/package.json +15 -15
package/lib/message.ts CHANGED
@@ -56,7 +56,7 @@ export async function snsEntryPoint(event: SNSEvent, context: Context): Promise<
56
56
  }
57
57
  }
58
58
 
59
- const onBegin = async (request: Topic.Request) => {
59
+ const onBegin = (request: Partial<Topic.Request>) => {
60
60
  return dispatch(
61
61
  {
62
62
  type: ServiceEventType.Begin,
@@ -66,7 +66,7 @@ const onBegin = async (request: Topic.Request) => {
66
66
  );
67
67
  };
68
68
 
69
- const onReady = async (request: Topic.Incoming<Topic.Message>) => {
69
+ const onReady = (request: Partial<Topic.Incoming<Topic.Message>>) => {
70
70
  return dispatch(
71
71
  {
72
72
  type: ServiceEventType.Ready,
@@ -76,7 +76,7 @@ const onReady = async (request: Topic.Incoming<Topic.Message>) => {
76
76
  );
77
77
  };
78
78
 
79
- const onDone = async (request: Topic.Incoming<Topic.Message>) => {
79
+ const onDone = (request: Partial<Topic.Incoming<Topic.Message>>) => {
80
80
  return dispatch(
81
81
  {
82
82
  type: ServiceEventType.Done,
@@ -86,7 +86,7 @@ const onDone = async (request: Topic.Incoming<Topic.Message>) => {
86
86
  );
87
87
  };
88
88
 
89
- const onError = async (error: unknown, request: Topic.Request | Topic.Incoming<Topic.Message>) => {
89
+ const onError = (error: unknown, request: Partial<Topic.Request | Topic.Incoming<Topic.Message>>) => {
90
90
  console.error({ ...Runtime.getScope(), error });
91
91
 
92
92
  return dispatch(
@@ -99,7 +99,7 @@ const onError = async (error: unknown, request: Topic.Request | Topic.Incoming<T
99
99
  );
100
100
  };
101
101
 
102
- const onEnd = async (request: Topic.Request) => {
102
+ const onEnd = (request: Partial<Topic.Request>) => {
103
103
  return dispatch(
104
104
  {
105
105
  type: ServiceEventType.End,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ez4/aws-topic",
3
3
  "description": "EZ4: Self-managed AWS SNS topics provider",
4
- "version": "0.48.0",
4
+ "version": "0.49.0",
5
5
  "author": "Silas B.",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -54,19 +54,19 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@aws-sdk/client-sns": "^3.996.0",
57
- "@ez4/aws-common": "^0.48.0",
58
- "@ez4/aws-identity": "^0.48.0",
59
- "@ez4/aws-function": "^0.48.0",
60
- "@ez4/aws-logs": "^0.48.0",
61
- "@ez4/aws-queue": "^0.48.0",
62
- "@ez4/common": "^0.48.0",
63
- "@ez4/project": "^0.48.0",
64
- "@ez4/queue": "^0.48.0",
65
- "@ez4/schema": "^0.48.0",
66
- "@ez4/stateful": "^0.48.0",
67
- "@ez4/topic": "^0.48.0",
68
- "@ez4/transform": "^0.48.0",
69
- "@ez4/utils": "^0.48.0",
70
- "@ez4/validator": "^0.48.0"
57
+ "@ez4/aws-common": "^0.49.0",
58
+ "@ez4/aws-identity": "^0.49.0",
59
+ "@ez4/aws-function": "^0.49.0",
60
+ "@ez4/aws-logs": "^0.49.0",
61
+ "@ez4/aws-queue": "^0.49.0",
62
+ "@ez4/common": "^0.49.0",
63
+ "@ez4/project": "^0.49.0",
64
+ "@ez4/queue": "^0.49.0",
65
+ "@ez4/schema": "^0.49.0",
66
+ "@ez4/stateful": "^0.49.0",
67
+ "@ez4/topic": "^0.49.0",
68
+ "@ez4/transform": "^0.49.0",
69
+ "@ez4/utils": "^0.49.0",
70
+ "@ez4/validator": "^0.49.0"
71
71
  }
72
72
  }