MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / hasAsset

Function hasAsset

scripts/release-helper.mjs:77–80  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

75}
76
77export async function hasAsset(fileName) {
78 const release = await getRelease();
79 return release?.assets.some((asset) => asset.name === fileName);
80}
81
82export async function uploadAssets() {
83 const release = await ensureRelease();

Callers 1

handleAddonFunction · 0.90

Calls 1

getReleaseFunction · 0.85

Tested by

no test coverage detected