Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
db4965c8f5 | |||
36a964d931 | |||
6d90f4c9b4 | |||
839eafd73f |
6331
package-lock.json
generated
6331
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartpdf",
|
"name": "@pushrocks/smartpdf",
|
||||||
"version": "3.0.6",
|
"version": "3.0.8",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "create pdfs on the fly",
|
"description": "create pdfs on the fly",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@ -13,23 +13,23 @@
|
|||||||
"build": "(tsbuild --web --allowimplicitany)"
|
"build": "(tsbuild --web --allowimplicitany)"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.63",
|
"@gitzone/tsbuild": "^2.1.65",
|
||||||
"@gitzone/tsrun": "^1.2.35",
|
"@gitzone/tsrun": "^1.2.35",
|
||||||
"@gitzone/tstest": "^1.0.71",
|
"@gitzone/tstest": "^1.0.73",
|
||||||
"@pushrocks/tapbundle": "^5.0.3",
|
"@pushrocks/tapbundle": "^5.0.4",
|
||||||
"@types/node": "^17.0.42"
|
"@types/node": "^18.7.14"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartfile": "^10.0.2",
|
"@pushrocks/smartfile": "^10.0.5",
|
||||||
"@pushrocks/smartnetwork": "^3.0.0",
|
"@pushrocks/smartnetwork": "^3.0.0",
|
||||||
"@pushrocks/smartpath": "^5.0.5",
|
"@pushrocks/smartpath": "^5.0.5",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^3.1.7",
|
||||||
"@pushrocks/smartpuppeteer": "^2.0.0",
|
"@pushrocks/smartpuppeteer": "^2.0.2",
|
||||||
"@pushrocks/smartunique": "^3.0.3",
|
"@pushrocks/smartunique": "^3.0.3",
|
||||||
"@tsclass/tsclass": "^4.0.15",
|
"@tsclass/tsclass": "^4.0.19",
|
||||||
"@types/express": "^4.17.13",
|
"@types/express": "^4.17.13",
|
||||||
"express": "^4.18.1",
|
"express": "^4.18.1",
|
||||||
"pdf-merger-js": "^3.4.0",
|
"pdf-merger-js": "^4.1.0",
|
||||||
"pdf2json": "^2.0.0"
|
"pdf2json": "^2.0.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartpdf',
|
name: '@pushrocks/smartpdf',
|
||||||
version: '3.0.6',
|
version: '3.0.8',
|
||||||
description: 'create pdfs on the fly'
|
description: 'create pdfs on the fly'
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,7 @@ export class SmartPdf {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async start(headlessBrowserArg?: plugins.smartpuppeteer.puppeteer.Browser) {
|
async start(headlessBrowserArg?: plugins.smartpuppeteer.puppeteer.Browser) {
|
||||||
|
const done = plugins.smartpromise.defer();
|
||||||
// lets set the external browser in case one is provided
|
// lets set the external browser in case one is provided
|
||||||
this.headlessBrowser = headlessBrowserArg;
|
this.headlessBrowser = headlessBrowserArg;
|
||||||
// setup puppeteer
|
// setup puppeteer
|
||||||
@ -49,7 +50,9 @@ export class SmartPdf {
|
|||||||
this.htmlServerInstance.listen(3210, 'localhost');
|
this.htmlServerInstance.listen(3210, 'localhost');
|
||||||
this.htmlServerInstance.on('listening', () => {
|
this.htmlServerInstance.on('listening', () => {
|
||||||
this._readyDeferred.resolve();
|
this._readyDeferred.resolve();
|
||||||
|
done.resolve();
|
||||||
});
|
});
|
||||||
|
await done.promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
// stop
|
// stop
|
||||||
|
Reference in New Issue
Block a user