fix(core): update
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartbrowser',
|
||||
version: '2.0.5',
|
||||
name: '@push.rocks/smartbrowser',
|
||||
version: '2.0.6',
|
||||
description: 'simplified puppeteer'
|
||||
}
|
||||
|
@ -45,9 +45,9 @@ export class SmartBrowser {
|
||||
await page.goto(urlArg, {
|
||||
waitUntil: 'networkidle2',
|
||||
});
|
||||
const screenshotBuffer = await page.screenshot({
|
||||
const screenshotBuffer = (await page.screenshot({
|
||||
encoding: 'binary',
|
||||
}) as Buffer;
|
||||
})) as Buffer;
|
||||
await page.close();
|
||||
return {
|
||||
name: pageId,
|
||||
|
@ -1,7 +1,7 @@
|
||||
// pushrocks scope
|
||||
import * as smartpdf from '@pushrocks/smartpdf';
|
||||
import * as smartpuppeteer from '@pushrocks/smartpuppeteer';
|
||||
import * as smartunique from '@pushrocks/smartunique';
|
||||
import * as smartpdf from '@push.rocks/smartpdf';
|
||||
import * as smartpuppeteer from '@push.rocks/smartpuppeteer';
|
||||
import * as smartunique from '@push.rocks/smartunique';
|
||||
|
||||
export { smartpdf, smartpuppeteer, smartunique };
|
||||
|
||||
|
Reference in New Issue
Block a user