@live-change/message-authentication-service 0.9.171 → 0.9.174
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/authentication.js +4 -4
- package/package.json +3 -3
package/authentication.js
CHANGED
|
@@ -116,14 +116,14 @@ definition.trigger({
|
|
|
116
116
|
...messageProperties
|
|
117
117
|
},
|
|
118
118
|
async execute({ contactType, contact, action, actionProperties, targetPage, fallbackPage, messageData },
|
|
119
|
-
{
|
|
119
|
+
{ trigger }, emit) {
|
|
120
120
|
const authentication = app.generateUid()
|
|
121
|
-
const secrets = await
|
|
121
|
+
const secrets = await trigger({ type: 'authenticationSecret' }, {
|
|
122
122
|
authentication
|
|
123
123
|
})
|
|
124
124
|
if(secrets.length === 0) throw new Error('no secrets generated!')
|
|
125
125
|
const contactTypeUpperCase = contactType[0].toUpperCase() + contactType.slice(1)
|
|
126
|
-
await
|
|
126
|
+
await trigger({ type: 'send' + contactTypeUpperCase + 'Message' }, {
|
|
127
127
|
render: {
|
|
128
128
|
action,
|
|
129
129
|
contactType,
|
|
@@ -140,7 +140,7 @@ definition.trigger({
|
|
|
140
140
|
action,
|
|
141
141
|
actionProperties,
|
|
142
142
|
targetPage,
|
|
143
|
-
fallbackPage,
|
|
143
|
+
fallbackPage,
|
|
144
144
|
messageData
|
|
145
145
|
})
|
|
146
146
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/message-authentication-service",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.174",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"url": "https://www.viamage.com/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/framework": "^0.9.
|
|
24
|
+
"@live-change/framework": "^0.9.174",
|
|
25
25
|
"nodemailer": "^6.7.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "6ebdadad702526df240bd3aa7ac3d97324a0308a",
|
|
28
28
|
"type": "module"
|
|
29
29
|
}
|