MCPcopy Create free account
hub / github.com/gnmyt/Nexterm / parse

Function parse

server/models/Script.js:51–55  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

49 hooks: {
50 afterFind: (results) => {
51 const parse = (item) => {
52 if (item?.osFilter && typeof item.osFilter === 'string') {
53 try { item.osFilter = JSON.parse(item.osFilter); } catch {}
54 }
55 };
56 Array.isArray(results) ? results.forEach(parse) : parse(results);
57 },
58 },

Callers 1

Script.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected