MCPcopy Index your code
hub / github.com/zxlie/FeHelper / _coerceDecodedJsonSource

Function _coerceDecodedJsonSource

apps/json-format/content-script.js:131–139  ·  view source on GitHub ↗
(source, decodedSource)

Source from the content-addressed store, hash-verified

129 };
130
131 let _coerceDecodedJsonSource = (source, decodedSource) => {
132 const utils = _getJsonAutoUtils();
133 if (typeof utils.coerceDecodedJSONSource === 'function') {
134 return utils.coerceDecodedJSONSource(source, decodedSource, _getJsonParseOptions());
135 }
136
137 const parsed = _parseJsonLike(decodedSource);
138 return parsed ? parsed.normalizedSource : source;
139 };
140
141 let _isYamlLikeResource = () => {
142 const utils = _getJsonAutoUtils();

Callers 1

Calls 3

_getJsonAutoUtilsFunction · 0.85
_getJsonParseOptionsFunction · 0.85
_parseJsonLikeFunction · 0.85

Tested by

no test coverage detected