@ez4/aws-topic 0.48.0 → 0.50.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.
- package/dist/client.cjs +1 -1
- package/dist/main.cjs +1 -1
- package/lib/message.ts +5 -5
- package/package.json +17 -17
package/dist/client.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var r=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var p=(e,t)=>r(e,"name",{value:t,configurable:!0});var S=(e,t)=>{for(var s in t)r(e,s,{get:t[s],enumerable:!0})},y=(e,t,s,i)=>{if(t&&
|
|
2
2
|
typeof t=="object"||typeof t=="function")for(let o of f(t))!I.call(e,o)&&o!==s&&
|
|
3
3
|
r(e,o,{get:()=>t[o],enumerable:!(i=T(t,o))||i.enumerable});return e};var w=e=>y(r({},"__esModule",{value:!0}),e);var b={};S(b,{Client:()=>d});module.exports=w(b);var n=require("@ez4/topic/utils"),
|
|
4
4
|
a=require("@aws-sdk/client-sns"),g=require("@ez4/utils"),u=require("@ez4/common");var d;(s=>{let e=new a.SNSClient;s.make=p((i,o,c)=>new class{async sendMessage(m){
|
package/dist/main.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var z=Object.defineProperty;var dt=Object.getOwnPropertyDescriptor;var Tt=Object.getOwnPropertyNames;var bt=Object.prototype.hasOwnProperty;var i=(t,e)=>z(t,"name",{value:e,configurable:!0});var vt=(t,e)=>{for(var r in e)z(t,r,{get:e[r],enumerable:!0})},xt=(t,e,r,o)=>{if(e&&
|
|
2
2
|
typeof e=="object"||typeof e=="function")for(let n of Tt(e))!bt.call(t,n)&&n!==r&&
|
|
3
3
|
z(t,n,{get:()=>e[n],enumerable:!(o=dt(e,n))||o.enumerable});return t};var Et=t=>xt(z({},"__esModule",{value:!0}),t);var $t={};vt($t,{SubscriptionServiceName:()=>u,SubscriptionServiceType:()=>T,TopicServiceName:()=>l,
|
|
4
4
|
TopicServiceType:()=>y,createSubscription:()=>q,createSubscriptionFunction:()=>Y,
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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.
|
|
4
|
+
"version": "0.50.0",
|
|
5
5
|
"author": "Silas B.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"scripts": {
|
|
44
44
|
"lint": "eslint --cache",
|
|
45
45
|
"clean": "rm -rf dist/* *.tsbuildinfo .eslintcache",
|
|
46
|
-
"build": "tsc && node tools/bundler.mjs",
|
|
47
|
-
"test": "npm run build && tsc -p tsconfig.test.json && ez4 test -e ../../../local.env",
|
|
46
|
+
"build": "tsc -p tsconfig.pack.json && node tools/bundler.mjs",
|
|
47
|
+
"test": "npm run build && tsc -p tsconfig.test.json --noEmit && ez4 test -e ../../../local.env",
|
|
48
48
|
"local:publish": "npm run build && npm run clean:registry && npm publish --registry http://localhost:4873",
|
|
49
49
|
"clean:registry": "rm -rf ../../../.registry/@ez4/aws-topic",
|
|
50
50
|
"live:publish": "npm run build && npm publish --access public"
|
|
@@ -54,19 +54,19 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@aws-sdk/client-sns": "^3.996.0",
|
|
57
|
-
"@ez4/aws-common": "^0.
|
|
58
|
-
"@ez4/aws-identity": "^0.
|
|
59
|
-
"@ez4/aws-function": "^0.
|
|
60
|
-
"@ez4/aws-logs": "^0.
|
|
61
|
-
"@ez4/aws-queue": "^0.
|
|
62
|
-
"@ez4/common": "^0.
|
|
63
|
-
"@ez4/project": "^0.
|
|
64
|
-
"@ez4/queue": "^0.
|
|
65
|
-
"@ez4/schema": "^0.
|
|
66
|
-
"@ez4/stateful": "^0.
|
|
67
|
-
"@ez4/topic": "^0.
|
|
68
|
-
"@ez4/transform": "^0.
|
|
69
|
-
"@ez4/utils": "^0.
|
|
70
|
-
"@ez4/validator": "^0.
|
|
57
|
+
"@ez4/aws-common": "^0.50.0",
|
|
58
|
+
"@ez4/aws-identity": "^0.50.0",
|
|
59
|
+
"@ez4/aws-function": "^0.50.0",
|
|
60
|
+
"@ez4/aws-logs": "^0.50.0",
|
|
61
|
+
"@ez4/aws-queue": "^0.50.0",
|
|
62
|
+
"@ez4/common": "^0.50.0",
|
|
63
|
+
"@ez4/project": "^0.50.0",
|
|
64
|
+
"@ez4/queue": "^0.50.0",
|
|
65
|
+
"@ez4/schema": "^0.50.0",
|
|
66
|
+
"@ez4/stateful": "^0.50.0",
|
|
67
|
+
"@ez4/topic": "^0.50.0",
|
|
68
|
+
"@ez4/transform": "^0.50.0",
|
|
69
|
+
"@ez4/utils": "^0.50.0",
|
|
70
|
+
"@ez4/validator": "^0.50.0"
|
|
71
71
|
}
|
|
72
72
|
}
|