Merge pull request #1323 from dpalou/MOBILE-2163
MOBILE-2163 core: Update app-scripts and fix tslint errorsmain
commit
3802c29878
File diff suppressed because it is too large
Load Diff
|
@ -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",
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in New Issue