@live-change/email-service 0.9.115 → 0.9.117

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 +2 -2
  2. package/package.json +3 -3
package/auth.js CHANGED
@@ -165,7 +165,7 @@ definition.trigger({
165
165
  }
166
166
  },
167
167
  async execute({ user, email }, { client, service }, emit) {
168
- email = preFilter(email)
168
+ email = preFilter(email)
169
169
  const emailData = await Email.get(email)
170
170
  if(!emailData) throw { properties: { email: 'emailNotFound' } }
171
171
  if(emailData.user !== user) throw { properties: { email: 'emailNotFound' } }
@@ -201,7 +201,7 @@ definition.trigger({
201
201
  properties: {
202
202
  user: {
203
203
  type: User,
204
- validation: ['nonEmpty', 'email']
204
+ validation: ['nonEmpty']
205
205
  }
206
206
  },
207
207
  async execute({ user }, context, _emit) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/email-service",
3
- "version": "0.9.115",
3
+ "version": "0.9.117",
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.115",
24
+ "@live-change/framework": "^0.9.117",
25
25
  "got": "^11.8.6",
26
26
  "html-to-text": "8.1.0",
27
27
  "inline-css": "4.0.2",
@@ -32,6 +32,6 @@
32
32
  "postcss-calc": "10.1.1",
33
33
  "postcss-custom-properties": "14.0.4"
34
34
  },
35
- "gitHead": "44fe0c1e9da339892bf9e1b9e0864637d015b1b5",
35
+ "gitHead": "c6cd3d2e3c7312f95d0cca0609b7c0f8fff48ead",
36
36
  "type": "module"
37
37
  }