Skip to content

Commit c932ba0

Browse files
committed
remove tests; bump version
1 parent 5aa095f commit c932ba0

3 files changed

Lines changed: 2 additions & 26 deletions

File tree

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unifi-cloudflare-ddns",
3-
"version": "0.0.0",
3+
"version": "2.0.0",
44
"devDependencies": {
55
"jest": "^29.5.0",
66
"wrangler": "2.16.0"
@@ -9,6 +9,5 @@
99
"scripts": {
1010
"start": "wrangler dev",
1111
"deploy": "wrangler publish",
12-
"test": "jest"
1312
}
1413
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function requireHttps(request) {
7777
function parseBasicAuth(request) {
7878
const Authorization = request.headers.get("Authorization");
7979
const [scheme, encoded] = Authorization.split(" ");
80-
const buffer = Uint8Array.from(atob(encoded), (c) => c.charCodeAt(0));
80+
const buffer = Uint8Array.from(Buffer.from(encoded, 'base64'), (c) => c.charCodeAt(0));
8181
const decoded = new TextDecoder().decode(buffer).normalize();
8282
const index = decoded.indexOf(":");
8383

src/index.test.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)