@vibelet/cli 1.2.39 → 1.2.41
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/dist/index.cjs +1 -1
- package/dist/runtime-version.cjs +1 -1
- package/dist/vibelet.mjs +7 -6
- package/package.json +1 -1
package/dist/runtime-version.cjs
CHANGED
|
@@ -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.
|
|
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.41"}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
|
-
|
|
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
|
-
|
|
7637
|
-
|
|
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
|
|