fix(core): update

This commit is contained in:
2023-09-11 10:18:45 +02:00
parent 0e6103cb58
commit 0fea2e6879
12 changed files with 2674 additions and 1288 deletions

View File

@ -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'
}

View File

@ -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,

View File

@ -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 };