MCPcopy Create free account
hub / github.com/jhen0409/react-native-debugger / revert

Function revert

npm-package/src/injectDevToolsMiddleware.js:232–241  ·  view source on GitHub ↗
(modulePath, moduleName)

Source from the content-addressed store, hash-verified

230}
231
232export const revert = (modulePath, moduleName) => {
233 const info = getModuleInfo(modulePath, moduleName)
234 const flagList = getFlag(info.name, info.version)
235 if (Array.isArray(flagList)) {
236 flagList.some((flag) => revertCode(modulePath, flag))
237 } else {
238 revertCode(modulePath, flagList)
239 }
240 return true
241}

Calls 3

getModuleInfoFunction · 0.85
getFlagFunction · 0.85
revertCodeFunction · 0.85

Tested by

no test coverage detected