Skip to content

Commit

Permalink
remove tests; bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
willswire committed Apr 23, 2023
1 parent 5aa095f commit c932ba0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unifi-cloudflare-ddns",
"version": "0.0.0",
"version": "2.0.0",
"devDependencies": {
"jest": "^29.5.0",
"wrangler": "2.16.0"
Expand All @@ -9,6 +9,5 @@
"scripts": {
"start": "wrangler dev",
"deploy": "wrangler publish",
"test": "jest"
}
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function requireHttps(request) {
function parseBasicAuth(request) {
const Authorization = request.headers.get("Authorization");
const [scheme, encoded] = Authorization.split(" ");
const buffer = Uint8Array.from(atob(encoded), (c) => c.charCodeAt(0));
const buffer = Uint8Array.from(Buffer.from(encoded, 'base64'), (c) => c.charCodeAt(0));
const decoded = new TextDecoder().decode(buffer).normalize();
const index = decoded.indexOf(":");

Expand Down
23 changes: 0 additions & 23 deletions src/index.test.js

This file was deleted.

0 comments on commit c932ba0

Please sign in to comment.