MCPcopy Create free account
hub / github.com/parse-community/parse-server / getFunctionNames

Function getFunctionNames

src/triggers.js:238–257  ·  view source on GitHub ↗
(applicationId)

Source from the content-addressed store, hash-verified

236}
237
238export function getFunctionNames(applicationId) {
239 const store =
240 (_triggerStore[applicationId] && _triggerStore[applicationId][Category.Functions]) || {};
241 const functionNames = [];
242 const extractFunctionNames = (namespace, store) => {
243 Object.keys(store).forEach(name => {
244 const value = store[name];
245 if (namespace) {
246 name = `${namespace}.${name}`;
247 }
248 if (typeof value === 'function') {
249 functionNames.push(name);
250 } else {
251 extractFunctionNames(name, value);
252 }
253 });
254 };
255 extractFunctionNames(null, store);
256 return functionNames;
257}
258
259export function getJob(jobName, applicationId) {
260 return get(Category.Jobs, jobName, applicationId);

Callers 1

_getFunctionNamesMethod · 0.90

Calls 1

extractFunctionNamesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…