MCPcopy Create free account
hub / github.com/firebase/firebase-tools / wrappedSafeLoad

Function wrappedSafeLoad

src/utils.ts:848–854  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

846 * errors.
847 */
848export function wrappedSafeLoad(source: string): any {
849 try {
850 return yaml.parse(source);
851 } catch (err: unknown) {
852 throw new FirebaseError(`YAML Error: ${getErrMsg(err)}`, { original: getError(err) });
853 }
854}
855
856/**
857 * Generate id meeting the following criterias:

Callers 7

readDataConnectYamlFunction · 0.90
readConnectorYamlFunction · 0.90
parseBundleYamlFunction · 0.90
loadFromFileMethod · 0.90
upsertFileMethod · 0.90
parseTestFilesRecursiveFunction · 0.90
readExtensionYamlFunction · 0.90

Calls 3

getErrMsgFunction · 0.90
getErrorFunction · 0.90
parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…