Skip to content

Commit

Permalink
Fixing a couple of issues here...
Browse files Browse the repository at this point in the history
src/LoginModules.ts:14:20 - error TS2503: Cannot find namespace 'puppeteer'.
src/TokenCache.ts:60:20 - error TS2503: Cannot find namespace 'puppeteer'.
and...
src/TokenCache.ts:99:24 - error TS2339: Property 'waitFor' does not exist on type 'Page'.

These are fixed by simple oneliner changes.
  • Loading branch information
hakt0-r authored Jun 24, 2023
1 parent d1c0391 commit c46f219
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/LoginModules.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { logger } from './Logger';
import puppeteer from 'puppeteer';
import * as puppeteer from 'puppeteer';
import { getPuppeteerChromiumPath } from './PuppeteerHelper';
import { chromeCacheFolder } from './destreamer';
import { argv } from './CommandLineParser';
Expand Down
4 changes: 2 additions & 2 deletions src/TokenCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { StreamSession } from './Types';

import fs from 'fs';
import jwtDecode from 'jwt-decode';
import puppeteer from 'puppeteer';
import * as puppeteer from 'puppeteer';


export class TokenCache {
Expand Down Expand Up @@ -96,7 +96,7 @@ export async function refreshSession(url: string): Promise<StreamSession> {

session = null;
tries++;
await page.waitFor(3000);
await page.waitForTimeout(3000);
}
}
browser.close();
Expand Down

0 comments on commit c46f219

Please sign in to comment.