@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/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -9419,7 +9419,7 @@ function defaultSessionStorage(key) {
|
|
|
9419
9419
|
}
|
|
9420
9420
|
|
|
9421
9421
|
// src/version.ts
|
|
9422
|
-
var VERSION = "7.3.
|
|
9422
|
+
var VERSION = "7.3.7";
|
|
9423
9423
|
|
|
9424
9424
|
// src/runtime.ts
|
|
9425
9425
|
function buildRuntime(config) {
|
|
@@ -9427,15 +9427,11 @@ function buildRuntime(config) {
|
|
|
9427
9427
|
if (projectRef === "") {
|
|
9428
9428
|
throw new Error("PalbeConfig.apiKey does not contain a valid publishable project identity");
|
|
9429
9429
|
}
|
|
9430
|
-
let runtimeURL;
|
|
9431
9430
|
try {
|
|
9432
|
-
|
|
9431
|
+
new URL(config.url);
|
|
9433
9432
|
} catch {
|
|
9434
9433
|
throw new Error("PalbeConfig.url must be a valid URL");
|
|
9435
9434
|
}
|
|
9436
|
-
if (runtimeURL.hostname.endsWith(".palbase.studio") && runtimeURL.hostname.split(".")[0] !== projectRef) {
|
|
9437
|
-
throw new Error("PalbeConfig.url must match the project identity in apiKey for palbase.studio");
|
|
9438
|
-
}
|
|
9439
9435
|
const http = new HttpClient(config.apiKey, {
|
|
9440
9436
|
url: config.url,
|
|
9441
9437
|
headers: { "X-Client-Info": `palbe-web/${VERSION}`, ...config.headers }
|