@sylphx/sdk 0.3.3 → 0.3.4
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/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/nextjs/index.d.cts +14 -11
- package/dist/nextjs/index.d.ts +14 -11
- package/dist/nextjs/index.js +43 -15
- package/dist/nextjs/index.js.map +1 -1
- package/dist/nextjs/index.mjs +43 -15
- package/dist/nextjs/index.mjs.map +1 -1
- package/dist/react/index.d.cts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +2 -2
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +2 -2
- package/dist/react/index.mjs.map +1 -1
- package/dist/server/index.d.cts +14 -11
- package/dist/server/index.d.ts +14 -11
- package/dist/server/index.js +43 -15
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +43 -15
- package/dist/server/index.mjs.map +1 -1
- package/dist/web-analytics.js.map +1 -1
- package/dist/web-analytics.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react/index.mjs
CHANGED
|
@@ -43193,7 +43193,7 @@ function httpStatusToErrorCode(status) {
|
|
|
43193
43193
|
return status >= 500 ? "INTERNAL_SERVER_ERROR" : "BAD_REQUEST";
|
|
43194
43194
|
}
|
|
43195
43195
|
}
|
|
43196
|
-
var REF_PATTERN = /^[a-z0-9]{
|
|
43196
|
+
var REF_PATTERN = /^[a-z0-9]{12}$/;
|
|
43197
43197
|
function createConfig(input) {
|
|
43198
43198
|
let secretKey;
|
|
43199
43199
|
if (input.secretKey) {
|
|
@@ -43212,7 +43212,7 @@ function createConfig(input) {
|
|
|
43212
43212
|
const trimmedRef = input.ref.trim();
|
|
43213
43213
|
if (!REF_PATTERN.test(trimmedRef)) {
|
|
43214
43214
|
throw new SylphxError(
|
|
43215
|
-
`[Sylphx] Invalid project ref format: "${input.ref}". Expected a
|
|
43215
|
+
`[Sylphx] Invalid project ref format: "${input.ref}". Expected a 12-character lowercase alphanumeric string (e.g. "abc123def456"). Get your ref from Platform Console \u2192 Projects \u2192 Your Project \u2192 Overview.`,
|
|
43216
43216
|
{ code: "BAD_REQUEST" }
|
|
43217
43217
|
);
|
|
43218
43218
|
}
|