@authvia/payment-method-create 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve CDN base URL from hostname when VITE_APP_CDN_URL is not baked into the bundle.
|
|
3
|
+
* Mirrors {@link resolveApiBaseUrl} so dev-authvia.io loads assets from cdn.dev-authvia.com,
|
|
4
|
+
* not from the app origin (which returns 403 for /web-components/*).
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveCdnBaseUrl(hostname?: string): string;
|
package/dist/utils/config.d.ts
CHANGED
|
@@ -26,6 +26,12 @@ export declare const DEFAULT_CREDIT_CARD_SCRIPT_PATH: string;
|
|
|
26
26
|
/**
|
|
27
27
|
* Resolves the `src` for the authvia-credit-card loader via {@link getCdnUrl} and `VITE_APP_CDN_URL`.
|
|
28
28
|
*
|
|
29
|
+
* Does not read the JWT `iss` claim. Older builds picked dev / nonprod / prod CDN hosts from the
|
|
30
|
+
* token at runtime because we had no env variable to control the credit-card CDN path. We now set
|
|
31
|
+
* `VITE_APP_CDN_URL` (and {@link CREDIT_CARD_WC_VERSION}) per deploy so each bundle targets one CDN.
|
|
32
|
+
* API and Plaid hosts still follow the token via `resolveApiHost` in the web-component entry; publish
|
|
33
|
+
* separate create-widget builds (or CDN bases) when partners need both API environments from one page.
|
|
34
|
+
*
|
|
29
35
|
* @returns A non-empty string suitable for a script element `src`
|
|
30
36
|
*/
|
|
31
37
|
export declare function getCreditCardScriptSrc(): string;
|