From 2c7957709f6b1e9175955f87b634b395f3eb59f8 Mon Sep 17 00:00:00 2001 From: Duy Pham Le <32657584+phamleduy04@users.noreply.github.com> Date: Mon, 22 Jul 2024 09:52:48 -0500 Subject: [PATCH] v3.0.0 release :tada: - Fix endpoint error - Upgrade packages --- README.md | 5 +++-- example.config.yml | 2 +- package.json | 10 +++++----- src/Client/index.ts | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0323f76..dc07544 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ # texas-dps-scheduler - -# WARNING: the app is not working right now, please wait until the latest fix. This app will find sameday or ~~nearest 7 day~~ (can customize now) appointments and schedulle it automatically! +# Hostname/IP does not match certificate's altnames error +Please use version 3.0.0 to fix. + [![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fphamleduy04%2Ftexas-dps-scheduler&count_bg=%2379C83D&title_bg=%23555555&icon=typescript.svg&icon_color=%23E7E7E7&title=Views&edge_flat=false)](https://hits.seeyoufarm.com) [![DeepScan grade](https://deepscan.io/api/teams/11483/projects/21347/branches/611270/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=11483&pid=21347&bid=611270) [![CodeFactor](https://www.codefactor.io/repository/github/phamleduy04/texas-dps-scheduler/badge)](https://www.codefactor.io/repository/github/phamleduy04/texas-dps-scheduler) diff --git a/example.config.yml b/example.config.yml index 8d18f8f..799ca33 100644 --- a/example.config.yml +++ b/example.config.yml @@ -55,6 +55,6 @@ appSettings: # Set this to true if you using replit, heroku or something equivalent webserver: false # Set this to higher if you encounter Header Timeout error. This one is in miliseconds - headersTimeout: 20000 + headersTimeout: 30000 # How many times to retry if the request to DPS server failled maxRetry: 3 \ No newline at end of file diff --git a/package.json b/package.json index 2e5a1b9..56ff21a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "texas-dps-scheduler", - "version": "2.2.2", + "version": "3.0.0", "description": "Texas DPS Automatic Scheduler", "main": "dist/index.js", "scripts": { @@ -22,26 +22,26 @@ "devDependencies": { "@eslint/create-config": "^1.1.6", "@types/ms": "^0.7.34", - "@types/node": "^20.14.10", + "@types/node": "^20.14.11", "@types/prompts": "^2.4.9", "@typescript-eslint/eslint-plugin": "^7.16.1", "@typescript-eslint/parser": "^7.16.1", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-prettier": "^5.2.1", "prettier": "^3.3.3", "ts-node": "^10.9.2", "typescript": "^5.5.3" }, "dependencies": { "colorette": "^2.0.20", - "dayjs": "^1.11.11", + "dayjs": "^1.11.12", "dotenv": "^16.4.5", "js-yaml": "^4.1.0", "p-queue": "6.6.2", "prompts": "^2.4.2", "tslib": "^2.6.3", - "undici": "^6.19.2", + "undici": "^6.19.4", "yaml": "^2.4.5", "zod": "^3.23.8" }, diff --git a/src/Client/index.ts b/src/Client/index.ts index e6e063c..5a427eb 100644 --- a/src/Client/index.ts +++ b/src/Client/index.ts @@ -29,7 +29,7 @@ try { } } class TexasScheduler { - public requestInstance = new undici.Pool('https://publicapi.txdpsscheduler.com'); + public requestInstance = new undici.Pool('https://apptapi.txdpsscheduler.com'); public config = parseConfig(); public existBooking: { exist: boolean; response: ExistBookingResponse[] } | undefined;