From f020ba505ac9d9718e6efbee73d55250214024ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Bou=C3=A7as?= Date: Wed, 21 May 2025 15:20:31 +0100 Subject: [PATCH 1/3] feat: surface routes in `listFunctions` result --- packages/zip-it-and-ship-it/src/main.ts | 5 ++ .../__snapshots__/list_functions.test.ts.snap | 80 +++++++++++++++++++ .../tests/list_functions.test.ts | 10 +++ 3 files changed, 95 insertions(+) diff --git a/packages/zip-it-and-ship-it/src/main.ts b/packages/zip-it-and-ship-it/src/main.ts index 877ff7c4ca..967c7d0324 100644 --- a/packages/zip-it-and-ship-it/src/main.ts +++ b/packages/zip-it-and-ship-it/src/main.ts @@ -9,6 +9,7 @@ import { ModuleFormat } from './runtimes/node/utils/module_format.js' import { GetSrcFilesFunction, RuntimeName, RUNTIME } from './runtimes/runtime.js' import { RuntimeCache } from './utils/cache.js' import { listFunctionsDirectories, resolveFunctionsDirectories } from './utils/fs.js' +import type { ExtendedRoute, Route } from './utils/routes.js' export { Config, FunctionConfig } from './config.js' export { zipFunction, zipFunctions, ZipFunctionOptions, ZipFunctionsOptions } from './zip.js' @@ -33,6 +34,8 @@ export interface ListedFunction { generator?: string timeout?: number inputModuleFormat?: ModuleFormat + excludedRoutes?: Route[] + routes?: ExtendedRoute[] } type ListedFunctionFile = ListedFunction & { @@ -145,10 +148,12 @@ const getListedFunction = function ({ return { displayName: config.name, extension, + excludedRoutes: staticAnalysisResult?.excludedRoutes, generator: config.generator, timeout: config.timeout, mainFile, name, + routes: staticAnalysisResult?.routes, runtime: runtime.name, runtimeAPIVersion: staticAnalysisResult ? (staticAnalysisResult?.runtimeAPIVersion ?? 1) : undefined, schedule: staticAnalysisResult?.config?.schedule ?? config.schedule, diff --git a/packages/zip-it-and-ship-it/tests/__snapshots__/list_functions.test.ts.snap b/packages/zip-it-and-ship-it/tests/__snapshots__/list_functions.test.ts.snap index 81328c760c..816f1e46ed 100644 --- a/packages/zip-it-and-ship-it/tests/__snapshots__/list_functions.test.ts.snap +++ b/packages/zip-it-and-ship-it/tests/__snapshots__/list_functions.test.ts.snap @@ -1,13 +1,45 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +exports[`listFunctions > V2 API > listFunctions includes routes when parseISC is true 1`] = ` +{ + "displayName": undefined, + "excludedRoutes": [ + { + "expression": "^\\\\/products\\\\/sale(.*)\\\\/?$", + "pattern": "/products/sale*", + }, + ], + "extension": ".mjs", + "generator": undefined, + "inputModuleFormat": "esm", + "mainFile": "with-excluded-expression.mjs", + "name": "with-excluded-expression", + "routes": [ + { + "expression": "^\\\\/products(?:\\\\/([^\\\\/]+?))\\\\/?$", + "methods": [], + "pattern": "/products/:id", + "prefer_static": undefined, + }, + ], + "runtime": "js", + "runtimeAPIVersion": 2, + "schedule": undefined, + "srcFile": undefined, + "timeout": undefined, +} +`; + exports[`listFunctions > V2 API > listFunctions includes runtimeAPIVersion when parseISC is true 1`] = ` { "displayName": undefined, + "excludedRoutes": [], "extension": ".ts", "generator": undefined, "inputModuleFormat": "esm", "mainFile": "function.ts", "name": "function", + "routes": [], "runtime": "js", "runtimeAPIVersion": 2, "schedule": undefined, @@ -20,11 +52,13 @@ exports[`listFunctions > v1 > Can list function main files from multiple source [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -33,11 +67,13 @@ exports[`listFunctions > v1 > Can list function main files from multiple source }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -46,11 +82,13 @@ exports[`listFunctions > v1 > Can list function main files from multiple source }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -59,11 +97,13 @@ exports[`listFunctions > v1 > Can list function main files from multiple source }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -77,11 +117,13 @@ exports[`listFunctions > v1 > Can list function main files with listFunctions() [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".zip", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.zip", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -90,11 +132,13 @@ exports[`listFunctions > v1 > Can list function main files with listFunctions() }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.js", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -103,11 +147,13 @@ exports[`listFunctions > v1 > Can list function main files with listFunctions() }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".ts", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "five/index.ts", "name": "five", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -116,11 +162,13 @@ exports[`listFunctions > v1 > Can list function main files with listFunctions() }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "four.js/four.js.js", "name": "four", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -129,11 +177,13 @@ exports[`listFunctions > v1 > Can list function main files with listFunctions() }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "one/index.js", "name": "one", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -142,11 +192,13 @@ exports[`listFunctions > v1 > Can list function main files with listFunctions() }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "two/two.js", "name": "two", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -155,11 +207,13 @@ exports[`listFunctions > v1 > Can list function main files with listFunctions() }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": "", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test", "name": "test", + "routes": undefined, "runtime": "go", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -173,11 +227,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": "cjs", "mainFile": "cron_cjs.js", "name": "cron_cjs", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", @@ -186,11 +242,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": "cjs", "mainFile": "cron_cjs_exports.js", "name": "cron_cjs_exports", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", @@ -199,11 +257,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": "cjs", "mainFile": "cron_cjs_renamed.js", "name": "cron_cjs_renamed", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", @@ -212,11 +272,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": "esm", "mainFile": "cron_esm.js", "name": "cron_esm", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", @@ -225,11 +287,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": "esm", "mainFile": "cron_esm_additional_schedule_import.js", "name": "cron_esm_additional_schedule_import", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", @@ -238,11 +302,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": "esm", "mainFile": "cron_esm_no_direct_export.js", "name": "cron_esm_no_direct_export", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", @@ -251,11 +317,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": "esm", "mainFile": "cron_esm_no_direct_export_renamed.js", "name": "cron_esm_no_direct_export_renamed", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", @@ -264,11 +332,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": "esm", "mainFile": "cron_esm_no_direct_export_renamed_reassigned.js", "name": "cron_esm_no_direct_export_renamed_reassigned", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", @@ -277,11 +347,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": "esm", "mainFile": "cron_esm_renamed.js", "name": "cron_esm_renamed", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", @@ -290,11 +362,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": "esm", "mainFile": "cron_esm_schedule_multi_import.js", "name": "cron_esm_schedule_multi_import", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", @@ -303,11 +377,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": "esm", "mainFile": "cron_esm_schedule_reassigned.js", "name": "cron_esm_schedule_reassigned", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", @@ -316,11 +392,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".ts", "generator": undefined, "inputModuleFormat": "esm", "mainFile": "cron_ts.ts", "name": "cron_ts", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", @@ -329,11 +407,13 @@ exports[`listFunctions > v1 > listFunctions includes in-source config declaratio }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".ts", "generator": undefined, "inputModuleFormat": "esm", "mainFile": "cron_ts_renamed.ts", "name": "cron_ts_renamed", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": 1, "schedule": "@daily", diff --git a/packages/zip-it-and-ship-it/tests/list_functions.test.ts b/packages/zip-it-and-ship-it/tests/list_functions.test.ts index 6b63efd18f..0919e5ed95 100644 --- a/packages/zip-it-and-ship-it/tests/list_functions.test.ts +++ b/packages/zip-it-and-ship-it/tests/list_functions.test.ts @@ -95,5 +95,15 @@ describe('listFunctions', () => { expect(normalizeFiles(fixtureDir, func)).toMatchSnapshot() }) + + test('listFunctions includes routes when parseISC is true', async () => { + const fixtureDir = join(FIXTURES_ESM_DIR, 'v2-api-with-path') + const [func] = await listFunctions([fixtureDir], { + basePath: fixtureDir, + parseISC: true, + }) + + expect(normalizeFiles(fixtureDir, func)).toMatchSnapshot() + }) }) }) From 02935f7eaeb05fb76a89bbed67dd1c77d3946c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Bou=C3=A7as?= Date: Wed, 21 May 2025 15:43:25 +0100 Subject: [PATCH 2/3] chore: update snapshot --- .../list_functions_files.test.ts.snap | 188 ++++++++++++++++++ 1 file changed, 188 insertions(+) diff --git a/packages/zip-it-and-ship-it/tests/__snapshots__/list_functions_files.test.ts.snap b/packages/zip-it-and-ship-it/tests/__snapshots__/list_functions_files.test.ts.snap index 702414cd7c..255963e598 100644 --- a/packages/zip-it-and-ship-it/tests/__snapshots__/list_functions_files.test.ts.snap +++ b/packages/zip-it-and-ship-it/tests/__snapshots__/list_functions_files.test.ts.snap @@ -4,11 +4,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -17,11 +19,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -30,11 +34,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -43,11 +49,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -56,11 +64,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -69,11 +79,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -82,11 +94,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -95,11 +109,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -108,11 +124,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -121,11 +139,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -134,11 +154,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -147,11 +169,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -165,11 +189,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -178,11 +204,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -191,11 +219,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -204,11 +234,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -217,11 +249,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -230,11 +264,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -243,11 +279,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -256,11 +294,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -269,11 +309,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -282,11 +324,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -295,11 +339,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -308,11 +354,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -326,11 +374,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -339,11 +389,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -352,11 +404,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -365,11 +419,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -383,11 +439,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -396,11 +454,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -409,11 +469,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -422,11 +484,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -440,11 +504,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -453,11 +519,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -466,11 +534,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -479,11 +549,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -492,11 +564,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -505,11 +579,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -518,11 +594,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -531,11 +609,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -544,11 +624,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -557,11 +639,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -570,11 +654,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -583,11 +669,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -601,11 +689,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -614,11 +704,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": ".netlify/internal-functions/function_internal.js", "name": "function_internal", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -627,11 +719,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function.js", "name": "function", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -640,11 +734,13 @@ exports[`listFunctionsFiles > Can list all function files from multiple source d }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "netlify/functions/function_user.js", "name": "function_user", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -658,11 +754,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".zip", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.zip", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -671,11 +769,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.js", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -684,11 +784,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".ts", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "five/index.ts", "name": "five", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -697,11 +799,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "four.js/four.js.js", "name": "four", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -710,11 +814,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "one/index.js", "name": "one", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -723,11 +829,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "two/two.js", "name": "two", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -736,11 +844,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "two/two.js", "name": "two", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -749,11 +859,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": "", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test", "name": "test", + "routes": undefined, "runtime": "go", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -767,11 +879,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".zip", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.zip", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -780,11 +894,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.js", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -793,11 +909,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".ts", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "five/index.ts", "name": "five", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -806,11 +924,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "four.js/four.js.js", "name": "four", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -819,11 +939,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "one/index.js", "name": "one", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -832,11 +954,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "two/two.js", "name": "two", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -845,11 +969,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "two/two.js", "name": "two", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -858,11 +984,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": "", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test", "name": "test", + "routes": undefined, "runtime": "go", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -876,11 +1004,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".zip", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.zip", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -889,11 +1019,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.js", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -902,11 +1034,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".ts", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "five/index.ts", "name": "five", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -915,11 +1049,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "four.js/four.js.js", "name": "four", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -928,11 +1064,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "one/index.js", "name": "one", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -941,11 +1079,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "two/two.js", "name": "two", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -954,11 +1094,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": "", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test", "name": "test", + "routes": undefined, "runtime": "go", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -972,11 +1114,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".zip", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.zip", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -985,11 +1129,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.js", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -998,11 +1144,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".ts", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "five/index.ts", "name": "five", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1011,11 +1159,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "four.js/four.js.js", "name": "four", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1024,11 +1174,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "one/index.js", "name": "one", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1037,11 +1189,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "two/two.js", "name": "two", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1050,11 +1204,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": "", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test", "name": "test", + "routes": undefined, "runtime": "go", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1068,11 +1224,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".zip", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.zip", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1081,11 +1239,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.js", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1094,11 +1254,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".ts", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "five/index.ts", "name": "five", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1107,11 +1269,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".ts", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "five/index.ts", "name": "five", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1120,11 +1284,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "four.js/four.js.js", "name": "four", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1133,11 +1299,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "one/index.js", "name": "one", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1146,11 +1314,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "two/two.js", "name": "two", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1159,11 +1329,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".json", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "two/two.js", "name": "two", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1172,11 +1344,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": "", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test", "name": "test", + "routes": undefined, "runtime": "go", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1190,11 +1364,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile [ { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".zip", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.zip", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1203,11 +1379,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test.js", "name": "test", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1216,11 +1394,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".ts", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "five/index.ts", "name": "five", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1229,11 +1409,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "four.js/four.js.js", "name": "four", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1242,11 +1424,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "one/index.js", "name": "one", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1255,11 +1439,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": ".js", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "two/two.js", "name": "two", + "routes": undefined, "runtime": "js", "runtimeAPIVersion": undefined, "schedule": undefined, @@ -1268,11 +1454,13 @@ exports[`listFunctionsFiles > Can list all function files with listFunctionsFile }, { "displayName": undefined, + "excludedRoutes": undefined, "extension": "", "generator": undefined, "inputModuleFormat": undefined, "mainFile": "test", "name": "test", + "routes": undefined, "runtime": "go", "runtimeAPIVersion": undefined, "schedule": undefined, From 5316264b36ab0e027456734a6f52138b3c70b396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Bou=C3=A7as?= Date: Wed, 21 May 2025 16:31:45 +0100 Subject: [PATCH 3/3] chore: update snapshot --- .../tests/__snapshots__/list_function.test.ts.snap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/zip-it-and-ship-it/tests/__snapshots__/list_function.test.ts.snap b/packages/zip-it-and-ship-it/tests/__snapshots__/list_function.test.ts.snap index f17f9e932e..fe0a4f65f3 100644 --- a/packages/zip-it-and-ship-it/tests/__snapshots__/list_function.test.ts.snap +++ b/packages/zip-it-and-ship-it/tests/__snapshots__/list_function.test.ts.snap @@ -3,11 +3,13 @@ exports[`listFunction > V2 API > listFunction includes metadata properties when parseISC true 1`] = ` { "displayName": undefined, + "excludedRoutes": [], "extension": ".ts", "generator": undefined, "inputModuleFormat": "esm", "mainFile": "v2-api-esm-ts-aliases/function.ts", "name": "function", + "routes": [], "runtime": "js", "runtimeAPIVersion": 2, "schedule": undefined,