@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.
package/dist/internal.js CHANGED
@@ -6,9 +6,9 @@ import {
6
6
  createBoundClient,
7
7
  getRuntime,
8
8
  onConfigured
9
- } from "./chunk-ZEGPZL5O.js";
10
- import "./chunk-6DGCUHSO.js";
11
- import "./chunk-CFDU23TB.js";
9
+ } from "./chunk-H6YSCGQC.js";
10
+ import "./chunk-EAOROUSW.js";
11
+ import "./chunk-Q5DUDL77.js";
12
12
  import "./chunk-PZ5AY32C.js";
13
13
  export {
14
14
  __configure,
@@ -36,7 +36,7 @@ __export(client_exports, {
36
36
  module.exports = __toCommonJS(client_exports);
37
37
 
38
38
  // src/api-key.ts
39
- var PUBLISHABLE_API_KEY_RE = /^pb_([a-z0-9]{4,24})_c[A-Za-z0-9]{20}$/;
39
+ var PUBLISHABLE_API_KEY_RE = /^pb_([a-z0-9]{4,24})_c[A-Za-z0-9]{20,}$/;
40
40
  function environmentRefFromPublishableApiKey(apiKey) {
41
41
  const match = PUBLISHABLE_API_KEY_RE.exec(apiKey);
42
42
  return match ? match[1] ?? "" : "";
@@ -181,7 +181,7 @@ function wirePlatform() {
181
181
  return host === "browser" ? "web" : host;
182
182
  }
183
183
  var PALBASE_DEFAULT_HOST = "api.palbase.studio";
184
- var API_KEY_RE = /^pb_([a-z0-9]{4,24})_c[A-Za-z0-9]{20}$/;
184
+ var API_KEY_RE = /^pb_([a-z0-9]{4,24})_c[A-Za-z0-9]{20,}$/;
185
185
  function parseEnvironmentRef(apiKey) {
186
186
  return API_KEY_RE.exec(apiKey)?.[1] ?? null;
187
187
  }
@@ -257,7 +257,7 @@ var HttpClient = class _HttpClient {
257
257
  if (this.apiKey && parseEnvironmentRef(this.apiKey) === null) {
258
258
  throw new PalbaseError(
259
259
  "invalid_api_key",
260
- 'Invalid API key format. Expected pb_{environment_ref}_c{20_base62_chars}. For dev/staging pass `url: "https://api.dev.palbase.studio"` via options.',
260
+ '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.',
261
261
  0
262
262
  );
263
263
  }
@@ -9219,7 +9219,7 @@ function defaultSessionStorage(key) {
9219
9219
  }
9220
9220
 
9221
9221
  // src/version.ts
9222
- var VERSION = "7.3.7";
9222
+ var VERSION = "7.3.9";
9223
9223
 
9224
9224
  // src/runtime.ts
9225
9225
  function buildRuntime(config) {