@palbase/web 7.3.8 → 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/{chunk-6DGCUHSO.js → chunk-EAOROUSW.js} +3 -3
- package/dist/chunk-EAOROUSW.js.map +1 -0
- package/dist/{chunk-HT5SNA5H.js → chunk-FCIMEU2E.js} +2 -2
- package/dist/{chunk-A42CPPQ7.js → chunk-H6YSCGQC.js} +4 -4
- package/dist/{chunk-A42CPPQ7.js.map → chunk-H6YSCGQC.js.map} +1 -1
- package/dist/{chunk-CFDU23TB.js → chunk-Q5DUDL77.js} +3 -3
- package/dist/chunk-Q5DUDL77.js.map +1 -0
- package/dist/gen/cli.cjs +1 -1
- package/dist/gen/cli.cjs.map +1 -1
- package/dist/gen/cli.js +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 +3 -3
- package/dist/internal.cjs +4 -4
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.js +3 -3
- package/dist/next/client.cjs +4 -4
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.js +3 -3
- package/dist/next/index.cjs +5 -5
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.js +4 -4
- package/dist/next/proxy.cjs +1 -1
- package/dist/next/proxy.cjs.map +1 -1
- package/dist/next/proxy.js +3 -3
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-6DGCUHSO.js.map +0 -1
- package/dist/chunk-CFDU23TB.js.map +0 -1
- /package/dist/{chunk-HT5SNA5H.js.map → chunk-FCIMEU2E.js.map} +0 -0
package/dist/internal.js
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
createBoundClient,
|
|
7
7
|
getRuntime,
|
|
8
8
|
onConfigured
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
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,
|
package/dist/next/client.cjs
CHANGED
|
@@ -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{
|
|
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.
|
|
9222
|
+
var VERSION = "7.3.9";
|
|
9223
9223
|
|
|
9224
9224
|
// src/runtime.ts
|
|
9225
9225
|
function buildRuntime(config) {
|