fix(core): update

This commit is contained in:
Philipp Kunz 2022-06-29 00:24:43 +02:00
parent f4141bf201
commit 839eafd73f
4 changed files with 33 additions and 17 deletions

41
package-lock.json generated
View File

@ -15,7 +15,7 @@
"@pushrocks/smartpromise": "^3.1.7", "@pushrocks/smartpromise": "^3.1.7",
"@pushrocks/smartpuppeteer": "^2.0.0", "@pushrocks/smartpuppeteer": "^2.0.0",
"@pushrocks/smartunique": "^3.0.3", "@pushrocks/smartunique": "^3.0.3",
"@tsclass/tsclass": "^4.0.15", "@tsclass/tsclass": "^4.0.17",
"@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": "^3.4.0",
@ -26,7 +26,7 @@
"@gitzone/tsrun": "^1.2.35", "@gitzone/tsrun": "^1.2.35",
"@gitzone/tstest": "^1.0.71", "@gitzone/tstest": "^1.0.71",
"@pushrocks/tapbundle": "^5.0.3", "@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^17.0.42" "@types/node": "^18.0.0"
} }
}, },
"node_modules/@apiglobal/typedrequest": { "node_modules/@apiglobal/typedrequest": {
@ -255,6 +255,13 @@
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },
"node_modules/@gitzone/tsbundle/node_modules/@types/node": {
"version": "17.0.45",
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-17.0.45.tgz",
"integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==",
"dev": true,
"license": "MIT"
},
"node_modules/@gitzone/tsbundle/node_modules/glob": { "node_modules/@gitzone/tsbundle/node_modules/glob": {
"version": "7.2.3", "version": "7.2.3",
"resolved": "https://verdaccio.lossless.one/glob/-/glob-7.2.3.tgz", "resolved": "https://verdaccio.lossless.one/glob/-/glob-7.2.3.tgz",
@ -1387,9 +1394,9 @@
} }
}, },
"node_modules/@tsclass/tsclass": { "node_modules/@tsclass/tsclass": {
"version": "4.0.15", "version": "4.0.17",
"resolved": "https://verdaccio.lossless.one/@tsclass%2ftsclass/-/tsclass-4.0.15.tgz", "resolved": "https://verdaccio.lossless.one/@tsclass%2ftsclass/-/tsclass-4.0.17.tgz",
"integrity": "sha512-RJsuV3iUjTcFbxlKslHPKrQl2BazX69JrDzSdCRL+f1yzVVVC26C8QcdK9bHH8UrhTxs8rw6Kdy/mlEQZEC7gg==", "integrity": "sha512-nWTyoVA7BtWPPRLes8uXLjKocQ71P388HIAbFw683RqTmGdjnPGqyGpIosJ2dpUcS5LEO/YDdzHdd6RDbif8Ew==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"type-fest": "^2.13.1" "type-fest": "^2.13.1"
@ -1615,9 +1622,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "17.0.44", "version": "18.0.0",
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-17.0.44.tgz", "resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-18.0.0.tgz",
"integrity": "sha512-gWYiOlu6Y4oyLYBvsJAPlwHbC8H4tX+tLsHy6Ee976wedwwZKrG2hFl3Y/HiH6bIyLTbDWQexQF/ohwKkOpUCg==", "integrity": "sha512-cHlGmko4gWLVI27cGJntjs/Sj8th9aYwplmZFwmmgYQQvL5NUsgVJG7OddLvNfLqYS31KFN0s3qlaD9qCaxACA==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/qs": { "node_modules/@types/qs": {
@ -6371,6 +6378,12 @@
} }
} }
}, },
"@types/node": {
"version": "17.0.45",
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-17.0.45.tgz",
"integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==",
"dev": true
},
"glob": { "glob": {
"version": "7.2.3", "version": "7.2.3",
"resolved": "https://verdaccio.lossless.one/glob/-/glob-7.2.3.tgz", "resolved": "https://verdaccio.lossless.one/glob/-/glob-7.2.3.tgz",
@ -7402,9 +7415,9 @@
} }
}, },
"@tsclass/tsclass": { "@tsclass/tsclass": {
"version": "4.0.15", "version": "4.0.17",
"resolved": "https://verdaccio.lossless.one/@tsclass%2ftsclass/-/tsclass-4.0.15.tgz", "resolved": "https://verdaccio.lossless.one/@tsclass%2ftsclass/-/tsclass-4.0.17.tgz",
"integrity": "sha512-RJsuV3iUjTcFbxlKslHPKrQl2BazX69JrDzSdCRL+f1yzVVVC26C8QcdK9bHH8UrhTxs8rw6Kdy/mlEQZEC7gg==", "integrity": "sha512-nWTyoVA7BtWPPRLes8uXLjKocQ71P388HIAbFw683RqTmGdjnPGqyGpIosJ2dpUcS5LEO/YDdzHdd6RDbif8Ew==",
"requires": { "requires": {
"type-fest": "^2.13.1" "type-fest": "^2.13.1"
} }
@ -7601,9 +7614,9 @@
"integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==" "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ=="
}, },
"@types/node": { "@types/node": {
"version": "17.0.44", "version": "18.0.0",
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-17.0.44.tgz", "resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-18.0.0.tgz",
"integrity": "sha512-gWYiOlu6Y4oyLYBvsJAPlwHbC8H4tX+tLsHy6Ee976wedwwZKrG2hFl3Y/HiH6bIyLTbDWQexQF/ohwKkOpUCg==" "integrity": "sha512-cHlGmko4gWLVI27cGJntjs/Sj8th9aYwplmZFwmmgYQQvL5NUsgVJG7OddLvNfLqYS31KFN0s3qlaD9qCaxACA=="
}, },
"@types/qs": { "@types/qs": {
"version": "6.9.7", "version": "6.9.7",

View File

@ -17,7 +17,7 @@
"@gitzone/tsrun": "^1.2.35", "@gitzone/tsrun": "^1.2.35",
"@gitzone/tstest": "^1.0.71", "@gitzone/tstest": "^1.0.71",
"@pushrocks/tapbundle": "^5.0.3", "@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^17.0.42" "@types/node": "^18.0.0"
}, },
"dependencies": { "dependencies": {
"@pushrocks/smartfile": "^10.0.2", "@pushrocks/smartfile": "^10.0.2",
@ -26,7 +26,7 @@
"@pushrocks/smartpromise": "^3.1.7", "@pushrocks/smartpromise": "^3.1.7",
"@pushrocks/smartpuppeteer": "^2.0.0", "@pushrocks/smartpuppeteer": "^2.0.0",
"@pushrocks/smartunique": "^3.0.3", "@pushrocks/smartunique": "^3.0.3",
"@tsclass/tsclass": "^4.0.15", "@tsclass/tsclass": "^4.0.17",
"@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": "^3.4.0",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/smartpdf', name: '@pushrocks/smartpdf',
version: '3.0.6', version: '3.0.7',
description: 'create pdfs on the fly' description: 'create pdfs on the fly'
} }

View File

@ -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