@live-change/blog-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/definition.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 relationsPlugin = require('@live-change/relations-plugin')
4
+ import relationsPlugin from '@live-change/relations-plugin'
4
5
  const accessControlService = require('@live-change/access-control-service')
5
6
 
6
7
  const definition = app.createServiceDefinition({
@@ -8,4 +9,4 @@ const definition = app.createServiceDefinition({
8
9
  use: [ relationsPlugin, accessControlService ]
9
10
  })
10
11
 
11
- module.exports = definition
12
+ export default definition
package/index.js CHANGED
@@ -1,8 +1,8 @@
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
 
6
6
  const { Post } = require("./model.js")
7
7
 
8
- module.exports = definition
8
+ export default definition
package/metadata.js CHANGED
@@ -1,6 +1,6 @@
1
- const App = require("@live-change/framework")
1
+ import App from '@live-change/framework'
2
2
  const app = App.app()
3
- const definition = require('./definition.js')
3
+ import definition from './definition.js'
4
4
 
5
5
  const config = definition.config
6
6
  const {
package/model.js CHANGED
@@ -1,6 +1,6 @@
1
- const App = require("@live-change/framework")
1
+ import App from '@live-change/framework'
2
2
  const app = App.app()
3
- const definition = require('./definition.js')
3
+ import definition from './definition.js'
4
4
 
5
5
  const config = definition.config
6
6
  const {
@@ -37,4 +37,4 @@ const Post = definition.model({
37
37
  }
38
38
  })
39
39
 
40
- module.exports = { Post }
40
+ export { Post }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/blog-service",
3
- "version": "0.3.40",
3
+ "version": "0.4.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,12 +21,13 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "0.7.38",
25
- "@live-change/relations-plugin": "0.7.38",
24
+ "@live-change/framework": "0.8.0",
25
+ "@live-change/relations-plugin": "0.8.0",
26
26
  "lru-cache": "^7.12.0",
27
27
  "pluralize": "^8.0.0",
28
28
  "progress-stream": "^2.0.0",
29
29
  "prosemirror-model": "^1.18.1"
30
30
  },
31
- "gitHead": "d72cc68ee4c46242e5f6a51c303be4177a1c33cf"
31
+ "gitHead": "87010b19907140a326943f22cd538eafdc9c28f1",
32
+ "type": "module"
32
33
  }