MCPcopy
hub / github.com/github/awesome-copilot / isUnsafeFieldName

Function isUnsafeFieldName

extensions/site-studio/extension.mjs:710–712  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

708
709const UNSAFE_FIELD_NAMES = new Set(["__proto__", "prototype", "constructor"]);
710function isUnsafeFieldName(name) {
711 return UNSAFE_FIELD_NAMES.has(name);
712}
713
714function upsertSectionContent(sectionId, field, value, mark = "draft", author = "agent") {
715 const section = findSectionOrThrow(sectionId);

Callers 1

upsertSectionContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected