MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / safeJSON2

Function safeJSON2

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

Source from the content-addressed store, hash-verified

81044 if (platform)
81045 return `Other:${platform}`;
81046 return "Unknown";
81047};
81048var _platformHeaders2;
81049var getPlatformHeaders2 = () => {
81050 return _platformHeaders2 ?? (_platformHeaders2 = getPlatformProperties2());
81051};
81052var safeJSON2 = (text) => {
81053 try {
81054 return JSON.parse(text);
81055 } catch (err) {

Callers 1

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…