MCPcopy Index your code
hub / github.com/changesets/changesets / jsonParse

Function jsonParse

packages/cli/src/commands/publish/npm-utils.ts:32–41  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

30);
31
32function jsonParse(input: string) {
33 try {
34 return JSON.parse(input);
35 } catch (err) {
36 if (err instanceof SyntaxError) {
37 console.error("error parsing json:", input);
38 }
39 throw err;
40 }
41}
42
43export const isCustomRegistry = (registry?: string): boolean => {
44 return (

Callers 2

getTokenIsRequiredFunction · 0.85
getPackageInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected