MCPcopy Create free account
hub / github.com/AppAndFlow/react-native-safe-area-context / assertMatching

Function assertMatching

scripts/publish-package.mjs:52–58  ·  view source on GitHub ↗
(record, version, integrity)

Source from the content-addressed store, hash-verified

50}
51
52export function assertMatching(record, version, integrity) {
53 if (record?.version !== version || record?.['dist.integrity'] !== integrity) {
54 throw new Error(
55 'Existing registry version differs from the verified tarball.',
56 );
57 }
58}
59
60export async function publishVerified({
61 version,

Callers 1

publishVerifiedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected