We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77ff89d commit 0cb6fb9Copy full SHA for 0cb6fb9
packages/snaps-utils/src/manifest/validators/production-platform-version.ts
@@ -24,7 +24,8 @@ const determineProductionVersion = useFileSystemCache(
24
const latestReleaseCommit = latestReleaseJson.target_commitish;
25
26
const packageJsonResponse = await fetch(
27
- `https://raw.githubusercontent.com/MetaMask/metamask-extension/${latestReleaseCommit}/package.json`,
+ `https://api.github.com/repos/metamask/metamask-extension/contents/package.json?ref=${latestReleaseCommit}`,
28
+ { headers: new Headers({ accept: 'application/vnd.github.raw+json' }) },
29
);
30
31
const packageJson = await packageJsonResponse.json();
0 commit comments