6 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
e3781cfd4d 1.0.9 2019-05-28 23:29:25 +02:00
eca90bdf64 fix(core): update 2019-05-28 23:29:24 +02:00
5 changed files with 722 additions and 73 deletions

View File

@ -20,13 +20,6 @@ puppeteer wrapper for easy tasks
Use TypeScript for best in class instellisense.
For further information read the linked docs at the top of this README.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
[![repo-footer](https://pushrocks.gitlab.io/assets/repo-footer.svg)](https://push.rocks)
For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)

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.8",
"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 };