@omnibase/core-js 0.4.1 → 0.4.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.
package/dist/payments/index.cjs
CHANGED
|
@@ -31,9 +31,9 @@ module.exports = __toCommonJS(payments_exports);
|
|
|
31
31
|
|
|
32
32
|
// src/payments/config.ts
|
|
33
33
|
async function getStripeConfig() {
|
|
34
|
-
const baseUrl = process.env.
|
|
34
|
+
const baseUrl = process.env.OMNIBASE_API_URL;
|
|
35
35
|
if (!baseUrl) {
|
|
36
|
-
throw new Error("
|
|
36
|
+
throw new Error("OMNIBASE_API_URL is not configured");
|
|
37
37
|
}
|
|
38
38
|
try {
|
|
39
39
|
const response = await fetch(`${baseUrl}/api/v1/stripe/config`, {
|
|
@@ -95,7 +95,7 @@ interface ProductWithPricingUI extends Product {
|
|
|
95
95
|
*
|
|
96
96
|
* @returns Promise resolving to the current Stripe configuration
|
|
97
97
|
*
|
|
98
|
-
* @throws {Error} When
|
|
98
|
+
* @throws {Error} When OMNIBASE_API_URL environment variable is not configured
|
|
99
99
|
* @throws {Error} When the API request fails due to network issues
|
|
100
100
|
* @throws {Error} When the server returns an error response (4xx, 5xx status codes)
|
|
101
101
|
*
|
package/dist/payments/index.d.ts
CHANGED
|
@@ -95,7 +95,7 @@ interface ProductWithPricingUI extends Product {
|
|
|
95
95
|
*
|
|
96
96
|
* @returns Promise resolving to the current Stripe configuration
|
|
97
97
|
*
|
|
98
|
-
* @throws {Error} When
|
|
98
|
+
* @throws {Error} When OMNIBASE_API_URL environment variable is not configured
|
|
99
99
|
* @throws {Error} When the API request fails due to network issues
|
|
100
100
|
* @throws {Error} When the server returns an error response (4xx, 5xx status codes)
|
|
101
101
|
*
|
package/dist/payments/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/payments/config.ts
|
|
2
2
|
async function getStripeConfig() {
|
|
3
|
-
const baseUrl = process.env.
|
|
3
|
+
const baseUrl = process.env.OMNIBASE_API_URL;
|
|
4
4
|
if (!baseUrl) {
|
|
5
|
-
throw new Error("
|
|
5
|
+
throw new Error("OMNIBASE_API_URL is not configured");
|
|
6
6
|
}
|
|
7
7
|
try {
|
|
8
8
|
const response = await fetch(`${baseUrl}/api/v1/stripe/config`, {
|