- validate: read-only App Store Connect + Play report with ordered blockers (exit 1) - apple release --phased on|pause|resume|complete and --manual-release (asks first) - apple status --wait-review (exit 0 approved, 1 rejected, 7 timeout), apple next-build, apple encryption - play rollout --fraction|--halt|--resume|--complete, play next-version-code - check --aso, whats-new --since <tag>, privacy-manifest --ios <path>, version - Apple IAP description limit is 45 characters (App Store Connect Help), not 55 - config: apple.usesNonExemptEncryption, apple.screenshotTypes, ads.appAdsTxt
13 lines
684 B
TypeScript
13 lines
684 B
TypeScript
// Plain URL reachability check for public pages (privacy policy, app-ads.txt). No credentials are ever sent.
|
|
import type { UrlCheck } from './validate-rules';
|
|
|
|
export async function checkUrl(url: string, o: { body?: boolean; timeoutMs?: number } = {}): Promise<UrlCheck> {
|
|
try {
|
|
const r = await fetch(url, { redirect: 'follow', signal: AbortSignal.timeout(o.timeoutMs ?? 15_000), headers: { 'User-Agent': 'storebound-validate' } });
|
|
const body = o.body ? (await r.text()).slice(0, 200_000) : undefined;
|
|
if (!o.body) await r.body?.cancel();
|
|
return { url, status: r.status, body };
|
|
} catch (e) {
|
|
return { url, status: null, error: (e as Error).message };
|
|
}
|
|
}
|