Skip to content

Commit

Permalink
Fixes SnapshotAutoUpdater to prevent from exit when an error occurs (#75
Browse files Browse the repository at this point in the history
)
  • Loading branch information
petruki authored Jun 4, 2024
1 parent 96d1f9a commit 282bf2b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
with:
fetch-depth: 0

- name: Setup Deno v1.43.4
- name: Setup Deno v1.44.0
uses: denoland/setup-deno@v1
with:
deno-version: v1.43.4
deno-version: v1.44.0

- name: Setup LCOV
run: sudo apt install -y lcov
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
deno:
description: 'Deno version'
required: true
default: 'v1.43.x'
default: 'v1.44.x'
os:
description: 'Operating System (ubuntu-20.04, ubuntu-latest, windows-latest)'
required: true
Expand Down
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@switcherapi/switcher-client-deno",
"version": "2.0.1",
"version": "2.0.2",
"description": "Switcher4Deno is a Feature Flag Deno Client SDK for Switcher API",
"tasks": {
"cache-reload": "deno cache --reload --lock=deno.lock --lock-write mod.ts",
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sonar.projectKey=switcherapi_switcher-client-deno
sonar.projectName=switcher-client-deno
sonar.organization=switcherapi
sonar.projectVersion=2.0.1
sonar.projectVersion=2.0.2

sonar.javascript.lcov.reportPaths=coverage/report.lcov

Expand Down
1 change: 0 additions & 1 deletion src/lib/utils/snapshotAutoUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default class SnapshotAutoUpdater {
const updated = await checkSnapshot();
success(updated);
} catch (err) {
this.terminate();
reject(err);
}
}, interval * 1000);
Expand Down

0 comments on commit 282bf2b

Please sign in to comment.