Skip to content

Commit

Permalink
Update versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Oct 26, 2024
1 parent 5320ed6 commit 43de07b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
!.github/
!.github/**
!src/
!src/**
!src/**
!package.json
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
2 changes: 1 addition & 1 deletion src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down

0 comments on commit 43de07b

Please sign in to comment.