@vibelet/cli 1.2.39 → 1.2.40

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.
@@ -1,2 +1,2 @@
1
- var s=require("node:fs"),n=require("node:path"),c="@vibelet/cli";function a(e){try{let r=JSON.parse((0,s.readFileSync)(e,"utf8"));if(r.name===c&&typeof r.version=="string"&&r.version.length>0)return r.version}catch{}return null}function p(){return"1.2.39"}var i=p();process.stdout.write(`${i}
1
+ var s=require("node:fs"),n=require("node:path"),c="@vibelet/cli";function a(e){try{let r=JSON.parse((0,s.readFileSync)(e,"utf8"));if(r.name===c&&typeof r.version=="string"&&r.version.length>0)return r.version}catch{}return null}function p(){return"1.2.40"}var i=p();process.stdout.write(`${i}
2
2
  `);
package/dist/vibelet.mjs CHANGED
@@ -6680,9 +6680,7 @@ function isIpv4Host(host) {
6680
6680
  function isTailscaleHost(host) {
6681
6681
  const normalized = normalizeHostValue(host.replace(/^https?:\/\//, '').replace(/\/.*$/, ''));
6682
6682
  if (normalized.endsWith('.ts.net')) return true;
6683
- if (!isIpv4Host(normalized)) return false;
6684
- const [first, second] = normalized.split('.').map(Number);
6685
- return first === 100 && second >= 64 && second <= 127;
6683
+ return false;
6686
6684
  }
6687
6685
 
6688
6686
  function isQuickTunnelHost(host) {
@@ -7633,9 +7631,11 @@ function isTailscaleHost(host) {
7633
7631
  if (host.endsWith('.ts.net')) {
7634
7632
  return true;
7635
7633
  }
7636
- if (!isIpv4Host(host)) {
7637
- return false;
7638
- }
7634
+ return false;
7635
+ }
7636
+
7637
+ function isSharedIpv4Host(host) {
7638
+ if (!isIpv4Host(host)) return false;
7639
7639
  const [first, second] = host.split('.').map(Number);
7640
7640
  return first === 100 && second >= 64 && second <= 127;
7641
7641
  }
@@ -7669,6 +7669,7 @@ function isTrustedCleartextHost(host) {
7669
7669
  return isLoopbackHost(normalized)
7670
7670
  || isLocalNetworkHost(normalized)
7671
7671
  || isTailscaleHost(normalized)
7672
+ || isSharedIpv4Host(normalized)
7672
7673
  || isPlainLocalHostname(normalized);
7673
7674
  }
7674
7675
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibelet/cli",
3
- "version": "1.2.39",
3
+ "version": "1.2.40",
4
4
  "description": "Cross-platform CLI for installing and running the Vibelet daemon",
5
5
  "homepage": "https://vibelet.icu",
6
6
  "files": [