pinokiod 3.8.42 → 3.8.43

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/kernel/caddy.js CHANGED
@@ -174,6 +174,7 @@ class Caddy {
174
174
  // proxy proxy => proxy
175
175
  if (key === "url") {
176
176
  let namespaced_url = `${name}.${account}.localhost`.toLowerCase()
177
+ console.log("Adding namespaced_url 1", { name, account, namespaced_url })
177
178
  //if (!this._mapping[internal_ip]) {
178
179
  // this._mapping[internal_ip] = new Set()
179
180
  //}
@@ -211,6 +212,7 @@ class Caddy {
211
212
  })
212
213
  }
213
214
  let namespaced_url = `${key}.${name}.${account}.localhost`.toLowerCase()
215
+ console.log("Adding namespaced_url 2", { name, account, namespaced_url })
214
216
  //if (!this._mapping[internal_ip]) {
215
217
  // this._mapping[internal_ip] = new Set()
216
218
  //}
@@ -285,6 +287,7 @@ class Caddy {
285
287
 
286
288
 
287
289
  let namespaced_url = `${name}.localhost`.toLowerCase()
290
+ console.log("Adding namespaced_url 3", { name, namespaced_url })
288
291
  let current_lan_ip = this.kernel.peer.current_ip
289
292
  let current_lan_username = this.kernel.peer.account(current_lan_ip)
290
293
  if (!this._mapping[current_lan_ip]) {
@@ -319,6 +322,7 @@ class Caddy {
319
322
  })
320
323
  }
321
324
  let namespaced_url = `${key}.${name}.localhost`.toLowerCase()
325
+ console.log("Adding namespaced_url 4", { key, name, namespaced_url })
322
326
 
323
327
  let current_lan_ip = this.kernel.peer.current_ip
324
328
  let current_lan_username = this.kernel.peer.account(current_lan_ip)
@@ -431,12 +435,21 @@ class Caddy {
431
435
  // insert the $account value right before the last part (1234.localhost => 1234.x.localhost)
432
436
  let chunks = https_domain.split(".")
433
437
  let namespaced_url
434
- if (chunks.length === 3) {
438
+
439
+ if (https_domain.endsWith(`${account}.localhost`)) {
440
+ // already accountified
435
441
  namespaced_url = https_domain
436
- } else if (chunks.length === 2) {
442
+ } else {
437
443
  chunks.splice(chunks.length - 1, 0, account)
438
444
  namespaced_url = chunks.join(".")
439
445
  }
446
+
447
+ // if (chunks.length === 3) {
448
+ // namespaced_url = https_domain
449
+ // } else if (chunks.length === 2) {
450
+ // chunks.splice(chunks.length - 1, 0, account)
451
+ // namespaced_url = chunks.join(".")
452
+ // }
440
453
  console.log("##x", { chunks, namespaced_url, https_domain })
441
454
 
442
455
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.42",
3
+ "version": "3.8.43",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -205,6 +205,7 @@ td:first-child, th:first-child {
205
205
  text-transform: uppercase;
206
206
  }
207
207
  .container-row td.title {
208
+ overflow-wrap: break-word;
208
209
  }
209
210
  .container-row td {
210
211
  font-size: 14px;