MCPcopy
hub / github.com/midrender/revideo / getCurrentVersion

Function getCurrentVersion

packages/telemetry/src/index.ts:22–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22async function getCurrentVersion() {
23 try {
24 const packageData = JSON.parse(
25 // Relative to this file: ../package.json
26 await fs.promises.readFile(
27 path.resolve(__dirname, '../package.json'),
28 'utf-8',
29 ),
30 );
31
32 return packageData.version;
33 } catch (e) {
34 return 'ERROR';
35 }
36}
37
38async function getDistinctId() {
39 try {

Callers 1

sendEventFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected