@live-change/email-service 0.2.23 → 0.2.26

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/auth.js +7 -1
  2. package/package.json +3 -3
package/auth.js CHANGED
@@ -123,10 +123,16 @@ definition.trigger({
123
123
  validation: ['nonEmpty']
124
124
  }
125
125
  },
126
- async execute({ user, email }, { client, service }, emit) {
126
+ async execute({ user, email }, { service }, emit) {
127
127
  if(!email) throw new Error("no email")
128
128
  const emailData = await Email.get(email)
129
129
  if(emailData) throw { properties: { email: 'taken' } }
130
+ await service.trigger({
131
+ type: 'contactConnected',
132
+ contactType: 'email_Email',
133
+ contact: email,
134
+ user
135
+ })
130
136
  emit({
131
137
  type: 'emailConnected',
132
138
  user, email
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/email-service",
3
- "version": "0.2.23",
3
+ "version": "0.2.26",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,12 +21,12 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "0.5.27",
24
+ "@live-change/framework": "0.6.0",
25
25
  "got": "^11.8.3",
26
26
  "html-to-text": "8.1.0",
27
27
  "inline-css": "3.0.0",
28
28
  "jsdom": "^18.1.1",
29
29
  "nodemailer": "^6.7.2"
30
30
  },
31
- "gitHead": "c22bdb7af06561f1dc64b9d9c8cb90154dcd3618"
31
+ "gitHead": "f3d7b9b6c689b9d87df3cb7f64cd75fc72339b7a"
32
32
  }