@capgo/capacitor-updater 6.1.20 → 6.1.22

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.
@@ -53,7 +53,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
53
53
  private static final String channelUrlDefault =
54
54
  "https://api.capgo.app/channel_self";
55
55
 
56
- private final String PLUGIN_VERSION = "6.1.20";
56
+ private final String PLUGIN_VERSION = "6.1.22";
57
57
  private static final String DELAY_CONDITION_PREFERENCES = "";
58
58
 
59
59
  private SharedPreferences.Editor editor;
@@ -609,7 +609,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
609
609
  } else {
610
610
  call.resolve(downloaded.toJSON());
611
611
  }
612
- } catch (final IOException e) {
612
+ } catch (final Exception e) {
613
613
  Log.e(CapacitorUpdater.TAG, "Failed to download from: " + url, e);
614
614
  call.reject("Failed to download from: " + url, e);
615
615
  final JSObject ret = new JSObject();
@@ -16,7 +16,7 @@ import SwiftyRSA
16
16
  @objc(CapacitorUpdaterPlugin)
17
17
  public class CapacitorUpdaterPlugin: CAPPlugin {
18
18
  public var implementation = CapacitorUpdater()
19
- private let PLUGIN_VERSION: String = "6.1.20"
19
+ private let PLUGIN_VERSION: String = "6.1.22"
20
20
  static let updateUrlDefault = "https://api.capgo.app/updates"
21
21
  static let statsUrlDefault = "https://api.capgo.app/stats"
22
22
  static let channelUrlDefault = "https://api.capgo.app/channel_self"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "6.1.20",
3
+ "version": "6.1.22",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Live update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",