@live-change/url-service 0.8.51 → 0.8.53

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 (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -131,7 +131,7 @@ async function generateUrl(props, emit) {
131
131
  let path = ''
132
132
  let random = false
133
133
  if(props.path) {
134
- path = path
134
+ path = props.path
135
135
  const cutLength = maxLength - sufixLength/// because max id size
136
136
  if(path.length > cutLength) {
137
137
  let lastSep = path.lastIndexOf('-')
@@ -164,7 +164,7 @@ async function generateUrl(props, emit) {
164
164
  console.log("TRYING PATH", prefix + path + suffix)
165
165
  const res = await UrlToTarget.rangeGet([props.targetType, props.domain, fullPath])
166
166
  const count = res?.length ?? 0
167
- if(count == 0) {
167
+ if(count === 0) {
168
168
  //Url.create({ id: `${group}_${path}`, group, path: prefix + path + suffix, to: props.to || null })
169
169
  created = true
170
170
  } else {
@@ -370,7 +370,7 @@ definition.action({
370
370
  },
371
371
  queuedBy: 'targetType',
372
372
  async execute({ targetType, target, domain, path, redirect }, { client, service }, emit) {
373
- while(path[0] == '/') path = path.slice(1)
373
+ while(path[0] === '/') path = path.slice(1)
374
374
 
375
375
  const res = await UrlToTarget.rangeGet([targetType, domain, path])
376
376
  const count = res?.length ?? 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/url-service",
3
- "version": "0.8.51",
3
+ "version": "0.8.53",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,12 +22,12 @@
22
22
  },
23
23
  "type": "module",
24
24
  "dependencies": {
25
- "@live-change/framework": "^0.8.51",
26
- "@live-change/relations-plugin": "^0.8.51",
25
+ "@live-change/framework": "^0.8.53",
26
+ "@live-change/relations-plugin": "^0.8.53",
27
27
  "lru-cache": "^7.12.0",
28
28
  "pluralize": "^8.0.0",
29
29
  "progress-stream": "^2.0.0",
30
30
  "prosemirror-model": "^1.18.1"
31
31
  },
32
- "gitHead": "ba8da813894eeb717223aa8d5e364649e4ac0347"
32
+ "gitHead": "39422adadd1863fa396fc4e875936e09428d6cf1"
33
33
  }