@live-change/message-authentication-service 0.3.40 → 0.4.0

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 CHANGED
@@ -1,5 +1,6 @@
1
- const app = require("@live-change/framework").app()
2
- const definition = require('./definition.js')
1
+ import App from '@live-change/framework'
2
+ const app = App.app()
3
+ import definition from './definition.js'
3
4
  const config = definition.config
4
5
 
5
6
  const contactProperties = {
@@ -222,4 +223,4 @@ definition.action({
222
223
  }
223
224
  })
224
225
 
225
- module.exports = { Authentication, contactProperties, targetProperties, messageProperties }
226
+ export { Authentication, contactProperties, targetProperties, messageProperties }
package/definition.js CHANGED
@@ -1,10 +1,12 @@
1
- const app = require("@live-change/framework").app()
1
+ import App from '@live-change/framework'
2
+ const app = App.app()
2
3
 
3
- const security = require('@live-change/security-service')
4
+ import security from '@live-change/security-service'
5
+ import email from '@live-change/email-service'
4
6
 
5
7
  const definition = app.createServiceDefinition({
6
8
  name: "messageAuthentication",
7
- use: [ security ]
9
+ use: [ security, email ]
8
10
  })
9
11
 
10
- module.exports = definition
12
+ export default definition
package/index.js CHANGED
@@ -1,9 +1,10 @@
1
- const app = require("@live-change/framework").app()
1
+ import App from '@live-change/framework'
2
+ const app = App.app()
2
3
 
3
- const definition = require('./definition.js')
4
+ import definition from './definition.js'
4
5
  const config = definition.config
5
6
 
6
- require('./authentication.js')
7
- require('./sign.js')
7
+ import './authentication.js'
8
+ import './sign.js'
8
9
 
9
- module.exports = definition
10
+ export default definition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/message-authentication-service",
3
- "version": "0.3.40",
3
+ "version": "0.4.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,8 +21,9 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "0.7.38",
24
+ "@live-change/framework": "0.8.0",
25
25
  "nodemailer": "^6.7.2"
26
26
  },
27
- "gitHead": "d72cc68ee4c46242e5f6a51c303be4177a1c33cf"
27
+ "gitHead": "87010b19907140a326943f22cd538eafdc9c28f1",
28
+ "type": "module"
28
29
  }
package/sign.js CHANGED
@@ -1,8 +1,9 @@
1
- const app = require("@live-change/framework").app()
2
- const definition = require('./definition.js')
1
+ import App from '@live-change/framework'
2
+ const app = App.app()
3
+ import definition from './definition.js'
3
4
  const config = definition.config
4
5
 
5
- const { contactProperties } = require('./authentication.js')
6
+ import { contactProperties } from './authentication.js'
6
7
 
7
8
  definition.trigger({
8
9
  name: 'signUpWithMessageAuthenticated',