fix(core): update
This commit is contained in:
parent
b337e4c779
commit
1bfca4456c
@ -40,4 +40,4 @@
|
|||||||
"npmextra.json",
|
"npmextra.json",
|
||||||
"readme.md"
|
"readme.md"
|
||||||
]
|
]
|
||||||
}
|
}
|
18
ts/index.ts
18
ts/index.ts
@ -1,7 +1,21 @@
|
|||||||
import * as plugins from './smartbrowser.plugins';
|
import * as plugins from './smartbrowser.plugins';
|
||||||
|
|
||||||
export class SmartBrowser {
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
// pushrocks scope
|
||||||
|
import * as smartpdf from '@pushrocks/smartpdf';
|
||||||
|
|
||||||
|
export { smartpdf };
|
||||||
|
|
||||||
|
// third party
|
||||||
import * as puppeteer from 'puppeteer';
|
import * as puppeteer from 'puppeteer';
|
||||||
|
|
||||||
export { puppeteer };
|
export { puppeteer };
|
||||||
|
Loading…
Reference in New Issue
Block a user