@live-change/notification-service 0.3.41 → 0.4.1

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/definition.js CHANGED
@@ -1,7 +1,8 @@
1
- const app = require("@live-change/framework").app()
1
+ import App from '@live-change/framework'
2
+ const app = App.app()
2
3
 
3
- const userService = require("@live-change/user-service")
4
- const relationsPlugin = require('@live-change/relations-plugin')
4
+ import userService from '@live-change/user-service'
5
+ import relationsPlugin from '@live-change/relations-plugin'
5
6
 
6
7
  const definition = app.createServiceDefinition({
7
8
  name: "notification",
@@ -15,4 +16,4 @@ definition.clientConfig = {
15
16
  notificationTypes: config.notificationTypes
16
17
  }
17
18
 
18
- module.exports = definition
19
+ export default definition
package/index.js CHANGED
@@ -1,8 +1,9 @@
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
 
5
- require('./notification.js')
6
- require('./settings.js')
6
+ import './notification.js'
7
+ import './settings.js'
7
8
 
8
- module.exports = definition
9
+ export default definition
package/notification.js CHANGED
@@ -1,6 +1,7 @@
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
7
  const Notification = definition.model({
@@ -369,4 +370,4 @@ definition.action({
369
370
  }
370
371
  })
371
372
 
372
- module.exports = definition
373
+ export default definition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/notification-service",
3
- "version": "0.3.41",
3
+ "version": "0.4.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,7 +21,8 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "0.7.39"
24
+ "@live-change/framework": "0.8.0"
25
25
  },
26
- "gitHead": "cf7a4196465c134c4685571526754330d7c70475"
26
+ "gitHead": "74215655da2a4bc3ef73c62e5d79d988276165e8",
27
+ "type": "module"
27
28
  }
package/settings.js CHANGED
@@ -1,7 +1,7 @@
1
- const App = require("@live-change/framework")
1
+ import App from '@live-change/framework'
2
2
  const app = App.app()
3
3
 
4
- const definition = require('./definition.js')
4
+ import definition from './definition.js'
5
5
  const config = definition.config
6
6
 
7
7
  async function clientOwnsContact({ user }, { contactType, contact }) {
@@ -28,4 +28,4 @@ const NotificationSetting = definition.model({
28
28
  }
29
29
  })
30
30
 
31
- module.exports = { NotificationSetting }
31
+ export { NotificationSetting }