netlify 13.3.4 → 21.5.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 +1 -1
- package/README.md +99 -157
- package/bin/run.js +66 -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 +93 -0
- package/dist/commands/base-command.d.ts.map +1 -0
- package/dist/commands/base-command.js +623 -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 +32 -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 +48 -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/deploy/deploy.d.ts +4 -0
- package/dist/commands/deploy/deploy.d.ts.map +1 -0
- package/dist/commands/deploy/deploy.js +687 -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 +132 -0
- package/dist/commands/deploy/index.js.map +1 -0
- package/dist/commands/deploy/option_values.d.ts +19 -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 +176 -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 +75 -0
- package/dist/commands/dev/index.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 +14 -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 +53 -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/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 +5 -0
- package/dist/commands/init/init.d.ts.map +1 -0
- package/dist/commands/init/init.js +192 -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 +17 -0
- package/dist/commands/login/index.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 +30 -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 +225 -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 +149 -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-template.d.ts +5 -0
- package/dist/commands/sites/sites-create-template.d.ts.map +1 -0
- package/dist/commands/sites/sites-create-template.js +235 -0
- package/dist/commands/sites/sites-create-template.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 +5 -0
- package/dist/commands/sites/sites.d.ts.map +1 -0
- package/dist/commands/sites/sites.js +77 -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 +22 -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 +111 -0
- package/dist/lib/build.d.ts.map +1 -0
- package/dist/lib/build.js +75 -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/deploy.d.ts +8 -0
- package/dist/lib/edge-functions/deploy.d.ts.map +1 -0
- package/dist/lib/edge-functions/deploy.js +34 -0
- package/dist/lib/edge-functions/deploy.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 +31 -0
- package/dist/lib/edge-functions/editor-helper.js.map +1 -0
- package/dist/lib/edge-functions/headers.d.ts +35 -0
- package/dist/lib/edge-functions/headers.d.ts.map +1 -0
- package/dist/lib/edge-functions/headers.js +42 -0
- package/dist/lib/edge-functions/headers.js.map +1 -0
- package/dist/lib/edge-functions/proxy.d.ts +42 -0
- package/dist/lib/edge-functions/proxy.d.ts.map +1 -0
- package/dist/lib/edge-functions/proxy.js +151 -0
- package/dist/lib/edge-functions/proxy.js.map +1 -0
- package/dist/lib/edge-functions/registry.d.ts +103 -0
- package/dist/lib/edge-functions/registry.d.ts.map +1 -0
- package/dist/lib/edge-functions/registry.js +441 -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 +104 -0
- package/dist/lib/exec-fetcher.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/memoized-build.d.ts +11 -0
- package/dist/lib/functions/memoized-build.d.ts.map +1 -0
- package/dist/lib/functions/memoized-build.js +28 -0
- package/dist/lib/functions/memoized-build.js.map +1 -0
- package/dist/lib/functions/netlify-function.d.ts +91 -0
- package/dist/lib/functions/netlify-function.d.ts.map +1 -0
- package/dist/lib/functions/netlify-function.js +241 -0
- package/dist/lib/functions/netlify-function.js.map +1 -0
- package/dist/lib/functions/registry.d.ts +121 -0
- package/dist/lib/functions/registry.d.ts.map +1 -0
- package/dist/lib/functions/registry.js +437 -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 +139 -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 +24 -0
- package/dist/lib/functions/runtimes/js/index.d.ts.map +1 -0
- package/dist/lib/functions/runtimes/js/index.js +95 -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 +38 -0
- package/dist/lib/functions/server.d.ts.map +1 -0
- package/dist/lib/functions/server.js +292 -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 +8 -0
- package/dist/lib/functions/utils.d.ts.map +1 -0
- package/dist/lib/functions/utils.js +42 -0
- package/dist/lib/functions/utils.js.map +1 -0
- package/dist/lib/geo-location.d.ts +31 -0
- package/dist/lib/geo-location.d.ts.map +1 -0
- package/dist/lib/geo-location.js +84 -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 +96 -0
- package/dist/lib/http-agent.js.map +1 -0
- package/dist/lib/images/proxy.d.ts +30 -0
- package/dist/lib/images/proxy.d.ts.map +1 -0
- package/dist/lib/images/proxy.js +117 -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/render-error-template.d.ts +3 -0
- package/dist/lib/render-error-template.d.ts.map +1 -0
- package/dist/lib/render-error-template.js +21 -0
- package/dist/lib/render-error-template.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 +30 -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 +6 -0
- package/dist/lib/string.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/cli-state.d.ts +13 -0
- package/dist/utils/cli-state.d.ts.map +1 -0
- package/dist/utils/cli-state.js +107 -0
- package/dist/utils/cli-state.js.map +1 -0
- package/dist/utils/command-helpers.d.ts +110 -0
- package/dist/utils/command-helpers.d.ts.map +1 -0
- package/dist/utils/command-helpers.js +250 -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 +46 -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 +156 -0
- package/dist/utils/deploy/deploy-site.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 +15 -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/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/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 +108 -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 +72 -0
- package/dist/utils/dev.d.ts.map +1 -0
- package/dist/utils/dev.js +192 -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 +254 -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 +21 -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 +71 -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-global-config-store.d.ts +16 -0
- package/dist/utils/get-global-config-store.d.ts.map +1 -0
- package/dist/utils/get-global-config-store.js +87 -0
- package/dist/utils/get-global-config-store.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 +36 -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.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 +154 -0
- package/dist/utils/init/utils.d.ts.map +1 -0
- package/dist/utils/init/utils.js +164 -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 +126 -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 +54 -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 +39 -0
- package/dist/utils/proxy-server.d.ts.map +1 -0
- package/dist/utils/proxy-server.js +50 -0
- package/dist/utils/proxy-server.js.map +1 -0
- package/dist/utils/proxy.d.ts +13 -0
- package/dist/utils/proxy.d.ts.map +1 -0
- package/dist/utils/proxy.js +782 -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 +33 -0
- package/dist/utils/run-build.d.ts.map +1 -0
- package/dist/utils/run-build.js +126 -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 +8 -0
- package/dist/utils/shell.d.ts.map +1 -0
- package/dist/utils/shell.js +106 -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/sites/create-template.d.ts +14 -0
- package/dist/utils/sites/create-template.d.ts.map +1 -0
- package/dist/utils/sites/create-template.js +47 -0
- package/dist/utils/sites/create-template.js.map +1 -0
- package/dist/utils/sites/utils.d.ts +16 -0
- package/dist/utils/sites/utils.d.ts.map +1 -0
- package/dist/utils/sites/utils.js +63 -0
- package/dist/utils/sites/utils.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 +205 -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 +6 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +17 -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 +95 -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 +23183 -0
- package/package.json +147 -53
- 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
- package/lib/index.d.ts +0 -54
- package/lib/index.js +0 -78
- package/lib/methods/body.d.ts +0 -1
- package/lib/methods/body.js +0 -25
- package/lib/methods/index.d.ts +0 -6
- package/lib/methods/index.js +0 -84
- package/lib/methods/params.d.ts +0 -1
- package/lib/methods/params.js +0 -14
- package/lib/methods/response.d.ts +0 -2
- package/lib/methods/response.js +0 -44
- package/lib/methods/retry.d.ts +0 -7
- package/lib/methods/retry.js +0 -40
- package/lib/methods/url.d.ts +0 -4
- package/lib/methods/url.js +0 -24
- package/lib/omit.d.ts +0 -1
- package/lib/omit.js +0 -7
- package/lib/open_api.d.ts +0 -1
- package/lib/open_api.js +0 -5
- package/lib/operations.d.ts +0 -1
- package/lib/operations.js +0 -19
- package/lib/types.d.ts +0 -129
- package/lib/types.js +0 -1
package/package.json
CHANGED
|
@@ -1,66 +1,160 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify",
|
|
3
|
-
"description": "Netlify
|
|
4
|
-
"version": "
|
|
3
|
+
"description": "Netlify command line tool",
|
|
4
|
+
"version": "21.5.0",
|
|
5
|
+
"author": "Netlify Inc.",
|
|
5
6
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=18.14.0"
|
|
9
|
+
},
|
|
9
10
|
"files": [
|
|
10
|
-
"
|
|
11
|
+
"/bin",
|
|
12
|
+
"/npm-shrinkwrap.json",
|
|
13
|
+
"/scripts",
|
|
14
|
+
"/functions-templates",
|
|
15
|
+
"/dist"
|
|
11
16
|
],
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
},
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"author": "Netlify Inc.",
|
|
21
|
-
"contributors": [
|
|
22
|
-
"Mathias Biilmann <matt@netlify.com> (https://twitter.com/biilmann)",
|
|
23
|
-
"David Calavera <david@netlify.com> (https://twitter.com/calavera)",
|
|
24
|
-
"David Wells <david.wells@netlify.com> (https://davidwells.io/)",
|
|
25
|
-
"Bret Comnes <bcomnes@gmail.com> (https://bret.io)",
|
|
26
|
-
"Lukas Holzer <lukas.holzer@netlify.com> (https://twitter.com/luka5c0m)"
|
|
17
|
+
"homepage": "https://github.com/netlify/cli",
|
|
18
|
+
"keywords": [
|
|
19
|
+
"api",
|
|
20
|
+
"cli",
|
|
21
|
+
"netlify",
|
|
22
|
+
"static"
|
|
27
23
|
],
|
|
28
|
-
"
|
|
29
|
-
"repository":
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"directory": "packages/js-client"
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"repository": "https://github.com/netlify/cli",
|
|
26
|
+
"bin": {
|
|
27
|
+
"npxnetlify": "./bin/run.js"
|
|
33
28
|
},
|
|
34
29
|
"bugs": {
|
|
35
|
-
"url": "https://github.com/netlify/
|
|
30
|
+
"url": "https://github.com/netlify/cli/issues"
|
|
36
31
|
},
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
32
|
+
"scripts": {
|
|
33
|
+
"_format": "prettier --loglevel=warn \"{src,tools,scripts,tests,e2e,.github}/**/*.{mjs,cjs,js,mts,md,yml,json,html,ts}\" \"*.{mjs,cjs,js,mts,yml,json,html,ts}\" \".*.{mjs,cjs,js,yml,json,html,ts}\" \"!CHANGELOG.md\" \"!**/*/package-lock.json\" \"!.github/**/*.md\"",
|
|
34
|
+
"build": "tsc --project tsconfig.build.json",
|
|
35
|
+
"clean": "rm -rf dist/",
|
|
36
|
+
"dev": "tsc --project tsconfig.build.json --watch",
|
|
37
|
+
"docs": "npm run --prefix=site build",
|
|
38
|
+
"format": "npm run _format -- --write",
|
|
39
|
+
"format:check": "npm run _format -- --check",
|
|
40
|
+
"lint": "eslint --cache",
|
|
41
|
+
"lint:fix": "npm run lint -- --fix",
|
|
42
|
+
"start": "node ./bin/run.js",
|
|
43
|
+
"test": "run-s test:unit test:integration test:e2e",
|
|
44
|
+
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|
|
45
|
+
"test:init": "run-s test:init:*",
|
|
46
|
+
"test:init:cli-help": "npm run start -- --help",
|
|
47
|
+
"test:init:cli-version": "npm run start -- --version",
|
|
48
|
+
"test:init:hugo-deps": "npm ci --prefix tests/integration/__fixtures__/hugo-site --no-audit",
|
|
49
|
+
"test:init:monorepo-deps": "cd tests/integration/__fixtures__/monorepo && pnpm install --frozen-lockfile",
|
|
50
|
+
"test:init:next-deps": "npm ci --prefix tests/integration/__fixtures__/next-app-without-config --no-audit && npm ci --prefix tests/integration/__fixtures__/next-app --no-audit",
|
|
51
|
+
"test:integration": "vitest run --retry=3 tests/integration/",
|
|
52
|
+
"test:unit": "vitest run tests/unit/",
|
|
53
|
+
"postinstall": "node ./scripts/postinstall.js",
|
|
54
|
+
"typecheck": "tsc",
|
|
55
|
+
"typecheck:watch": "tsc --watch"
|
|
50
56
|
},
|
|
51
|
-
"
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@fastify/static": "7.0.4",
|
|
59
|
+
"@netlify/api": "13.4.0",
|
|
60
|
+
"@netlify/blobs": "8.2.0",
|
|
61
|
+
"@netlify/build": "32.1.4",
|
|
62
|
+
"@netlify/build-info": "9.0.4",
|
|
63
|
+
"@netlify/config": "22.2.0",
|
|
64
|
+
"@netlify/edge-bundler": "13.0.3",
|
|
65
|
+
"@netlify/edge-functions": "2.12.0",
|
|
66
|
+
"@netlify/headers-parser": "8.0.0",
|
|
67
|
+
"@netlify/local-functions-proxy": "2.0.3",
|
|
68
|
+
"@netlify/redirect-parser": "14.5.1",
|
|
69
|
+
"@netlify/zip-it-and-ship-it": "10.1.1",
|
|
70
|
+
"@octokit/rest": "21.1.1",
|
|
71
|
+
"@opentelemetry/api": "1.8.0",
|
|
72
|
+
"@pnpm/tabtab": "0.5.4",
|
|
73
|
+
"ansi-escapes": "7.0.0",
|
|
74
|
+
"ansi-to-html": "0.7.2",
|
|
75
|
+
"ascii-table": "0.0.9",
|
|
76
|
+
"backoff": "2.5.0",
|
|
77
|
+
"boxen": "8.0.1",
|
|
78
|
+
"chalk": "5.4.1",
|
|
79
|
+
"chokidar": "3.6.0",
|
|
80
|
+
"ci-info": "4.2.0",
|
|
81
|
+
"clean-deep": "3.4.0",
|
|
82
|
+
"commander": "12.1.0",
|
|
83
|
+
"comment-json": "4.2.5",
|
|
84
|
+
"content-type": "1.0.5",
|
|
85
|
+
"cookie": "1.0.2",
|
|
86
|
+
"cron-parser": "4.9.0",
|
|
87
|
+
"debug": "4.4.0",
|
|
88
|
+
"decache": "4.6.2",
|
|
89
|
+
"dot-prop": "9.0.0",
|
|
90
|
+
"dotenv": "16.5.0",
|
|
91
|
+
"env-paths": "3.0.0",
|
|
92
|
+
"envinfo": "7.14.0",
|
|
93
|
+
"etag": "1.8.1",
|
|
94
|
+
"execa": "5.1.1",
|
|
95
|
+
"express": "4.21.2",
|
|
96
|
+
"express-logging": "1.1.1",
|
|
97
|
+
"extract-zip": "2.0.1",
|
|
98
|
+
"fastest-levenshtein": "1.0.16",
|
|
99
|
+
"fastify": "4.29.1",
|
|
100
|
+
"find-up": "7.0.0",
|
|
101
|
+
"folder-walker": "3.2.0",
|
|
102
|
+
"fuzzy": "0.1.3",
|
|
103
|
+
"get-port": "5.1.1",
|
|
104
|
+
"gh-release-fetch": "4.0.3",
|
|
105
|
+
"git-repo-info": "2.1.1",
|
|
106
|
+
"gitconfiglocal": "2.1.0",
|
|
107
|
+
"http-proxy": "1.18.1",
|
|
108
|
+
"http-proxy-middleware": "2.0.9",
|
|
109
|
+
"https-proxy-agent": "7.0.6",
|
|
110
|
+
"inquirer": "8.2.6",
|
|
111
|
+
"inquirer-autocomplete-prompt": "1.4.0",
|
|
112
|
+
"ipx": "2.1.0",
|
|
113
|
+
"is-docker": "3.0.0",
|
|
114
|
+
"is-stream": "4.0.1",
|
|
115
|
+
"is-wsl": "3.1.0",
|
|
116
|
+
"isexe": "3.1.1",
|
|
117
|
+
"jsonwebtoken": "9.0.2",
|
|
118
|
+
"jwt-decode": "4.0.0",
|
|
119
|
+
"lambda-local": "2.2.0",
|
|
120
|
+
"locate-path": "7.2.0",
|
|
121
|
+
"lodash": "4.17.21",
|
|
122
|
+
"log-update": "6.1.0",
|
|
123
|
+
"maxstache": "1.0.7",
|
|
124
|
+
"maxstache-stream": "1.0.4",
|
|
125
|
+
"multiparty": "4.2.3",
|
|
126
|
+
"nanospinner": "^1.2.2",
|
|
127
|
+
"netlify-redirector": "0.5.0",
|
|
128
|
+
"node-fetch": "3.3.2",
|
|
129
|
+
"normalize-package-data": "6.0.2",
|
|
130
|
+
"open": "10.1.2",
|
|
131
|
+
"p-filter": "4.1.0",
|
|
132
|
+
"p-map": "7.0.3",
|
|
133
|
+
"p-wait-for": "5.0.2",
|
|
134
|
+
"parallel-transform": "1.2.0",
|
|
135
|
+
"parse-github-url": "1.0.3",
|
|
136
|
+
"parse-gitignore": "2.0.0",
|
|
137
|
+
"prettyjson": "1.2.5",
|
|
138
|
+
"raw-body": "3.0.0",
|
|
139
|
+
"read-package-up": "11.0.0",
|
|
140
|
+
"readdirp": "4.1.2",
|
|
141
|
+
"semver": "7.7.1",
|
|
142
|
+
"source-map-support": "0.5.21",
|
|
143
|
+
"terminal-link": "4.0.0",
|
|
144
|
+
"toml": "3.0.0",
|
|
145
|
+
"tomlify-j0.4": "3.0.0",
|
|
146
|
+
"ulid": "3.0.0",
|
|
147
|
+
"update-notifier": "7.3.1",
|
|
148
|
+
"uuid": "11.1.0",
|
|
149
|
+
"wait-port": "1.1.0",
|
|
150
|
+
"write-file-atomic": "5.0.1",
|
|
151
|
+
"ws": "8.18.2"
|
|
61
152
|
},
|
|
62
|
-
"
|
|
63
|
-
"
|
|
153
|
+
"ava": {
|
|
154
|
+
"files": [
|
|
155
|
+
"tools/**/*.test.js",
|
|
156
|
+
"tests/**/*.test.cjs"
|
|
157
|
+
]
|
|
64
158
|
},
|
|
65
|
-
"
|
|
159
|
+
"main": "./dist/index.js"
|
|
66
160
|
}
|
package/scripts/bash.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
script_link="$(command readlink "$BASH_SOURCE")" || script_link="$BASH_SOURCE"
|
|
4
|
+
apparent_sdk_dir="${script_link%/*}"
|
|
5
|
+
|
|
6
|
+
if [ "$apparent_sdk_dir" == "$script_link" ]; then
|
|
7
|
+
apparent_sdk_dir=.
|
|
8
|
+
fi
|
|
9
|
+
|
|
10
|
+
sdk_dir="$(command cd -P "$apparent_sdk_dir" >/dev/null && command pwd -P)"
|
|
11
|
+
bin_path="$sdk_dir/bin"
|
|
12
|
+
|
|
13
|
+
if [[ ":${PATH}:" != *":${bin_path}:"* ]]; then
|
|
14
|
+
export PATH=$bin_path:$PATH
|
|
15
|
+
fi
|
package/scripts/fish.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env fish
|
|
2
|
+
|
|
3
|
+
# Only append to PATH if it isn't already part of the list
|
|
4
|
+
# `fish_add_path` - https://fishshell.com/docs/current/cmds/fish_add_path.html?highlight=fish_add_path would be a more
|
|
5
|
+
# suited alternative but it's only supported in fish 3.3.x
|
|
6
|
+
if not contains (dirname (status --current-filename))/bin $fish_user_paths
|
|
7
|
+
set -U fish_user_paths (dirname (status --current-filename))/bin $fish_user_paths
|
|
8
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import assert from 'node:assert'
|
|
3
|
+
import { dirname, resolve } from 'node:path'
|
|
4
|
+
import { readFile, stat, writeFile } from 'node:fs/promises'
|
|
5
|
+
|
|
6
|
+
import execa from 'execa'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @import {Package} from "normalize-package-data"
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const packageJSON = await getPackageJSON()
|
|
13
|
+
|
|
14
|
+
async function getPackageJSON() {
|
|
15
|
+
const packageJSONPath = resolve('package.json')
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @type {Package}
|
|
19
|
+
*/
|
|
20
|
+
const contents = JSON.parse(await readFile(packageJSONPath, 'utf8'))
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
contents,
|
|
24
|
+
path: packageJSONPath,
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
async function preparePackageJSON() {
|
|
29
|
+
const binPath = Object.values(packageJSON.contents.bin ?? {})[0]
|
|
30
|
+
if (!binPath) {
|
|
31
|
+
throw new Error('Did not find a non-empty binary entry in `package.json`, so the `npx` flow will not work.')
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const newPackageJSON = {
|
|
35
|
+
...packageJSON.contents,
|
|
36
|
+
main: './dist/index.js',
|
|
37
|
+
name: 'netlify',
|
|
38
|
+
scripts: {
|
|
39
|
+
...packageJSON.contents.scripts,
|
|
40
|
+
|
|
41
|
+
// We don't need the pre-publish script because we expect the work in
|
|
42
|
+
// there to be done when publishing the `netlify-cli` package. We'll
|
|
43
|
+
// ensure this is the case by throwing if a shrinkwrap file isn't found.
|
|
44
|
+
prepublishOnly: undefined,
|
|
45
|
+
},
|
|
46
|
+
bin: {
|
|
47
|
+
npxnetlify: binPath,
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
try {
|
|
52
|
+
const shrinkwrap = await stat(resolve(packageJSON.path, '../npm-shrinkwrap.json'))
|
|
53
|
+
|
|
54
|
+
assert.ok(shrinkwrap.isFile())
|
|
55
|
+
} catch {
|
|
56
|
+
throw new Error('Failed to find npm-shrinkwrap.json file. Did you run the pre-publish script?')
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
console.log(`Writing updated package.json to ${packageJSON.path}...`)
|
|
60
|
+
await writeFile(packageJSON.path, `${JSON.stringify(newPackageJSON, null, 2)}\n`)
|
|
61
|
+
|
|
62
|
+
console.log('Regenerating shrinkwrap file with updated package name...')
|
|
63
|
+
await execa('npm', ['shrinkwrap'], {
|
|
64
|
+
cwd: dirname(packageJSON.path),
|
|
65
|
+
})
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
await preparePackageJSON()
|
package/scripts/path.ps1
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
|
|
3
|
+
$ErrorActionPreference = "Stop"
|
|
4
|
+
|
|
5
|
+
# Helper functions for pretty terminal output.
|
|
6
|
+
function Write-Part ([string] $Text) {
|
|
7
|
+
Write-Host $Text -NoNewline
|
|
8
|
+
}
|
|
9
|
+
function Write-Emphasized ([string] $Text) {
|
|
10
|
+
Write-Host $Text -NoNewLine -ForegroundColor "Yellow"
|
|
11
|
+
}
|
|
12
|
+
function Write-Done {
|
|
13
|
+
Write-Host " done" -NoNewline -ForegroundColor "Green";
|
|
14
|
+
Write-Host "."
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
# Get Path environment variable for the current user.
|
|
18
|
+
$user = [EnvironmentVariableTarget]::User
|
|
19
|
+
$path = [Environment]::GetEnvironmentVariable("PATH", $user)
|
|
20
|
+
|
|
21
|
+
$install_dir = $args[0]
|
|
22
|
+
|
|
23
|
+
# Add Helper to PATH
|
|
24
|
+
Write-Part "Adding "; Write-Emphasized $install_dir; Write-Part " to the "
|
|
25
|
+
Write-Emphasized "PATH"; Write-Part " environment variable..."
|
|
26
|
+
[Environment]::SetEnvironmentVariable("PATH", "${path};${install_dir}", $user)
|
|
27
|
+
# Add Helper to the PATH variable of the current terminal session
|
|
28
|
+
# so `git-credential-netlify` can be used immediately without restarting the
|
|
29
|
+
# terminal.
|
|
30
|
+
$env:PATH += ";${install_dir}"
|
|
31
|
+
Write-Done
|
|
32
|
+
|
|
33
|
+
Write-Host ""
|
|
34
|
+
Write-Host "Netlify Credential Helper for Git was installed successfully." -ForegroundColor "Green"
|
|
35
|
+
Write-Host ""
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This script runs after an end user installs the CLI. It installs command-line completion, prints
|
|
3
|
+
* a welcome message, etc.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import fs from 'node:fs/promises'
|
|
7
|
+
import path from 'node:path'
|
|
8
|
+
import { fileURLToPath } from 'node:url'
|
|
9
|
+
import process from 'node:process'
|
|
10
|
+
// eslint-disable-next-line no-restricted-imports
|
|
11
|
+
import chalk from 'chalk'
|
|
12
|
+
import boxen from 'boxen'
|
|
13
|
+
|
|
14
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
15
|
+
|
|
16
|
+
const NETLIFY_CYAN_HEX = '#28b5ac'
|
|
17
|
+
|
|
18
|
+
const postInstall = async () => {
|
|
19
|
+
const { createMainCommand } = await import('../dist/commands/index.js')
|
|
20
|
+
const { generateAutocompletion } = await import('../dist/lib/completion/index.js')
|
|
21
|
+
|
|
22
|
+
// yarn plug and play seems to have an issue with reading an esm file by building up the cache.
|
|
23
|
+
// as yarn pnp analyzes everything inside the postinstall
|
|
24
|
+
// yarn pnp executes it out of a .yarn folder .yarn/unplugged/netlify-cli-file-fb026a3a6d/node_modules/netlify-cli/scripts/postinstall.js
|
|
25
|
+
if (!process.argv[1].includes('.yarn')) {
|
|
26
|
+
// create or update the autocompletion definition
|
|
27
|
+
const program = createMainCommand()
|
|
28
|
+
generateAutocompletion(program)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
console.log('')
|
|
32
|
+
console.log(
|
|
33
|
+
boxen(
|
|
34
|
+
`Success! Netlify CLI has been installed!
|
|
35
|
+
|
|
36
|
+
You can now use Netlify CLI to develop, deploy, and manage your Netlify projects.
|
|
37
|
+
|
|
38
|
+
🚀 Now get building!`,
|
|
39
|
+
{
|
|
40
|
+
padding: 1,
|
|
41
|
+
margin: 1,
|
|
42
|
+
textAlignment: 'center',
|
|
43
|
+
borderStyle: 'round',
|
|
44
|
+
borderColor: NETLIFY_CYAN_HEX,
|
|
45
|
+
// This is an intentional half-width space to work around a unicode padding math bug in boxen
|
|
46
|
+
title: '⬥ ',
|
|
47
|
+
titleAlignment: 'center',
|
|
48
|
+
},
|
|
49
|
+
),
|
|
50
|
+
)
|
|
51
|
+
console.log('Next steps:')
|
|
52
|
+
console.log(` ${chalk.cyanBright.bold('netlify login')} Log in to your Netlify account`)
|
|
53
|
+
console.log(
|
|
54
|
+
` ${chalk.cyanBright.bold('netlify init')} Connect or create a Netlify project from the current directory`,
|
|
55
|
+
)
|
|
56
|
+
console.log(` ${chalk.cyanBright.bold('netlify deploy')} Deploy the latest changes to your Netlify project`)
|
|
57
|
+
console.log(` ${chalk.cyanBright.bold('netlify help')} Find out what else you can do 👀`)
|
|
58
|
+
console.log('')
|
|
59
|
+
console.log(`For more help with the CLI, visit ${chalk.cyanBright.bold('https://developers.netlify.com/cli')}`)
|
|
60
|
+
console.log('')
|
|
61
|
+
console.log(`For help with Netlify, visit ${chalk.cyanBright.bold('https://docs.netlify.com')}`)
|
|
62
|
+
console.log('')
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const main = async () => {
|
|
66
|
+
// Check if this post-install script is being run by an end user installation
|
|
67
|
+
// (`npm install [-g] netlify-cli`) or during local development (`npm install`/`npm ci`)
|
|
68
|
+
let isEndUserInstall = false
|
|
69
|
+
try {
|
|
70
|
+
await fs.stat(path.resolve(__dirname, '../.git'))
|
|
71
|
+
} catch (err) {
|
|
72
|
+
if (err instanceof Error && 'code' in err && err.code === 'ENOENT') {
|
|
73
|
+
isEndUserInstall = true
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (isEndUserInstall) {
|
|
78
|
+
await postInstall()
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
await main()
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as cp from 'node:child_process'
|
|
2
|
+
import * as fs from 'node:fs/promises'
|
|
3
|
+
import * as path from 'node:path'
|
|
4
|
+
|
|
5
|
+
const main = async () => {
|
|
6
|
+
// It's best practice to include a shrinkwrap when shipping a CLI. npm has a bug that makes it
|
|
7
|
+
// not ignore development dependencies in an installed package's shrinkwrap, though:
|
|
8
|
+
//
|
|
9
|
+
// https://github.com/npm/cli/issues/4323
|
|
10
|
+
//
|
|
11
|
+
// Leaving development dependencies makes the CLI installation significantly larger and increases
|
|
12
|
+
// the risk of platform-specific dependency installation issues.
|
|
13
|
+
// eslint-disable-next-line no-restricted-properties
|
|
14
|
+
const packageJSONPath = path.join(process.cwd(), 'package.json')
|
|
15
|
+
const rawPackageJSON = await fs.readFile(packageJSONPath, 'utf8')
|
|
16
|
+
|
|
17
|
+
// Remove dev dependencies from the package.json...
|
|
18
|
+
const packageJSON = JSON.parse(rawPackageJSON)
|
|
19
|
+
Reflect.deleteProperty(packageJSON, 'devDependencies')
|
|
20
|
+
await fs.writeFile(packageJSONPath, JSON.stringify(packageJSON, null, 2))
|
|
21
|
+
|
|
22
|
+
// Prune out dev dependencies (this updates the `package-lock.json` lockfile)
|
|
23
|
+
cp.spawnSync('npm', ['prune'], { stdio: 'inherit' })
|
|
24
|
+
|
|
25
|
+
// Convert `package-lock.json` lockfile to `npm-shrinkwrap.json`
|
|
26
|
+
cp.spawnSync('npm', ['shrinkwrap'], { stdio: 'inherit' })
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
await main()
|
package/scripts/zsh.sh
ADDED
package/lib/index.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { DynamicMethods } from './types.js';
|
|
2
|
-
type APIOptions = {
|
|
3
|
-
/** @example 'netlify/js-client' */
|
|
4
|
-
userAgent?: string;
|
|
5
|
-
/** @example 'https' */
|
|
6
|
-
scheme?: string;
|
|
7
|
-
/** @example 'api.netlify.com' */
|
|
8
|
-
host?: string;
|
|
9
|
-
/** @example '/api/v1' */
|
|
10
|
-
pathPrefix?: string;
|
|
11
|
-
accessToken?: string;
|
|
12
|
-
/** @example 'HttpsProxyAgent' */
|
|
13
|
-
agent?: string;
|
|
14
|
-
/**
|
|
15
|
-
* parameters you want available for every request.
|
|
16
|
-
* Global params are only sent of the OpenAPI spec specifies the provided params.
|
|
17
|
-
*/
|
|
18
|
-
globalParams?: Record<string, unknown>;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* The Netlify API client.
|
|
22
|
-
* @see {@link https://open-api.netlify.com | Open API Reference}
|
|
23
|
-
* @see {@link https://docs.netlify.com/api/get-started | Online Documentation}
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* const client = new NetlifyAPI('YOUR_ACCESS_TOKEN')
|
|
28
|
-
* const sites = await client.listSites()
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export interface NetlifyAPI extends DynamicMethods {
|
|
32
|
-
}
|
|
33
|
-
export declare class NetlifyAPI {
|
|
34
|
-
#private;
|
|
35
|
-
defaultHeaders: Record<string, string>;
|
|
36
|
-
/** The protocol is used like `https` */
|
|
37
|
-
scheme: string;
|
|
38
|
-
host: string;
|
|
39
|
-
pathPrefix: string;
|
|
40
|
-
agent?: string;
|
|
41
|
-
globalParams: Record<string, unknown>;
|
|
42
|
-
constructor(options?: APIOptions);
|
|
43
|
-
constructor(accessToken: string | undefined, options?: APIOptions);
|
|
44
|
-
/** Retrieves the access token */
|
|
45
|
-
get accessToken(): string | undefined | null;
|
|
46
|
-
set accessToken(token: string | undefined | null);
|
|
47
|
-
get basePath(): string;
|
|
48
|
-
getAccessToken(ticket: any, { poll, timeout }?: {
|
|
49
|
-
poll?: number | undefined;
|
|
50
|
-
timeout?: number | undefined;
|
|
51
|
-
}): Promise<string | undefined>;
|
|
52
|
-
}
|
|
53
|
-
export declare const methods: any[];
|
|
54
|
-
export {};
|
package/lib/index.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import pWaitFor from 'p-wait-for';
|
|
2
|
-
import { getMethods } from './methods/index.js';
|
|
3
|
-
import { openApiSpec } from './open_api.js';
|
|
4
|
-
import { getOperations } from './operations.js';
|
|
5
|
-
// 1 second
|
|
6
|
-
const DEFAULT_TICKET_POLL = 1e3;
|
|
7
|
-
// 1 hour
|
|
8
|
-
const DEFAULT_TICKET_TIMEOUT = 3.6e6;
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
|
10
|
-
export class NetlifyAPI {
|
|
11
|
-
#accessToken = null;
|
|
12
|
-
defaultHeaders = {
|
|
13
|
-
accept: 'application/json',
|
|
14
|
-
};
|
|
15
|
-
/** The protocol is used like `https` */
|
|
16
|
-
scheme;
|
|
17
|
-
host;
|
|
18
|
-
pathPrefix;
|
|
19
|
-
agent;
|
|
20
|
-
globalParams = {};
|
|
21
|
-
constructor(firstArg, secondArg) {
|
|
22
|
-
// variadic arguments
|
|
23
|
-
const [accessTokenInput, options = {}] = typeof firstArg === 'object' ? [null, firstArg] : [firstArg, secondArg];
|
|
24
|
-
this.globalParams = options.globalParams || {};
|
|
25
|
-
this.agent = options.agent;
|
|
26
|
-
this.scheme = options.scheme || openApiSpec.schemes[0];
|
|
27
|
-
this.host = options.host || openApiSpec.host;
|
|
28
|
-
this.pathPrefix = options.pathPrefix || openApiSpec.basePath;
|
|
29
|
-
// use the setter to set the header as well
|
|
30
|
-
this.accessToken = options.accessToken || accessTokenInput || null;
|
|
31
|
-
this.defaultHeaders['User-agent'] = options.userAgent || 'netlify/js-client';
|
|
32
|
-
const methods = getMethods({
|
|
33
|
-
basePath: this.basePath,
|
|
34
|
-
defaultHeaders: this.defaultHeaders,
|
|
35
|
-
agent: this.agent,
|
|
36
|
-
globalParams: this.globalParams,
|
|
37
|
-
});
|
|
38
|
-
Object.assign(this, { ...methods });
|
|
39
|
-
}
|
|
40
|
-
/** Retrieves the access token */
|
|
41
|
-
get accessToken() {
|
|
42
|
-
return this.#accessToken;
|
|
43
|
-
}
|
|
44
|
-
set accessToken(token) {
|
|
45
|
-
if (!token) {
|
|
46
|
-
delete this.defaultHeaders.Authorization;
|
|
47
|
-
this.#accessToken = null;
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
this.#accessToken = token;
|
|
51
|
-
this.defaultHeaders.Authorization = `Bearer ${this.#accessToken}`;
|
|
52
|
-
}
|
|
53
|
-
get basePath() {
|
|
54
|
-
return `${this.scheme}://${this.host}${this.pathPrefix}`;
|
|
55
|
-
}
|
|
56
|
-
async getAccessToken(ticket, { poll = DEFAULT_TICKET_POLL, timeout = DEFAULT_TICKET_TIMEOUT } = {}) {
|
|
57
|
-
const { id } = ticket;
|
|
58
|
-
// ticket capture
|
|
59
|
-
let authorizedTicket;
|
|
60
|
-
const checkTicket = async () => {
|
|
61
|
-
const t = await this.showTicket({ ticketId: id });
|
|
62
|
-
if (t.authorized) {
|
|
63
|
-
authorizedTicket = t;
|
|
64
|
-
}
|
|
65
|
-
return Boolean(t.authorized);
|
|
66
|
-
};
|
|
67
|
-
await pWaitFor(checkTicket, {
|
|
68
|
-
interval: poll,
|
|
69
|
-
timeout,
|
|
70
|
-
message: 'Timeout while waiting for ticket grant',
|
|
71
|
-
});
|
|
72
|
-
const accessTokenResponse = await this.exchangeTicket({ ticketId: authorizedTicket.id });
|
|
73
|
-
// See https://open-api.netlify.com/#/default/exchangeTicket for shape
|
|
74
|
-
this.accessToken = accessTokenResponse.access_token;
|
|
75
|
-
return accessTokenResponse.access_token;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
export const methods = getOperations();
|
package/lib/methods/body.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function addBody(body: any, parameters: any, opts: any): any;
|
package/lib/methods/body.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// Handle request body
|
|
2
|
-
export const addBody = function (body, parameters, opts) {
|
|
3
|
-
if (!body) {
|
|
4
|
-
return opts;
|
|
5
|
-
}
|
|
6
|
-
const bodyA = typeof body === 'function' ? body() : body;
|
|
7
|
-
if (isBinaryBody(parameters)) {
|
|
8
|
-
return {
|
|
9
|
-
...opts,
|
|
10
|
-
body: bodyA,
|
|
11
|
-
headers: { 'Content-Type': 'application/octet-stream', ...opts.headers },
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
return {
|
|
15
|
-
...opts,
|
|
16
|
-
body: JSON.stringify(bodyA),
|
|
17
|
-
headers: { 'Content-Type': 'application/json', ...opts.headers },
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
const isBinaryBody = function (parameters) {
|
|
21
|
-
return Object.values(parameters.body).some(isBodyParam);
|
|
22
|
-
};
|
|
23
|
-
const isBodyParam = function ({ schema }) {
|
|
24
|
-
return schema && schema.format === 'binary';
|
|
25
|
-
};
|