MCPcopy Index your code
hub / github.com/freshframework/fresh / formatUpgradeMsg

Function formatUpgradeMsg

tools/release.ts:62–72  ·  view source on GitHub ↗
(
  name: string,
  from: semver.SemVer,
  to: semver.SemVer,
)

Source from the content-addressed store, hash-verified

60const currentUpdate = semver.parse(updateJson.version);
61
62function formatUpgradeMsg(
63 name: string,
64 from: semver.SemVer,
65 to: semver.SemVer,
66): string {
67 const nameMsg = cl.yellow(name);
68 const fromMsg = cl.green(semver.format(from));
69 const toMsg = cl.yellow(semver.format(to));
70
71 return ` ${nameMsg}: ${fromMsg} -> ${toMsg}`;
72}
73
74// deno-lint-ignore no-console
75console.log(formatUpgradeMsg(denoJson.name!, current, next));

Callers 1

release.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected