Try to fix external js issue
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				FarmMaps.Develop/FarmMapsLib/develop This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	FarmMaps.Develop/FarmMapsLib/develop This commit looks good
				
			This commit is contained in:
		| @@ -12,9 +12,7 @@ pipeline { | |||||||
|     } |     } | ||||||
|     stage('build'){ |     stage('build'){ | ||||||
|       steps { |       steps { | ||||||
|         sh '''ng build common |         sh '''ng build common''' | ||||||
|         cp projects/common/src/assets/resumable.js dist/common/fesm2015 |  | ||||||
|         cp projects/common/src/assets/resumable.js dist/common/fesm5''' |  | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|     stage('npm publish'){ |     stage('npm publish'){ | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ import { Subject ,  of } from 'rxjs'; | |||||||
| import { HttpClient, HttpParams } from "@angular/common/http"; | import { HttpClient, HttpParams } from "@angular/common/http"; | ||||||
|  |  | ||||||
|  |  | ||||||
| declare var require; // avoid missing property error on require | declare var Resumable; // avoid missing property error on require | ||||||
|  |  | ||||||
| @Injectable() | @Injectable() | ||||||
| export class ResumableFileUploadService { | export class ResumableFileUploadService { | ||||||
| @@ -26,8 +26,8 @@ export class ResumableFileUploadService { | |||||||
|  |  | ||||||
|   init = function () { |   init = function () { | ||||||
|     this.ref |     this.ref | ||||||
|     require.ensure([], require => { |    // require.ensure([], require => { | ||||||
|       let Resumable = require('./resumable.js'); |       //let Resumable = require('./resumable.js'); | ||||||
|       var other = this; |       var other = this; | ||||||
|       this.resumable = new Resumable( |       this.resumable = new Resumable( | ||||||
|         { |         { | ||||||
| @@ -105,7 +105,7 @@ export class ResumableFileUploadService { | |||||||
|       if (this.dropElement) this.resumable.assignDrop(this.dropElement); |       if (this.dropElement) this.resumable.assignDrop(this.dropElement); | ||||||
|       if (this.fileBrowseElement) this.resumable.assignBrowse(this.fileBrowseElement); |       if (this.fileBrowseElement) this.resumable.assignBrowse(this.fileBrowseElement); | ||||||
|       if (this.directoryBrowseElement) this.resumable.assignBrowse(this.directoryBrowseElement, true); |       if (this.directoryBrowseElement) this.resumable.assignBrowse(this.directoryBrowseElement, true); | ||||||
|     }); |      | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   addFiles = (files: any[], event: any, geoRefJson?: string, attributes?: any) => { |   addFiles = (files: any[], event: any, geoRefJson?: string, attributes?: any) => { | ||||||
|   | |||||||
| @@ -11,7 +11,7 @@ | |||||||
|     "emitDecoratorMetadata": true, |     "emitDecoratorMetadata": true, | ||||||
|     "experimentalDecorators": true, |     "experimentalDecorators": true, | ||||||
|     "importHelpers": true, |     "importHelpers": true, | ||||||
|     "types": [], |     "types": ["node_modules/resumable/resumable.js"], | ||||||
|     "lib": [ |     "lib": [ | ||||||
|       "dom", |       "dom", | ||||||
|       "es2018" |       "es2018" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user