MOBILE-2163 core: Update app-scripts and fix tslint errors

main
Dani Palou 2018-05-29 15:59:39 +02:00
parent d241e1d253
commit 2c519288ce
4 changed files with 1540 additions and 198 deletions

1730
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -82,7 +82,7 @@
"zone.js": "0.8.18" "zone.js": "0.8.18"
}, },
"devDependencies": { "devDependencies": {
"@ionic/app-scripts": "^3.1.8", "@ionic/app-scripts": "3.1.9",
"gulp": "^3.9.1", "gulp": "^3.9.1",
"gulp-clip-empty-files": "^0.1.2", "gulp-clip-empty-files": "^0.1.2",
"gulp-rename": "^1.2.2", "gulp-rename": "^1.2.2",

View File

@ -60,7 +60,7 @@ export class CoreCourseDownloadModuleMainFileDirective implements OnInit {
if (this.module) { if (this.module) {
// We already have the module. // We already have the module.
promise = Promise.resolve(module); promise = Promise.resolve(this.module);
} else { } else {
// Try to get the module from cache. // Try to get the module from cache.
this.moduleId = typeof this.moduleId == 'string' ? parseInt(this.moduleId, 10) : this.moduleId; this.moduleId = typeof this.moduleId == 'string' ? parseInt(this.moduleId, 10) : this.moduleId;

View File

@ -125,7 +125,7 @@ export class FileTransferObjectMock extends FileTransferObject {
}; };
xhr.onerror = (err): void => { xhr.onerror = (err): void => {
reject(new FileTransferError(-1, source, target, xhr.status, xhr.statusText)); reject(new FileTransferErrorMock(-1, source, target, xhr.status, xhr.statusText, null));
}; };
xhr.onload = (): void => { xhr.onload = (): void => {
@ -306,7 +306,7 @@ export class FileTransferObjectMock extends FileTransferObject {
this.reject = reject; this.reject = reject;
xhr.onerror = (): void => { xhr.onerror = (): void => {
reject(new FileTransferError(-1, fileUrl, url, xhr.status, xhr.statusText)); reject(new FileTransferErrorMock(-1, fileUrl, url, xhr.status, xhr.statusText, null));
}; };
xhr.onload = (): void => { xhr.onload = (): void => {