@live-change/user-identification-service 0.3.41 → 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/definition.js CHANGED
@@ -1,11 +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 relationsPlugin = require('@live-change/relations-plugin')
4
- const userService = require('@live-change/user-service')
4
+ import relationsPlugin from '@live-change/relations-plugin'
5
+ import userService from '@live-change/user-service'
5
6
 
6
7
  const definition = app.createServiceDefinition({
7
8
  name: "userIdentification",
8
9
  use: [ relationsPlugin, userService ]
9
10
  })
10
11
 
11
- module.exports = definition
12
+ export default definition
package/identification.js CHANGED
@@ -1,4 +1,4 @@
1
- const definition = require('./definition.js')
1
+ import definition from './definition.js'
2
2
  const config = definition.config
3
3
 
4
4
  const Image = definition.foreignModel('image', 'Image')
@@ -30,4 +30,4 @@ const Identification = definition.model({
30
30
  }
31
31
  })
32
32
 
33
- module.exports = { Identification }
33
+ export { Identification }
package/index.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 definition = require('./definition.js')
4
+ import definition from './definition.js'
4
5
 
5
- require('./identification.js')
6
+ import './identification.js'
6
7
 
7
- module.exports = definition
8
+ export default definition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/user-identification-service",
3
- "version": "0.3.41",
3
+ "version": "0.4.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,10 +20,11 @@
20
20
  "name": "Michał Łaszczewski",
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
+ "type": "module",
23
24
  "dependencies": {
24
- "@live-change/framework": "0.7.39",
25
- "@live-change/relations-plugin": "0.7.39",
25
+ "@live-change/framework": "0.8.0",
26
+ "@live-change/relations-plugin": "0.8.0",
26
27
  "pluralize": "^8.0.0"
27
28
  },
28
- "gitHead": "cf7a4196465c134c4685571526754330d7c70475"
29
+ "gitHead": "87010b19907140a326943f22cd538eafdc9c28f1"
29
30
  }