mindwire 0.1.29 → 0.1.30
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/{chunk-QPZMGVY7.js → chunk-RN7ERVJ2.js} +29 -10
- package/dist/chunk-RN7ERVJ2.js.map +1 -0
- package/dist/cli.js +13 -9
- package/dist/cli.js.map +1 -1
- package/dist/computer/connection-flow.d.ts +3 -0
- package/dist/computer/controller-handoff.d.ts +6 -0
- package/dist/computer/lifecycle.d.ts +4 -0
- package/dist/computer/relay-health.d.ts +11 -0
- package/dist/computer.d.ts +5 -2
- package/dist/{controller-MNMIJHH5.js → controller-DIJKMWWU.js} +156 -11
- package/dist/controller-DIJKMWWU.js.map +1 -0
- package/dist/controller-handoff-4GXF4ATR.js +71 -0
- package/dist/controller-handoff-4GXF4ATR.js.map +1 -0
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -0
- package/package.json +7 -3
- package/dist/chunk-QPZMGVY7.js.map +0 -1
- package/dist/controller-MNMIJHH5.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -831,7 +831,16 @@ function computerPairingURI(invitation) {
|
|
|
831
831
|
}
|
|
832
832
|
|
|
833
833
|
// src/version.ts
|
|
834
|
-
var SDK_VERSION = "0.1.
|
|
834
|
+
var SDK_VERSION = "0.1.30" ;
|
|
835
|
+
function versionAtLeast(actual, desired) {
|
|
836
|
+
if (actual === desired) return true;
|
|
837
|
+
if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;
|
|
838
|
+
const a = actual.split(".").map(Number), b = desired.split(".").map(Number);
|
|
839
|
+
for (let i = 0; i < 3; i++) {
|
|
840
|
+
if (a[i] !== b[i]) return a[i] > b[i];
|
|
841
|
+
}
|
|
842
|
+
return true;
|
|
843
|
+
}
|
|
835
844
|
|
|
836
845
|
// src/daemon-binary.ts
|
|
837
846
|
function supported(platform, arch) {
|
|
@@ -1701,15 +1710,6 @@ var NotifyApi = class {
|
|
|
1701
1710
|
};
|
|
1702
1711
|
|
|
1703
1712
|
// src/target/host.ts
|
|
1704
|
-
function versionAtLeast(actual, desired) {
|
|
1705
|
-
if (actual === desired) return true;
|
|
1706
|
-
if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;
|
|
1707
|
-
const a = actual.split(".").map(Number), b = desired.split(".").map(Number);
|
|
1708
|
-
for (let i = 0; i < 3; i++) {
|
|
1709
|
-
if (a[i] !== b[i]) return a[i] > b[i];
|
|
1710
|
-
}
|
|
1711
|
-
return true;
|
|
1712
|
-
}
|
|
1713
1713
|
var versionCheckScript = String.raw`version_at_least() {
|
|
1714
1714
|
[ "$1" != "$2" ] || return 0
|
|
1715
1715
|
[[ "$1" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ "$2" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || return 1
|