MCPcopy
hub / github.com/graphile/starter / snapshotSafe

Function snapshotSafe

@app/db/__tests__/helpers.ts:161–162  ·  view source on GitHub ↗
(obj: { [key: string]: unknown })

Source from the content-addressed store, hash-verified

159 );
160
161export const snapshotSafe = (obj: { [key: string]: unknown }) =>
162 pruneHashes(pruneUUIDs(pruneIds(pruneDates(obj))));
163
164export const deepSnapshotSafe = (obj: { [key: string]: unknown }): any => {
165 if (Array.isArray(obj)) {

Calls 4

pruneHashesFunction · 0.85
pruneUUIDsFunction · 0.85
pruneIdsFunction · 0.85
pruneDatesFunction · 0.85

Tested by

no test coverage detected