()
| 107 | } |
| 108 | } |
| 109 | async puppeteer_browser_close() { |
| 110 | try { |
| 111 | if (this.browser) { |
| 112 | await this.browser.close(); |
| 113 | // setting this as null so we dont get closed instance the next time |
| 114 | this.browser = null; |
| 115 | } |
| 116 | } catch (e: any) { |
| 117 | throw new Error("Error while closing browser: " + e.message); |
| 118 | } |
| 119 | } |
| 120 | getFileName(url: string) { |
| 121 | try { |
| 122 | const parsedURL = new URL(url); |
no outgoing calls
no test coverage detected