@palbase/web 7.3.5 → 7.3.7
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/{chunk-2VURERR2.js → chunk-ZEGPZL5O.js} +3 -7
- package/dist/{chunk-2VURERR2.js.map → chunk-ZEGPZL5O.js.map} +1 -1
- package/dist/gen/cli.cjs +6 -5
- package/dist/gen/cli.cjs.map +1 -1
- package/dist/gen/cli.js +6 -5
- package/dist/gen/cli.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +2 -6
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.js +1 -1
- package/dist/next/client.cjs +2 -6
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.js +1 -1
- package/dist/next/index.cjs +2 -6
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +2 -2
package/dist/next/client.js
CHANGED
package/dist/next/index.cjs
CHANGED
|
@@ -9428,7 +9428,7 @@ function defaultSessionStorage(key) {
|
|
|
9428
9428
|
}
|
|
9429
9429
|
|
|
9430
9430
|
// src/version.ts
|
|
9431
|
-
var VERSION = "7.3.
|
|
9431
|
+
var VERSION = "7.3.7";
|
|
9432
9432
|
|
|
9433
9433
|
// src/runtime.ts
|
|
9434
9434
|
function buildRuntime(config) {
|
|
@@ -9436,15 +9436,11 @@ function buildRuntime(config) {
|
|
|
9436
9436
|
if (projectRef === "") {
|
|
9437
9437
|
throw new Error("PalbeConfig.apiKey does not contain a valid publishable project identity");
|
|
9438
9438
|
}
|
|
9439
|
-
let runtimeURL;
|
|
9440
9439
|
try {
|
|
9441
|
-
|
|
9440
|
+
new URL(config.url);
|
|
9442
9441
|
} catch {
|
|
9443
9442
|
throw new Error("PalbeConfig.url must be a valid URL");
|
|
9444
9443
|
}
|
|
9445
|
-
if (runtimeURL.hostname.endsWith(".palbase.studio") && runtimeURL.hostname.split(".")[0] !== projectRef) {
|
|
9446
|
-
throw new Error("PalbeConfig.url must match the project identity in apiKey for palbase.studio");
|
|
9447
|
-
}
|
|
9448
9444
|
const http = new HttpClient(config.apiKey, {
|
|
9449
9445
|
url: config.url,
|
|
9450
9446
|
headers: { "X-Client-Info": `palbe-web/${VERSION}`, ...config.headers }
|