@live-change/url-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 +6 -5
- package/index.js +4 -4
- package/model.js +3 -3
- package/package.json +5 -4
package/definition.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import App from '@live-change/framework'
|
|
2
|
+
const app = App.app()
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import relationsPlugin from '@live-change/relations-plugin'
|
|
5
|
+
import userService from '@live-change/user-service'
|
|
6
|
+
import accessControlService from '@live-change/access-control-service'
|
|
6
7
|
|
|
7
8
|
const definition = app.createServiceDefinition({
|
|
8
9
|
name: "url",
|
|
9
10
|
use: [ relationsPlugin, userService, accessControlService ]
|
|
10
11
|
})
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
export default definition
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import App from '@live-change/framework'
|
|
2
2
|
const app = App.app()
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
import definition from './definition.js'
|
|
5
5
|
const config = definition.config
|
|
6
6
|
const {
|
|
7
7
|
createFromTitle = (title) => {
|
|
@@ -14,7 +14,7 @@ const {
|
|
|
14
14
|
urlWriterRoles = ['writer']
|
|
15
15
|
} = config
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
import { Canonical, Redirect, UrlToTarget, UrlToTargetWithoutDomain } from "./model.js"
|
|
18
18
|
|
|
19
19
|
definition.view({
|
|
20
20
|
name: "urlsByTargetAndPath",
|
|
@@ -423,4 +423,4 @@ definition.action({
|
|
|
423
423
|
|
|
424
424
|
})
|
|
425
425
|
|
|
426
|
-
|
|
426
|
+
export default definition
|
package/model.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import App from '@live-change/framework'
|
|
2
2
|
const app = App.app()
|
|
3
|
-
|
|
3
|
+
import definition from './definition.js'
|
|
4
4
|
const config = definition.config
|
|
5
5
|
const {
|
|
6
6
|
urlReaderRoles = ['writer'],
|
|
@@ -98,4 +98,4 @@ const UrlToTargetWithoutDomain = definition.index({
|
|
|
98
98
|
}
|
|
99
99
|
})
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
export { Canonical, Redirect, UrlToTarget, UrlToTargetWithoutDomain }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/url-service",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,13 +20,14 @@
|
|
|
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.
|
|
25
|
-
"@live-change/relations-plugin": "0.
|
|
25
|
+
"@live-change/framework": "0.8.0",
|
|
26
|
+
"@live-change/relations-plugin": "0.8.0",
|
|
26
27
|
"lru-cache": "^7.12.0",
|
|
27
28
|
"pluralize": "^8.0.0",
|
|
28
29
|
"progress-stream": "^2.0.0",
|
|
29
30
|
"prosemirror-model": "^1.18.1"
|
|
30
31
|
},
|
|
31
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "87010b19907140a326943f22cd538eafdc9c28f1"
|
|
32
33
|
}
|