Skip to content

Commit

Permalink
chore: fix Edge Functions capitalization (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas authored Apr 18, 2022
1 parent 3f0ab6e commit b752067
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/lib/edge-functions/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,22 +180,22 @@ class EdgeFunctionsRegistry {
return
}

log(`${NETLIFYDEVLOG} ${chalk.magenta('Reloading')} Edge Functions...`)
log(`${NETLIFYDEVLOG} ${chalk.magenta('Reloading')} edge functions...`)

try {
await this.build(this.functions)

const functionNames = [...matchingFunctions]

if (functionNames.length === 0) {
log(`${NETLIFYDEVLOG} ${chalk.green('Reloaded')} Edge Functions`)
log(`${NETLIFYDEVLOG} ${chalk.green('Reloaded')} edge functions`)
} else {
functionNames.forEach((functionName) => {
log(`${NETLIFYDEVLOG} ${chalk.green('Reloaded')} Edge Function ${chalk.yellow(functionName)}`)
log(`${NETLIFYDEVLOG} ${chalk.green('Reloaded')} edge function ${chalk.yellow(functionName)}`)
})
}
} catch {
log(`${NETLIFYDEVERR} ${chalk.red('Failed')} reloading Edge Function`)
log(`${NETLIFYDEVERR} ${chalk.red('Failed')} reloading edge function`)
}
}

Expand All @@ -217,16 +217,16 @@ class EdgeFunctionsRegistry {
}

static logAddedFunction(func) {
log(`${NETLIFYDEVLOG} ${chalk.green('Loaded')} Edge Function ${chalk.yellow(func.name)}`)
log(`${NETLIFYDEVLOG} ${chalk.green('Loaded')} edge function ${chalk.yellow(func.name)}`)
}

static logDeletedFunction(func) {
log(`${NETLIFYDEVLOG} ${chalk.magenta('Removed')} Edge Function ${chalk.yellow(func.name)}`)
log(`${NETLIFYDEVLOG} ${chalk.magenta('Removed')} edge function ${chalk.yellow(func.name)}`)
}

processGraph(graph) {
if (!graph) {
warn('Could not process Edge Functions dependency graph. Live reload will not be available.')
warn('Could not process edge functions dependency graph. Live reload will not be available.')

return
}
Expand Down

0 comments on commit b752067

Please sign in to comment.