@live-change/url-service 0.2.49 → 0.2.52
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/index.js +3 -1
- package/model.js +1 -2
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -44,7 +44,9 @@ definition.view({
|
|
|
44
44
|
},
|
|
45
45
|
daoPath(params, { client, service }, method) {
|
|
46
46
|
const { targetType, domain, path } = params
|
|
47
|
-
|
|
47
|
+
const dp = UrlToTarget.rangePath([ targetType, domain, path ], App.extractRange(params))
|
|
48
|
+
//console.log("URLS PATH", params, '=>', dp)
|
|
49
|
+
return dp
|
|
48
50
|
}
|
|
49
51
|
})
|
|
50
52
|
|
package/model.js
CHANGED
|
@@ -21,7 +21,6 @@ const Canonical = definition.model({
|
|
|
21
21
|
name: 'Canonical',
|
|
22
22
|
propertyOfAny: {
|
|
23
23
|
readAccessControl: { /// everyone can read canonical urls
|
|
24
|
-
roles: urlReaderRoles
|
|
25
24
|
},
|
|
26
25
|
resetAccessControl: {
|
|
27
26
|
roles: urlWriterRoles
|
|
@@ -63,7 +62,7 @@ const UrlToTarget = definition.index({
|
|
|
63
62
|
name: 'Urls',
|
|
64
63
|
function: async function(input, output) {
|
|
65
64
|
const urlMapper = urlType => ({targetType, domain, path, target}) =>
|
|
66
|
-
({ id: `"${targetType}"
|
|
65
|
+
({ id: `"${targetType}":${JSON.stringify(domain)}:${JSON.stringify(path)}_"${target}"`, target, type: urlType })
|
|
67
66
|
const redirectMapper = urlMapper('redirect')
|
|
68
67
|
const canonicalMapper = urlMapper('canonical')
|
|
69
68
|
await input.table('url_Redirect').onChange(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/url-service",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.52",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"url": "https://www.viamage.com/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/framework": "0.6.
|
|
25
|
-
"@live-change/relations-plugin": "0.6.
|
|
24
|
+
"@live-change/framework": "0.6.15",
|
|
25
|
+
"@live-change/relations-plugin": "0.6.15",
|
|
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": "
|
|
31
|
+
"gitHead": "1b64dcc618e1686c98d5e14e128ee40e49cb5a84"
|
|
32
32
|
}
|