make (integromat) JS modules run inside an async function with access to bundle (input data) and connection.
make (formerly integromat) javascript modules let you write custom code to process data in your automations. your code has access to bundle (input data), connection (API credentials), and module (module configuration).
codefmt handles make's async function wrapper and suppresses false positive linting errors for make-specific globals.
make supports four module types — actions, searches, triggers, and aggregators — each with different code patterns and return structures. codefmt's make-specific lint plugin understands these patterns and provides accurate linting across all module types, catching issues like missing return values and incorrect bundle.inputData access.
the bundle object contains your input data. use bundle.inputData to access the data passed from previous modules in your scenario. codefmt recognizes bundle and its properties as valid make globals.
yes, fetch is available as a global in make's javascript runtime. you can use it to make HTTP requests. codefmt recognizes fetch as a valid global and won't flag it as undefined.
make supports four module types: action modules perform operations like creating or updating records, search modules retrieve data based on criteria, trigger modules start scenarios when new data is available, and aggregator modules combine multiple items into a single bundle. codefmt handles the code patterns for all four module types.
make wraps your javascript in an async function, similar to other automation platforms. codefmt adds the correct wrapper before formatting, then strips it back so you get clean code that pastes directly into make's code editor. this also enables top-level await to work without errors.
yes. codefmt includes a make-specific lint plugin that recognizes make globals like bundle, connection, and module. it suppresses false positives for these injected variables and catches common mistakes in make javascript modules, such as missing return values or incorrect bundle property access.