MCPcopy Index your code
hub / github.com/react/react / getVersionString

Function getVersionString

packages/react-devtools-extensions/utils.js:26–38  ·  view source on GitHub ↗
(packageVersion = null)

Source from the content-addressed store, hash-verified

24}
25
26function getVersionString(packageVersion = null) {
27 if (packageVersion == null) {
28 packageVersion = JSON.parse(
29 readFileSync(
30 resolve(__dirname, '..', 'react-devtools-core', './package.json'),
31 ),
32 ).version;
33 }
34
35 const commit = getGitCommit();
36
37 return `${packageVersion}-${commit}`;
38}
39
40module.exports = {
41 GITHUB_URL,

Callers 6

webpack.config.jsFile · 0.85
webpack.backend.jsFile · 0.85
webpack-server.jsFile · 0.85
webpack.config.jsFile · 0.85

Calls 2

getGitCommitFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected