From bdbb748af7ffad254e24574a85c262f72ce4a79e Mon Sep 17 00:00:00 2001 From: Duy Pham Le <32657584+phamleduy04@users.noreply.github.com> Date: Fri, 14 Jun 2024 00:49:54 -0500 Subject: [PATCH] v2.2.1 (#120) * typo fix * remove webhook * update deps * add startDate feature * downgrade eslint * show warning for old config file * fix analysis workflow * update dependencies * fix #119 * Update sonar-project.properties * Update analysis.yml --- .github/workflows/analysis.yml | 4 ++-- package.json | 18 +++++++++--------- sonar-project.properties | 2 +- src/Client/index.ts | 4 +++- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 2c5970c..da4fe33 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -3,7 +3,7 @@ name: Code Analysis on: push: branches: - - '*' + - 'main' pull_request: branches: - '*' @@ -14,7 +14,7 @@ jobs: name: scan runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - uses: sonarsource/sonarqube-scan-action@master diff --git a/package.json b/package.json index 4df0167..f2fab0a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "texas-dps-scheduler", - "version": "2.2.0", + "version": "2.2.1", "description": "Texas DPS Automatic Scheduler", "main": "dist/index.js", "scripts": { @@ -20,16 +20,16 @@ }, "homepage": "https://github.com/phamleduy04/texas-dps-scheduler#readme", "devDependencies": { - "@eslint/create-config": "^1.1.1", + "@eslint/create-config": "^1.1.4", "@types/ms": "^0.7.34", - "@types/node": "^20.12.12", + "@types/node": "^20.14.2", "@types/prompts": "^2.4.9", - "@typescript-eslint/eslint-plugin": "^7.10.0", - "@typescript-eslint/parser": "^7.10.0", + "@typescript-eslint/eslint-plugin": "^7.13.0", + "@typescript-eslint/parser": "^7.13.0", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", - "prettier": "^3.2.5", + "prettier": "^3.3.2", "ts-node": "^10.9.2", "typescript": "^5.4.5" }, @@ -40,9 +40,9 @@ "js-yaml": "^4.1.0", "p-queue": "6.6.2", "prompts": "^2.4.2", - "tslib": "^2.6.2", - "undici": "^6.18.1", - "yaml": "^2.4.2", + "tslib": "^2.6.3", + "undici": "^6.18.2", + "yaml": "^2.4.5", "zod": "^3.23.8" }, "engines": { diff --git a/sonar-project.properties b/sonar-project.properties index a1a2827..d5143b5 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1 +1 @@ -sonar.projectKey=phamleduy04_texas-dps-scheduler_AYe8IhBbv36W27jo1CFw +sonar.projectKey=phamleduy04_texas-dps-scheduler_b3fbdf43-d41e-4b47-b2c2-5697eaa25892 diff --git a/src/Client/index.ts b/src/Client/index.ts index 801900f..e6e063c 100644 --- a/src/Client/index.ts +++ b/src/Client/index.ts @@ -215,7 +215,9 @@ class TexasScheduler { } log.info( `${location.Name} is not Available in ${ - locationConfig.sameDay ? 'the same day' : `around ${locationConfig.daysAround.start}-${locationConfig.daysAround.end} days from today! ` + locationConfig.sameDay + ? 'the same day' + : `around ${locationConfig.daysAround.start}-${locationConfig.daysAround.end} days from ${this.config.location.daysAround.startDate}!` } `, );