@capgo/capacitor-updater 4.0.0-alpha.37 → 4.0.0-alpha.38

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.
@@ -47,7 +47,7 @@ public class CapacitorUpdater {
47
47
  private static final String bundleDirectory = "versions";
48
48
 
49
49
  public static final String TAG = "Capacitor-updater";
50
- public static final String pluginVersion = "4.0.0-alpha.37";
50
+ public static final String pluginVersion = "4.0.0-alpha.38";
51
51
 
52
52
  public SharedPreferences.Editor editor;
53
53
  public SharedPreferences prefs;
@@ -149,7 +149,7 @@ extension CustomError: LocalizedError {
149
149
 
150
150
  public let TAG = "✨ Capacitor-updater:";
151
151
  public let CAP_SERVER_PATH = "serverBasePath"
152
- public let pluginVersion = "4.0.0-alpha.37"
152
+ public let pluginVersion = "4.0.0-alpha.38"
153
153
  public var statsUrl = ""
154
154
  public var appId = ""
155
155
  public var deviceID = UIDevice.current.identifierForVendor?.uuidString ?? ""
@@ -402,7 +402,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
402
402
  let _ = self.implementation.setNextBundle(next: next.getId())
403
403
  } catch {
404
404
  print("\(self.implementation.TAG) Error downloading file", error.localizedDescription)
405
- self.notifyListeners("downloadFailed", data: ["version": latestVersionName])
405
+ self.notifyListeners("downloadFailed", data: ["version": latestVersionName ?? ""])
406
406
  }
407
407
  }
408
408
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "4.0.0-alpha.37",
3
+ "version": "4.0.0-alpha.38",
4
4
  "license": "AGPL-3.0-only",
5
5
  "description": "OTA update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",