module

Noir::FirebaseFunctionsExtractor

Firebase / Cloud Functions HTTPS functions declared with firebase-functions: v1 functions.https.onRequest(...) / .onCall(...) (optionally behind .region(...) / .runWith(...)) and v2 onRequest(...) / onCall(...) from firebase-functions/v2/https. The deployed function is named after its export, so the export name is the route.

Constants

EXPORT = /(?:\b(?:module\.)?exports\.([A-Za-z_$][\w$]*)|\bexport\s+(?:const|let|var)\s+([A-Za-z_$][\w$]*)(?:\s*:[^=;\n]+)?)\s*=\s*(?:[A-Za-z_$][\w$]*(?:\s*\([^()]*(?:\([^()]*\)[^()]*)*\))?\s*\.\s*)*(onRequest|onCall|onCallGenkit)\s*\(/

exports.api = / module.exports.api = / export const api: T =, then a call chain ending in the trigger. Chain segments may carry one level of nested parens: .region(defineString("REGION")).

Instance methods

extract(content : String) : Array(Trigger)
Source

Nested types