MCPcopy Index your code
hub / github.com/reactnativecn/react-native-update / assertHash

Function assertHash

src/client.ts:103–112  ·  view source on GitHub ↗
(hash: string)

Source from the content-addressed store, hash-verified

101};
102
103const assertHash = (hash: string) => {
104 if (!sharedState.downloadedHash) {
105 return;
106 }
107 if (hash !== sharedState.downloadedHash) {
108 log(`use downloaded hash ${sharedState.downloadedHash} first`);
109 return;
110 }
111 return true;
112};
113
114// for China users
115export class Pushy {

Callers 1

PushyClass · 0.85

Calls 1

logFunction · 0.90

Tested by

no test coverage detected