MCPcopy
hub / github.com/di-sukharev/opencommit / safeJSON

Function safeJSON

out/cli.cjs:70047–70053  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

70045 if (platform)
70046 return `Other:${platform}`;
70047 return "Unknown";
70048};
70049var _platformHeaders;
70050var getPlatformHeaders = () => {
70051 return _platformHeaders ?? (_platformHeaders = getPlatformProperties());
70052};
70053var safeJSON = (text) => {
70054 try {
70055 return JSON.parse(text);
70056 } catch (err) {

Callers 2

iterator2Method · 0.85
makeRequestMethod · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…