@palbase/web 7.3.5 → 7.3.6
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-SQWG3PTU.js} +3 -7
- package/dist/{chunk-2VURERR2.js.map → chunk-SQWG3PTU.js.map} +1 -1
- package/dist/gen/cli.cjs +0 -3
- package/dist/gen/cli.cjs.map +1 -1
- package/dist/gen/cli.js +0 -3
- 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/internal.js
CHANGED
package/dist/next/client.cjs
CHANGED
|
@@ -9219,7 +9219,7 @@ function defaultSessionStorage(key) {
|
|
|
9219
9219
|
}
|
|
9220
9220
|
|
|
9221
9221
|
// src/version.ts
|
|
9222
|
-
var VERSION = "7.3.
|
|
9222
|
+
var VERSION = "7.3.6";
|
|
9223
9223
|
|
|
9224
9224
|
// src/runtime.ts
|
|
9225
9225
|
function buildRuntime(config) {
|
|
@@ -9227,15 +9227,11 @@ function buildRuntime(config) {
|
|
|
9227
9227
|
if (projectRef === "") {
|
|
9228
9228
|
throw new Error("PalbeConfig.apiKey does not contain a valid publishable project identity");
|
|
9229
9229
|
}
|
|
9230
|
-
let runtimeURL;
|
|
9231
9230
|
try {
|
|
9232
|
-
|
|
9231
|
+
new URL(config.url);
|
|
9233
9232
|
} catch {
|
|
9234
9233
|
throw new Error("PalbeConfig.url must be a valid URL");
|
|
9235
9234
|
}
|
|
9236
|
-
if (runtimeURL.hostname.endsWith(".palbase.studio") && runtimeURL.hostname.split(".")[0] !== projectRef) {
|
|
9237
|
-
throw new Error("PalbeConfig.url must match the project identity in apiKey for palbase.studio");
|
|
9238
|
-
}
|
|
9239
9235
|
const http = new HttpClient(config.apiKey, {
|
|
9240
9236
|
url: config.url,
|
|
9241
9237
|
headers: { "X-Client-Info": `palbe-web/${VERSION}`, ...config.headers }
|