@@ -105,7 +105,7 @@ export class MiaoScriptConsole implements Console {
 | 
			
		||||
                        let sourceMappingURL = lastLine.split('sourceMappingURL=', 2)[1]
 | 
			
		||||
                        if (sourceMappingURL.startsWith('data:application/json;base64,')) {
 | 
			
		||||
                            sourceContent = String.fromCharCode(...Array.from(base64.toByteArray(sourceMappingURL.split(',', 2)[1])))
 | 
			
		||||
                        } else if (sourceMappingURL.startsWith('http')) {
 | 
			
		||||
                        } else if (sourceMappingURL.startsWith('http://') || sourceMappingURL.startsWith('https://')) {
 | 
			
		||||
                            // TODO
 | 
			
		||||
                        } else {
 | 
			
		||||
                            let file = Paths.get(Paths.get(fileName, '..', sourceMappingURL).toFile().getCanonicalPath()).toFile()
 | 
			
		||||
 
 | 
			
		||||
@@ -73,6 +73,12 @@ export namespace server {
 | 
			
		||||
        getService(service: string): any {
 | 
			
		||||
            throw new Error("Method not implemented.")
 | 
			
		||||
        }
 | 
			
		||||
        broadcast(message: string, permission: string) {
 | 
			
		||||
            throw new Error("Method not implemented.")
 | 
			
		||||
        }
 | 
			
		||||
        broadcastMessage(message: string) {
 | 
			
		||||
            throw new Error("Method not implemented.")
 | 
			
		||||
        }
 | 
			
		||||
        dispatchCommand(sender: string | any, command: string): boolean {
 | 
			
		||||
            throw new Error("Method not implemented.")
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,7 @@ export namespace task {
 | 
			
		||||
                this.cacheTasks.delete(taskId)
 | 
			
		||||
                let ownerName = task.getOwner()?.description.name
 | 
			
		||||
                if (ownerName && this.pluginCacheTasks.has(ownerName)) {
 | 
			
		||||
                    this.pluginCacheTasks.get(ownerName).delete(taskId)
 | 
			
		||||
                    this.pluginCacheTasks.get(ownerName)?.delete(taskId)
 | 
			
		||||
                }
 | 
			
		||||
            })
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user