@palbase/web 7.3.7 → 7.3.9

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.
@@ -6,11 +6,11 @@ import {
6
6
  import {
7
7
  __configure,
8
8
  getRuntime
9
- } from "../chunk-ZEGPZL5O.js";
10
- import "../chunk-6DGCUHSO.js";
9
+ } from "../chunk-H6YSCGQC.js";
10
+ import "../chunk-EAOROUSW.js";
11
11
  import {
12
12
  environmentRefFromPublishableApiKey
13
- } from "../chunk-CFDU23TB.js";
13
+ } from "../chunk-Q5DUDL77.js";
14
14
  import "../chunk-PZ5AY32C.js";
15
15
 
16
16
  // src/next/client.ts
@@ -43,8 +43,8 @@ __export(next_exports, {
43
43
  module.exports = __toCommonJS(next_exports);
44
44
 
45
45
  // src/api-key.ts
46
- var API_KEY_RE = /^pb_([a-z0-9]{4,24})_[cs][A-Za-z0-9]{20}$/;
47
- var PUBLISHABLE_API_KEY_RE = /^pb_([a-z0-9]{4,24})_c[A-Za-z0-9]{20}$/;
46
+ var API_KEY_RE = /^pb_([a-z0-9]{4,24})_[cs][A-Za-z0-9]{20,}$/;
47
+ var PUBLISHABLE_API_KEY_RE = /^pb_([a-z0-9]{4,24})_c[A-Za-z0-9]{20,}$/;
48
48
  function environmentRefFromApiKey(apiKey) {
49
49
  const m = API_KEY_RE.exec(apiKey);
50
50
  return m ? m[1] ?? "" : "";
@@ -291,7 +291,7 @@ function wirePlatform() {
291
291
  return host === "browser" ? "web" : host;
292
292
  }
293
293
  var PALBASE_DEFAULT_HOST = "api.palbase.studio";
294
- var API_KEY_RE2 = /^pb_([a-z0-9]{4,24})_c[A-Za-z0-9]{20}$/;
294
+ var API_KEY_RE2 = /^pb_([a-z0-9]{4,24})_c[A-Za-z0-9]{20,}$/;
295
295
  function parseEnvironmentRef(apiKey) {
296
296
  return API_KEY_RE2.exec(apiKey)?.[1] ?? null;
297
297
  }
@@ -367,7 +367,7 @@ var HttpClient = class _HttpClient {
367
367
  if (this.apiKey && parseEnvironmentRef(this.apiKey) === null) {
368
368
  throw new PalbaseError(
369
369
  "invalid_api_key",
370
- 'Invalid API key format. Expected pb_{environment_ref}_c{20_base62_chars}. For dev/staging pass `url: "https://api.dev.palbase.studio"` via options.',
370
+ 'Invalid API key format. Expected pb_{environment_ref}_c{at least 20 base62 chars}. For dev/staging pass `url: "https://api.dev.palbase.studio"` via options.',
371
371
  0
372
372
  );
373
373
  }
@@ -9428,7 +9428,7 @@ function defaultSessionStorage(key) {
9428
9428
  }
9429
9429
 
9430
9430
  // src/version.ts
9431
- var VERSION = "7.3.7";
9431
+ var VERSION = "7.3.9";
9432
9432
 
9433
9433
  // src/runtime.ts
9434
9434
  function buildRuntime(config) {