From 08fc62d06fc89439fed976ef4faf195efcc112f3 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 17 Aug 2021 23:18:44 +0200 Subject: [PATCH] fix(core): update --- package-lock.json | 14 +++++++------- package.json | 2 +- ts/smartssr.classes.smartssr.ts | 2 ++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index fb1623e..943e8ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@pushrocks/smartdelay": "^2.0.13", "@pushrocks/smartfile": "^8.0.10", "@pushrocks/smartpromise": "^3.1.6", - "@pushrocks/smartpuppeteer": "^1.0.26", + "@pushrocks/smartpuppeteer": "^1.0.27", "@pushrocks/smarttime": "^3.0.38" }, "devDependencies": { @@ -2689,9 +2689,9 @@ "license": "MIT" }, "node_modules/@pushrocks/smartpuppeteer": { - "version": "1.0.26", - "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpuppeteer/-/smartpuppeteer-1.0.26.tgz", - "integrity": "sha512-7xegMP/a5QNGU6Xszyr61pW7SPXy3kDIhkTUpiaisusW2T5HdEyZdrnP/sn0MTPJkhR3a9b6VVj1xxkyLKOn6A==", + "version": "1.0.27", + "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpuppeteer/-/smartpuppeteer-1.0.27.tgz", + "integrity": "sha512-7OBI4xwXyYpQGdaLCq01ihtDFH3hLVaNijXOEH3Yk9ZGV0PK2qADdY+Qfn6XwmA+rMS8t6WX2OMwvK+fYiMbTA==", "license": "MIT", "dependencies": { "@pushrocks/smartdelay": "^2.0.13", @@ -17132,9 +17132,9 @@ "integrity": "sha512-v+RyVpspzYuBcV/aWXqwC03TWYeFLj7aWMG3IBDFmH2ssgug+82KLW/gw2WB2aVOEvmSkfI9OVvOQz2OsLbYlA==" }, "@pushrocks/smartpuppeteer": { - "version": "1.0.26", - "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpuppeteer/-/smartpuppeteer-1.0.26.tgz", - "integrity": "sha512-7xegMP/a5QNGU6Xszyr61pW7SPXy3kDIhkTUpiaisusW2T5HdEyZdrnP/sn0MTPJkhR3a9b6VVj1xxkyLKOn6A==", + "version": "1.0.27", + "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpuppeteer/-/smartpuppeteer-1.0.27.tgz", + "integrity": "sha512-7OBI4xwXyYpQGdaLCq01ihtDFH3hLVaNijXOEH3Yk9ZGV0PK2qADdY+Qfn6XwmA+rMS8t6WX2OMwvK+fYiMbTA==", "requires": { "@pushrocks/smartdelay": "^2.0.13", "@pushrocks/smartenv": "^4.0.16", diff --git a/package.json b/package.json index 4c0597f..3f8df7b 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@pushrocks/smartdelay": "^2.0.13", "@pushrocks/smartfile": "^8.0.10", "@pushrocks/smartpromise": "^3.1.6", - "@pushrocks/smartpuppeteer": "^1.0.26", + "@pushrocks/smartpuppeteer": "^1.0.27", "@pushrocks/smarttime": "^3.0.38" }, "files": [ diff --git a/ts/smartssr.classes.smartssr.ts b/ts/smartssr.classes.smartssr.ts index 8c12b78..8efb52e 100644 --- a/ts/smartssr.classes.smartssr.ts +++ b/ts/smartssr.classes.smartssr.ts @@ -69,6 +69,8 @@ export class SmartSSR { await context.close(); } catch (e) { console.log(e); + await browser.stop(); + return; } await browser.stop();