From e2415294a67140dad5aef060887093701874cb19 Mon Sep 17 00:00:00 2001 From: petruki <31597636+petruki@users.noreply.github.com> Date: Tue, 4 Jun 2024 18:13:17 -0700 Subject: [PATCH] Fixes SnapshotAutoUpdater to prevent from exit when an error occurs --- package.json | 10 +++++----- src/lib/utils/snapshotAutoUpdater.js | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index e14a1c2..30b6382 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "switcher-client", - "version": "4.1.0", + "version": "4.1.1", "description": "Client JS SDK for working with Switcher-API", "main": "./switcher-client.js", "type": "module", @@ -30,15 +30,15 @@ "src/" ], "devDependencies": { - "@babel/eslint-parser": "^7.24.5", - "@typescript-eslint/eslint-plugin": "^7.8.0", - "@typescript-eslint/parser": "^7.8.0", + "@babel/eslint-parser": "^7.24.6", + "@typescript-eslint/eslint-plugin": "^7.12.0", + "@typescript-eslint/parser": "^7.12.0", "c8": "^9.1.0", "chai": "^5.1.1", "eslint": "^8.57.0", "mocha": "^10.4.0", "mocha-sonarqube-reporter": "^1.0.2", - "sinon": "^17.0.2" + "sinon": "^18.0.0" }, "repository": { "type": "git", diff --git a/src/lib/utils/snapshotAutoUpdater.js b/src/lib/utils/snapshotAutoUpdater.js index c682b54..000d39a 100644 --- a/src/lib/utils/snapshotAutoUpdater.js +++ b/src/lib/utils/snapshotAutoUpdater.js @@ -11,7 +11,6 @@ export default class SnapshotAutoUpdater { const updated = await checkSnapshot(); success(updated); } catch (err) { - this.terminate(); reject(err); } }, interval * 1000);