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/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.29" ;
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