Comparing version 3.1.0 to 3.1.1
@@ -9,5 +9,5 @@ import { CodeChallengeMethod, OAuth2Client } from "../client.js"; | ||
constructor(baseURL, clientId, clientSecret, redirectURI) { | ||
this.authorizationEndpoint = joinURIAndPath(baseURL, "/application/o/authorize"); | ||
this.tokenEndpoint = joinURIAndPath(baseURL, "/application/o/token"); | ||
this.tokenRevocationEndpoint = joinURIAndPath(baseURL, "/application/o/revoke"); | ||
this.authorizationEndpoint = joinURIAndPath(baseURL, "/application/o/authorize/"); | ||
this.tokenEndpoint = joinURIAndPath(baseURL, "/application/o/token/"); | ||
this.tokenRevocationEndpoint = joinURIAndPath(baseURL, "/application/o/revoke/"); | ||
this.client = new OAuth2Client(clientId, clientSecret, redirectURI); | ||
@@ -14,0 +14,0 @@ } |
@@ -7,4 +7,3 @@ import * as encoding from "@oslojs/encoding"; | ||
for (const part of path) { | ||
joined += "/"; | ||
joined += trimRight(trimLeft(part, "/"), "/"); | ||
joined = trimRight(joined, "/") + "/" + trimLeft(part, "/"); | ||
} | ||
@@ -11,0 +10,0 @@ return joined; |
{ | ||
"name": "arctic", | ||
"type": "module", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "OAuth 2.0 clients for popular providers", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
127429
2942