@depup/netlify-cli 24.3.0-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +54 -0
- package/bin/run.js +66 -0
- package/changes.json +102 -0
- package/dist/commands/agents/agents-create.d.ts +12 -0
- package/dist/commands/agents/agents-create.d.ts.map +1 -0
- package/dist/commands/agents/agents-create.js +131 -0
- package/dist/commands/agents/agents-create.js.map +1 -0
- package/dist/commands/agents/agents-list.d.ts +10 -0
- package/dist/commands/agents/agents-list.d.ts.map +1 -0
- package/dist/commands/agents/agents-list.js +115 -0
- package/dist/commands/agents/agents-list.js.map +1 -0
- package/dist/commands/agents/agents-show.d.ts +9 -0
- package/dist/commands/agents/agents-show.d.ts.map +1 -0
- package/dist/commands/agents/agents-show.js +127 -0
- package/dist/commands/agents/agents-show.js.map +1 -0
- package/dist/commands/agents/agents-stop.d.ts +11 -0
- package/dist/commands/agents/agents-stop.d.ts.map +1 -0
- package/dist/commands/agents/agents-stop.js +75 -0
- package/dist/commands/agents/agents-stop.js.map +1 -0
- package/dist/commands/agents/agents.d.ts +3 -0
- package/dist/commands/agents/agents.d.ts.map +1 -0
- package/dist/commands/agents/agents.js +83 -0
- package/dist/commands/agents/agents.js.map +1 -0
- package/dist/commands/agents/constants.d.ts +39 -0
- package/dist/commands/agents/constants.d.ts.map +1 -0
- package/dist/commands/agents/constants.js +29 -0
- package/dist/commands/agents/constants.js.map +1 -0
- package/dist/commands/agents/index.d.ts +2 -0
- package/dist/commands/agents/index.d.ts.map +1 -0
- package/dist/commands/agents/index.js +2 -0
- package/dist/commands/agents/index.js.map +1 -0
- package/dist/commands/agents/types.d.ts +48 -0
- package/dist/commands/agents/types.d.ts.map +1 -0
- package/dist/commands/agents/types.js +2 -0
- package/dist/commands/agents/types.js.map +1 -0
- package/dist/commands/agents/utils.d.ts +8 -0
- package/dist/commands/agents/utils.d.ts.map +1 -0
- package/dist/commands/agents/utils.js +51 -0
- package/dist/commands/agents/utils.js.map +1 -0
- package/dist/commands/api/api.d.ts +4 -0
- package/dist/commands/api/api.d.ts.map +1 -0
- package/dist/commands/api/api.js +42 -0
- package/dist/commands/api/api.js.map +1 -0
- package/dist/commands/api/index.d.ts +3 -0
- package/dist/commands/api/index.d.ts.map +1 -0
- package/dist/commands/api/index.js +14 -0
- package/dist/commands/api/index.js.map +1 -0
- package/dist/commands/base-command.d.ts +104 -0
- package/dist/commands/base-command.d.ts.map +1 -0
- package/dist/commands/base-command.js +637 -0
- package/dist/commands/base-command.js.map +1 -0
- package/dist/commands/blobs/blobs-delete.d.ts +5 -0
- package/dist/commands/blobs/blobs-delete.d.ts.map +1 -0
- package/dist/commands/blobs/blobs-delete.js +27 -0
- package/dist/commands/blobs/blobs-delete.js.map +1 -0
- package/dist/commands/blobs/blobs-get.d.ts +8 -0
- package/dist/commands/blobs/blobs-get.d.ts.map +1 -0
- package/dist/commands/blobs/blobs-get.js +34 -0
- package/dist/commands/blobs/blobs-get.js.map +1 -0
- package/dist/commands/blobs/blobs-list.d.ts +10 -0
- package/dist/commands/blobs/blobs-list.d.ts.map +1 -0
- package/dist/commands/blobs/blobs-list.js +39 -0
- package/dist/commands/blobs/blobs-list.js.map +1 -0
- package/dist/commands/blobs/blobs-set.d.ts +9 -0
- package/dist/commands/blobs/blobs-set.d.ts.map +1 -0
- package/dist/commands/blobs/blobs-set.js +49 -0
- package/dist/commands/blobs/blobs-set.js.map +1 -0
- package/dist/commands/blobs/blobs.d.ts +6 -0
- package/dist/commands/blobs/blobs.d.ts.map +1 -0
- package/dist/commands/blobs/blobs.js +82 -0
- package/dist/commands/blobs/blobs.js.map +1 -0
- package/dist/commands/build/build.d.ts +6 -0
- package/dist/commands/build/build.d.ts.map +1 -0
- package/dist/commands/build/build.js +39 -0
- package/dist/commands/build/build.js.map +1 -0
- package/dist/commands/build/index.d.ts +3 -0
- package/dist/commands/build/index.d.ts.map +1 -0
- package/dist/commands/build/index.js +25 -0
- package/dist/commands/build/index.js.map +1 -0
- package/dist/commands/clone/clone.d.ts +7 -0
- package/dist/commands/clone/clone.d.ts.map +1 -0
- package/dist/commands/clone/clone.js +64 -0
- package/dist/commands/clone/clone.js.map +1 -0
- package/dist/commands/clone/index.d.ts +3 -0
- package/dist/commands/clone/index.d.ts.map +1 -0
- package/dist/commands/clone/index.js +30 -0
- package/dist/commands/clone/index.js.map +1 -0
- package/dist/commands/clone/option_values.d.ts +6 -0
- package/dist/commands/clone/option_values.d.ts.map +1 -0
- package/dist/commands/clone/option_values.js +2 -0
- package/dist/commands/clone/option_values.js.map +1 -0
- package/dist/commands/completion/completion.d.ts +5 -0
- package/dist/commands/completion/completion.d.ts.map +1 -0
- package/dist/commands/completion/completion.js +67 -0
- package/dist/commands/completion/completion.js.map +1 -0
- package/dist/commands/completion/index.d.ts +3 -0
- package/dist/commands/completion/index.d.ts.map +1 -0
- package/dist/commands/completion/index.js +27 -0
- package/dist/commands/completion/index.js.map +1 -0
- package/dist/commands/database/constants.d.ts +4 -0
- package/dist/commands/database/constants.d.ts.map +1 -0
- package/dist/commands/database/constants.js +4 -0
- package/dist/commands/database/constants.js.map +1 -0
- package/dist/commands/database/database.d.ts +18 -0
- package/dist/commands/database/database.d.ts.map +1 -0
- package/dist/commands/database/database.js +94 -0
- package/dist/commands/database/database.js.map +1 -0
- package/dist/commands/database/db-connection.d.ts +8 -0
- package/dist/commands/database/db-connection.d.ts.map +1 -0
- package/dist/commands/database/db-connection.js +41 -0
- package/dist/commands/database/db-connection.js.map +1 -0
- package/dist/commands/database/drizzle.d.ts +3 -0
- package/dist/commands/database/drizzle.d.ts.map +1 -0
- package/dist/commands/database/drizzle.js +96 -0
- package/dist/commands/database/drizzle.js.map +1 -0
- package/dist/commands/database/index.d.ts +2 -0
- package/dist/commands/database/index.d.ts.map +1 -0
- package/dist/commands/database/index.js +2 -0
- package/dist/commands/database/index.js.map +1 -0
- package/dist/commands/database/init.d.ts +9 -0
- package/dist/commands/database/init.d.ts.map +1 -0
- package/dist/commands/database/init.js +124 -0
- package/dist/commands/database/init.js.map +1 -0
- package/dist/commands/database/migrate.d.ts +7 -0
- package/dist/commands/database/migrate.d.ts.map +1 -0
- package/dist/commands/database/migrate.js +34 -0
- package/dist/commands/database/migrate.js.map +1 -0
- package/dist/commands/database/migration-new.d.ts +13 -0
- package/dist/commands/database/migration-new.d.ts.map +1 -0
- package/dist/commands/database/migration-new.js +135 -0
- package/dist/commands/database/migration-new.js.map +1 -0
- package/dist/commands/database/pg-client-executor.d.ts +12 -0
- package/dist/commands/database/pg-client-executor.d.ts.map +1 -0
- package/dist/commands/database/pg-client-executor.js +27 -0
- package/dist/commands/database/pg-client-executor.js.map +1 -0
- package/dist/commands/database/reset.d.ts +6 -0
- package/dist/commands/database/reset.d.ts.map +1 -0
- package/dist/commands/database/reset.js +24 -0
- package/dist/commands/database/reset.js.map +1 -0
- package/dist/commands/database/status.d.ts +4 -0
- package/dist/commands/database/status.d.ts.map +1 -0
- package/dist/commands/database/status.js +71 -0
- package/dist/commands/database/status.js.map +1 -0
- package/dist/commands/database/utils.d.ts +75 -0
- package/dist/commands/database/utils.d.ts.map +1 -0
- package/dist/commands/database/utils.js +172 -0
- package/dist/commands/database/utils.js.map +1 -0
- package/dist/commands/deploy/deploy.d.ts +4 -0
- package/dist/commands/deploy/deploy.d.ts.map +1 -0
- package/dist/commands/deploy/deploy.js +890 -0
- package/dist/commands/deploy/deploy.js.map +1 -0
- package/dist/commands/deploy/index.d.ts +3 -0
- package/dist/commands/deploy/index.d.ts.map +1 -0
- package/dist/commands/deploy/index.js +96 -0
- package/dist/commands/deploy/index.js.map +1 -0
- package/dist/commands/deploy/option_values.d.ts +23 -0
- package/dist/commands/deploy/option_values.d.ts.map +1 -0
- package/dist/commands/deploy/option_values.js +3 -0
- package/dist/commands/deploy/option_values.js.map +1 -0
- package/dist/commands/dev/dev.d.ts +4 -0
- package/dist/commands/dev/dev.d.ts.map +1 -0
- package/dist/commands/dev/dev.js +248 -0
- package/dist/commands/dev/dev.js.map +1 -0
- package/dist/commands/dev/index.d.ts +3 -0
- package/dist/commands/dev/index.d.ts.map +1 -0
- package/dist/commands/dev/index.js +77 -0
- package/dist/commands/dev/index.js.map +1 -0
- package/dist/commands/dev/programmatic-netlify-dev.d.ts +20 -0
- package/dist/commands/dev/programmatic-netlify-dev.d.ts.map +1 -0
- package/dist/commands/dev/programmatic-netlify-dev.js +45 -0
- package/dist/commands/dev/programmatic-netlify-dev.js.map +1 -0
- package/dist/commands/dev-exec/dev-exec.d.ts +4 -0
- package/dist/commands/dev-exec/dev-exec.d.ts.map +1 -0
- package/dist/commands/dev-exec/dev-exec.js +46 -0
- package/dist/commands/dev-exec/dev-exec.js.map +1 -0
- package/dist/commands/dev-exec/index.d.ts +3 -0
- package/dist/commands/dev-exec/index.d.ts.map +1 -0
- package/dist/commands/dev-exec/index.js +17 -0
- package/dist/commands/dev-exec/index.js.map +1 -0
- package/dist/commands/env/env-clone.d.ts +4 -0
- package/dist/commands/env/env-clone.d.ts.map +1 -0
- package/dist/commands/env/env-clone.js +81 -0
- package/dist/commands/env/env-clone.js.map +1 -0
- package/dist/commands/env/env-get.d.ts +4 -0
- package/dist/commands/env/env-get.d.ts.map +1 -0
- package/dist/commands/env/env-get.js +29 -0
- package/dist/commands/env/env-get.js.map +1 -0
- package/dist/commands/env/env-import.d.ts +4 -0
- package/dist/commands/env/env-import.d.ts.map +1 -0
- package/dist/commands/env/env-import.js +78 -0
- package/dist/commands/env/env-import.js.map +1 -0
- package/dist/commands/env/env-list.d.ts +4 -0
- package/dist/commands/env/env-list.d.ts.map +1 -0
- package/dist/commands/env/env-list.js +85 -0
- package/dist/commands/env/env-list.js.map +1 -0
- package/dist/commands/env/env-set.d.ts +4 -0
- package/dist/commands/env/env-set.d.ts.map +1 -0
- package/dist/commands/env/env-set.js +118 -0
- package/dist/commands/env/env-set.js.map +1 -0
- package/dist/commands/env/env-unset.d.ts +4 -0
- package/dist/commands/env/env-unset.d.ts.map +1 -0
- package/dist/commands/env/env-unset.js +76 -0
- package/dist/commands/env/env-unset.js.map +1 -0
- package/dist/commands/env/env.d.ts +3 -0
- package/dist/commands/env/env.d.ts.map +1 -0
- package/dist/commands/env/env.js +139 -0
- package/dist/commands/env/env.js.map +1 -0
- package/dist/commands/env/index.d.ts +2 -0
- package/dist/commands/env/index.d.ts.map +1 -0
- package/dist/commands/env/index.js +2 -0
- package/dist/commands/env/index.js.map +1 -0
- package/dist/commands/functions/functions-build.d.ts +4 -0
- package/dist/commands/functions/functions-build.d.ts.map +1 -0
- package/dist/commands/functions/functions-build.js +26 -0
- package/dist/commands/functions/functions-build.js.map +1 -0
- package/dist/commands/functions/functions-create.d.ts +4 -0
- package/dist/commands/functions/functions-create.d.ts.map +1 -0
- package/dist/commands/functions/functions-create.js +629 -0
- package/dist/commands/functions/functions-create.js.map +1 -0
- package/dist/commands/functions/functions-invoke.d.ts +4 -0
- package/dist/commands/functions/functions-invoke.d.ts.map +1 -0
- package/dist/commands/functions/functions-invoke.js +210 -0
- package/dist/commands/functions/functions-invoke.js.map +1 -0
- package/dist/commands/functions/functions-list.d.ts +4 -0
- package/dist/commands/functions/functions-list.d.ts.map +1 -0
- package/dist/commands/functions/functions-list.js +38 -0
- package/dist/commands/functions/functions-list.js.map +1 -0
- package/dist/commands/functions/functions-serve.d.ts +4 -0
- package/dist/commands/functions/functions-serve.d.ts.map +1 -0
- package/dist/commands/functions/functions-serve.js +74 -0
- package/dist/commands/functions/functions-serve.js.map +1 -0
- package/dist/commands/functions/functions.d.ts +3 -0
- package/dist/commands/functions/functions.d.ts.map +1 -0
- package/dist/commands/functions/functions.js +108 -0
- package/dist/commands/functions/functions.js.map +1 -0
- package/dist/commands/functions/index.d.ts +2 -0
- package/dist/commands/functions/index.d.ts.map +1 -0
- package/dist/commands/functions/index.js +2 -0
- package/dist/commands/functions/index.js.map +1 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +3 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/init/constants.d.ts +4 -0
- package/dist/commands/init/constants.d.ts.map +1 -0
- package/dist/commands/init/constants.js +3 -0
- package/dist/commands/init/constants.js.map +1 -0
- package/dist/commands/init/index.d.ts +3 -0
- package/dist/commands/init/index.d.ts.map +1 -0
- package/dist/commands/init/index.js +17 -0
- package/dist/commands/init/index.js.map +1 -0
- package/dist/commands/init/init.d.ts +12 -0
- package/dist/commands/init/init.d.ts.map +1 -0
- package/dist/commands/init/init.js +205 -0
- package/dist/commands/init/init.js.map +1 -0
- package/dist/commands/link/index.d.ts +3 -0
- package/dist/commands/link/index.d.ts.map +1 -0
- package/dist/commands/link/index.js +25 -0
- package/dist/commands/link/index.js.map +1 -0
- package/dist/commands/link/link.d.ts +5 -0
- package/dist/commands/link/link.d.ts.map +1 -0
- package/dist/commands/link/link.js +305 -0
- package/dist/commands/link/link.js.map +1 -0
- package/dist/commands/link/option_values.d.ts +8 -0
- package/dist/commands/link/option_values.d.ts.map +1 -0
- package/dist/commands/link/option_values.js +3 -0
- package/dist/commands/link/option_values.js.map +1 -0
- package/dist/commands/login/index.d.ts +3 -0
- package/dist/commands/login/index.d.ts.map +1 -0
- package/dist/commands/login/index.js +20 -0
- package/dist/commands/login/index.js.map +1 -0
- package/dist/commands/login/login-check.d.ts +4 -0
- package/dist/commands/login/login-check.d.ts.map +1 -0
- package/dist/commands/login/login-check.js +49 -0
- package/dist/commands/login/login-check.js.map +1 -0
- package/dist/commands/login/login-request.d.ts +3 -0
- package/dist/commands/login/login-request.d.ts.map +1 -0
- package/dist/commands/login/login-request.js +19 -0
- package/dist/commands/login/login-request.js.map +1 -0
- package/dist/commands/login/login.d.ts +4 -0
- package/dist/commands/login/login.d.ts.map +1 -0
- package/dist/commands/login/login.js +43 -0
- package/dist/commands/login/login.js.map +1 -0
- package/dist/commands/logout/index.d.ts +3 -0
- package/dist/commands/logout/index.d.ts.map +1 -0
- package/dist/commands/logout/index.js +8 -0
- package/dist/commands/logout/index.js.map +1 -0
- package/dist/commands/logout/logout.d.ts +4 -0
- package/dist/commands/logout/logout.d.ts.map +1 -0
- package/dist/commands/logout/logout.js +23 -0
- package/dist/commands/logout/logout.js.map +1 -0
- package/dist/commands/logs/build.d.ts +8 -0
- package/dist/commands/logs/build.d.ts.map +1 -0
- package/dist/commands/logs/build.js +72 -0
- package/dist/commands/logs/build.js.map +1 -0
- package/dist/commands/logs/functions.d.ts +4 -0
- package/dist/commands/logs/functions.d.ts.map +1 -0
- package/dist/commands/logs/functions.js +79 -0
- package/dist/commands/logs/functions.js.map +1 -0
- package/dist/commands/logs/index.d.ts +5 -0
- package/dist/commands/logs/index.d.ts.map +1 -0
- package/dist/commands/logs/index.js +40 -0
- package/dist/commands/logs/index.js.map +1 -0
- package/dist/commands/logs/log-levels.d.ts +11 -0
- package/dist/commands/logs/log-levels.d.ts.map +1 -0
- package/dist/commands/logs/log-levels.js +12 -0
- package/dist/commands/logs/log-levels.js.map +1 -0
- package/dist/commands/main.d.ts +36 -0
- package/dist/commands/main.d.ts.map +1 -0
- package/dist/commands/main.js +232 -0
- package/dist/commands/main.js.map +1 -0
- package/dist/commands/open/index.d.ts +3 -0
- package/dist/commands/open/index.d.ts.map +1 -0
- package/dist/commands/open/index.js +32 -0
- package/dist/commands/open/index.js.map +1 -0
- package/dist/commands/open/open-admin.d.ts +3 -0
- package/dist/commands/open/open-admin.d.ts.map +1 -0
- package/dist/commands/open/open-admin.js +11 -0
- package/dist/commands/open/open-admin.js.map +1 -0
- package/dist/commands/open/open-site.d.ts +4 -0
- package/dist/commands/open/open-site.d.ts.map +1 -0
- package/dist/commands/open/open-site.js +12 -0
- package/dist/commands/open/open-site.js.map +1 -0
- package/dist/commands/open/open.d.ts +4 -0
- package/dist/commands/open/open.d.ts.map +1 -0
- package/dist/commands/open/open.js +14 -0
- package/dist/commands/open/open.js.map +1 -0
- package/dist/commands/recipes/common.d.ts +3 -0
- package/dist/commands/recipes/common.d.ts.map +1 -0
- package/dist/commands/recipes/common.js +26 -0
- package/dist/commands/recipes/common.js.map +1 -0
- package/dist/commands/recipes/index.d.ts +3 -0
- package/dist/commands/recipes/index.d.ts.map +1 -0
- package/dist/commands/recipes/index.js +21 -0
- package/dist/commands/recipes/index.js.map +1 -0
- package/dist/commands/recipes/recipes-list.d.ts +5 -0
- package/dist/commands/recipes/recipes-list.d.ts.map +1 -0
- package/dist/commands/recipes/recipes-list.js +15 -0
- package/dist/commands/recipes/recipes-list.js.map +1 -0
- package/dist/commands/recipes/recipes.d.ts +12 -0
- package/dist/commands/recipes/recipes.d.ts.map +1 -0
- package/dist/commands/recipes/recipes.js +53 -0
- package/dist/commands/recipes/recipes.js.map +1 -0
- package/dist/commands/serve/index.d.ts +3 -0
- package/dist/commands/serve/index.d.ts.map +1 -0
- package/dist/commands/serve/index.js +32 -0
- package/dist/commands/serve/index.js.map +1 -0
- package/dist/commands/serve/serve.d.ts +4 -0
- package/dist/commands/serve/serve.d.ts.map +1 -0
- package/dist/commands/serve/serve.js +177 -0
- package/dist/commands/serve/serve.js.map +1 -0
- package/dist/commands/sites/index.d.ts +2 -0
- package/dist/commands/sites/index.d.ts.map +1 -0
- package/dist/commands/sites/index.js +2 -0
- package/dist/commands/sites/index.js.map +1 -0
- package/dist/commands/sites/sites-create.d.ts +8 -0
- package/dist/commands/sites/sites-create.d.ts.map +1 -0
- package/dist/commands/sites/sites-create.js +122 -0
- package/dist/commands/sites/sites-create.js.map +1 -0
- package/dist/commands/sites/sites-delete.d.ts +4 -0
- package/dist/commands/sites/sites-delete.d.ts.map +1 -0
- package/dist/commands/sites/sites-delete.js +74 -0
- package/dist/commands/sites/sites-delete.js.map +1 -0
- package/dist/commands/sites/sites-list.d.ts +4 -0
- package/dist/commands/sites/sites-list.d.ts.map +1 -0
- package/dist/commands/sites/sites-list.js +59 -0
- package/dist/commands/sites/sites-list.js.map +1 -0
- package/dist/commands/sites/sites.d.ts +4 -0
- package/dist/commands/sites/sites.d.ts.map +1 -0
- package/dist/commands/sites/sites.js +55 -0
- package/dist/commands/sites/sites.js.map +1 -0
- package/dist/commands/status/index.d.ts +3 -0
- package/dist/commands/status/index.d.ts.map +1 -0
- package/dist/commands/status/index.js +21 -0
- package/dist/commands/status/index.js.map +1 -0
- package/dist/commands/status/status-hooks.d.ts +4 -0
- package/dist/commands/status/status-hooks.d.ts.map +1 -0
- package/dist/commands/status/status-hooks.js +30 -0
- package/dist/commands/status/status-hooks.js.map +1 -0
- package/dist/commands/status/status.d.ts +4 -0
- package/dist/commands/status/status.d.ts.map +1 -0
- package/dist/commands/status/status.js +73 -0
- package/dist/commands/status/status.js.map +1 -0
- package/dist/commands/switch/index.d.ts +3 -0
- package/dist/commands/switch/index.d.ts.map +1 -0
- package/dist/commands/switch/index.js +8 -0
- package/dist/commands/switch/index.js.map +1 -0
- package/dist/commands/switch/switch.d.ts +4 -0
- package/dist/commands/switch/switch.d.ts.map +1 -0
- package/dist/commands/switch/switch.js +31 -0
- package/dist/commands/switch/switch.js.map +1 -0
- package/dist/commands/unlink/index.d.ts +3 -0
- package/dist/commands/unlink/index.d.ts.map +1 -0
- package/dist/commands/unlink/index.js +15 -0
- package/dist/commands/unlink/index.js.map +1 -0
- package/dist/commands/unlink/unlink.d.ts +4 -0
- package/dist/commands/unlink/unlink.d.ts.map +1 -0
- package/dist/commands/unlink/unlink.js +23 -0
- package/dist/commands/unlink/unlink.js.map +1 -0
- package/dist/commands/watch/index.d.ts +3 -0
- package/dist/commands/watch/index.d.ts.map +1 -0
- package/dist/commands/watch/index.js +9 -0
- package/dist/commands/watch/index.js.map +1 -0
- package/dist/commands/watch/watch.d.ts +3 -0
- package/dist/commands/watch/watch.d.ts.map +1 -0
- package/dist/commands/watch/watch.js +91 -0
- package/dist/commands/watch/watch.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/account.d.ts +3 -0
- package/dist/lib/account.d.ts.map +1 -0
- package/dist/lib/account.js +3 -0
- package/dist/lib/account.js.map +1 -0
- package/dist/lib/api.d.ts +14 -0
- package/dist/lib/api.d.ts.map +1 -0
- package/dist/lib/api.js +27 -0
- package/dist/lib/api.js.map +1 -0
- package/dist/lib/blobs/blobs.d.ts +47 -0
- package/dist/lib/blobs/blobs.d.ts.map +1 -0
- package/dist/lib/blobs/blobs.js +82 -0
- package/dist/lib/blobs/blobs.js.map +1 -0
- package/dist/lib/build.d.ts +120 -0
- package/dist/lib/build.d.ts.map +1 -0
- package/dist/lib/build.js +80 -0
- package/dist/lib/build.js.map +1 -0
- package/dist/lib/completion/constants.d.ts +2 -0
- package/dist/lib/completion/constants.d.ts.map +1 -0
- package/dist/lib/completion/constants.js +3 -0
- package/dist/lib/completion/constants.js.map +1 -0
- package/dist/lib/completion/generate-autocompletion.d.ts +8 -0
- package/dist/lib/completion/generate-autocompletion.d.ts.map +1 -0
- package/dist/lib/completion/generate-autocompletion.js +42 -0
- package/dist/lib/completion/generate-autocompletion.js.map +1 -0
- package/dist/lib/completion/get-autocompletion.d.ts +13 -0
- package/dist/lib/completion/get-autocompletion.d.ts.map +1 -0
- package/dist/lib/completion/get-autocompletion.js +31 -0
- package/dist/lib/completion/get-autocompletion.js.map +1 -0
- package/dist/lib/completion/index.d.ts +2 -0
- package/dist/lib/completion/index.d.ts.map +1 -0
- package/dist/lib/completion/index.js +2 -0
- package/dist/lib/completion/index.js.map +1 -0
- package/dist/lib/completion/script.d.ts +3 -0
- package/dist/lib/completion/script.d.ts.map +1 -0
- package/dist/lib/completion/script.js +19 -0
- package/dist/lib/completion/script.js.map +1 -0
- package/dist/lib/edge-functions/bootstrap.d.ts +3 -0
- package/dist/lib/edge-functions/bootstrap.d.ts.map +1 -0
- package/dist/lib/edge-functions/bootstrap.js +20 -0
- package/dist/lib/edge-functions/bootstrap.js.map +1 -0
- package/dist/lib/edge-functions/consts.d.ts +11 -0
- package/dist/lib/edge-functions/consts.d.ts.map +1 -0
- package/dist/lib/edge-functions/consts.js +13 -0
- package/dist/lib/edge-functions/consts.js.map +1 -0
- package/dist/lib/edge-functions/editor-helper.d.ts +9 -0
- package/dist/lib/edge-functions/editor-helper.d.ts.map +1 -0
- package/dist/lib/edge-functions/editor-helper.js +33 -0
- package/dist/lib/edge-functions/editor-helper.js.map +1 -0
- package/dist/lib/edge-functions/get-directories.d.ts +6 -0
- package/dist/lib/edge-functions/get-directories.d.ts.map +1 -0
- package/dist/lib/edge-functions/get-directories.js +25 -0
- package/dist/lib/edge-functions/get-directories.js.map +1 -0
- package/dist/lib/edge-functions/headers.d.ts +36 -0
- package/dist/lib/edge-functions/headers.d.ts.map +1 -0
- package/dist/lib/edge-functions/headers.js +43 -0
- package/dist/lib/edge-functions/headers.js.map +1 -0
- package/dist/lib/edge-functions/proxy.d.ts +50 -0
- package/dist/lib/edge-functions/proxy.d.ts.map +1 -0
- package/dist/lib/edge-functions/proxy.js +159 -0
- package/dist/lib/edge-functions/proxy.js.map +1 -0
- package/dist/lib/edge-functions/registry.d.ts +138 -0
- package/dist/lib/edge-functions/registry.d.ts.map +1 -0
- package/dist/lib/edge-functions/registry.js +511 -0
- package/dist/lib/edge-functions/registry.js.map +1 -0
- package/dist/lib/exec-fetcher.d.ts +20 -0
- package/dist/lib/exec-fetcher.d.ts.map +1 -0
- package/dist/lib/exec-fetcher.js +166 -0
- package/dist/lib/exec-fetcher.js.map +1 -0
- package/dist/lib/extensions.d.ts +12 -0
- package/dist/lib/extensions.d.ts.map +1 -0
- package/dist/lib/extensions.js +14 -0
- package/dist/lib/extensions.js.map +1 -0
- package/dist/lib/fs.d.ts +10 -0
- package/dist/lib/fs.d.ts.map +1 -0
- package/dist/lib/fs.js +38 -0
- package/dist/lib/fs.js.map +1 -0
- package/dist/lib/functions/background.d.ts +5 -0
- package/dist/lib/functions/background.d.ts.map +1 -0
- package/dist/lib/functions/background.js +17 -0
- package/dist/lib/functions/background.js.map +1 -0
- package/dist/lib/functions/config.d.ts +23 -0
- package/dist/lib/functions/config.d.ts.map +1 -0
- package/dist/lib/functions/config.js +19 -0
- package/dist/lib/functions/config.js.map +1 -0
- package/dist/lib/functions/form-submissions-handler.d.ts +11 -0
- package/dist/lib/functions/form-submissions-handler.d.ts.map +1 -0
- package/dist/lib/functions/form-submissions-handler.js +154 -0
- package/dist/lib/functions/form-submissions-handler.js.map +1 -0
- package/dist/lib/functions/local-proxy.d.ts +9 -0
- package/dist/lib/functions/local-proxy.d.ts.map +1 -0
- package/dist/lib/functions/local-proxy.js +38 -0
- package/dist/lib/functions/local-proxy.js.map +1 -0
- package/dist/lib/functions/netlify-function.d.ts +102 -0
- package/dist/lib/functions/netlify-function.d.ts.map +1 -0
- package/dist/lib/functions/netlify-function.js +270 -0
- package/dist/lib/functions/netlify-function.js.map +1 -0
- package/dist/lib/functions/registry.d.ts +136 -0
- package/dist/lib/functions/registry.d.ts.map +1 -0
- package/dist/lib/functions/registry.js +464 -0
- package/dist/lib/functions/registry.js.map +1 -0
- package/dist/lib/functions/runtimes/go/index.d.ts +11 -0
- package/dist/lib/functions/runtimes/go/index.d.ts.map +1 -0
- package/dist/lib/functions/runtimes/go/index.js +65 -0
- package/dist/lib/functions/runtimes/go/index.js.map +1 -0
- package/dist/lib/functions/runtimes/index.d.ts +55 -0
- package/dist/lib/functions/runtimes/index.d.ts.map +1 -0
- package/dist/lib/functions/runtimes/index.js +10 -0
- package/dist/lib/functions/runtimes/index.js.map +1 -0
- package/dist/lib/functions/runtimes/js/builders/zisi.d.ts +35 -0
- package/dist/lib/functions/runtimes/js/builders/zisi.d.ts.map +1 -0
- package/dist/lib/functions/runtimes/js/builders/zisi.js +129 -0
- package/dist/lib/functions/runtimes/js/builders/zisi.js.map +1 -0
- package/dist/lib/functions/runtimes/js/constants.d.ts +2 -0
- package/dist/lib/functions/runtimes/js/constants.d.ts.map +1 -0
- package/dist/lib/functions/runtimes/js/constants.js +2 -0
- package/dist/lib/functions/runtimes/js/constants.js.map +1 -0
- package/dist/lib/functions/runtimes/js/index.d.ts +25 -0
- package/dist/lib/functions/runtimes/js/index.d.ts.map +1 -0
- package/dist/lib/functions/runtimes/js/index.js +120 -0
- package/dist/lib/functions/runtimes/js/index.js.map +1 -0
- package/dist/lib/functions/runtimes/js/worker.d.ts +8 -0
- package/dist/lib/functions/runtimes/js/worker.d.ts.map +1 -0
- package/dist/lib/functions/runtimes/js/worker.js +64 -0
- package/dist/lib/functions/runtimes/js/worker.js.map +1 -0
- package/dist/lib/functions/runtimes/rust/index.d.ts +11 -0
- package/dist/lib/functions/runtimes/rust/index.d.ts.map +1 -0
- package/dist/lib/functions/runtimes/rust/index.js +72 -0
- package/dist/lib/functions/runtimes/rust/index.js.map +1 -0
- package/dist/lib/functions/scheduled.d.ts +21 -0
- package/dist/lib/functions/scheduled.d.ts.map +1 -0
- package/dist/lib/functions/scheduled.js +77 -0
- package/dist/lib/functions/scheduled.js.map +1 -0
- package/dist/lib/functions/server.d.ts +48 -0
- package/dist/lib/functions/server.d.ts.map +1 -0
- package/dist/lib/functions/server.js +299 -0
- package/dist/lib/functions/server.js.map +1 -0
- package/dist/lib/functions/synchronous.d.ts +11 -0
- package/dist/lib/functions/synchronous.d.ts.map +1 -0
- package/dist/lib/functions/synchronous.js +132 -0
- package/dist/lib/functions/synchronous.js.map +1 -0
- package/dist/lib/functions/utils.d.ts +7 -0
- package/dist/lib/functions/utils.d.ts.map +1 -0
- package/dist/lib/functions/utils.js +14 -0
- package/dist/lib/functions/utils.js.map +1 -0
- package/dist/lib/geo-location.d.ts +17 -0
- package/dist/lib/geo-location.d.ts.map +1 -0
- package/dist/lib/geo-location.js +76 -0
- package/dist/lib/geo-location.js.map +1 -0
- package/dist/lib/http-agent.d.ts +22 -0
- package/dist/lib/http-agent.d.ts.map +1 -0
- package/dist/lib/http-agent.js +91 -0
- package/dist/lib/http-agent.js.map +1 -0
- package/dist/lib/images/proxy.d.ts +10 -0
- package/dist/lib/images/proxy.d.ts.map +1 -0
- package/dist/lib/images/proxy.js +28 -0
- package/dist/lib/images/proxy.js.map +1 -0
- package/dist/lib/log.d.ts +3 -0
- package/dist/lib/log.d.ts.map +1 -0
- package/dist/lib/log.js +16 -0
- package/dist/lib/log.js.map +1 -0
- package/dist/lib/path.d.ts +2 -0
- package/dist/lib/path.d.ts.map +1 -0
- package/dist/lib/path.js +2 -0
- package/dist/lib/path.js.map +1 -0
- package/dist/lib/settings.d.ts +14 -0
- package/dist/lib/settings.d.ts.map +1 -0
- package/dist/lib/settings.js +19 -0
- package/dist/lib/settings.js.map +1 -0
- package/dist/lib/spinner.d.ts +23 -0
- package/dist/lib/spinner.d.ts.map +1 -0
- package/dist/lib/spinner.js +53 -0
- package/dist/lib/spinner.js.map +1 -0
- package/dist/lib/string.d.ts +2 -0
- package/dist/lib/string.d.ts.map +1 -0
- package/dist/lib/string.js +2 -0
- package/dist/lib/string.js.map +1 -0
- package/dist/lib/wait-port.d.ts +5 -0
- package/dist/lib/wait-port.d.ts.map +1 -0
- package/dist/lib/wait-port.js +45 -0
- package/dist/lib/wait-port.js.map +1 -0
- package/dist/recipes/ai-context/context.d.ts +59 -0
- package/dist/recipes/ai-context/context.d.ts.map +1 -0
- package/dist/recipes/ai-context/context.js +195 -0
- package/dist/recipes/ai-context/context.js.map +1 -0
- package/dist/recipes/ai-context/index.d.ts +4 -0
- package/dist/recipes/ai-context/index.d.ts.map +1 -0
- package/dist/recipes/ai-context/index.js +132 -0
- package/dist/recipes/ai-context/index.js.map +1 -0
- package/dist/recipes/blobs-migrate/index.d.ts +9 -0
- package/dist/recipes/blobs-migrate/index.d.ts.map +1 -0
- package/dist/recipes/blobs-migrate/index.js +78 -0
- package/dist/recipes/blobs-migrate/index.js.map +1 -0
- package/dist/recipes/vscode/index.d.ts +12 -0
- package/dist/recipes/vscode/index.d.ts.map +1 -0
- package/dist/recipes/vscode/index.js +93 -0
- package/dist/recipes/vscode/index.js.map +1 -0
- package/dist/recipes/vscode/settings.d.ts +18 -0
- package/dist/recipes/vscode/settings.d.ts.map +1 -0
- package/dist/recipes/vscode/settings.js +61 -0
- package/dist/recipes/vscode/settings.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/utils/addons/prepare.d.ts +13 -0
- package/dist/utils/addons/prepare.d.ts.map +1 -0
- package/dist/utils/addons/prepare.js +26 -0
- package/dist/utils/addons/prepare.js.map +1 -0
- package/dist/utils/build-info.d.ts +21 -0
- package/dist/utils/build-info.d.ts.map +1 -0
- package/dist/utils/build-info.js +122 -0
- package/dist/utils/build-info.js.map +1 -0
- package/dist/utils/command-helpers.d.ts +84 -0
- package/dist/utils/command-helpers.d.ts.map +1 -0
- package/dist/utils/command-helpers.js +210 -0
- package/dist/utils/command-helpers.js.map +1 -0
- package/dist/utils/copy-template-dir/copy-template-dir.d.ts +2 -0
- package/dist/utils/copy-template-dir/copy-template-dir.d.ts.map +1 -0
- package/dist/utils/copy-template-dir/copy-template-dir.js +66 -0
- package/dist/utils/copy-template-dir/copy-template-dir.js.map +1 -0
- package/dist/utils/create-deferred.d.ts +7 -0
- package/dist/utils/create-deferred.d.ts.map +1 -0
- package/dist/utils/create-deferred.js +11 -0
- package/dist/utils/create-deferred.js.map +1 -0
- package/dist/utils/create-stream-promise.d.ts +5 -0
- package/dist/utils/create-stream-promise.d.ts.map +1 -0
- package/dist/utils/create-stream-promise.js +48 -0
- package/dist/utils/create-stream-promise.js.map +1 -0
- package/dist/utils/deploy/constants.d.ts +10 -0
- package/dist/utils/deploy/constants.d.ts.map +1 -0
- package/dist/utils/deploy/constants.js +18 -0
- package/dist/utils/deploy/constants.js.map +1 -0
- package/dist/utils/deploy/deploy-site.d.ts +21 -0
- package/dist/utils/deploy/deploy-site.d.ts.map +1 -0
- package/dist/utils/deploy/deploy-site.js +157 -0
- package/dist/utils/deploy/deploy-site.js.map +1 -0
- package/dist/utils/deploy/file.d.ts +8 -0
- package/dist/utils/deploy/file.d.ts.map +1 -0
- package/dist/utils/deploy/file.js +2 -0
- package/dist/utils/deploy/file.js.map +1 -0
- package/dist/utils/deploy/hash-config.d.ts +10 -0
- package/dist/utils/deploy/hash-config.d.ts.map +1 -0
- package/dist/utils/deploy/hash-config.js +26 -0
- package/dist/utils/deploy/hash-config.js.map +1 -0
- package/dist/utils/deploy/hash-files.d.ts +15 -0
- package/dist/utils/deploy/hash-files.d.ts.map +1 -0
- package/dist/utils/deploy/hash-files.js +21 -0
- package/dist/utils/deploy/hash-files.js.map +1 -0
- package/dist/utils/deploy/hash-fns.d.ts +24 -0
- package/dist/utils/deploy/hash-fns.d.ts.map +1 -0
- package/dist/utils/deploy/hash-fns.js +141 -0
- package/dist/utils/deploy/hash-fns.js.map +1 -0
- package/dist/utils/deploy/hasher-segments.d.ts +16 -0
- package/dist/utils/deploy/hasher-segments.d.ts.map +1 -0
- package/dist/utils/deploy/hasher-segments.js +74 -0
- package/dist/utils/deploy/hasher-segments.js.map +1 -0
- package/dist/utils/deploy/process-files.d.ts +16 -0
- package/dist/utils/deploy/process-files.d.ts.map +1 -0
- package/dist/utils/deploy/process-files.js +38 -0
- package/dist/utils/deploy/process-files.js.map +1 -0
- package/dist/utils/deploy/status-cb.d.ts +7 -0
- package/dist/utils/deploy/status-cb.d.ts.map +1 -0
- package/dist/utils/deploy/status-cb.js +2 -0
- package/dist/utils/deploy/status-cb.js.map +1 -0
- package/dist/utils/deploy/upload-files.d.ts +7 -0
- package/dist/utils/deploy/upload-files.d.ts.map +1 -0
- package/dist/utils/deploy/upload-files.js +116 -0
- package/dist/utils/deploy/upload-files.js.map +1 -0
- package/dist/utils/deploy/upload-source-zip.d.ts +12 -0
- package/dist/utils/deploy/upload-source-zip.d.ts.map +1 -0
- package/dist/utils/deploy/upload-source-zip.js +131 -0
- package/dist/utils/deploy/upload-source-zip.js.map +1 -0
- package/dist/utils/deploy/util.d.ts +5 -0
- package/dist/utils/deploy/util.d.ts.map +1 -0
- package/dist/utils/deploy/util.js +93 -0
- package/dist/utils/deploy/util.js.map +1 -0
- package/dist/utils/detect-server-settings.d.ts +118 -0
- package/dist/utils/detect-server-settings.d.ts.map +1 -0
- package/dist/utils/detect-server-settings.js +252 -0
- package/dist/utils/detect-server-settings.js.map +1 -0
- package/dist/utils/dev-server-banner.d.ts +4 -0
- package/dist/utils/dev-server-banner.d.ts.map +1 -0
- package/dist/utils/dev-server-banner.js +15 -0
- package/dist/utils/dev-server-banner.js.map +1 -0
- package/dist/utils/dev.d.ts +58 -0
- package/dist/utils/dev.d.ts.map +1 -0
- package/dist/utils/dev.js +185 -0
- package/dist/utils/dev.js.map +1 -0
- package/dist/utils/dot-env.d.ts +26 -0
- package/dist/utils/dot-env.d.ts.map +1 -0
- package/dist/utils/dot-env.js +43 -0
- package/dist/utils/dot-env.js.map +1 -0
- package/dist/utils/env/index.d.ts +164 -0
- package/dist/utils/env/index.d.ts.map +1 -0
- package/dist/utils/env/index.js +260 -0
- package/dist/utils/env/index.js.map +1 -0
- package/dist/utils/execa.d.ts +4 -0
- package/dist/utils/execa.d.ts.map +1 -0
- package/dist/utils/execa.js +15 -0
- package/dist/utils/execa.js.map +1 -0
- package/dist/utils/feature-flags.d.ts +20 -0
- package/dist/utils/feature-flags.d.ts.map +1 -0
- package/dist/utils/feature-flags.js +20 -0
- package/dist/utils/feature-flags.js.map +1 -0
- package/dist/utils/framework-server.d.ts +13 -0
- package/dist/utils/framework-server.d.ts.map +1 -0
- package/dist/utils/framework-server.js +66 -0
- package/dist/utils/framework-server.js.map +1 -0
- package/dist/utils/frameworks-api.d.ts +20 -0
- package/dist/utils/frameworks-api.d.ts.map +1 -0
- package/dist/utils/frameworks-api.js +54 -0
- package/dist/utils/frameworks-api.js.map +1 -0
- package/dist/utils/functions/constants.d.ts +2 -0
- package/dist/utils/functions/constants.d.ts.map +1 -0
- package/dist/utils/functions/constants.js +2 -0
- package/dist/utils/functions/constants.js.map +1 -0
- package/dist/utils/functions/functions.d.ts +32 -0
- package/dist/utils/functions/functions.d.ts.map +1 -0
- package/dist/utils/functions/functions.js +39 -0
- package/dist/utils/functions/functions.js.map +1 -0
- package/dist/utils/functions/get-functions.d.ts +10 -0
- package/dist/utils/functions/get-functions.d.ts.map +1 -0
- package/dist/utils/functions/get-functions.js +35 -0
- package/dist/utils/functions/get-functions.js.map +1 -0
- package/dist/utils/functions/index.d.ts +4 -0
- package/dist/utils/functions/index.d.ts.map +1 -0
- package/dist/utils/functions/index.js +4 -0
- package/dist/utils/functions/index.js.map +1 -0
- package/dist/utils/get-cli-package-json.d.ts +4 -0
- package/dist/utils/get-cli-package-json.d.ts.map +1 -0
- package/dist/utils/get-cli-package-json.js +22 -0
- package/dist/utils/get-cli-package-json.js.map +1 -0
- package/dist/utils/get-repo-data.d.ts +17 -0
- package/dist/utils/get-repo-data.d.ts.map +1 -0
- package/dist/utils/get-repo-data.js +59 -0
- package/dist/utils/get-repo-data.js.map +1 -0
- package/dist/utils/get-site.d.ts +4 -0
- package/dist/utils/get-site.d.ts.map +1 -0
- package/dist/utils/get-site.js +21 -0
- package/dist/utils/get-site.js.map +1 -0
- package/dist/utils/gh-auth.d.ts +14 -0
- package/dist/utils/gh-auth.d.ts.map +1 -0
- package/dist/utils/gh-auth.js +92 -0
- package/dist/utils/gh-auth.js.map +1 -0
- package/dist/utils/gitignore.d.ts +2 -0
- package/dist/utils/gitignore.d.ts.map +1 -0
- package/dist/utils/gitignore.js +4 -0
- package/dist/utils/gitignore.js.map +1 -0
- package/dist/utils/headers.d.ts +15 -0
- package/dist/utils/headers.d.ts.map +1 -0
- package/dist/utils/headers.js +39 -0
- package/dist/utils/headers.js.map +1 -0
- package/dist/utils/hooks/requires-site-info-with-project.d.ts +8 -0
- package/dist/utils/hooks/requires-site-info-with-project.d.ts.map +1 -0
- package/dist/utils/hooks/requires-site-info-with-project.js +83 -0
- package/dist/utils/hooks/requires-site-info-with-project.js.map +1 -0
- package/dist/utils/hooks/requires-site-info.d.ts +7 -0
- package/dist/utils/hooks/requires-site-info.d.ts.map +1 -0
- package/dist/utils/hooks/requires-site-info.js +31 -0
- package/dist/utils/hooks/requires-site-info.js.map +1 -0
- package/dist/utils/init/config-github.d.ts +15 -0
- package/dist/utils/init/config-github.d.ts.map +1 -0
- package/dist/utils/init/config-github.js +214 -0
- package/dist/utils/init/config-github.js.map +1 -0
- package/dist/utils/init/config-manual.d.ts +8 -0
- package/dist/utils/init/config-manual.d.ts.map +1 -0
- package/dist/utils/init/config-manual.js +86 -0
- package/dist/utils/init/config-manual.js.map +1 -0
- package/dist/utils/init/config.d.ts +9 -0
- package/dist/utils/init/config.d.ts.map +1 -0
- package/dist/utils/init/config.js +29 -0
- package/dist/utils/init/config.js.map +1 -0
- package/dist/utils/init/plugins.d.ts +7 -0
- package/dist/utils/init/plugins.d.ts.map +1 -0
- package/dist/utils/init/plugins.js +4 -0
- package/dist/utils/init/plugins.js.map +1 -0
- package/dist/utils/init/utils.d.ts +156 -0
- package/dist/utils/init/utils.d.ts.map +1 -0
- package/dist/utils/init/utils.js +178 -0
- package/dist/utils/init/utils.js.map +1 -0
- package/dist/utils/live-tunnel.d.ts +9 -0
- package/dist/utils/live-tunnel.d.ts.map +1 -0
- package/dist/utils/live-tunnel.js +125 -0
- package/dist/utils/live-tunnel.js.map +1 -0
- package/dist/utils/multimap.d.ts +6 -0
- package/dist/utils/multimap.d.ts.map +1 -0
- package/dist/utils/multimap.js +10 -0
- package/dist/utils/multimap.js.map +1 -0
- package/dist/utils/nodejs-compile-cache.d.ts +24 -0
- package/dist/utils/nodejs-compile-cache.d.ts.map +1 -0
- package/dist/utils/nodejs-compile-cache.js +44 -0
- package/dist/utils/nodejs-compile-cache.js.map +1 -0
- package/dist/utils/normalize-repo-url.d.ts +11 -0
- package/dist/utils/normalize-repo-url.d.ts.map +1 -0
- package/dist/utils/normalize-repo-url.js +24 -0
- package/dist/utils/normalize-repo-url.js.map +1 -0
- package/dist/utils/open-browser.d.ts +7 -0
- package/dist/utils/open-browser.d.ts.map +1 -0
- package/dist/utils/open-browser.js +33 -0
- package/dist/utils/open-browser.js.map +1 -0
- package/dist/utils/parse-raw-flags.d.ts +3 -0
- package/dist/utils/parse-raw-flags.d.ts.map +1 -0
- package/dist/utils/parse-raw-flags.js +51 -0
- package/dist/utils/parse-raw-flags.js.map +1 -0
- package/dist/utils/prompts/blob-delete-prompts.d.ts +2 -0
- package/dist/utils/prompts/blob-delete-prompts.d.ts.map +1 -0
- package/dist/utils/prompts/blob-delete-prompts.js +12 -0
- package/dist/utils/prompts/blob-delete-prompts.js.map +1 -0
- package/dist/utils/prompts/blob-set-prompt.d.ts +2 -0
- package/dist/utils/prompts/blob-set-prompt.d.ts.map +1 -0
- package/dist/utils/prompts/blob-set-prompt.js +12 -0
- package/dist/utils/prompts/blob-set-prompt.js.map +1 -0
- package/dist/utils/prompts/confirm-prompt.d.ts +2 -0
- package/dist/utils/prompts/confirm-prompt.d.ts.map +1 -0
- package/dist/utils/prompts/confirm-prompt.js +21 -0
- package/dist/utils/prompts/confirm-prompt.js.map +1 -0
- package/dist/utils/prompts/env-clone-prompt.d.ts +11 -0
- package/dist/utils/prompts/env-clone-prompt.d.ts.map +1 -0
- package/dist/utils/prompts/env-clone-prompt.js +28 -0
- package/dist/utils/prompts/env-clone-prompt.js.map +1 -0
- package/dist/utils/prompts/env-set-prompts.d.ts +2 -0
- package/dist/utils/prompts/env-set-prompts.d.ts.map +1 -0
- package/dist/utils/prompts/env-set-prompts.js +12 -0
- package/dist/utils/prompts/env-set-prompts.js.map +1 -0
- package/dist/utils/prompts/env-unset-prompts.d.ts +8 -0
- package/dist/utils/prompts/env-unset-prompts.d.ts.map +1 -0
- package/dist/utils/prompts/env-unset-prompts.js +18 -0
- package/dist/utils/prompts/env-unset-prompts.js.map +1 -0
- package/dist/utils/prompts/prompt-messages.d.ts +25 -0
- package/dist/utils/prompts/prompt-messages.d.ts.map +1 -0
- package/dist/utils/prompts/prompt-messages.js +26 -0
- package/dist/utils/prompts/prompt-messages.js.map +1 -0
- package/dist/utils/proxy-server.d.ts +47 -0
- package/dist/utils/proxy-server.d.ts.map +1 -0
- package/dist/utils/proxy-server.js +52 -0
- package/dist/utils/proxy-server.js.map +1 -0
- package/dist/utils/proxy.d.ts +21 -0
- package/dist/utils/proxy.d.ts.map +1 -0
- package/dist/utils/proxy.js +787 -0
- package/dist/utils/proxy.js.map +1 -0
- package/dist/utils/read-repo-url.d.ts +12 -0
- package/dist/utils/read-repo-url.d.ts.map +1 -0
- package/dist/utils/read-repo-url.js +53 -0
- package/dist/utils/read-repo-url.js.map +1 -0
- package/dist/utils/redirects.d.ts +6 -0
- package/dist/utils/redirects.d.ts.map +1 -0
- package/dist/utils/redirects.js +59 -0
- package/dist/utils/redirects.js.map +1 -0
- package/dist/utils/request-id.d.ts +2 -0
- package/dist/utils/request-id.d.ts.map +1 -0
- package/dist/utils/request-id.js +3 -0
- package/dist/utils/request-id.js.map +1 -0
- package/dist/utils/rules-proxy.d.ts +16 -0
- package/dist/utils/rules-proxy.d.ts.map +1 -0
- package/dist/utils/rules-proxy.js +87 -0
- package/dist/utils/rules-proxy.js.map +1 -0
- package/dist/utils/run-build.d.ts +58 -0
- package/dist/utils/run-build.d.ts.map +1 -0
- package/dist/utils/run-build.js +134 -0
- package/dist/utils/run-build.js.map +1 -0
- package/dist/utils/run-git.d.ts +2 -0
- package/dist/utils/run-git.d.ts.map +1 -0
- package/dist/utils/run-git.js +7 -0
- package/dist/utils/run-git.js.map +1 -0
- package/dist/utils/run-program.d.ts +3 -0
- package/dist/utils/run-program.d.ts.map +1 -0
- package/dist/utils/run-program.js +13 -0
- package/dist/utils/run-program.js.map +1 -0
- package/dist/utils/scripted-commands.d.ts +3 -0
- package/dist/utils/scripted-commands.d.ts.map +1 -0
- package/dist/utils/scripted-commands.js +18 -0
- package/dist/utils/scripted-commands.js.map +1 -0
- package/dist/utils/shell.d.ts +13 -0
- package/dist/utils/shell.d.ts.map +1 -0
- package/dist/utils/shell.js +123 -0
- package/dist/utils/shell.js.map +1 -0
- package/dist/utils/sign-redirect.d.ts +7 -0
- package/dist/utils/sign-redirect.d.ts.map +1 -0
- package/dist/utils/sign-redirect.js +16 -0
- package/dist/utils/sign-redirect.js.map +1 -0
- package/dist/utils/static-server.d.ts +10 -0
- package/dist/utils/static-server.d.ts.map +1 -0
- package/dist/utils/static-server.js +36 -0
- package/dist/utils/static-server.js.map +1 -0
- package/dist/utils/telemetry/index.d.ts +3 -0
- package/dist/utils/telemetry/index.d.ts.map +1 -0
- package/dist/utils/telemetry/index.js +3 -0
- package/dist/utils/telemetry/index.js.map +1 -0
- package/dist/utils/telemetry/report-error.d.ts +10 -0
- package/dist/utils/telemetry/report-error.d.ts.map +1 -0
- package/dist/utils/telemetry/report-error.js +52 -0
- package/dist/utils/telemetry/report-error.js.map +1 -0
- package/dist/utils/telemetry/request.d.ts +2 -0
- package/dist/utils/telemetry/request.d.ts.map +1 -0
- package/dist/utils/telemetry/request.js +41 -0
- package/dist/utils/telemetry/request.js.map +1 -0
- package/dist/utils/telemetry/telemetry.d.ts +14 -0
- package/dist/utils/telemetry/telemetry.d.ts.map +1 -0
- package/dist/utils/telemetry/telemetry.js +94 -0
- package/dist/utils/telemetry/telemetry.js.map +1 -0
- package/dist/utils/telemetry/utils.d.ts +3 -0
- package/dist/utils/telemetry/utils.d.ts.map +1 -0
- package/dist/utils/telemetry/utils.js +7 -0
- package/dist/utils/telemetry/utils.js.map +1 -0
- package/dist/utils/telemetry/validation.d.ts +2 -0
- package/dist/utils/telemetry/validation.d.ts.map +1 -0
- package/dist/utils/telemetry/validation.js +63 -0
- package/dist/utils/telemetry/validation.js.map +1 -0
- package/dist/utils/temporary-file.d.ts +7 -0
- package/dist/utils/temporary-file.d.ts.map +1 -0
- package/dist/utils/temporary-file.js +16 -0
- package/dist/utils/temporary-file.js.map +1 -0
- package/dist/utils/types.d.ts +200 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +2 -0
- package/dist/utils/types.js.map +1 -0
- package/dist/utils/validation.d.ts +2 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +12 -0
- package/dist/utils/validation.js.map +1 -0
- package/dist/utils/websockets/index.d.ts +3 -0
- package/dist/utils/websockets/index.d.ts.map +1 -0
- package/dist/utils/websockets/index.js +3 -0
- package/dist/utils/websockets/index.js.map +1 -0
- package/functions-templates/go/hello-world/.netlify-function-template.mjs +6 -0
- package/functions-templates/go/hello-world/go.mod +5 -0
- package/functions-templates/go/hello-world/go.sum +22 -0
- package/functions-templates/go/hello-world/main.go +24 -0
- package/functions-templates/javascript/hello/.netlify-function-template.mjs +5 -0
- package/functions-templates/javascript/hello/{{name}}.js +4 -0
- package/functions-templates/javascript/hello-world/.netlify-function-template.mjs +6 -0
- package/functions-templates/javascript/hello-world/{{name}}.mjs +13 -0
- package/functions-templates/javascript/image-external/.netlify-function-template.mjs +5 -0
- package/functions-templates/javascript/image-external/{{name}}.js +12 -0
- package/functions-templates/javascript/localized-content/.netlify-function-template.mjs +5 -0
- package/functions-templates/javascript/localized-content/{{name}}.js +15 -0
- package/functions-templates/javascript/scheduled-function/.netlify-function-template.mjs +6 -0
- package/functions-templates/javascript/scheduled-function/package.json +20 -0
- package/functions-templates/javascript/scheduled-function/{{name}}.mjs +11 -0
- package/functions-templates/javascript/set-cookies/.netlify-function-template.mjs +5 -0
- package/functions-templates/javascript/set-cookies/{{name}}.js +28 -0
- package/functions-templates/javascript/set-req-header/.netlify-function-template.mjs +5 -0
- package/functions-templates/javascript/set-req-header/{{name}}.js +3 -0
- package/functions-templates/javascript/set-res-header/.netlify-function-template.mjs +5 -0
- package/functions-templates/javascript/set-res-header/{{name}}.js +5 -0
- package/functions-templates/javascript/transform-response/.netlify-function-template.mjs +5 -0
- package/functions-templates/javascript/transform-response/{{name}}.js +12 -0
- package/functions-templates/rust/hello-world/.netlify-function-template.mjs +6 -0
- package/functions-templates/rust/hello-world/Cargo.lock +1149 -0
- package/functions-templates/rust/hello-world/Cargo.toml +14 -0
- package/functions-templates/rust/hello-world/src/main.rs +29 -0
- package/functions-templates/typescript/abtest/.netlify-function-template.mjs +5 -0
- package/functions-templates/typescript/abtest/{{name}}.ts +31 -0
- package/functions-templates/typescript/geolocation/.netlify-function-template.mjs +5 -0
- package/functions-templates/typescript/geolocation/{{name}}.ts +23 -0
- package/functions-templates/typescript/hello-world/.netlify-function-template.mjs +6 -0
- package/functions-templates/typescript/hello-world/package-lock.json +97 -0
- package/functions-templates/typescript/hello-world/package.json +21 -0
- package/functions-templates/typescript/hello-world/{{name}}.mts +14 -0
- package/functions-templates/typescript/json/.netlify-function-template.mjs +5 -0
- package/functions-templates/typescript/json/{{name}}.ts +4 -0
- package/functions-templates/typescript/log/.netlify-function-template.mjs +5 -0
- package/functions-templates/typescript/log/{{name}}.ts +9 -0
- package/functions-templates/typescript/scheduled-function/.netlify-function-template.mjs +6 -0
- package/functions-templates/typescript/scheduled-function/package.json +22 -0
- package/functions-templates/typescript/scheduled-function/{{name}}.mts +11 -0
- package/functions-templates/typescript/set-cookies/.netlify-function-template.mjs +5 -0
- package/functions-templates/typescript/set-cookies/{{name}}.ts +29 -0
- package/functions-templates/typescript/set-req-header/.netlify-function-template.mjs +5 -0
- package/functions-templates/typescript/set-req-header/{{name}}.ts +5 -0
- package/functions-templates/typescript/set-res-header/.netlify-function-template.mjs +5 -0
- package/functions-templates/typescript/set-res-header/{{name}}.ts +7 -0
- package/functions-templates/typescript/transform-response/.netlify-function-template.mjs +5 -0
- package/functions-templates/typescript/transform-response/{{name}}.ts +13 -0
- package/npm-shrinkwrap.json +12641 -0
- package/package.json +274 -0
- package/scripts/bash.sh +15 -0
- package/scripts/fish.sh +8 -0
- package/scripts/netlifyPackage.js +68 -0
- package/scripts/path.ps1 +35 -0
- package/scripts/postinstall.js +82 -0
- package/scripts/prepublishOnly.js +29 -0
- package/scripts/zsh.sh +3 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { ExtendedRoute } from '@netlify/zip-it-and-ship-it';
|
|
2
|
+
import type { MemoizeCache } from '@netlify/dev-utils';
|
|
3
|
+
import { type NormalizedCachedConfigConfig } from '../../utils/command-helpers.js';
|
|
4
|
+
import { type BlobsContextWithEdgeAccess } from '../blobs/blobs.js';
|
|
5
|
+
import type { AIGatewayContext } from '@netlify/ai/bootstrap';
|
|
6
|
+
import type { ServerSettings } from '../../utils/types.js';
|
|
7
|
+
import type { BaseBuildResult, InvokeFunctionResult, Runtime } from './runtimes/index.js';
|
|
8
|
+
export interface InvocationError {
|
|
9
|
+
errorMessage: string;
|
|
10
|
+
errorType: string;
|
|
11
|
+
stackTrace: string[];
|
|
12
|
+
}
|
|
13
|
+
export type InvokeFunctionResultWithError = {
|
|
14
|
+
error: Error | InvocationError;
|
|
15
|
+
result: null;
|
|
16
|
+
};
|
|
17
|
+
export type InvokeFunctionResultWithSuccess = {
|
|
18
|
+
error: null;
|
|
19
|
+
result: InvokeFunctionResult;
|
|
20
|
+
};
|
|
21
|
+
export type InvokeResult = InvokeFunctionResultWithError | InvokeFunctionResultWithSuccess;
|
|
22
|
+
type MappedOmit<T, K extends keyof T> = {
|
|
23
|
+
[P in keyof T as P extends K ? never : P]: T[P];
|
|
24
|
+
};
|
|
25
|
+
export default class NetlifyFunction<BuildResult extends BaseBuildResult> {
|
|
26
|
+
private readonly aiGatewayContext?;
|
|
27
|
+
private readonly blobsContext;
|
|
28
|
+
private readonly config;
|
|
29
|
+
private readonly deployEnvironment;
|
|
30
|
+
private readonly directory?;
|
|
31
|
+
private readonly projectRoot;
|
|
32
|
+
private readonly timeoutBackground?;
|
|
33
|
+
private readonly timeoutSynchronous?;
|
|
34
|
+
private readonly settings;
|
|
35
|
+
readonly displayName: string;
|
|
36
|
+
mainFile: string;
|
|
37
|
+
readonly name: string;
|
|
38
|
+
readonly runtime: Runtime<BuildResult>;
|
|
39
|
+
schedule?: string;
|
|
40
|
+
readonly srcPath: string;
|
|
41
|
+
readonly isBackground: boolean;
|
|
42
|
+
private buildQueue?;
|
|
43
|
+
buildData?: MappedOmit<BuildResult, 'includedFiles' | 'schedule' | 'srcFiles'> | undefined;
|
|
44
|
+
buildError: Error | null;
|
|
45
|
+
private srcFiles;
|
|
46
|
+
constructor({ aiGatewayContext, blobsContext, config, deployEnvironment, directory, displayName, mainFile, name, projectRoot, runtime, settings, srcPath, timeoutBackground, timeoutSynchronous, }: {
|
|
47
|
+
aiGatewayContext?: AIGatewayContext | null;
|
|
48
|
+
blobsContext: BlobsContextWithEdgeAccess;
|
|
49
|
+
config: NormalizedCachedConfigConfig;
|
|
50
|
+
deployEnvironment: {
|
|
51
|
+
key: string;
|
|
52
|
+
value: string;
|
|
53
|
+
isSecret: boolean;
|
|
54
|
+
}[];
|
|
55
|
+
directory?: string;
|
|
56
|
+
displayName?: string;
|
|
57
|
+
mainFile: string;
|
|
58
|
+
name: string;
|
|
59
|
+
projectRoot: string;
|
|
60
|
+
runtime: Runtime<BuildResult>;
|
|
61
|
+
settings: Pick<ServerSettings, 'functions' | 'functionsPort'>;
|
|
62
|
+
srcPath: string;
|
|
63
|
+
timeoutBackground?: number;
|
|
64
|
+
timeoutSynchronous?: number;
|
|
65
|
+
});
|
|
66
|
+
get filename(): string | null;
|
|
67
|
+
getRecommendedExtension(): ".mjs" | ".mts" | undefined;
|
|
68
|
+
hasValidName(): boolean;
|
|
69
|
+
isScheduled(): Promise<boolean>;
|
|
70
|
+
isSupported(): boolean;
|
|
71
|
+
isTypeScript(): boolean;
|
|
72
|
+
getNextRun(): Promise<Date | null>;
|
|
73
|
+
build({ cache }: {
|
|
74
|
+
cache?: MemoizeCache<Record<string, unknown>>;
|
|
75
|
+
}): Promise<{
|
|
76
|
+
includedFiles: string[];
|
|
77
|
+
srcFilesDiff: {
|
|
78
|
+
added: Set<string>;
|
|
79
|
+
deleted: Set<string>;
|
|
80
|
+
};
|
|
81
|
+
error?: undefined;
|
|
82
|
+
} | {
|
|
83
|
+
error: unknown;
|
|
84
|
+
includedFiles?: undefined;
|
|
85
|
+
srcFilesDiff?: undefined;
|
|
86
|
+
}>;
|
|
87
|
+
getBuildData(): Promise<typeof this.buildData>;
|
|
88
|
+
getSrcFilesDiff(newSrcFiles: Set<string>): {
|
|
89
|
+
added: Set<string>;
|
|
90
|
+
deleted: Set<string>;
|
|
91
|
+
};
|
|
92
|
+
invoke(event?: Record<string, unknown>, context?: Record<string, unknown>): Promise<InvokeResult>;
|
|
93
|
+
/**
|
|
94
|
+
* Matches all routes agains the incoming request. If a match is found, then the matched route is returned.
|
|
95
|
+
* @returns matched route
|
|
96
|
+
*/
|
|
97
|
+
matchURLPath(rawPath: string, method: string, hasStaticFile: () => Promise<boolean>): Promise<ExtendedRoute | undefined>;
|
|
98
|
+
get runtimeAPIVersion(): 1 | NonNullable<BuildResult["runtimeAPIVersion"]>;
|
|
99
|
+
get url(): string;
|
|
100
|
+
}
|
|
101
|
+
export {};
|
|
102
|
+
//# sourceMappingURL=netlify-function.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"netlify-function.d.ts","sourceRoot":"","sources":["../../../src/lib/functions/netlify-function.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAS,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAItD,OAAO,EAAoB,KAAK,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAEpG,OAAO,EAAE,KAAK,0BAA0B,EAAyB,MAAM,mBAAmB,CAAA;AAC1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAEzF,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB;AAED,MAAM,MAAM,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Y,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;KAAE;;;;;;;;;;;;IAuClE,YAAY,IAAI,OAAO,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC;IAQpD,eAAe,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC;;;;IAWlC,MAAM,CAAC,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAyD/G;;;OAGG;IACG,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC;IAqDzF,IAAI,iBAAiB,sDAEpB;IAED,IAAI,GAAG,WAWN;CACF"}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { Buffer } from 'buffer';
|
|
2
|
+
import { basename, extname } from 'path';
|
|
3
|
+
import { version as nodeVersion } from 'process';
|
|
4
|
+
import CronParser from 'cron-parser';
|
|
5
|
+
import semver from 'semver';
|
|
6
|
+
import { logAndThrowError } from '../../utils/command-helpers.js';
|
|
7
|
+
import { BACKGROUND } from '../../utils/functions/get-functions.js';
|
|
8
|
+
import { getBlobsEventProperty } from '../blobs/blobs.js';
|
|
9
|
+
const TYPESCRIPT_EXTENSIONS = new Set(['.cts', '.mts', '.ts']);
|
|
10
|
+
const V2_MIN_NODE_VERSION = '20.12.2';
|
|
11
|
+
// Returns a new set with all elements of `setA` that don't exist in `setB`.
|
|
12
|
+
const difference = (setA, setB) => new Set([...setA].filter((item) => !setB.has(item)));
|
|
13
|
+
const getNextRun = function (schedule) {
|
|
14
|
+
const cron = CronParser.parseExpression(schedule, {
|
|
15
|
+
tz: 'Etc/UTC',
|
|
16
|
+
});
|
|
17
|
+
return cron.next().toDate();
|
|
18
|
+
};
|
|
19
|
+
export default class NetlifyFunction {
|
|
20
|
+
aiGatewayContext;
|
|
21
|
+
blobsContext;
|
|
22
|
+
config;
|
|
23
|
+
deployEnvironment;
|
|
24
|
+
directory;
|
|
25
|
+
projectRoot;
|
|
26
|
+
timeoutBackground;
|
|
27
|
+
timeoutSynchronous;
|
|
28
|
+
settings;
|
|
29
|
+
displayName;
|
|
30
|
+
mainFile;
|
|
31
|
+
name;
|
|
32
|
+
runtime;
|
|
33
|
+
schedule;
|
|
34
|
+
// The path to the function boundary: if the function is in a sub-directory,
|
|
35
|
+
// this will hold the path to the sub-directory; if not, it's the path to the
|
|
36
|
+
// main file.
|
|
37
|
+
srcPath;
|
|
38
|
+
// Determines whether this is a background function based on the function
|
|
39
|
+
// name.
|
|
40
|
+
isBackground;
|
|
41
|
+
buildQueue;
|
|
42
|
+
buildData;
|
|
43
|
+
buildError = null;
|
|
44
|
+
// List of the function's source files. This starts out as an empty set
|
|
45
|
+
// and will get populated on every build.
|
|
46
|
+
srcFiles = new Set();
|
|
47
|
+
constructor({ aiGatewayContext, blobsContext, config, deployEnvironment, directory, displayName, mainFile, name, projectRoot, runtime, settings, srcPath, timeoutBackground, timeoutSynchronous, }) {
|
|
48
|
+
this.aiGatewayContext = aiGatewayContext;
|
|
49
|
+
this.blobsContext = blobsContext;
|
|
50
|
+
this.config = config;
|
|
51
|
+
this.deployEnvironment = deployEnvironment ?? [];
|
|
52
|
+
this.directory = directory;
|
|
53
|
+
this.mainFile = mainFile;
|
|
54
|
+
this.name = name;
|
|
55
|
+
this.displayName = displayName ?? name;
|
|
56
|
+
this.projectRoot = projectRoot;
|
|
57
|
+
this.runtime = runtime;
|
|
58
|
+
this.timeoutBackground = timeoutBackground;
|
|
59
|
+
this.timeoutSynchronous = timeoutSynchronous;
|
|
60
|
+
this.settings = settings;
|
|
61
|
+
this.srcPath = srcPath;
|
|
62
|
+
this.isBackground = name.endsWith(BACKGROUND);
|
|
63
|
+
const functionConfig = config.functions?.[name];
|
|
64
|
+
// @ts-expect-error -- XXX(serhalp): fixed in stack PR (bumps to https://github.com/netlify/build/pull/6165)
|
|
65
|
+
this.schedule = functionConfig && functionConfig.schedule;
|
|
66
|
+
this.srcFiles = new Set();
|
|
67
|
+
}
|
|
68
|
+
get filename() {
|
|
69
|
+
if (!this.buildData?.mainFile) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return basename(this.buildData.mainFile);
|
|
73
|
+
}
|
|
74
|
+
getRecommendedExtension() {
|
|
75
|
+
if (this.buildData?.runtimeAPIVersion !== 2) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const extension = this.buildData.mainFile ? extname(this.buildData.mainFile) : undefined;
|
|
79
|
+
const moduleFormat = this.buildData.outputModuleFormat;
|
|
80
|
+
if (moduleFormat === 'esm') {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (extension === '.ts') {
|
|
84
|
+
return '.mts';
|
|
85
|
+
}
|
|
86
|
+
if (extension === '.js') {
|
|
87
|
+
return '.mjs';
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
hasValidName() {
|
|
91
|
+
// same as https://github.com/netlify/bitballoon/blob/fbd7881e6c8e8c48e7a0145da4ee26090c794108/app/models/deploy.rb#L482
|
|
92
|
+
return /^[A-Za-z0-9_-]+$/.test(this.name);
|
|
93
|
+
}
|
|
94
|
+
async isScheduled() {
|
|
95
|
+
await this.buildQueue;
|
|
96
|
+
return Boolean(this.schedule);
|
|
97
|
+
}
|
|
98
|
+
isSupported() {
|
|
99
|
+
return !(this.buildData?.runtimeAPIVersion === 2 && semver.lt(nodeVersion, V2_MIN_NODE_VERSION));
|
|
100
|
+
}
|
|
101
|
+
isTypeScript() {
|
|
102
|
+
if (this.filename === null) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
return TYPESCRIPT_EXTENSIONS.has(extname(this.filename));
|
|
106
|
+
}
|
|
107
|
+
async getNextRun() {
|
|
108
|
+
if (!(await this.isScheduled())) {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
112
|
+
return getNextRun(this.schedule);
|
|
113
|
+
}
|
|
114
|
+
// The `build` method transforms source files into invocable functions. Its
|
|
115
|
+
// return value is an object with:
|
|
116
|
+
//
|
|
117
|
+
// - `srcFilesDiff`: Files that were added and removed since the last time
|
|
118
|
+
// the function was built.
|
|
119
|
+
async build({ cache }) {
|
|
120
|
+
const buildFunction = await this.runtime.getBuildFunction({
|
|
121
|
+
config: this.config,
|
|
122
|
+
directory: this.directory,
|
|
123
|
+
errorExit: logAndThrowError,
|
|
124
|
+
func: this,
|
|
125
|
+
projectRoot: this.projectRoot,
|
|
126
|
+
});
|
|
127
|
+
this.buildQueue = buildFunction({ cache });
|
|
128
|
+
try {
|
|
129
|
+
const { includedFiles = [], schedule, srcFiles, ...buildData } = await this.buildQueue;
|
|
130
|
+
const srcFilesSet = new Set(srcFiles);
|
|
131
|
+
const srcFilesDiff = this.getSrcFilesDiff(srcFilesSet);
|
|
132
|
+
this.buildData = buildData;
|
|
133
|
+
this.buildError = null;
|
|
134
|
+
this.srcFiles = srcFilesSet;
|
|
135
|
+
this.schedule = schedule ?? this.schedule;
|
|
136
|
+
if (!this.isSupported()) {
|
|
137
|
+
throw new Error(`Function requires Node.js version ${V2_MIN_NODE_VERSION} or above, but ${nodeVersion.slice(1)} is installed. Refer to https://ntl.fyi/functions-runtime for information on how to update.`);
|
|
138
|
+
}
|
|
139
|
+
return { includedFiles, srcFilesDiff };
|
|
140
|
+
}
|
|
141
|
+
catch (error) {
|
|
142
|
+
if (error instanceof Error) {
|
|
143
|
+
this.buildError = error;
|
|
144
|
+
}
|
|
145
|
+
return { error };
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
async getBuildData() {
|
|
149
|
+
await this.buildQueue;
|
|
150
|
+
return this.buildData;
|
|
151
|
+
}
|
|
152
|
+
// Compares a new set of source files against a previous one, returning an
|
|
153
|
+
// object with two Sets, one with added and the other with deleted files.
|
|
154
|
+
getSrcFilesDiff(newSrcFiles) {
|
|
155
|
+
const added = difference(newSrcFiles, this.srcFiles);
|
|
156
|
+
const deleted = difference(this.srcFiles, newSrcFiles);
|
|
157
|
+
return {
|
|
158
|
+
added,
|
|
159
|
+
deleted,
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
// Invokes the function and returns its response object.
|
|
163
|
+
async invoke(event = {}, context = {}) {
|
|
164
|
+
await this.buildQueue;
|
|
165
|
+
if (this.buildError) {
|
|
166
|
+
// TODO(serhalp): I don't think this error handling works as expected. Investigate.
|
|
167
|
+
return { result: null, error: { errorType: '', stackTrace: [], errorMessage: this.buildError.message } };
|
|
168
|
+
}
|
|
169
|
+
const timeout = this.isBackground ? this.timeoutBackground : this.timeoutSynchronous;
|
|
170
|
+
if (timeout == null) {
|
|
171
|
+
throw new Error('Function timeout (`timeoutBackground` or `timeoutSynchronous`) not set');
|
|
172
|
+
}
|
|
173
|
+
// Get function environment variables from config.build.environment
|
|
174
|
+
// This allows build event handlers to add function-specific environment variables
|
|
175
|
+
// Only include config environment variables that are not already set in process.env
|
|
176
|
+
// to ensure process environment variables take precedence
|
|
177
|
+
const configEnvVars = {};
|
|
178
|
+
if (this.config.build?.environment) {
|
|
179
|
+
Object.entries(this.config.build.environment).forEach(([key, value]) => {
|
|
180
|
+
if (typeof value === 'string' && !(key in process.env)) {
|
|
181
|
+
configEnvVars[key] = value;
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
const environment = {
|
|
186
|
+
// Include function-specific environment variables from config
|
|
187
|
+
...configEnvVars,
|
|
188
|
+
...Object.fromEntries(this.deployEnvironment.map(({ key, value }) => [key, value])),
|
|
189
|
+
};
|
|
190
|
+
if (this.blobsContext) {
|
|
191
|
+
const payload = JSON.stringify(getBlobsEventProperty(this.blobsContext));
|
|
192
|
+
event.blobs = Buffer.from(payload).toString('base64');
|
|
193
|
+
}
|
|
194
|
+
if (this.aiGatewayContext) {
|
|
195
|
+
const payload = JSON.stringify(this.aiGatewayContext);
|
|
196
|
+
event.aiGateway = Buffer.from(payload).toString('base64');
|
|
197
|
+
}
|
|
198
|
+
try {
|
|
199
|
+
const result = await this.runtime.invokeFunction({
|
|
200
|
+
context,
|
|
201
|
+
environment,
|
|
202
|
+
event,
|
|
203
|
+
func: this,
|
|
204
|
+
timeout,
|
|
205
|
+
});
|
|
206
|
+
return { result, error: null };
|
|
207
|
+
}
|
|
208
|
+
catch (error) {
|
|
209
|
+
return { result: null, error: error };
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Matches all routes agains the incoming request. If a match is found, then the matched route is returned.
|
|
214
|
+
* @returns matched route
|
|
215
|
+
*/
|
|
216
|
+
async matchURLPath(rawPath, method, hasStaticFile) {
|
|
217
|
+
await this.buildQueue;
|
|
218
|
+
let path = rawPath !== '/' && rawPath.endsWith('/') ? rawPath.slice(0, -1) : rawPath;
|
|
219
|
+
path = path.toLowerCase();
|
|
220
|
+
const { excludedRoutes = [], routes = [] } = this.buildData ?? {};
|
|
221
|
+
const matchingRoute = routes.find((route) => {
|
|
222
|
+
if (route.methods && route.methods.length !== 0 && !route.methods.includes(method)) {
|
|
223
|
+
return false;
|
|
224
|
+
}
|
|
225
|
+
if ('literal' in route && route.literal !== undefined) {
|
|
226
|
+
return path === route.literal;
|
|
227
|
+
}
|
|
228
|
+
if ('expression' in route && route.expression !== undefined) {
|
|
229
|
+
const regex = new RegExp(route.expression);
|
|
230
|
+
return regex.test(path);
|
|
231
|
+
}
|
|
232
|
+
return false;
|
|
233
|
+
});
|
|
234
|
+
if (!matchingRoute) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
const isExcluded = excludedRoutes.some((excludedRoute) => {
|
|
238
|
+
if ('literal' in excludedRoute && excludedRoute.literal !== undefined) {
|
|
239
|
+
return path === excludedRoute.literal;
|
|
240
|
+
}
|
|
241
|
+
if ('expression' in excludedRoute && excludedRoute.expression !== undefined) {
|
|
242
|
+
const regex = new RegExp(excludedRoute.expression);
|
|
243
|
+
return regex.test(path);
|
|
244
|
+
}
|
|
245
|
+
return false;
|
|
246
|
+
});
|
|
247
|
+
if (isExcluded) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
if (matchingRoute.prefer_static && (await hasStaticFile())) {
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
return matchingRoute;
|
|
254
|
+
}
|
|
255
|
+
get runtimeAPIVersion() {
|
|
256
|
+
return this.buildData?.runtimeAPIVersion ?? 1;
|
|
257
|
+
}
|
|
258
|
+
get url() {
|
|
259
|
+
// This line fixes the issue here https://github.com/netlify/cli/issues/4116
|
|
260
|
+
// Not sure why `settings.port` was used here nor does a valid reference exist.
|
|
261
|
+
// However, it remains here to serve whatever purpose for which it was added.
|
|
262
|
+
// @ts-expect-error(serhalp) -- Remove use of `port` here? Otherwise, pass it in from `functions:serve`.
|
|
263
|
+
const port = this.settings.port || this.settings.functionsPort;
|
|
264
|
+
// @ts-expect-error(serhalp) -- Same as above for `https`
|
|
265
|
+
const protocol = this.settings.https ? 'https' : 'http';
|
|
266
|
+
const url = new URL(`/.netlify/functions/${this.name}`, `${protocol}://localhost:${port}`);
|
|
267
|
+
return url.href;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
//# sourceMappingURL=netlify-function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"netlify-function.js","sourceRoot":"","sources":["../../../src/lib/functions/netlify-function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,SAAS,CAAA;AAIhD,OAAO,UAAU,MAAM,aAAa,CAAA;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,gB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4EAA4E;QAC5E,+EAA+E;QAC/E,6EAA6E;QAC7E,wGAAwG;QACxG,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAA;QAC9D,yDAAyD;QACzD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAA;QACvD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,uBAAuB,IAAI,CAAC,IAAI,EAAE,EAAE,GAAG,QAAQ,gBAAgB,IAAI,EAAE,CAAC,CAAA;QAE1F,OAAO,GAAG,CAAC,IAAI,CAAA;IACjB,CAAC;CACF"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { GeneratedFunction } from '@netlify/build';
|
|
2
|
+
import { type ListedFunction, listFunctions, type Manifest } from '@netlify/zip-it-and-ship-it';
|
|
3
|
+
import { type NormalizedCachedConfigConfig } from '../../utils/command-helpers.js';
|
|
4
|
+
import { getFrameworksAPIPaths } from '../../utils/frameworks-api.js';
|
|
5
|
+
import type { BlobsContextWithEdgeAccess } from '../blobs/blobs.js';
|
|
6
|
+
import type { AIGatewayContext } from '@netlify/ai/bootstrap';
|
|
7
|
+
import type { ServerSettings } from '../../utils/types.js';
|
|
8
|
+
import NetlifyFunction from './netlify-function.js';
|
|
9
|
+
import { type BaseBuildResult } from './runtimes/index.js';
|
|
10
|
+
export declare const DEFAULT_FUNCTION_URL_EXPRESSION: RegExp;
|
|
11
|
+
export declare class FunctionsRegistry {
|
|
12
|
+
/**
|
|
13
|
+
* The functions held by the registry
|
|
14
|
+
*/
|
|
15
|
+
private functions;
|
|
16
|
+
/**
|
|
17
|
+
* File watchers for function files. Maps function names to objects built
|
|
18
|
+
* by the `watchDebounced` utility.
|
|
19
|
+
*/
|
|
20
|
+
private functionWatchers;
|
|
21
|
+
private directoryWatchers;
|
|
22
|
+
/**
|
|
23
|
+
* Keeps track of whether we've checked whether `TYPES_PACKAGE` is
|
|
24
|
+
* installed.
|
|
25
|
+
*/
|
|
26
|
+
private hasCheckedTypesPackage;
|
|
27
|
+
/**
|
|
28
|
+
* Context object for Netlify Blobs
|
|
29
|
+
*/
|
|
30
|
+
private blobsContext;
|
|
31
|
+
/**
|
|
32
|
+
* Context object for Netlify AI Gateway
|
|
33
|
+
*/
|
|
34
|
+
private aiGatewayContext?;
|
|
35
|
+
private buildCommandCache?;
|
|
36
|
+
private capabilities;
|
|
37
|
+
private config;
|
|
38
|
+
private debug;
|
|
39
|
+
private frameworksAPIPaths;
|
|
40
|
+
private generatedFunctions;
|
|
41
|
+
private isConnected;
|
|
42
|
+
private logLambdaCompat;
|
|
43
|
+
private manifest?;
|
|
44
|
+
private projectRoot;
|
|
45
|
+
private settings;
|
|
46
|
+
private timeouts;
|
|
47
|
+
private readonly deployEnvironment;
|
|
48
|
+
constructor({ aiGatewayContext, blobsContext, capabilities, config, debug, deployEnvironment, frameworksAPIPaths, generatedFunctions, isConnected, logLambdaCompat, manifest, projectRoot, settings, timeouts, }: {
|
|
49
|
+
aiGatewayContext?: AIGatewayContext | null;
|
|
50
|
+
blobsContext: BlobsContextWithEdgeAccess;
|
|
51
|
+
buildCache?: Record<string, unknown>;
|
|
52
|
+
capabilities: {
|
|
53
|
+
backgroundFunctions?: boolean;
|
|
54
|
+
};
|
|
55
|
+
config: NormalizedCachedConfigConfig;
|
|
56
|
+
debug?: boolean;
|
|
57
|
+
frameworksAPIPaths: ReturnType<typeof getFrameworksAPIPaths>;
|
|
58
|
+
generatedFunctions: GeneratedFunction[];
|
|
59
|
+
isConnected?: boolean;
|
|
60
|
+
logLambdaCompat: boolean;
|
|
61
|
+
manifest?: Manifest;
|
|
62
|
+
projectRoot: string;
|
|
63
|
+
settings: Pick<ServerSettings, 'functions' | 'functionsPort'>;
|
|
64
|
+
timeouts: {
|
|
65
|
+
backgroundFunctions: number;
|
|
66
|
+
syncFunctions: number;
|
|
67
|
+
};
|
|
68
|
+
deployEnvironment: {
|
|
69
|
+
key: string;
|
|
70
|
+
value: string;
|
|
71
|
+
isSecret: boolean;
|
|
72
|
+
}[];
|
|
73
|
+
});
|
|
74
|
+
checkTypesPackage(): void;
|
|
75
|
+
static prepareDirectory(directory: string): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Builds a function and sets up the appropriate file watchers so that any
|
|
78
|
+
* changes will trigger another build.
|
|
79
|
+
*/
|
|
80
|
+
buildFunctionAndWatchFiles(func: NetlifyFunction<BaseBuildResult>, firstLoad?: boolean): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Returns a function by name.
|
|
83
|
+
*/
|
|
84
|
+
get(name: string): NetlifyFunction<BaseBuildResult> | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Looks for the first function that matches a given URL path. If a match is
|
|
87
|
+
* found, returns an object with the function and the route. If the URL path
|
|
88
|
+
* matches the default functions URL (i.e. can only be for a function) but no
|
|
89
|
+
* function with the given name exists, returns an object with the function
|
|
90
|
+
* and the route set to `null`. Otherwise, `undefined` is returned,
|
|
91
|
+
*/
|
|
92
|
+
getFunctionForURLPath(urlPath: string, method: string, hasStaticFile: () => Promise<boolean>): Promise<{
|
|
93
|
+
func: null;
|
|
94
|
+
route: null;
|
|
95
|
+
} | {
|
|
96
|
+
func: NetlifyFunction<BaseBuildResult>;
|
|
97
|
+
route: null;
|
|
98
|
+
} | {
|
|
99
|
+
func: NetlifyFunction<BaseBuildResult>;
|
|
100
|
+
route: import("@netlify/zip-it-and-ship-it").ExtendedRoute;
|
|
101
|
+
} | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* Logs an event associated with functions.
|
|
104
|
+
*/
|
|
105
|
+
private logEvent;
|
|
106
|
+
/**
|
|
107
|
+
* Adds a function to the registry
|
|
108
|
+
*/
|
|
109
|
+
registerFunction(name: string, funcBeforeHook: NetlifyFunction<BaseBuildResult>, isReload?: boolean): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* A proxy to zip-it-and-ship-it's `listFunctions` method. It exists just so
|
|
112
|
+
* that we can mock it in tests.
|
|
113
|
+
*/
|
|
114
|
+
listFunctions(...args: Parameters<typeof listFunctions>): Promise<ListedFunction[]>;
|
|
115
|
+
/**
|
|
116
|
+
* Takes a list of directories and scans for functions. It keeps tracks of
|
|
117
|
+
* any functions in those directories that we've previously seen, and takes
|
|
118
|
+
* care of registering and unregistering functions as they come and go.
|
|
119
|
+
*/
|
|
120
|
+
scan(relativeDirs: (string | undefined)[]): Promise<void>;
|
|
121
|
+
/**
|
|
122
|
+
* Creates a watcher that looks at files being added or removed from a
|
|
123
|
+
* functions directory. It doesn't care about files being changed, because
|
|
124
|
+
* those will be handled by each functions' watcher.
|
|
125
|
+
*/
|
|
126
|
+
setupDirectoryWatcher(directory: string): Promise<void>;
|
|
127
|
+
/**
|
|
128
|
+
* Removes a function from the registry and closes its file watchers.
|
|
129
|
+
*/
|
|
130
|
+
unregisterFunction(func: NetlifyFunction<BaseBuildResult>): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* Takes a zipped function and extracts its contents to an internal directory.
|
|
133
|
+
*/
|
|
134
|
+
unzipFunction(func: NetlifyFunction<BaseBuildResult>): Promise<string>;
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/lib/functions/registry.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,KAAK,cAAc,EAAE,aAAa,EAAE,KAAK,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAI/F,OAAO,EAQL,KAAK,4BAA4B,EAClC,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAErE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM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