cordova-plugin-ionic
Advanced tools
Comparing version 5.2.7 to 5.2.8-0
@@ -34,3 +34,3 @@ const exec = require('child_process').exec; | ||
console.log('Generating intial manifest for Ionic Deploy...'); | ||
console.log('Generating initial manifest for Ionic Deploy...'); | ||
exec( | ||
@@ -45,3 +45,3 @@ 'ionic deploy manifest --no-interactive', | ||
if(err) { | ||
console.error('There was an error generating the intial manifest of files for the deploy plugin.'); | ||
console.error('There was an error generating the initial manifest of files for the deploy plugin.'); | ||
reject() | ||
@@ -48,0 +48,0 @@ } |
{ | ||
"name": "cordova-plugin-ionic", | ||
"version": "5.2.7", | ||
"version": "5.2.8-0", | ||
"cordova": { | ||
@@ -5,0 +5,0 @@ "id": "cordova-plugin-ionic", |
@@ -170,3 +170,3 @@ interface Window { | ||
*/ | ||
updateMethod?: boolean; | ||
updateMethod?: 'none' | 'auto' | 'background'; | ||
} | ||
@@ -173,0 +173,0 @@ |
@@ -66,3 +66,3 @@ /// <reference path="../types/IonicCordova.d.ts" /> | ||
private MANIFEST_FILE = 'pro-manifest.json'; | ||
public PLUGIN_VERSION = '5.2.7'; | ||
public PLUGIN_VERSION = '5.2.8-0'; | ||
@@ -253,2 +253,6 @@ constructor(appInfo: IAppInfo, preferences: ISavedPreferences) { | ||
const maxBatch = 20; | ||
let numberBatches = Math.round(manifest.length / maxBatch); | ||
if (manifest.length % maxBatch !== 0) { | ||
numberBatches = numberBatches + 1; | ||
} | ||
for (const entry of manifest) { | ||
@@ -258,3 +262,3 @@ if (downloads.length >= maxBatch) { | ||
await Promise.all(downloads); | ||
beforeDownloadTimer.diff(`downloaded batch ${count} of ${maxBatch} downloads. Done downloading ${count * 10} of ${manifest.length} files`); | ||
beforeDownloadTimer.diff(`downloaded batch ${count} of ${numberBatches} downloads. Done downloading ${count * maxBatch} of ${manifest.length} files`); | ||
downloads = []; | ||
@@ -265,4 +269,5 @@ } | ||
if (downloads.length) { | ||
count++; | ||
await Promise.all(downloads); | ||
beforeDownloadTimer.diff(`downloaded batch ${count} of ${downloads.length} downloads Done downloading all ${manifest.length} files`); | ||
beforeDownloadTimer.diff(`downloaded batch ${count} of ${numberBatches} downloads. Done downloading all ${manifest.length} files`); | ||
} | ||
@@ -269,0 +274,0 @@ beforeDownloadTimer.end(`Downloaded ${manifest.length} files`); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
181334
2491
2