@live-change/message-authentication-service 0.9.33 → 0.9.35

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/package.json +3 -3
  2. package/sign.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/message-authentication-service",
3
- "version": "0.9.33",
3
+ "version": "0.9.35",
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.33",
24
+ "@live-change/framework": "^0.9.35",
25
25
  "nodemailer": "^6.7.2"
26
26
  },
27
- "gitHead": "c6eaa7764dc12b9489b74386b1227b71d0640e09",
27
+ "gitHead": "abe67aa58ccf8246b8b9fde832287b5305480b91",
28
28
  "type": "module"
29
29
  }
package/sign.js CHANGED
@@ -15,7 +15,7 @@ definition.trigger({
15
15
  const contactTypeUpperCase = contactType[0].toUpperCase() + contactType.slice(1)
16
16
  const user = app.generateUid()
17
17
  await service.trigger({ type: 'connect' + contactTypeUpperCase }, {
18
- [contactTypeName]: contact,
18
+ [contactType]: contact,
19
19
  user
20
20
  })
21
21
  await service.trigger({ type: 'signUpAndSignIn' }, {
@@ -34,7 +34,7 @@ definition.trigger({
34
34
  async execute({ contactType, contact, session }, { service }, _emit) {
35
35
  const contactTypeUpperCase = contactType[0].toUpperCase() + contactType.slice(1)
36
36
  const user = await service.trigger({ type: 'signIn' + contactTypeUpperCase }, {
37
- [contactTypeName]: contact,
37
+ [contactType]: contact,
38
38
  session
39
39
  })
40
40
  return user
@@ -50,7 +50,7 @@ definition.trigger({
50
50
  async execute({ contactType, contact, user }, { client, service }, _emit) {
51
51
  const contactTypeUpperCase = contactType[0].toUpperCase() + contactType.slice(1)
52
52
  await service.trigger({ type: 'connect' + contactTypeUpperCase }, {
53
- [contactTypeName]: contact,
53
+ [contactType]: contact,
54
54
  user
55
55
  })
56
56
  return user