@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.
@@ -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]{16}$/;
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 16-character lowercase alphanumeric string (e.g. "abc123def456ghij"). Get your ref from Platform Console \u2192 Projects \u2192 Your Project \u2192 Overview.`,
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
  }