@rightkit/release 0.6.75 → 0.6.77

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.
@@ -24,7 +24,7 @@ function stableSha256(value) {
24
24
  return createHash("sha256").update(JSON.stringify(canonical(value))).digest("hex");
25
25
  }
26
26
 
27
- function assertIdentity({ product, version, target, sourceCommit }) {
27
+ export function assertIdentity({ product, version, target, sourceCommit }) {
28
28
  if (!/^[a-z][a-z0-9-]+$/.test(product ?? "")) throw new Error("supply-chain product is invalid");
29
29
  if (!VERSION.test(version ?? "")) throw new Error("supply-chain version must be stable SemVer");
30
30
  if (!/^(?:windows|macos)-(?:x86_64|arm64)$/.test(target ?? "")) throw new Error("supply-chain target is invalid");