2 Commits

Author SHA1 Message Date
8853eecbb9 1.0.11 2019-05-29 14:14:26 +02:00
1bfca4456c fix(core): update 2019-05-29 14:14:26 +02:00
4 changed files with 24 additions and 4 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartbrowser",
"version": "1.0.10",
"version": "1.0.11",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartbrowser",
"version": "1.0.10",
"version": "1.0.11",
"description": "simplified puppeteer",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

View File

@ -1,7 +1,21 @@
import * as plugins from './smartbrowser.plugins';
export class SmartBrowser {
pdfFromPage() {
puppeteer: plugins.puppeteer.Browser;
smartpdf: plugins.smartpdf.SmartPdf;
pdfFromPage(urlArg: string) {
this.smartpdf.getFullWebsiteAsSinglePdf(urlArg: );
}
public async start() {
this.smartpdf = new plugins.smartpdf.SmartPdf();
this.smartpdf.init();
}
/**
* stops the smartbrowser instance
*/
stop() {
this.smartpdf.close();
}
}

View File

@ -1,3 +1,9 @@
// pushrocks scope
import * as smartpdf from '@pushrocks/smartpdf';
export { smartpdf };
// third party
import * as puppeteer from 'puppeteer';
export { puppeteer };