cordova-plugin-ionic
Advanced tools
Comparing version 5.0.10-0 to 5.0.10
@@ -50,3 +50,3 @@ "use strict"; | ||
this.SNAPSHOT_CACHE = 'ionic_built_snapshots'; | ||
this.PLUGIN_VERSION = '5.0.10-0'; | ||
this.PLUGIN_VERSION = '5.0.10'; | ||
this.appInfo = appInfo; | ||
@@ -74,2 +74,3 @@ this._savedPreferences = preferences; | ||
catch (e) { | ||
console.warn(e); | ||
console.warn('Sync failed. Defaulting to last available version.'); | ||
@@ -91,2 +92,3 @@ } | ||
catch (e) { | ||
console.warn(e); | ||
console.warn('Background sync failed. Unable to check for new updates.'); | ||
@@ -158,3 +160,6 @@ } | ||
}; | ||
const resp = yield fetch(endpoint, { | ||
const timeout = new Promise((resolve, reject) => { | ||
setTimeout(reject, 5000, 'Request timed out. The device maybe offline.'); | ||
}); | ||
const request = fetch(endpoint, { | ||
method: 'POST', | ||
@@ -166,2 +171,3 @@ headers: new Headers({ | ||
}); | ||
const resp = yield Promise.race([timeout, request]); | ||
let jsonResp; | ||
@@ -168,0 +174,0 @@ if (resp.status < 500) { |
{ | ||
"name": "cordova-plugin-ionic", | ||
"version": "5.0.10-0", | ||
"version": "5.0.10", | ||
"cordova": { | ||
@@ -5,0 +5,0 @@ "id": "cordova-plugin-ionic", |
@@ -61,3 +61,3 @@ /// <reference path="../types/IonicCordova.d.ts" /> | ||
public SNAPSHOT_CACHE = 'ionic_built_snapshots'; | ||
public PLUGIN_VERSION = '5.0.10-0'; | ||
public PLUGIN_VERSION = '5.0.10'; | ||
@@ -87,2 +87,3 @@ constructor(appInfo: IAppInfo, preferences: ISavedPreferences) { | ||
} catch (e) { | ||
console.warn(e); | ||
console.warn('Sync failed. Defaulting to last available version.'); | ||
@@ -103,2 +104,3 @@ } | ||
} catch (e) { | ||
console.warn(e); | ||
console.warn('Background sync failed. Unable to check for new updates.'); | ||
@@ -171,3 +173,6 @@ } | ||
const resp = await fetch(endpoint, { | ||
const timeout = new Promise( (resolve, reject) => { | ||
setTimeout(reject, 5000, 'Request timed out. The device maybe offline.'); | ||
}); | ||
const request = fetch(endpoint, { | ||
method: 'POST', | ||
@@ -180,2 +185,4 @@ headers: new Headers({ | ||
const resp = await (Promise.race([timeout, request]) as Promise<Response>); | ||
let jsonResp; | ||
@@ -182,0 +189,0 @@ if (resp.status < 500) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
148353
2083
1
4