@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.mjs CHANGED
@@ -491,7 +491,7 @@ function httpStatusToErrorCode(status) {
491
491
  return status >= 500 ? "INTERNAL_SERVER_ERROR" : "BAD_REQUEST";
492
492
  }
493
493
  }
494
- var REF_PATTERN = /^[a-z0-9]{16}$/;
494
+ var REF_PATTERN = /^[a-z0-9]{12}$/;
495
495
  function createConfig(input) {
496
496
  let secretKey;
497
497
  if (input.secretKey) {
@@ -510,7 +510,7 @@ function createConfig(input) {
510
510
  const trimmedRef = input.ref.trim();
511
511
  if (!REF_PATTERN.test(trimmedRef)) {
512
512
  throw new SylphxError(
513
- `[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.`,
513
+ `[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.`,
514
514
  { code: "BAD_REQUEST" }
515
515
  );
516
516
  }