@live-change/message-authentication-service 0.9.169 → 0.9.173
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/LICENSE.md +0 -11
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.173",
|
|
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.173",
|
|
25
25
|
"nodemailer": "^6.7.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "1d70f7baf204d8f9848f53f5023db91016c6093f",
|
|
28
28
|
"type": "module"
|
|
29
29
|
}
|
package/LICENSE.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Copyright 2019-2024 Michał Łaszczewski
|
|
2
|
-
|
|
3
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
-
|
|
5
|
-
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
-
|
|
7
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
-
|
|
9
|
-
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
-
|
|
11
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|