@live-change/url-service 0.2.49 → 0.2.51

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.
Files changed (3) hide show
  1. package/index.js +3 -1
  2. package/model.js +1 -2
  3. 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
- return UrlToTarget.rangePath({ targetType, domain, path }, App.extractRange(params))
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}":"${domain}":${JSON.stringify(path)}:"${urlType}"_"${target}"`, target, urlType })
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.49",
3
+ "version": "0.2.51",
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.12",
25
- "@live-change/relations-plugin": "0.6.12",
24
+ "@live-change/framework": "0.6.14",
25
+ "@live-change/relations-plugin": "0.6.14",
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": "f95b94a51d134dda63ab6f8a42b16a9b26c5dbfb"
31
+ "gitHead": "0f25467a8e4d5050355b407aca0060b08824f024"
32
32
  }