Skip to content

Commit 816b1a8

Browse files
committed
update vanilla to allow full path specification
1 parent 113d28d commit 816b1a8

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/vanilla-js/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.1.16] - 2025-11-19
8+
## [0.1.17] - 2025-11-19
99

1010
### Added
1111

packages/vanilla-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pangeacyber/vanilla-js",
33
"description": "Generic javascript integrations with Pangea",
4-
"version": "0.1.16",
4+
"version": "0.1.17",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
77
"types": "dist/index.d.ts",

packages/vanilla-js/src/AuthNClient/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ export class AuthNClient {
156156
}
157157

158158
if (!!this.config.apiPathPrefix) {
159+
if (this.config.apiPathPrefix.startsWith("http")) {
160+
return `${this.config.apiPathPrefix}${version_}${endpoint}`;
161+
}
162+
159163
return `${window.location.origin}${this.config.apiPathPrefix}${version_}${endpoint}`;
160164
}
161165

0 commit comments

Comments
 (0)