- extract 4 diff fns into generic diffEntries + diffEntriesCode - drop 120s polling loop; await gzip promise directly - filter-before-map in webhook, inline color cast helpers - decompose drawSections into measure/render helpers - validate colors VM eval result shape - chain git commits via lastCommit promise - drop unused Differs fields, trim types
31 lines
498 B
TypeScript
31 lines
498 B
TypeScript
import { type CodeDiff, DiffType } from "./types";
|
|
|
|
export default {
|
|
raw: new Map(),
|
|
semantic: new Map(),
|
|
icons: new Map(),
|
|
code: new Map<string, CodeDiff>([
|
|
[
|
|
"app/foomodule.tsx",
|
|
{
|
|
type: DiffType.Added,
|
|
size: 24782,
|
|
},
|
|
],
|
|
[
|
|
"app/ui/barmodule.ts",
|
|
{
|
|
type: DiffType.Renamed,
|
|
oldName: "app/legacy/ui/bar_module.ts",
|
|
size: 5212,
|
|
},
|
|
],
|
|
[
|
|
"app/intl/ReallyBigCoolComponent.tsx",
|
|
{
|
|
type: DiffType.Removed,
|
|
size: 46532,
|
|
},
|
|
],
|
|
]),
|
|
};
|