@live-change/email-service 0.9.32 → 0.9.33
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/auth.js +3 -3
- package/package.json +3 -3
package/auth.js
CHANGED
|
@@ -167,8 +167,8 @@ definition.trigger({
|
|
|
167
167
|
async execute({ user, email }, { client, service }, emit) {
|
|
168
168
|
email = preFilter(email)
|
|
169
169
|
const emailData = await Email.get(email)
|
|
170
|
-
if(!emailData) throw { properties: { email: '
|
|
171
|
-
if(emailData.user !== user) throw { properties: { email: '
|
|
170
|
+
if(!emailData) throw { properties: { email: 'emailNotFound' } }
|
|
171
|
+
if(emailData.user !== user) throw { properties: { email: 'emailNotFound' } }
|
|
172
172
|
emit({
|
|
173
173
|
type: 'emailDisconnected',
|
|
174
174
|
user, email
|
|
@@ -188,7 +188,7 @@ definition.trigger({
|
|
|
188
188
|
async execute({ email, session }, { service }, _emit) {
|
|
189
189
|
email = preFilter(email)
|
|
190
190
|
const emailData = await Email.get(email)
|
|
191
|
-
if(!emailData) throw { properties: { email: '
|
|
191
|
+
if(!emailData) throw { properties: { email: 'emailNotFound' } }
|
|
192
192
|
const { user } = emailData
|
|
193
193
|
return service.trigger({ type: 'signIn' }, {
|
|
194
194
|
user, session
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/email-service",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.33",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://www.viamage.com/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/framework": "^0.9.
|
|
24
|
+
"@live-change/framework": "^0.9.33",
|
|
25
25
|
"got": "^11.8.6",
|
|
26
26
|
"html-to-text": "8.1.0",
|
|
27
27
|
"inline-css": "4.0.2",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"juice": "11.0.0",
|
|
30
30
|
"nodemailer": "^6.7.2"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "c6eaa7764dc12b9489b74386b1227b71d0640e09",
|
|
33
33
|
"type": "module"
|
|
34
34
|
}
|