4 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
b337e4c779 1.0.10 2019-05-29 08:57:17 +02:00
53d56d2d8a fix(core): update 2019-05-29 08:57:17 +02:00
4 changed files with 722 additions and 66 deletions

759
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartbrowser",
"version": "1.0.9",
"version": "1.0.11",
"description": "simplified puppeteer",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
@ -19,6 +19,7 @@
},
"homepage": "https://gitlab.com/pushrocks/smartbrowser#README",
"dependencies": {
"@pushrocks/smartpdf": "^1.0.6",
"puppeteer": "^1.17.0"
},
"devDependencies": {

View File

@ -1,3 +1,21 @@
import * as plugins from './smartbrowser.plugins';
export class SmartBrowser {}
export class SmartBrowser {
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 };