From 43de07b397c0bfe2e1e06285a09e8609bbe93330 Mon Sep 17 00:00:00 2001 From: bia-pain-bache Date: Sat, 26 Oct 2024 12:02:54 +0330 Subject: [PATCH] Update versions. --- .github/workflows/build.yml | 10 ++++------ .gitignore | 3 ++- package.json | 11 +++++++++++ src/worker.js | 2 +- 4 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 package.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bbfb67d9d..0a26ecc86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,12 +11,12 @@ jobs: steps: - name: Check out the code - uses: actions/checkout@latest + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@latest + uses: actions/setup-node@v4 with: - node-version: "latest" + node-version: "18" - name: Install dependencies run: npm install @@ -25,9 +25,7 @@ jobs: run: npm install -g wrangler - name: Build project - run: | - npx wrangler deploy --dry-run --outdir=dist - cp ./dist/worker.js ./_worker.js + run: npm run build - name: Commit and push built worker run: | diff --git a/.gitignore b/.gitignore index 1f975c957..2436e8385 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ !.github/ !.github/** !src/ -!src/** \ No newline at end of file +!src/** +!package.json \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 000000000..25a5c77c5 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "dependencies": { + "jose": "^5.9.4", + "js-sha256": "^0.11.0", + "jsonwebtoken": "^9.0.2", + "tweetnacl": "^1.0.3" + }, + "scripts": { + "build": "npx wrangler deploy --dry-run --outdir=dist && cp ./dist/worker.js ./_worker.js" + } +} \ No newline at end of file diff --git a/src/worker.js b/src/worker.js index c2ec8d2f4..68967ca73 100644 --- a/src/worker.js +++ b/src/worker.js @@ -16,7 +16,7 @@ const defaultHttpsPorts = ['443', '8443', '2053', '2083', '2087', '2096']; let proxyIP = proxyIPs[Math.floor(Math.random() * proxyIPs.length)]; let dohURL = 'https://cloudflare-dns.com/dns-query'; let hashPassword; -let panelVersion = '2.7.1'; +let panelVersion = '2.7.2'; export default { /**