MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / isUpdateAllowed

Function isUpdateAllowed

bin/lib/updateIndex.mjs:50–55  ·  view source on GitHub ↗
(indexFilePath)

Source from the content-addressed store, hash-verified

48}
49
50function isUpdateAllowed (indexFilePath) {
51 const indexSource = fs.readFileSync(indexFilePath, 'utf-8')
52 const $ = cheerio.load(indexSource)
53 const allowAutomaticUpdateValue = $('meta[name="solid-allow-automatic-updates"]').prop('content')
54 return !allowAutomaticUpdateValue || allowAutomaticUpdateValue === 'true'
55}

Callers 1

updateIndex.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected