path # lines of code scripts/lint-changed-files.ts 55 scripts/storage-emulator-integration/tests.ts 1096 scripts/test-functions-env.js 94 scripts/integration-helpers/framework.ts 276 scripts/integration-helpers/cli.ts 66 scripts/firepit-builder/pipeline.js 107 scripts/build/cloudbuild.yaml 4 scripts/test-functions-deploy.js 300 scripts/clean.ts 3 scripts/gen-auth-api-spec.ts 550 scripts/publish/cloudbuild.yaml 102 scripts/assets/functions_to_test_minimal.js 4 scripts/test-functions-config.js 128 scripts/tweet.js 42 scripts/test-project/public/index.html 7 scripts/test-project/public/404.html 3 templates/loginFailure.html 33 templates/setup/web.js 1 templates/init/hosting/index.html 79 templates/init/hosting/404.html 32 templates/init/functions/golang/functions.go 1 templates/init/functions/typescript/index.ts 1 templates/init/functions/javascript/index.js 1 templates/extensions/extension.yaml 24 templates/extensions/typescript/index.ts 7 templates/extensions/javascript/index.js 7 templates/hosting/init.js 24 templates/loginSuccess.html 30 templates/loginSuccessGithub.html 30 standalone/firepit.js 456 standalone/check.js 1 standalone/config.template.js 4 standalone/welcome.js 159 standalone/runtime.js 69 src/throttler/queue.ts 19 src/throttler/errors/timeout-error.ts 6 src/throttler/errors/task-error.ts 6 src/throttler/errors/retries-exhausted-error.ts 12 src/throttler/stack.ts 24 src/throttler/throttler.ts 230 src/auth.ts 536 src/utils.ts 408 src/rc.ts 170 src/firestore/indexes-sort.ts 104 src/firestore/util.ts 40 src/firestore/delete.ts 384 src/firestore/validator.ts 26 src/firestore/indexes.ts 460 src/firestore/encodeFirestoreValue.ts 56 src/firestore/indexes-spec.ts 20 src/firestore/checkDatabaseType.ts 14 src/firestore/indexes-api.ts 40 src/management/projects.ts 361 src/management/database.ts 236 src/management/apps.ts 349 src/requireHostingSite.ts 8 src/remoteconfig/interfaces.ts 75 src/remoteconfig/get.ts 52 src/remoteconfig/versionslist.ts 32 src/remoteconfig/rollback.ts 22 src/fsutils.ts 15 src/rulesDeploy.ts 178 src/responseToError.js 44 src/rtdb.js 38 src/functional.ts 60 src/requireConfig.js 13 src/functionsShellCommandAction.ts 114 src/command.ts 229 src/appdistribution/client.ts 174 src/appdistribution/distribution.ts 48 src/appdistribution/options-parser-util.ts 43 src/detectProjectRoot.ts 21 src/prepareUpload.js 49 src/errorOut.ts 18 src/logError.js 25 src/fetchMOTD.ts 43 src/fsAsync.ts 52 src/commands/ext-sources-create.ts 28 src/commands/ext-install.ts 339 src/commands/remoteconfig-versions-list.ts 39 src/commands/ext-configure.ts 85 src/commands/hosting-sites-create.ts 69 src/commands/database-rules-stage.ts 26 src/commands/database-update.ts 70 src/commands/database-set.ts 70 src/commands/projects-create.ts 50 src/commands/ext-dev-undeprecate.ts 64 src/commands/database-rules-list.ts 36 src/commands/hosting-clone.ts 135 src/commands/projects-list.ts 59 src/commands/help.ts 27 src/commands/functions-list.ts 53 src/commands/remoteconfig-rollback.ts 53 src/commands/hosting-channel-open.ts 52 src/commands/hosting-sites-get.ts 24 src/commands/ext-info.ts 116 src/commands/ext-dev-emulators-start.ts 32 src/commands/emulators-exec.ts 14 src/commands/functions-shell.js 13 src/commands/database-push.ts 64 src/commands/functions-log.ts 41 src/commands/emulators-start.ts 92 src/commands/hosting-sites-delete.ts 53 src/commands/use.js 163 src/commands/apps-android-sha-delete.ts 18 src/commands/functions-config-set.ts 48 src/commands/ext-dev-publish.ts 52 src/commands/database-rules-get.ts 22 src/commands/ext-update.ts 249 src/commands/ext.ts 41 src/commands/experimental-functions-shell.js 13 src/commands/login-ci.ts 25 src/commands/ext-dev-list.ts 50 src/commands/target-remove.ts 18 src/commands/hosting-channel-list.ts 41 src/commands/hosting-sites-list.ts 29 src/commands/ext-dev-extension-delete.ts 54 src/commands/remoteconfig-get.ts 71 src/commands/ext-dev-register.ts 58 src/commands/ext-uninstall.ts 120 src/commands/setup-emulators-ui.ts 9 src/commands/hosting-channel-delete.ts 64 src/commands/functions-config-export.ts 131 src/commands/hosting-channel-deploy.ts 176 src/commands/projects-addfirebase.ts 20 src/commands/database-get.ts 128 src/commands/functions-config-clone.ts 55 src/commands/target.ts 34 src/commands/apps-list.ts 53 src/commands/database-settings-get.ts 51 src/commands/apps-create.ts 197 src/commands/target-clear.ts 16 src/commands/apps-sdkconfig.ts 115 src/commands/database-instances-list.ts 82 src/commands/auth-import.ts 131 src/commands/database-settings-set.ts 53 src/commands/ext-dev-emulators-exec.ts 19 src/commands/index.js 153 src/commands/appdistribution-distribute.ts 151 src/commands/login-use.ts 25 src/commands/functions-deletegcfartifacts.ts 54 src/commands/apps-android-sha-create.ts 32 src/commands/database-rules-canary.ts 24 src/commands/functions-config-unset.ts 45 src/commands/database-remove.ts 45 src/commands/setup-emulators-pubsub.ts 9 src/commands/logout.ts 73 src/commands/login-list.ts 26 src/commands/database-rules-release.ts 24 src/commands/crashlytics-symbols-upload.ts 166 src/commands/auth-export.ts 49 src/commands/ext-list.ts 15 src/commands/login-add.ts 40 src/commands/ext-dev-usage.ts 152 src/commands/setup-emulators-storage.ts 9 src/commands/login.ts 65 src/commands/open.ts 96 src/commands/appdistribution-testers-add.ts 18 src/commands/target-apply.ts 27 src/commands/database-profile.ts 50 src/commands/setup-emulators-firestore.ts 9 src/commands/apps-android-sha-list.ts 42 src/commands/ext-dev-init.ts 163 src/commands/serve.js 80 src/commands/emulators-export.ts 8 src/commands/setup-emulators-database.ts 9 src/commands/ext-export.ts 57 src/commands/ext-dev-deprecate.ts 75 src/commands/database-instances-create.ts 39 src/commands/init.js 182 src/commands/appdistribution-testers-remove.ts 29 src/commands/firestore-delete.ts 103 src/commands/hosting-channel-create.ts 93 src/commands/ext-dev-unpublish.ts 62 src/commands/functions-delete.ts 109 src/commands/firestore-indexes-list.ts 34 src/commands/functions-config-get.ts 32 src/commands/deploy.js 84 src/commands/hosting-disable.ts 35 src/requireInteractive.ts 12 src/gcp/auth.ts 20 src/gcp/firedata.ts 29 src/gcp/cloudtasks.ts 178 src/gcp/resourceManager.ts 59 src/gcp/run.ts 186 src/gcp/pubsub.ts 44 src/gcp/rules.ts 201 src/gcp/iam.ts 138 src/gcp/cloudscheduler.ts 143 src/gcp/cloudmonitoring.ts 113 src/gcp/location.ts 40 src/gcp/runtimeconfig.js 141 src/gcp/firestore.ts 28 src/gcp/index.js 11 src/gcp/cloudfunctionsv2.ts 365 src/gcp/docker.ts 98 src/gcp/cloudlogging.ts 47 src/gcp/secretManager.ts 144 src/gcp/artifactregistry.ts 23 src/gcp/cloudfunctions.ts 443 src/gcp/storage.ts 220 src/gcp/cloudbilling.ts 38 src/gcp/proto.ts 103 src/init/index.ts 36 src/init/features/firestore/index.ts 50 src/init/features/firestore/rules.ts 80 src/init/features/firestore/indexes.ts 71 src/init/features/emulators.ts 100 src/init/features/database.ts 185 src/init/features/account.ts 65 src/init/features/remoteconfig.ts 39 src/init/features/hosting/github.ts 482 src/init/features/hosting/index.js 78 src/init/features/functions/index.ts 49 src/init/features/functions/npm-dependencies.js 34 src/init/features/functions/javascript.js 48 src/init/features/functions/typescript.js 62 src/init/features/functions/golang.ts 56 src/init/features/index.js 13 src/init/features/project.ts 114 src/init/features/storage.ts 26 src/extensions/utils.ts 52 src/extensions/secretsUtils.ts 65 src/extensions/resolveSource.ts 101 src/extensions/extensionsHelper.ts 630 src/extensions/askUserForConsent.ts 77 src/extensions/refs.ts 78 src/extensions/askUserForParam.ts 258 src/extensions/export.ts 112 src/extensions/metricsTypeDef.ts 11 src/extensions/paramHelper.ts 194 src/extensions/metricsUtils.ts 93 src/extensions/provisioningHelper.ts 108 src/extensions/emulator/optionsHelper.ts 172 src/extensions/emulator/triggerHelper.ts 36 src/extensions/emulator/specHelper.ts 111 src/extensions/extensionsApi.ts 649 src/extensions/localHelper.ts 59 src/extensions/updateHelper.ts 241 src/extensions/listExtensions.ts 51 src/extensions/publishHelpers.ts 4 src/extensions/checkProjectBilling.ts 86 src/extensions/changelog.ts 90 src/extensions/warnings.ts 100 src/extensions/billingMigrationHelper.ts 64 src/extensions/displayExtensionInfo.ts 224 src/extensions/versionHelper.ts 14 src/serve/index.ts 38 src/serve/hosting.ts 101 src/serve/functions.ts 77 src/profiler.ts 94 src/checkMinRequiredVersion.ts 12 src/requirePermissions.ts 28 src/hosting/cloudRunProxy.ts 60 src/hosting/expireUtils.ts 30 src/hosting/implicitInit.ts 79 src/hosting/initMiddleware.ts 49 src/hosting/functionsProxy.ts 40 src/hosting/api.ts 405 src/hosting/proxy.ts 140 src/hosting/normalizedHostingConfigs.ts 107 src/logger.ts 71 src/options.ts 23 src/functionsConfig.ts 168 src/apiv2.ts 407 src/emulator/hubClient.ts 46 src/emulator/functionsEmulatorUtils.ts 85 src/emulator/functionsEmulator.ts 1127 src/emulator/firestoreEmulator.ts 108 src/emulator/storage/index.ts 144 src/emulator/storage/files.ts 569 src/emulator/storage/server.ts 89 src/emulator/storage/metadata.ts 403 src/emulator/storage/crc.ts 22 src/emulator/storage/list.ts 18 src/emulator/storage/rules/types.ts 55 src/emulator/storage/rules/expressionValue.ts 53 src/emulator/storage/rules/runtime.ts 362 src/emulator/storage/cloudFunctions.ts 167 src/emulator/storage/apis/gcloud.ts 252 src/emulator/storage/apis/firebase.ts 537 src/emulator/constants.ts 102 src/emulator/commandUtils.ts 345 src/emulator/loggingEmulator.ts 129 src/emulator/registry.ts 102 src/emulator/downloadableEmulators.ts 372 src/emulator/auth/utils.ts 101 src/emulator/auth/index.ts 153 src/emulator/auth/operations.ts 2406 src/emulator/auth/state.ts 742 src/emulator/auth/server.ts 494 src/emulator/auth/errors.ts 83 src/emulator/auth/types.ts 4 src/emulator/auth/widget_ui.ts 544 src/emulator/auth/handlers.ts 291 src/emulator/auth/cloudFunctions.ts 101 src/emulator/functionsRuntimeWorker.ts 226 src/emulator/functionsEmulatorShared.ts 232 src/emulator/types.ts 267 src/emulator/functionsEmulatorRuntime.ts 865 src/emulator/download.ts 100 src/emulator/controller.ts 634 src/emulator/pubsubEmulator.ts 193 src/emulator/hubExport.ts 215 src/emulator/functionsEmulatorShell.ts 74 src/emulator/emulatorServer.ts 26 src/emulator/events/types.ts 62 src/emulator/ui.ts 49 src/emulator/workQueue.ts 115 src/emulator/emulatorLogger.ts 252 src/emulator/portUtils.ts 116 src/emulator/databaseEmulator.ts 155 src/emulator/hub.ts 183 src/emulator/hostingEmulator.ts 34 src/emulator/adminSdkConfig.ts 61 src/projectPath.ts 15 src/listFiles.ts 11 src/api.js 314 src/configstore.ts 3 src/functions/functionslog.ts 37 src/functions/env.ts 202 src/functions/runtimeConfigExport.ts 151 src/localFunction.js 186 src/requireAuth.ts 58 src/database/listRemote.ts 45 src/database/metadata.ts 87 src/database/settings.ts 68 src/database/removeRemote.ts 51 src/database/api.ts 18 src/database/rulesConfig.ts 58 src/database/remove.ts 86 src/projectUtils.ts 73 src/accountImporter.js 326 src/index.js 76 src/shortenUrl.ts 38 src/deploymentTool.ts 15 src/firebaseConfigValidate.ts 30 src/profileReport.js 583 src/parseBoltRules.js 26 src/accountExporter.js 185 src/deploy/firestore/index.ts 4 src/deploy/firestore/deploy.ts 37 src/deploy/firestore/prepare.ts 46 src/deploy/firestore/release.ts 17 src/deploy/storage/index.ts 4 src/deploy/storage/deploy.ts 9 src/deploy/storage/prepare.ts 25 src/deploy/storage/release.ts 28 src/deploy/remoteconfig/index.ts 3 src/deploy/remoteconfig/prepare.ts 20 src/deploy/remoteconfig/release.ts 15 src/deploy/remoteconfig/functions.ts 71 src/deploy/extensions/index.ts 3 src/deploy/extensions/planner.ts 108 src/deploy/extensions/secrets.ts 208 src/deploy/extensions/tasks.ts 117 src/deploy/extensions/deploymentSummary.ts 54 src/deploy/extensions/validate.ts 14 src/deploy/extensions/deploy.ts 52 src/deploy/extensions/errors.ts 31 src/deploy/extensions/args.ts 11 src/deploy/extensions/prepare.ts 114 src/deploy/extensions/params.ts 40 src/deploy/extensions/release.ts 40 src/deploy/hosting/prepare.js 46 src/deploy/hosting/hostingDeploy.ts 19 src/deploy/hosting/index.ts 4 src/deploy/hosting/release.js 44 src/deploy/hosting/validate.ts 45 src/deploy/hosting/hashcache.js 42 src/deploy/hosting/deploy.ts 87 src/deploy/hosting/uploader.ts 233 src/deploy/hosting/convertConfig.ts 91 src/deploy/functions/index.ts 3 src/deploy/functions/backend.ts 338 src/deploy/functions/ensureCloudBuildEnabled.ts 42 src/deploy/functions/prompts.ts 176 src/deploy/functions/validate.ts 65 src/deploy/functions/prepareFunctionsUpload.ts 115 src/deploy/functions/deploy.ts 75 src/deploy/functions/functionsDeployHelper.ts 35 src/deploy/functions/triggerRegionHelper.ts 12 src/deploy/functions/args.ts 24 src/deploy/functions/pricing.ts 156 src/deploy/functions/services/index.ts 41 src/deploy/functions/services/storage.ts 51 src/deploy/functions/prepare.ts 189 src/deploy/functions/release/sourceTokenScraper.ts 26 src/deploy/functions/release/index.ts 86 src/deploy/functions/release/planner.ts 192 src/deploy/functions/release/executor.ts 46 src/deploy/functions/release/fabricator.ts 472 src/deploy/functions/release/reporter.ts 204 src/deploy/functions/release/timer.ts 9 src/deploy/functions/runtimes/index.ts 61 src/deploy/functions/runtimes/golang/index.ts 145 src/deploy/functions/runtimes/golang/gomod.ts 75 src/deploy/functions/runtimes/discovery/index.ts 85 src/deploy/functions/runtimes/discovery/parsing.ts 53 src/deploy/functions/runtimes/discovery/mockDiscoveryServer.ts 12 src/deploy/functions/runtimes/discovery/v1alpha1.ts 197 src/deploy/functions/runtimes/node/index.ts 61 src/deploy/functions/runtimes/node/extractTriggers.js 24 src/deploy/functions/runtimes/node/parseRuntimeAndValidateSDK.ts 65 src/deploy/functions/runtimes/node/triggerParser.js 84 src/deploy/functions/runtimes/node/validate.ts 33 src/deploy/functions/runtimes/node/parseTriggers.ts 205 src/deploy/functions/runtimes/node/versioning.ts 95 src/deploy/functions/checkIam.ts 154 src/deploy/functions/eventTypes.ts 7 src/deploy/functions/containerCleaner.ts 323 src/deploy/database/prepare.js 56 src/deploy/database/release.js 33 src/deploy/database/index.js 5 src/deploy/index.js 105 src/deploy/lifecycleHooks.js 135 src/fetchWebSetup.ts 90 src/functionsConfigClone.js 78 src/getDefaultHostingSite.ts 13 src/previews.ts 32 src/archiveDirectory.ts 140 src/ensureApiEnabled.ts 99 src/prompt.ts 61 src/config.ts 213 src/scopes.js 10 src/requireDatabaseInstance.ts 23 src/firebaseConfig.ts 142 src/downloadUtils.ts 23 src/loadCJSON.js 13 src/handlePreviewToggles.ts 30 src/error.ts 49 src/getProjectNumber.ts 11 src/ensureCloudResourceLocation.ts 10 src/track.js 37 src/getDefaultDatabaseInstance.ts 5 src/checkValidTargetFilters.js 46 src/filterTargets.ts 32 src/defaultCredentials.ts 80 src/operation-poller.ts 74