refactor(artifacts): centralize stable inventory identities
This commit is contained in:
@@ -189,10 +189,14 @@ export const projectAppleApplication = (
|
||||
};
|
||||
return appleApplicationProjectionResultSchema.parse({
|
||||
...withoutId,
|
||||
projection_id: `aap_${digest(withoutId)}`,
|
||||
projection_id: appleProjectionId(withoutId),
|
||||
});
|
||||
};
|
||||
|
||||
/** Identify the complete projection, including source Evidence provenance. */
|
||||
export const appleProjectionId = (projection: unknown): string =>
|
||||
`aap_${digest(projection)}`;
|
||||
|
||||
/**
|
||||
* IPA projection keeps every archive component, as before. Directory, ZIP,
|
||||
* and DMG inventories can hold installers and other siblings, so only
|
||||
|
||||
Reference in New Issue
Block a user