fix(core): update
This commit is contained in:
parent
f4141bf201
commit
839eafd73f
41
package-lock.json
generated
41
package-lock.json
generated
@ -15,7 +15,7 @@
|
||||
"@pushrocks/smartpromise": "^3.1.7",
|
||||
"@pushrocks/smartpuppeteer": "^2.0.0",
|
||||
"@pushrocks/smartunique": "^3.0.3",
|
||||
"@tsclass/tsclass": "^4.0.15",
|
||||
"@tsclass/tsclass": "^4.0.17",
|
||||
"@types/express": "^4.17.13",
|
||||
"express": "^4.18.1",
|
||||
"pdf-merger-js": "^3.4.0",
|
||||
@ -26,7 +26,7 @@
|
||||
"@gitzone/tsrun": "^1.2.35",
|
||||
"@gitzone/tstest": "^1.0.71",
|
||||
"@pushrocks/tapbundle": "^5.0.3",
|
||||
"@types/node": "^17.0.42"
|
||||
"@types/node": "^18.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@apiglobal/typedrequest": {
|
||||
@ -255,6 +255,13 @@
|
||||
"dev": true,
|
||||
"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": {
|
||||
"version": "7.2.3",
|
||||
"resolved": "https://verdaccio.lossless.one/glob/-/glob-7.2.3.tgz",
|
||||
@ -1387,9 +1394,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@tsclass/tsclass": {
|
||||
"version": "4.0.15",
|
||||
"resolved": "https://verdaccio.lossless.one/@tsclass%2ftsclass/-/tsclass-4.0.15.tgz",
|
||||
"integrity": "sha512-RJsuV3iUjTcFbxlKslHPKrQl2BazX69JrDzSdCRL+f1yzVVVC26C8QcdK9bHH8UrhTxs8rw6Kdy/mlEQZEC7gg==",
|
||||
"version": "4.0.17",
|
||||
"resolved": "https://verdaccio.lossless.one/@tsclass%2ftsclass/-/tsclass-4.0.17.tgz",
|
||||
"integrity": "sha512-nWTyoVA7BtWPPRLes8uXLjKocQ71P388HIAbFw683RqTmGdjnPGqyGpIosJ2dpUcS5LEO/YDdzHdd6RDbif8Ew==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"type-fest": "^2.13.1"
|
||||
@ -1615,9 +1622,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "17.0.44",
|
||||
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-17.0.44.tgz",
|
||||
"integrity": "sha512-gWYiOlu6Y4oyLYBvsJAPlwHbC8H4tX+tLsHy6Ee976wedwwZKrG2hFl3Y/HiH6bIyLTbDWQexQF/ohwKkOpUCg==",
|
||||
"version": "18.0.0",
|
||||
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-18.0.0.tgz",
|
||||
"integrity": "sha512-cHlGmko4gWLVI27cGJntjs/Sj8th9aYwplmZFwmmgYQQvL5NUsgVJG7OddLvNfLqYS31KFN0s3qlaD9qCaxACA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"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": {
|
||||
"version": "7.2.3",
|
||||
"resolved": "https://verdaccio.lossless.one/glob/-/glob-7.2.3.tgz",
|
||||
@ -7402,9 +7415,9 @@
|
||||
}
|
||||
},
|
||||
"@tsclass/tsclass": {
|
||||
"version": "4.0.15",
|
||||
"resolved": "https://verdaccio.lossless.one/@tsclass%2ftsclass/-/tsclass-4.0.15.tgz",
|
||||
"integrity": "sha512-RJsuV3iUjTcFbxlKslHPKrQl2BazX69JrDzSdCRL+f1yzVVVC26C8QcdK9bHH8UrhTxs8rw6Kdy/mlEQZEC7gg==",
|
||||
"version": "4.0.17",
|
||||
"resolved": "https://verdaccio.lossless.one/@tsclass%2ftsclass/-/tsclass-4.0.17.tgz",
|
||||
"integrity": "sha512-nWTyoVA7BtWPPRLes8uXLjKocQ71P388HIAbFw683RqTmGdjnPGqyGpIosJ2dpUcS5LEO/YDdzHdd6RDbif8Ew==",
|
||||
"requires": {
|
||||
"type-fest": "^2.13.1"
|
||||
}
|
||||
@ -7601,9 +7614,9 @@
|
||||
"integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ=="
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "17.0.44",
|
||||
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-17.0.44.tgz",
|
||||
"integrity": "sha512-gWYiOlu6Y4oyLYBvsJAPlwHbC8H4tX+tLsHy6Ee976wedwwZKrG2hFl3Y/HiH6bIyLTbDWQexQF/ohwKkOpUCg=="
|
||||
"version": "18.0.0",
|
||||
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-18.0.0.tgz",
|
||||
"integrity": "sha512-cHlGmko4gWLVI27cGJntjs/Sj8th9aYwplmZFwmmgYQQvL5NUsgVJG7OddLvNfLqYS31KFN0s3qlaD9qCaxACA=="
|
||||
},
|
||||
"@types/qs": {
|
||||
"version": "6.9.7",
|
||||
|
@ -17,7 +17,7 @@
|
||||
"@gitzone/tsrun": "^1.2.35",
|
||||
"@gitzone/tstest": "^1.0.71",
|
||||
"@pushrocks/tapbundle": "^5.0.3",
|
||||
"@types/node": "^17.0.42"
|
||||
"@types/node": "^18.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pushrocks/smartfile": "^10.0.2",
|
||||
@ -26,7 +26,7 @@
|
||||
"@pushrocks/smartpromise": "^3.1.7",
|
||||
"@pushrocks/smartpuppeteer": "^2.0.0",
|
||||
"@pushrocks/smartunique": "^3.0.3",
|
||||
"@tsclass/tsclass": "^4.0.15",
|
||||
"@tsclass/tsclass": "^4.0.17",
|
||||
"@types/express": "^4.17.13",
|
||||
"express": "^4.18.1",
|
||||
"pdf-merger-js": "^3.4.0",
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartpdf',
|
||||
version: '3.0.6',
|
||||
version: '3.0.7',
|
||||
description: 'create pdfs on the fly'
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ export class SmartPdf {
|
||||
}
|
||||
|
||||
async start(headlessBrowserArg?: plugins.smartpuppeteer.puppeteer.Browser) {
|
||||
const done = plugins.smartpromise.defer();
|
||||
// lets set the external browser in case one is provided
|
||||
this.headlessBrowser = headlessBrowserArg;
|
||||
// setup puppeteer
|
||||
@ -49,7 +50,9 @@ export class SmartPdf {
|
||||
this.htmlServerInstance.listen(3210, 'localhost');
|
||||
this.htmlServerInstance.on('listening', () => {
|
||||
this._readyDeferred.resolve();
|
||||
done.resolve();
|
||||
});
|
||||
await done.promise;
|
||||
}
|
||||
|
||||
// stop
|
||||
|
Loading…
Reference in New Issue
Block a user