firebase-tools 11.13.0 → 11.14.1
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/lib/accountExporter.js +0 -1
- package/lib/accountImporter.js +0 -1
- package/lib/api.js +0 -1
- package/lib/apiv2.js +0 -1
- package/lib/appdistribution/client.js +0 -1
- package/lib/appdistribution/distribution.js +0 -1
- package/lib/appdistribution/options-parser-util.js +0 -1
- package/lib/archiveDirectory.js +0 -1
- package/lib/auth.js +0 -1
- package/lib/bin/firebase.js +0 -1
- package/lib/checkMinRequiredVersion.js +0 -1
- package/lib/checkValidTargetFilters.js +0 -1
- package/lib/command.js +0 -1
- package/lib/commands/appdistribution-distribute.js +0 -1
- package/lib/commands/appdistribution-testers-add.js +0 -1
- package/lib/commands/appdistribution-testers-remove.js +0 -1
- package/lib/commands/apps-android-sha-create.js +0 -1
- package/lib/commands/apps-android-sha-delete.js +0 -1
- package/lib/commands/apps-android-sha-list.js +0 -1
- package/lib/commands/apps-create.js +0 -1
- package/lib/commands/apps-list.js +0 -1
- package/lib/commands/apps-sdkconfig.js +0 -1
- package/lib/commands/auth-export.js +0 -1
- package/lib/commands/auth-import.js +0 -1
- package/lib/commands/crashlytics-mappingfile-generateid.js +0 -1
- package/lib/commands/crashlytics-mappingfile-upload.js +0 -1
- package/lib/commands/crashlytics-symbols-upload.js +0 -1
- package/lib/commands/database-get.js +0 -1
- package/lib/commands/database-instances-create.js +0 -1
- package/lib/commands/database-instances-list.js +0 -1
- package/lib/commands/database-profile.js +0 -1
- package/lib/commands/database-push.js +0 -1
- package/lib/commands/database-remove.js +0 -1
- package/lib/commands/database-rules-canary.js +0 -1
- package/lib/commands/database-rules-get.js +0 -1
- package/lib/commands/database-rules-list.js +0 -1
- package/lib/commands/database-rules-release.js +0 -1
- package/lib/commands/database-rules-stage.js +0 -1
- package/lib/commands/database-set.js +0 -1
- package/lib/commands/database-settings-get.js +0 -1
- package/lib/commands/database-settings-set.js +0 -1
- package/lib/commands/database-update.js +0 -1
- package/lib/commands/deploy.js +0 -1
- package/lib/commands/emulators-exec.js +0 -1
- package/lib/commands/emulators-export.js +0 -1
- package/lib/commands/emulators-start.js +0 -1
- package/lib/commands/experimental-functions-shell.js +0 -1
- package/lib/commands/experiments-describe.js +0 -1
- package/lib/commands/experiments-disable.js +0 -1
- package/lib/commands/experiments-enable.js +0 -1
- package/lib/commands/experiments-list.js +0 -1
- package/lib/commands/ext-configure.js +0 -1
- package/lib/commands/ext-dev-deprecate.js +0 -1
- package/lib/commands/ext-dev-emulators-exec.js +0 -1
- package/lib/commands/ext-dev-emulators-start.js +0 -1
- package/lib/commands/ext-dev-extension-delete.js +0 -1
- package/lib/commands/ext-dev-init.js +0 -1
- package/lib/commands/ext-dev-list.js +0 -1
- package/lib/commands/ext-dev-publish.js +0 -1
- package/lib/commands/ext-dev-register.js +0 -1
- package/lib/commands/ext-dev-undeprecate.js +0 -1
- package/lib/commands/ext-dev-unpublish.js +0 -1
- package/lib/commands/ext-dev-usage.js +0 -1
- package/lib/commands/ext-export.js +0 -1
- package/lib/commands/ext-info.js +0 -1
- package/lib/commands/ext-install.js +0 -1
- package/lib/commands/ext-list.js +0 -1
- package/lib/commands/ext-sources-create.js +0 -1
- package/lib/commands/ext-uninstall.js +0 -1
- package/lib/commands/ext-update.js +0 -1
- package/lib/commands/ext.js +0 -1
- package/lib/commands/firestore-delete.js +0 -1
- package/lib/commands/firestore-indexes-list.js +0 -1
- package/lib/commands/functions-config-clone.js +0 -1
- package/lib/commands/functions-config-export.js +0 -1
- package/lib/commands/functions-config-get.js +0 -1
- package/lib/commands/functions-config-set.js +0 -1
- package/lib/commands/functions-config-unset.js +0 -1
- package/lib/commands/functions-delete.js +0 -1
- package/lib/commands/functions-deletegcfartifacts.js +0 -1
- package/lib/commands/functions-list.js +0 -1
- package/lib/commands/functions-log.js +0 -1
- package/lib/commands/functions-secrets-access.js +0 -1
- package/lib/commands/functions-secrets-destroy.js +0 -1
- package/lib/commands/functions-secrets-get.js +0 -1
- package/lib/commands/functions-secrets-prune.js +0 -1
- package/lib/commands/functions-secrets-set.js +0 -1
- package/lib/commands/functions-shell.js +0 -1
- package/lib/commands/help.js +0 -1
- package/lib/commands/hosting-channel-create.js +0 -1
- package/lib/commands/hosting-channel-delete.js +0 -1
- package/lib/commands/hosting-channel-deploy.js +10 -11
- package/lib/commands/hosting-channel-list.js +0 -1
- package/lib/commands/hosting-channel-open.js +0 -1
- package/lib/commands/hosting-clone.js +0 -1
- package/lib/commands/hosting-disable.js +0 -1
- package/lib/commands/hosting-sites-create.js +0 -1
- package/lib/commands/hosting-sites-delete.js +0 -1
- package/lib/commands/hosting-sites-get.js +0 -1
- package/lib/commands/hosting-sites-list.js +0 -1
- package/lib/commands/index.js +0 -1
- package/lib/commands/init.js +0 -1
- package/lib/commands/login-add.js +0 -1
- package/lib/commands/login-ci.js +0 -1
- package/lib/commands/login-list.js +0 -1
- package/lib/commands/login-use.js +0 -1
- package/lib/commands/login.js +0 -1
- package/lib/commands/logout.js +0 -1
- package/lib/commands/open.js +0 -1
- package/lib/commands/projects-addfirebase.js +0 -1
- package/lib/commands/projects-create.js +0 -1
- package/lib/commands/projects-list.js +0 -1
- package/lib/commands/remoteconfig-get.js +0 -1
- package/lib/commands/remoteconfig-rollback.js +0 -1
- package/lib/commands/remoteconfig-versions-list.js +0 -1
- package/lib/commands/serve.js +0 -1
- package/lib/commands/setup-emulators-database.js +0 -1
- package/lib/commands/setup-emulators-firestore.js +0 -1
- package/lib/commands/setup-emulators-pubsub.js +0 -1
- package/lib/commands/setup-emulators-storage.js +0 -1
- package/lib/commands/setup-emulators-ui.js +0 -1
- package/lib/commands/target-apply.js +0 -1
- package/lib/commands/target-clear.js +0 -1
- package/lib/commands/target-remove.js +0 -1
- package/lib/commands/target.js +0 -1
- package/lib/commands/use.js +0 -1
- package/lib/config.js +0 -1
- package/lib/configstore.js +0 -1
- package/lib/crashlytics/buildToolsJarHelper.js +0 -1
- package/lib/database/api.js +0 -1
- package/lib/database/listRemote.js +0 -1
- package/lib/database/metadata.js +0 -1
- package/lib/database/remove.js +0 -1
- package/lib/database/removeRemote.js +0 -1
- package/lib/database/rulesConfig.js +0 -1
- package/lib/database/settings.js +0 -1
- package/lib/defaultCredentials.js +0 -1
- package/lib/deploy/database/deploy.js +0 -1
- package/lib/deploy/database/index.js +0 -1
- package/lib/deploy/database/prepare.js +0 -1
- package/lib/deploy/database/release.js +0 -1
- package/lib/deploy/extensions/args.js +0 -1
- package/lib/deploy/extensions/deploy.js +0 -1
- package/lib/deploy/extensions/deploymentSummary.js +0 -1
- package/lib/deploy/extensions/errors.js +0 -1
- package/lib/deploy/extensions/index.js +0 -1
- package/lib/deploy/extensions/planner.js +0 -1
- package/lib/deploy/extensions/prepare.js +0 -1
- package/lib/deploy/extensions/release.js +0 -1
- package/lib/deploy/extensions/secrets.js +0 -1
- package/lib/deploy/extensions/tasks.js +0 -1
- package/lib/deploy/extensions/validate.js +0 -1
- package/lib/deploy/firestore/deploy.js +0 -1
- package/lib/deploy/firestore/index.js +0 -1
- package/lib/deploy/firestore/prepare.js +0 -1
- package/lib/deploy/firestore/release.js +0 -1
- package/lib/deploy/functions/args.js +0 -1
- package/lib/deploy/functions/backend.js +14 -16
- package/lib/deploy/functions/build.js +0 -1
- package/lib/deploy/functions/cache/applyHash.js +0 -1
- package/lib/deploy/functions/cache/hash.js +0 -1
- package/lib/deploy/functions/cel.js +0 -1
- package/lib/deploy/functions/checkIam.js +0 -1
- package/lib/deploy/functions/containerCleaner.js +0 -1
- package/lib/deploy/functions/deploy.js +0 -1
- package/lib/deploy/functions/ensure.js +0 -1
- package/lib/deploy/functions/ensureCloudBuildEnabled.js +0 -1
- package/lib/deploy/functions/functionsDeployHelper.js +0 -1
- package/lib/deploy/functions/index.js +0 -1
- package/lib/deploy/functions/params.js +0 -1
- package/lib/deploy/functions/prepare.js +0 -1
- package/lib/deploy/functions/prepareFunctionsUpload.js +0 -1
- package/lib/deploy/functions/pricing.js +0 -1
- package/lib/deploy/functions/prompts.js +0 -1
- package/lib/deploy/functions/release/executor.js +0 -1
- package/lib/deploy/functions/release/fabricator.js +0 -1
- package/lib/deploy/functions/release/index.js +0 -1
- package/lib/deploy/functions/release/planner.js +0 -1
- package/lib/deploy/functions/release/reporter.js +0 -1
- package/lib/deploy/functions/release/sourceTokenScraper.js +0 -1
- package/lib/deploy/functions/release/timer.js +0 -1
- package/lib/deploy/functions/runtimes/discovery/index.js +0 -1
- package/lib/deploy/functions/runtimes/discovery/mockDiscoveryServer.js +0 -1
- package/lib/deploy/functions/runtimes/discovery/parsing.js +0 -1
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +0 -1
- package/lib/deploy/functions/runtimes/golang/gomod.js +0 -1
- package/lib/deploy/functions/runtimes/golang/index.js +0 -1
- package/lib/deploy/functions/runtimes/index.js +0 -1
- package/lib/deploy/functions/runtimes/node/extractTriggers.js +0 -1
- package/lib/deploy/functions/runtimes/node/index.js +0 -1
- package/lib/deploy/functions/runtimes/node/parseRuntimeAndValidateSDK.js +0 -1
- package/lib/deploy/functions/runtimes/node/parseTriggers.js +0 -1
- package/lib/deploy/functions/runtimes/node/triggerParser.js +0 -1
- package/lib/deploy/functions/runtimes/node/validate.js +0 -1
- package/lib/deploy/functions/runtimes/node/versioning.js +0 -1
- package/lib/deploy/functions/services/auth.js +0 -1
- package/lib/deploy/functions/services/database.js +0 -1
- package/lib/deploy/functions/services/firebaseAlerts.js +0 -1
- package/lib/deploy/functions/services/index.js +0 -1
- package/lib/deploy/functions/services/remoteConfig.js +0 -1
- package/lib/deploy/functions/services/storage.js +0 -1
- package/lib/deploy/functions/services/testLab.js +0 -1
- package/lib/deploy/functions/triggerRegionHelper.js +0 -1
- package/lib/deploy/functions/validate.js +0 -1
- package/lib/deploy/hosting/args.js +0 -1
- package/lib/deploy/hosting/{hostingDeploy.js → context.js} +0 -1
- package/lib/deploy/hosting/convertConfig.js +122 -174
- package/lib/deploy/hosting/deploy.js +10 -6
- package/lib/deploy/hosting/hashcache.js +0 -1
- package/lib/deploy/hosting/index.js +0 -1
- package/lib/deploy/hosting/prepare.js +13 -26
- package/lib/deploy/hosting/release.js +20 -20
- package/lib/deploy/hosting/uploader.js +0 -1
- package/lib/deploy/index.js +1 -2
- package/lib/deploy/lifecycleHooks.js +0 -1
- package/lib/deploy/remoteconfig/deploy.js +0 -1
- package/lib/deploy/remoteconfig/functions.js +0 -1
- package/lib/deploy/remoteconfig/index.js +0 -1
- package/lib/deploy/remoteconfig/prepare.js +0 -1
- package/lib/deploy/remoteconfig/release.js +0 -1
- package/lib/deploy/storage/deploy.js +0 -1
- package/lib/deploy/storage/index.js +0 -1
- package/lib/deploy/storage/prepare.js +0 -1
- package/lib/deploy/storage/release.js +0 -1
- package/lib/deploymentTool.js +0 -1
- package/lib/detectProjectRoot.js +0 -1
- package/lib/downloadUtils.js +0 -1
- package/lib/dynamicImport.js +10 -7
- package/lib/emulator/adminSdkConfig.js +0 -1
- package/lib/emulator/auth/apiSpec.js +0 -1
- package/lib/emulator/auth/cloudFunctions.js +0 -1
- package/lib/emulator/auth/errors.js +0 -1
- package/lib/emulator/auth/handlers.js +0 -1
- package/lib/emulator/auth/index.js +8 -3
- package/lib/emulator/auth/operations.js +0 -1
- package/lib/emulator/auth/schema.js +0 -1
- package/lib/emulator/auth/server.js +15 -2
- package/lib/emulator/auth/state.js +0 -1
- package/lib/emulator/auth/types.js +0 -1
- package/lib/emulator/auth/utils.js +0 -1
- package/lib/emulator/auth/widget_ui.js +0 -1
- package/lib/emulator/commandUtils.js +0 -1
- package/lib/emulator/constants.js +0 -1
- package/lib/emulator/controller.js +18 -5
- package/lib/emulator/databaseEmulator.js +0 -1
- package/lib/emulator/download.js +0 -1
- package/lib/emulator/downloadableEmulators.js +9 -8
- package/lib/emulator/emulatorLogger.js +0 -1
- package/lib/emulator/emulatorServer.js +0 -1
- package/lib/emulator/eventarcEmulator.js +0 -1
- package/lib/emulator/events/types.js +0 -1
- package/lib/emulator/extensions/postinstall.js +0 -1
- package/lib/emulator/extensions/validation.js +0 -1
- package/lib/emulator/extensionsEmulator.js +0 -1
- package/lib/emulator/firestoreEmulator.js +4 -3
- package/lib/emulator/functionsEmulator.js +36 -11
- package/lib/emulator/functionsEmulatorRuntime.js +3 -7
- package/lib/emulator/functionsEmulatorShared.js +15 -5
- package/lib/emulator/functionsEmulatorShell.js +0 -1
- package/lib/emulator/functionsEmulatorUtils.js +0 -1
- package/lib/emulator/functionsRuntimeWorker.js +0 -1
- package/lib/emulator/hostingEmulator.js +0 -1
- package/lib/emulator/hub.js +0 -1
- package/lib/emulator/hubClient.js +0 -1
- package/lib/emulator/hubExport.js +0 -1
- package/lib/emulator/loggingEmulator.js +0 -1
- package/lib/emulator/portUtils.js +0 -1
- package/lib/emulator/pubsubEmulator.js +0 -1
- package/lib/emulator/registry.js +0 -1
- package/lib/emulator/shared/request.js +0 -1
- package/lib/emulator/storage/apis/firebase.js +0 -1
- package/lib/emulator/storage/apis/gcloud.js +0 -1
- package/lib/emulator/storage/cloudFunctions.js +0 -1
- package/lib/emulator/storage/crc.js +0 -1
- package/lib/emulator/storage/errors.js +0 -1
- package/lib/emulator/storage/files.js +0 -1
- package/lib/emulator/storage/index.js +0 -1
- package/lib/emulator/storage/metadata.js +0 -1
- package/lib/emulator/storage/multipart.js +0 -1
- package/lib/emulator/storage/persistence.js +0 -1
- package/lib/emulator/storage/rules/config.js +0 -1
- package/lib/emulator/storage/rules/expressionValue.js +0 -1
- package/lib/emulator/storage/rules/manager.js +0 -1
- package/lib/emulator/storage/rules/runtime.js +0 -1
- package/lib/emulator/storage/rules/types.js +0 -1
- package/lib/emulator/storage/rules/utils.js +0 -1
- package/lib/emulator/storage/server.js +0 -1
- package/lib/emulator/storage/upload.js +0 -1
- package/lib/emulator/types.js +0 -1
- package/lib/emulator/ui.js +0 -1
- package/lib/emulator/workQueue.js +0 -1
- package/lib/ensureApiEnabled.js +0 -1
- package/lib/ensureCloudResourceLocation.js +0 -1
- package/lib/error.js +0 -1
- package/lib/errorOut.js +0 -1
- package/lib/experiments.js +10 -1
- package/lib/extensions/askUserForConsent.js +0 -1
- package/lib/extensions/askUserForEventsConfig.js +0 -1
- package/lib/extensions/askUserForParam.js +0 -1
- package/lib/extensions/billingMigrationHelper.js +0 -1
- package/lib/extensions/change-log.js +0 -1
- package/lib/extensions/checkProjectBilling.js +0 -1
- package/lib/extensions/diagnose.js +0 -1
- package/lib/extensions/displayExtensionInfo.js +0 -1
- package/lib/extensions/emulator/optionsHelper.js +0 -1
- package/lib/extensions/emulator/specHelper.js +0 -1
- package/lib/extensions/emulator/triggerHelper.js +0 -1
- package/lib/extensions/etags.js +0 -1
- package/lib/extensions/export.js +0 -1
- package/lib/extensions/extensionsApi.js +0 -1
- package/lib/extensions/extensionsHelper.js +0 -1
- package/lib/extensions/listExtensions.js +0 -1
- package/lib/extensions/localHelper.js +0 -1
- package/lib/extensions/manifest.js +0 -1
- package/lib/extensions/metricsTypeDef.js +0 -1
- package/lib/extensions/metricsUtils.js +0 -1
- package/lib/extensions/paramHelper.js +0 -1
- package/lib/extensions/provisioningHelper.js +0 -1
- package/lib/extensions/publishHelpers.js +0 -1
- package/lib/extensions/refs.js +0 -1
- package/lib/extensions/resolveSource.js +0 -1
- package/lib/extensions/secretsUtils.js +0 -1
- package/lib/extensions/types.js +0 -1
- package/lib/extensions/updateHelper.js +0 -1
- package/lib/extensions/utils.js +0 -1
- package/lib/extensions/versionHelper.js +0 -1
- package/lib/extensions/warnings.js +0 -1
- package/lib/fetchMOTD.js +0 -1
- package/lib/fetchWebSetup.js +0 -1
- package/lib/filterTargets.js +0 -1
- package/lib/firebaseConfig.js +0 -1
- package/lib/firebaseConfigValidate.js +0 -1
- package/lib/firestore/checkDatabaseType.js +0 -1
- package/lib/firestore/delete.js +0 -1
- package/lib/firestore/encodeFirestoreValue.js +0 -1
- package/lib/firestore/indexes-api.js +0 -1
- package/lib/firestore/indexes-sort.js +0 -1
- package/lib/firestore/indexes-spec.js +0 -1
- package/lib/firestore/indexes.js +0 -1
- package/lib/firestore/util.js +0 -1
- package/lib/firestore/validator.js +0 -1
- package/lib/frameworks/angular/index.js +0 -1
- package/lib/frameworks/express/index.js +0 -1
- package/lib/frameworks/index.js +21 -7
- package/lib/frameworks/lit/index.js +0 -1
- package/lib/frameworks/next/index.js +0 -1
- package/lib/frameworks/nuxt/index.js +0 -1
- package/lib/frameworks/preact/index.js +0 -1
- package/lib/frameworks/react/index.js +0 -1
- package/lib/frameworks/svelte/index.js +0 -1
- package/lib/frameworks/vite/index.js +0 -1
- package/lib/fsAsync.js +0 -1
- package/lib/fsutils.js +0 -1
- package/lib/functional.js +0 -1
- package/lib/functions/constants.js +0 -1
- package/lib/functions/env.js +0 -1
- package/lib/functions/events/index.js +0 -1
- package/lib/functions/events/v1.js +0 -1
- package/lib/functions/events/v2.js +0 -1
- package/lib/functions/functionslog.js +0 -1
- package/lib/functions/projectConfig.js +0 -1
- package/lib/functions/runtimeConfigExport.js +0 -1
- package/lib/functions/secrets.js +0 -1
- package/lib/functionsConfig.js +0 -1
- package/lib/functionsConfigClone.js +0 -1
- package/lib/functionsShellCommandAction.js +0 -1
- package/lib/gcp/artifactregistry.js +0 -1
- package/lib/gcp/auth.js +0 -1
- package/lib/gcp/cloudbilling.js +0 -1
- package/lib/gcp/cloudfunctions.js +0 -1
- package/lib/gcp/cloudfunctionsv2.js +0 -1
- package/lib/gcp/cloudlogging.js +0 -1
- package/lib/gcp/cloudmonitoring.js +0 -1
- package/lib/gcp/cloudscheduler.js +0 -1
- package/lib/gcp/cloudtasks.js +0 -1
- package/lib/gcp/docker.js +0 -1
- package/lib/gcp/firedata.js +0 -1
- package/lib/gcp/firestore.js +0 -1
- package/lib/gcp/iam.js +0 -1
- package/lib/gcp/identityPlatform.js +0 -1
- package/lib/gcp/index.js +0 -1
- package/lib/gcp/location.js +0 -1
- package/lib/gcp/proto.js +28 -3
- package/lib/gcp/pubsub.js +0 -1
- package/lib/gcp/resourceManager.js +0 -1
- package/lib/gcp/rules.js +0 -1
- package/lib/gcp/run.js +10 -2
- package/lib/gcp/runtimeconfig.js +0 -1
- package/lib/gcp/secretManager.js +0 -1
- package/lib/gcp/serviceusage.js +0 -1
- package/lib/gcp/storage.js +0 -1
- package/lib/getDefaultDatabaseInstance.js +0 -1
- package/lib/getDefaultHostingSite.js +0 -1
- package/lib/getProjectNumber.js +0 -1
- package/lib/handlePreviewToggles.js +0 -1
- package/lib/hosting/api.js +34 -16
- package/lib/hosting/cloudRunProxy.js +0 -1
- package/lib/hosting/config.js +193 -0
- package/lib/hosting/expireUtils.js +1 -2
- package/lib/hosting/functionsProxy.js +12 -6
- package/lib/hosting/implicitInit.js +0 -1
- package/lib/hosting/initMiddleware.js +5 -8
- package/lib/hosting/options.js +3 -0
- package/lib/hosting/proxy.js +0 -1
- package/lib/hosting/runTags.js +115 -0
- package/lib/index.js +0 -1
- package/lib/init/features/account.js +0 -1
- package/lib/init/features/database.js +0 -1
- package/lib/init/features/emulators.js +3 -1
- package/lib/init/features/firestore/index.js +0 -1
- package/lib/init/features/firestore/indexes.js +0 -1
- package/lib/init/features/firestore/rules.js +0 -1
- package/lib/init/features/functions/golang.js +0 -1
- package/lib/init/features/functions/index.js +0 -1
- package/lib/init/features/functions/javascript.js +0 -1
- package/lib/init/features/functions/npm-dependencies.js +0 -1
- package/lib/init/features/functions/typescript.js +0 -1
- package/lib/init/features/hosting/github.js +0 -1
- package/lib/init/features/hosting/index.js +0 -1
- package/lib/init/features/index.js +0 -1
- package/lib/init/features/project.js +0 -1
- package/lib/init/features/remoteconfig.js +0 -1
- package/lib/init/features/storage.js +0 -1
- package/lib/init/index.js +0 -1
- package/lib/listFiles.js +0 -1
- package/lib/loadCJSON.js +0 -1
- package/lib/localFunction.js +0 -1
- package/lib/logError.js +0 -1
- package/lib/logger.js +0 -1
- package/lib/management/apps.js +0 -1
- package/lib/management/database.js +0 -1
- package/lib/management/projects.js +0 -1
- package/lib/metaprogramming.js +0 -1
- package/lib/operation-poller.js +0 -1
- package/lib/options.js +0 -1
- package/lib/parseBoltRules.js +0 -1
- package/lib/profileReport.js +0 -1
- package/lib/profiler.js +0 -1
- package/lib/projectPath.js +0 -1
- package/lib/projectUtils.js +0 -1
- package/lib/prompt.js +0 -1
- package/lib/rc.js +0 -1
- package/lib/remoteconfig/get.js +0 -1
- package/lib/remoteconfig/interfaces.js +0 -1
- package/lib/remoteconfig/rollback.js +0 -1
- package/lib/remoteconfig/versionslist.js +0 -1
- package/lib/requireAuth.js +0 -1
- package/lib/requireConfig.js +0 -1
- package/lib/requireDatabaseInstance.js +0 -1
- package/lib/requireHostingSite.js +0 -1
- package/lib/requireInteractive.js +0 -1
- package/lib/requirePermissions.js +0 -1
- package/lib/responseToError.js +0 -1
- package/lib/rtdb.js +0 -1
- package/lib/rulesDeploy.js +0 -1
- package/lib/scopes.js +0 -1
- package/lib/serve/functions.js +0 -1
- package/lib/serve/hosting.js +11 -10
- package/lib/serve/index.js +0 -1
- package/lib/shortenUrl.js +0 -1
- package/lib/throttler/errors/retries-exhausted-error.js +0 -1
- package/lib/throttler/errors/task-error.js +0 -1
- package/lib/throttler/errors/timeout-error.js +0 -1
- package/lib/throttler/queue.js +0 -1
- package/lib/throttler/stack.js +0 -1
- package/lib/throttler/throttler.js +0 -1
- package/lib/track.js +0 -1
- package/lib/utils.js +0 -1
- package/npm-shrinkwrap.json +473 -853
- package/package.json +2 -2
- package/schema/firebase-config.json +321 -0
- package/lib/accountExporter.js.map +0 -1
- package/lib/accountImporter.js.map +0 -1
- package/lib/api.js.map +0 -1
- package/lib/apiv2.js.map +0 -1
- package/lib/appdistribution/client.js.map +0 -1
- package/lib/appdistribution/distribution.js.map +0 -1
- package/lib/appdistribution/options-parser-util.js.map +0 -1
- package/lib/archiveDirectory.js.map +0 -1
- package/lib/auth.js.map +0 -1
- package/lib/bin/firebase.js.map +0 -1
- package/lib/checkMinRequiredVersion.js.map +0 -1
- package/lib/checkValidTargetFilters.js.map +0 -1
- package/lib/command.js.map +0 -1
- package/lib/commands/appdistribution-distribute.js.map +0 -1
- package/lib/commands/appdistribution-testers-add.js.map +0 -1
- package/lib/commands/appdistribution-testers-remove.js.map +0 -1
- package/lib/commands/apps-android-sha-create.js.map +0 -1
- package/lib/commands/apps-android-sha-delete.js.map +0 -1
- package/lib/commands/apps-android-sha-list.js.map +0 -1
- package/lib/commands/apps-create.js.map +0 -1
- package/lib/commands/apps-list.js.map +0 -1
- package/lib/commands/apps-sdkconfig.js.map +0 -1
- package/lib/commands/auth-export.js.map +0 -1
- package/lib/commands/auth-import.js.map +0 -1
- package/lib/commands/crashlytics-mappingfile-generateid.js.map +0 -1
- package/lib/commands/crashlytics-mappingfile-upload.js.map +0 -1
- package/lib/commands/crashlytics-symbols-upload.js.map +0 -1
- package/lib/commands/database-get.js.map +0 -1
- package/lib/commands/database-instances-create.js.map +0 -1
- package/lib/commands/database-instances-list.js.map +0 -1
- package/lib/commands/database-profile.js.map +0 -1
- package/lib/commands/database-push.js.map +0 -1
- package/lib/commands/database-remove.js.map +0 -1
- package/lib/commands/database-rules-canary.js.map +0 -1
- package/lib/commands/database-rules-get.js.map +0 -1
- package/lib/commands/database-rules-list.js.map +0 -1
- package/lib/commands/database-rules-release.js.map +0 -1
- package/lib/commands/database-rules-stage.js.map +0 -1
- package/lib/commands/database-set.js.map +0 -1
- package/lib/commands/database-settings-get.js.map +0 -1
- package/lib/commands/database-settings-set.js.map +0 -1
- package/lib/commands/database-update.js.map +0 -1
- package/lib/commands/deploy.js.map +0 -1
- package/lib/commands/emulators-exec.js.map +0 -1
- package/lib/commands/emulators-export.js.map +0 -1
- package/lib/commands/emulators-start.js.map +0 -1
- package/lib/commands/experimental-functions-shell.js.map +0 -1
- package/lib/commands/experiments-describe.js.map +0 -1
- package/lib/commands/experiments-disable.js.map +0 -1
- package/lib/commands/experiments-enable.js.map +0 -1
- package/lib/commands/experiments-list.js.map +0 -1
- package/lib/commands/ext-configure.js.map +0 -1
- package/lib/commands/ext-dev-deprecate.js.map +0 -1
- package/lib/commands/ext-dev-emulators-exec.js.map +0 -1
- package/lib/commands/ext-dev-emulators-start.js.map +0 -1
- package/lib/commands/ext-dev-extension-delete.js.map +0 -1
- package/lib/commands/ext-dev-init.js.map +0 -1
- package/lib/commands/ext-dev-list.js.map +0 -1
- package/lib/commands/ext-dev-publish.js.map +0 -1
- package/lib/commands/ext-dev-register.js.map +0 -1
- package/lib/commands/ext-dev-undeprecate.js.map +0 -1
- package/lib/commands/ext-dev-unpublish.js.map +0 -1
- package/lib/commands/ext-dev-usage.js.map +0 -1
- package/lib/commands/ext-export.js.map +0 -1
- package/lib/commands/ext-info.js.map +0 -1
- package/lib/commands/ext-install.js.map +0 -1
- package/lib/commands/ext-list.js.map +0 -1
- package/lib/commands/ext-sources-create.js.map +0 -1
- package/lib/commands/ext-uninstall.js.map +0 -1
- package/lib/commands/ext-update.js.map +0 -1
- package/lib/commands/ext.js.map +0 -1
- package/lib/commands/firestore-delete.js.map +0 -1
- package/lib/commands/firestore-indexes-list.js.map +0 -1
- package/lib/commands/functions-config-clone.js.map +0 -1
- package/lib/commands/functions-config-export.js.map +0 -1
- package/lib/commands/functions-config-get.js.map +0 -1
- package/lib/commands/functions-config-set.js.map +0 -1
- package/lib/commands/functions-config-unset.js.map +0 -1
- package/lib/commands/functions-delete.js.map +0 -1
- package/lib/commands/functions-deletegcfartifacts.js.map +0 -1
- package/lib/commands/functions-list.js.map +0 -1
- package/lib/commands/functions-log.js.map +0 -1
- package/lib/commands/functions-secrets-access.js.map +0 -1
- package/lib/commands/functions-secrets-destroy.js.map +0 -1
- package/lib/commands/functions-secrets-get.js.map +0 -1
- package/lib/commands/functions-secrets-prune.js.map +0 -1
- package/lib/commands/functions-secrets-set.js.map +0 -1
- package/lib/commands/functions-shell.js.map +0 -1
- package/lib/commands/help.js.map +0 -1
- package/lib/commands/hosting-channel-create.js.map +0 -1
- package/lib/commands/hosting-channel-delete.js.map +0 -1
- package/lib/commands/hosting-channel-deploy.js.map +0 -1
- package/lib/commands/hosting-channel-list.js.map +0 -1
- package/lib/commands/hosting-channel-open.js.map +0 -1
- package/lib/commands/hosting-clone.js.map +0 -1
- package/lib/commands/hosting-disable.js.map +0 -1
- package/lib/commands/hosting-sites-create.js.map +0 -1
- package/lib/commands/hosting-sites-delete.js.map +0 -1
- package/lib/commands/hosting-sites-get.js.map +0 -1
- package/lib/commands/hosting-sites-list.js.map +0 -1
- package/lib/commands/index.js.map +0 -1
- package/lib/commands/init.js.map +0 -1
- package/lib/commands/login-add.js.map +0 -1
- package/lib/commands/login-ci.js.map +0 -1
- package/lib/commands/login-list.js.map +0 -1
- package/lib/commands/login-use.js.map +0 -1
- package/lib/commands/login.js.map +0 -1
- package/lib/commands/logout.js.map +0 -1
- package/lib/commands/open.js.map +0 -1
- package/lib/commands/projects-addfirebase.js.map +0 -1
- package/lib/commands/projects-create.js.map +0 -1
- package/lib/commands/projects-list.js.map +0 -1
- package/lib/commands/remoteconfig-get.js.map +0 -1
- package/lib/commands/remoteconfig-rollback.js.map +0 -1
- package/lib/commands/remoteconfig-versions-list.js.map +0 -1
- package/lib/commands/serve.js.map +0 -1
- package/lib/commands/setup-emulators-database.js.map +0 -1
- package/lib/commands/setup-emulators-firestore.js.map +0 -1
- package/lib/commands/setup-emulators-pubsub.js.map +0 -1
- package/lib/commands/setup-emulators-storage.js.map +0 -1
- package/lib/commands/setup-emulators-ui.js.map +0 -1
- package/lib/commands/target-apply.js.map +0 -1
- package/lib/commands/target-clear.js.map +0 -1
- package/lib/commands/target-remove.js.map +0 -1
- package/lib/commands/target.js.map +0 -1
- package/lib/commands/use.js.map +0 -1
- package/lib/config.js.map +0 -1
- package/lib/configstore.js.map +0 -1
- package/lib/crashlytics/buildToolsJarHelper.js.map +0 -1
- package/lib/database/api.js.map +0 -1
- package/lib/database/listRemote.js.map +0 -1
- package/lib/database/metadata.js.map +0 -1
- package/lib/database/remove.js.map +0 -1
- package/lib/database/removeRemote.js.map +0 -1
- package/lib/database/rulesConfig.js.map +0 -1
- package/lib/database/settings.js.map +0 -1
- package/lib/defaultCredentials.js.map +0 -1
- package/lib/deploy/database/deploy.js.map +0 -1
- package/lib/deploy/database/index.js.map +0 -1
- package/lib/deploy/database/prepare.js.map +0 -1
- package/lib/deploy/database/release.js.map +0 -1
- package/lib/deploy/extensions/args.js.map +0 -1
- package/lib/deploy/extensions/deploy.js.map +0 -1
- package/lib/deploy/extensions/deploymentSummary.js.map +0 -1
- package/lib/deploy/extensions/errors.js.map +0 -1
- package/lib/deploy/extensions/index.js.map +0 -1
- package/lib/deploy/extensions/planner.js.map +0 -1
- package/lib/deploy/extensions/prepare.js.map +0 -1
- package/lib/deploy/extensions/release.js.map +0 -1
- package/lib/deploy/extensions/secrets.js.map +0 -1
- package/lib/deploy/extensions/tasks.js.map +0 -1
- package/lib/deploy/extensions/validate.js.map +0 -1
- package/lib/deploy/firestore/deploy.js.map +0 -1
- package/lib/deploy/firestore/index.js.map +0 -1
- package/lib/deploy/firestore/prepare.js.map +0 -1
- package/lib/deploy/firestore/release.js.map +0 -1
- package/lib/deploy/functions/args.js.map +0 -1
- package/lib/deploy/functions/backend.js.map +0 -1
- package/lib/deploy/functions/build.js.map +0 -1
- package/lib/deploy/functions/cache/applyHash.js.map +0 -1
- package/lib/deploy/functions/cache/hash.js.map +0 -1
- package/lib/deploy/functions/cel.js.map +0 -1
- package/lib/deploy/functions/checkIam.js.map +0 -1
- package/lib/deploy/functions/containerCleaner.js.map +0 -1
- package/lib/deploy/functions/deploy.js.map +0 -1
- package/lib/deploy/functions/ensure.js.map +0 -1
- package/lib/deploy/functions/ensureCloudBuildEnabled.js.map +0 -1
- package/lib/deploy/functions/functionsDeployHelper.js.map +0 -1
- package/lib/deploy/functions/index.js.map +0 -1
- package/lib/deploy/functions/params.js.map +0 -1
- package/lib/deploy/functions/prepare.js.map +0 -1
- package/lib/deploy/functions/prepareFunctionsUpload.js.map +0 -1
- package/lib/deploy/functions/pricing.js.map +0 -1
- package/lib/deploy/functions/prompts.js.map +0 -1
- package/lib/deploy/functions/release/executor.js.map +0 -1
- package/lib/deploy/functions/release/fabricator.js.map +0 -1
- package/lib/deploy/functions/release/index.js.map +0 -1
- package/lib/deploy/functions/release/planner.js.map +0 -1
- package/lib/deploy/functions/release/reporter.js.map +0 -1
- package/lib/deploy/functions/release/sourceTokenScraper.js.map +0 -1
- package/lib/deploy/functions/release/timer.js.map +0 -1
- package/lib/deploy/functions/runtimes/discovery/index.js.map +0 -1
- package/lib/deploy/functions/runtimes/discovery/mockDiscoveryServer.js.map +0 -1
- package/lib/deploy/functions/runtimes/discovery/parsing.js.map +0 -1
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js.map +0 -1
- package/lib/deploy/functions/runtimes/golang/gomod.js.map +0 -1
- package/lib/deploy/functions/runtimes/golang/index.js.map +0 -1
- package/lib/deploy/functions/runtimes/index.js.map +0 -1
- package/lib/deploy/functions/runtimes/node/extractTriggers.js.map +0 -1
- package/lib/deploy/functions/runtimes/node/index.js.map +0 -1
- package/lib/deploy/functions/runtimes/node/parseRuntimeAndValidateSDK.js.map +0 -1
- package/lib/deploy/functions/runtimes/node/parseTriggers.js.map +0 -1
- package/lib/deploy/functions/runtimes/node/triggerParser.js.map +0 -1
- package/lib/deploy/functions/runtimes/node/validate.js.map +0 -1
- package/lib/deploy/functions/runtimes/node/versioning.js.map +0 -1
- package/lib/deploy/functions/services/auth.js.map +0 -1
- package/lib/deploy/functions/services/database.js.map +0 -1
- package/lib/deploy/functions/services/firebaseAlerts.js.map +0 -1
- package/lib/deploy/functions/services/index.js.map +0 -1
- package/lib/deploy/functions/services/remoteConfig.js.map +0 -1
- package/lib/deploy/functions/services/storage.js.map +0 -1
- package/lib/deploy/functions/services/testLab.js.map +0 -1
- package/lib/deploy/functions/triggerRegionHelper.js.map +0 -1
- package/lib/deploy/functions/validate.js.map +0 -1
- package/lib/deploy/hosting/args.js.map +0 -1
- package/lib/deploy/hosting/client.js +0 -10
- package/lib/deploy/hosting/client.js.map +0 -1
- package/lib/deploy/hosting/convertConfig.js.map +0 -1
- package/lib/deploy/hosting/deploy.js.map +0 -1
- package/lib/deploy/hosting/hashcache.js.map +0 -1
- package/lib/deploy/hosting/hostingDeploy.js.map +0 -1
- package/lib/deploy/hosting/index.js.map +0 -1
- package/lib/deploy/hosting/prepare.js.map +0 -1
- package/lib/deploy/hosting/release.js.map +0 -1
- package/lib/deploy/hosting/uploader.js.map +0 -1
- package/lib/deploy/hosting/validate.js +0 -42
- package/lib/deploy/hosting/validate.js.map +0 -1
- package/lib/deploy/index.js.map +0 -1
- package/lib/deploy/lifecycleHooks.js.map +0 -1
- package/lib/deploy/remoteconfig/deploy.js.map +0 -1
- package/lib/deploy/remoteconfig/functions.js.map +0 -1
- package/lib/deploy/remoteconfig/index.js.map +0 -1
- package/lib/deploy/remoteconfig/prepare.js.map +0 -1
- package/lib/deploy/remoteconfig/release.js.map +0 -1
- package/lib/deploy/storage/deploy.js.map +0 -1
- package/lib/deploy/storage/index.js.map +0 -1
- package/lib/deploy/storage/prepare.js.map +0 -1
- package/lib/deploy/storage/release.js.map +0 -1
- package/lib/deploymentTool.js.map +0 -1
- package/lib/detectProjectRoot.js.map +0 -1
- package/lib/downloadUtils.js.map +0 -1
- package/lib/emulator/adminSdkConfig.js.map +0 -1
- package/lib/emulator/auth/apiSpec.js.map +0 -1
- package/lib/emulator/auth/cloudFunctions.js.map +0 -1
- package/lib/emulator/auth/errors.js.map +0 -1
- package/lib/emulator/auth/handlers.js.map +0 -1
- package/lib/emulator/auth/index.js.map +0 -1
- package/lib/emulator/auth/operations.js.map +0 -1
- package/lib/emulator/auth/schema.js.map +0 -1
- package/lib/emulator/auth/server.js.map +0 -1
- package/lib/emulator/auth/state.js.map +0 -1
- package/lib/emulator/auth/types.js.map +0 -1
- package/lib/emulator/auth/utils.js.map +0 -1
- package/lib/emulator/auth/widget_ui.js.map +0 -1
- package/lib/emulator/commandUtils.js.map +0 -1
- package/lib/emulator/constants.js.map +0 -1
- package/lib/emulator/controller.js.map +0 -1
- package/lib/emulator/databaseEmulator.js.map +0 -1
- package/lib/emulator/download.js.map +0 -1
- package/lib/emulator/downloadableEmulators.js.map +0 -1
- package/lib/emulator/emulatorLogger.js.map +0 -1
- package/lib/emulator/emulatorServer.js.map +0 -1
- package/lib/emulator/eventarcEmulator.js.map +0 -1
- package/lib/emulator/events/types.js.map +0 -1
- package/lib/emulator/extensions/postinstall.js.map +0 -1
- package/lib/emulator/extensions/validation.js.map +0 -1
- package/lib/emulator/extensionsEmulator.js.map +0 -1
- package/lib/emulator/firestoreEmulator.js.map +0 -1
- package/lib/emulator/functionsEmulator.js.map +0 -1
- package/lib/emulator/functionsEmulatorRuntime.js.map +0 -1
- package/lib/emulator/functionsEmulatorShared.js.map +0 -1
- package/lib/emulator/functionsEmulatorShell.js.map +0 -1
- package/lib/emulator/functionsEmulatorUtils.js.map +0 -1
- package/lib/emulator/functionsRuntimeWorker.js.map +0 -1
- package/lib/emulator/hostingEmulator.js.map +0 -1
- package/lib/emulator/hub.js.map +0 -1
- package/lib/emulator/hubClient.js.map +0 -1
- package/lib/emulator/hubExport.js.map +0 -1
- package/lib/emulator/loggingEmulator.js.map +0 -1
- package/lib/emulator/portUtils.js.map +0 -1
- package/lib/emulator/pubsubEmulator.js.map +0 -1
- package/lib/emulator/registry.js.map +0 -1
- package/lib/emulator/shared/request.js.map +0 -1
- package/lib/emulator/storage/apis/firebase.js.map +0 -1
- package/lib/emulator/storage/apis/gcloud.js.map +0 -1
- package/lib/emulator/storage/cloudFunctions.js.map +0 -1
- package/lib/emulator/storage/crc.js.map +0 -1
- package/lib/emulator/storage/errors.js.map +0 -1
- package/lib/emulator/storage/files.js.map +0 -1
- package/lib/emulator/storage/index.js.map +0 -1
- package/lib/emulator/storage/metadata.js.map +0 -1
- package/lib/emulator/storage/multipart.js.map +0 -1
- package/lib/emulator/storage/persistence.js.map +0 -1
- package/lib/emulator/storage/rules/config.js.map +0 -1
- package/lib/emulator/storage/rules/expressionValue.js.map +0 -1
- package/lib/emulator/storage/rules/manager.js.map +0 -1
- package/lib/emulator/storage/rules/runtime.js.map +0 -1
- package/lib/emulator/storage/rules/types.js.map +0 -1
- package/lib/emulator/storage/rules/utils.js.map +0 -1
- package/lib/emulator/storage/server.js.map +0 -1
- package/lib/emulator/storage/upload.js.map +0 -1
- package/lib/emulator/types.js.map +0 -1
- package/lib/emulator/ui.js.map +0 -1
- package/lib/emulator/workQueue.js.map +0 -1
- package/lib/ensureApiEnabled.js.map +0 -1
- package/lib/ensureCloudResourceLocation.js.map +0 -1
- package/lib/error.js.map +0 -1
- package/lib/errorOut.js.map +0 -1
- package/lib/experiments.js.map +0 -1
- package/lib/extensions/askUserForConsent.js.map +0 -1
- package/lib/extensions/askUserForEventsConfig.js.map +0 -1
- package/lib/extensions/askUserForParam.js.map +0 -1
- package/lib/extensions/billingMigrationHelper.js.map +0 -1
- package/lib/extensions/change-log.js.map +0 -1
- package/lib/extensions/checkProjectBilling.js.map +0 -1
- package/lib/extensions/diagnose.js.map +0 -1
- package/lib/extensions/displayExtensionInfo.js.map +0 -1
- package/lib/extensions/emulator/optionsHelper.js.map +0 -1
- package/lib/extensions/emulator/specHelper.js.map +0 -1
- package/lib/extensions/emulator/triggerHelper.js.map +0 -1
- package/lib/extensions/etags.js.map +0 -1
- package/lib/extensions/export.js.map +0 -1
- package/lib/extensions/extensionsApi.js.map +0 -1
- package/lib/extensions/extensionsHelper.js.map +0 -1
- package/lib/extensions/listExtensions.js.map +0 -1
- package/lib/extensions/localHelper.js.map +0 -1
- package/lib/extensions/manifest.js.map +0 -1
- package/lib/extensions/metricsTypeDef.js.map +0 -1
- package/lib/extensions/metricsUtils.js.map +0 -1
- package/lib/extensions/paramHelper.js.map +0 -1
- package/lib/extensions/provisioningHelper.js.map +0 -1
- package/lib/extensions/publishHelpers.js.map +0 -1
- package/lib/extensions/refs.js.map +0 -1
- package/lib/extensions/resolveSource.js.map +0 -1
- package/lib/extensions/secretsUtils.js.map +0 -1
- package/lib/extensions/types.js.map +0 -1
- package/lib/extensions/updateHelper.js.map +0 -1
- package/lib/extensions/utils.js.map +0 -1
- package/lib/extensions/versionHelper.js.map +0 -1
- package/lib/extensions/warnings.js.map +0 -1
- package/lib/fetchMOTD.js.map +0 -1
- package/lib/fetchWebSetup.js.map +0 -1
- package/lib/filterTargets.js.map +0 -1
- package/lib/firebaseConfig.js.map +0 -1
- package/lib/firebaseConfigValidate.js.map +0 -1
- package/lib/firestore/checkDatabaseType.js.map +0 -1
- package/lib/firestore/delete.js.map +0 -1
- package/lib/firestore/encodeFirestoreValue.js.map +0 -1
- package/lib/firestore/indexes-api.js.map +0 -1
- package/lib/firestore/indexes-sort.js.map +0 -1
- package/lib/firestore/indexes-spec.js.map +0 -1
- package/lib/firestore/indexes.js.map +0 -1
- package/lib/firestore/util.js.map +0 -1
- package/lib/firestore/validator.js.map +0 -1
- package/lib/frameworks/angular/index.js.map +0 -1
- package/lib/frameworks/express/index.js.map +0 -1
- package/lib/frameworks/index.js.map +0 -1
- package/lib/frameworks/lit/index.js.map +0 -1
- package/lib/frameworks/next/index.js.map +0 -1
- package/lib/frameworks/nuxt/index.js.map +0 -1
- package/lib/frameworks/preact/index.js.map +0 -1
- package/lib/frameworks/react/index.js.map +0 -1
- package/lib/frameworks/svelte/index.js.map +0 -1
- package/lib/frameworks/vite/index.js.map +0 -1
- package/lib/fsAsync.js.map +0 -1
- package/lib/fsutils.js.map +0 -1
- package/lib/functional.js.map +0 -1
- package/lib/functions/constants.js.map +0 -1
- package/lib/functions/env.js.map +0 -1
- package/lib/functions/events/index.js.map +0 -1
- package/lib/functions/events/v1.js.map +0 -1
- package/lib/functions/events/v2.js.map +0 -1
- package/lib/functions/functionslog.js.map +0 -1
- package/lib/functions/projectConfig.js.map +0 -1
- package/lib/functions/runtimeConfigExport.js.map +0 -1
- package/lib/functions/secrets.js.map +0 -1
- package/lib/functionsConfig.js.map +0 -1
- package/lib/functionsConfigClone.js.map +0 -1
- package/lib/functionsShellCommandAction.js.map +0 -1
- package/lib/gcp/artifactregistry.js.map +0 -1
- package/lib/gcp/auth.js.map +0 -1
- package/lib/gcp/cloudbilling.js.map +0 -1
- package/lib/gcp/cloudfunctions.js.map +0 -1
- package/lib/gcp/cloudfunctionsv2.js.map +0 -1
- package/lib/gcp/cloudlogging.js.map +0 -1
- package/lib/gcp/cloudmonitoring.js.map +0 -1
- package/lib/gcp/cloudscheduler.js.map +0 -1
- package/lib/gcp/cloudtasks.js.map +0 -1
- package/lib/gcp/docker.js.map +0 -1
- package/lib/gcp/firedata.js.map +0 -1
- package/lib/gcp/firestore.js.map +0 -1
- package/lib/gcp/iam.js.map +0 -1
- package/lib/gcp/identityPlatform.js.map +0 -1
- package/lib/gcp/index.js.map +0 -1
- package/lib/gcp/location.js.map +0 -1
- package/lib/gcp/proto.js.map +0 -1
- package/lib/gcp/pubsub.js.map +0 -1
- package/lib/gcp/resourceManager.js.map +0 -1
- package/lib/gcp/rules.js.map +0 -1
- package/lib/gcp/run.js.map +0 -1
- package/lib/gcp/runtimeconfig.js.map +0 -1
- package/lib/gcp/secretManager.js.map +0 -1
- package/lib/gcp/serviceusage.js.map +0 -1
- package/lib/gcp/storage.js.map +0 -1
- package/lib/getDefaultDatabaseInstance.js.map +0 -1
- package/lib/getDefaultHostingSite.js.map +0 -1
- package/lib/getProjectNumber.js.map +0 -1
- package/lib/handlePreviewToggles.js.map +0 -1
- package/lib/hosting/api.js.map +0 -1
- package/lib/hosting/cloudRunProxy.js.map +0 -1
- package/lib/hosting/expireUtils.js.map +0 -1
- package/lib/hosting/functionsProxy.js.map +0 -1
- package/lib/hosting/implicitInit.js.map +0 -1
- package/lib/hosting/initMiddleware.js.map +0 -1
- package/lib/hosting/normalizedHostingConfigs.js +0 -99
- package/lib/hosting/normalizedHostingConfigs.js.map +0 -1
- package/lib/hosting/proxy.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/init/features/account.js.map +0 -1
- package/lib/init/features/database.js.map +0 -1
- package/lib/init/features/emulators.js.map +0 -1
- package/lib/init/features/firestore/index.js.map +0 -1
- package/lib/init/features/firestore/indexes.js.map +0 -1
- package/lib/init/features/firestore/rules.js.map +0 -1
- package/lib/init/features/functions/golang.js.map +0 -1
- package/lib/init/features/functions/index.js.map +0 -1
- package/lib/init/features/functions/javascript.js.map +0 -1
- package/lib/init/features/functions/npm-dependencies.js.map +0 -1
- package/lib/init/features/functions/typescript.js.map +0 -1
- package/lib/init/features/hosting/github.js.map +0 -1
- package/lib/init/features/hosting/index.js.map +0 -1
- package/lib/init/features/index.js.map +0 -1
- package/lib/init/features/project.js.map +0 -1
- package/lib/init/features/remoteconfig.js.map +0 -1
- package/lib/init/features/storage.js.map +0 -1
- package/lib/init/index.js.map +0 -1
- package/lib/listFiles.js.map +0 -1
- package/lib/loadCJSON.js.map +0 -1
- package/lib/localFunction.js.map +0 -1
- package/lib/logError.js.map +0 -1
- package/lib/logger.js.map +0 -1
- package/lib/management/apps.js.map +0 -1
- package/lib/management/database.js.map +0 -1
- package/lib/management/projects.js.map +0 -1
- package/lib/metaprogramming.js.map +0 -1
- package/lib/operation-poller.js.map +0 -1
- package/lib/options.js.map +0 -1
- package/lib/parseBoltRules.js.map +0 -1
- package/lib/profileReport.js.map +0 -1
- package/lib/profiler.js.map +0 -1
- package/lib/projectPath.js.map +0 -1
- package/lib/projectUtils.js.map +0 -1
- package/lib/prompt.js.map +0 -1
- package/lib/rc.js.map +0 -1
- package/lib/remoteconfig/get.js.map +0 -1
- package/lib/remoteconfig/interfaces.js.map +0 -1
- package/lib/remoteconfig/rollback.js.map +0 -1
- package/lib/remoteconfig/versionslist.js.map +0 -1
- package/lib/requireAuth.js.map +0 -1
- package/lib/requireConfig.js.map +0 -1
- package/lib/requireDatabaseInstance.js.map +0 -1
- package/lib/requireHostingSite.js.map +0 -1
- package/lib/requireInteractive.js.map +0 -1
- package/lib/requirePermissions.js.map +0 -1
- package/lib/responseToError.js.map +0 -1
- package/lib/rtdb.js.map +0 -1
- package/lib/rulesDeploy.js.map +0 -1
- package/lib/scopes.js.map +0 -1
- package/lib/serve/functions.js.map +0 -1
- package/lib/serve/hosting.js.map +0 -1
- package/lib/serve/index.js.map +0 -1
- package/lib/shortenUrl.js.map +0 -1
- package/lib/throttler/errors/retries-exhausted-error.js.map +0 -1
- package/lib/throttler/errors/task-error.js.map +0 -1
- package/lib/throttler/errors/timeout-error.js.map +0 -1
- package/lib/throttler/queue.js.map +0 -1
- package/lib/throttler/stack.js.map +0 -1
- package/lib/throttler/throttler.js.map +0 -1
- package/lib/track.js.map +0 -1
- package/lib/utils.js.map +0 -1
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hostingConfig = exports.normalize = exports.resolveTargets = exports.validate = exports.extract = exports.filterExcept = exports.filterOnly = void 0;
|
|
4
|
+
const colorette_1 = require("colorette");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
const error_1 = require("../error");
|
|
7
|
+
const functional_1 = require("../functional");
|
|
8
|
+
const fsutils_1 = require("../fsutils");
|
|
9
|
+
const projectPath_1 = require("../projectPath");
|
|
10
|
+
const path = require("node:path");
|
|
11
|
+
const experiments = require("../experiments");
|
|
12
|
+
const logger_1 = require("../logger");
|
|
13
|
+
function matchingConfigs(configs, targets, assertMatches) {
|
|
14
|
+
const matches = [];
|
|
15
|
+
const [hasSite, hasTarget] = (0, functional_1.partition)(configs, (c) => "site" in c);
|
|
16
|
+
for (const target of targets) {
|
|
17
|
+
const siteMatch = hasSite.find((c) => c.site === target);
|
|
18
|
+
const targetMatch = hasTarget.find((c) => c.target === target);
|
|
19
|
+
if (siteMatch) {
|
|
20
|
+
matches.push(siteMatch);
|
|
21
|
+
}
|
|
22
|
+
else if (targetMatch) {
|
|
23
|
+
matches.push(targetMatch);
|
|
24
|
+
}
|
|
25
|
+
else if (assertMatches) {
|
|
26
|
+
throw new error_1.FirebaseError(`Hosting site or target ${(0, colorette_1.bold)(target)} not detected in firebase.json`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return matches;
|
|
30
|
+
}
|
|
31
|
+
function filterOnly(configs, onlyString) {
|
|
32
|
+
if (!onlyString) {
|
|
33
|
+
return configs;
|
|
34
|
+
}
|
|
35
|
+
let onlyTargets = onlyString.split(",");
|
|
36
|
+
if (onlyTargets.includes("hosting")) {
|
|
37
|
+
return configs;
|
|
38
|
+
}
|
|
39
|
+
onlyTargets = onlyTargets
|
|
40
|
+
.filter((target) => target.startsWith("hosting:"))
|
|
41
|
+
.map((target) => target.replace("hosting:", ""));
|
|
42
|
+
return matchingConfigs(configs, onlyTargets, true);
|
|
43
|
+
}
|
|
44
|
+
exports.filterOnly = filterOnly;
|
|
45
|
+
function filterExcept(configs, exceptOption) {
|
|
46
|
+
if (!exceptOption) {
|
|
47
|
+
return configs;
|
|
48
|
+
}
|
|
49
|
+
const exceptTargets = exceptOption.split(",");
|
|
50
|
+
if (exceptTargets.includes("hosting")) {
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
53
|
+
const exceptValues = exceptTargets
|
|
54
|
+
.filter((t) => t.startsWith("hosting:"))
|
|
55
|
+
.map((t) => t.replace("hosting:", ""));
|
|
56
|
+
const toReject = matchingConfigs(configs, exceptValues, false);
|
|
57
|
+
return configs.filter((c) => !toReject.find((r) => c.site === r.site && c.target === r.target));
|
|
58
|
+
}
|
|
59
|
+
exports.filterExcept = filterExcept;
|
|
60
|
+
function extract(options) {
|
|
61
|
+
const config = options.config.src;
|
|
62
|
+
if (!config.hosting) {
|
|
63
|
+
return [];
|
|
64
|
+
}
|
|
65
|
+
const assertOneTarget = (config) => {
|
|
66
|
+
if (config.target && config.site) {
|
|
67
|
+
throw new error_1.FirebaseError(`Hosting configs should only include either "site" or "target", not both.`);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
if (!Array.isArray(config.hosting)) {
|
|
71
|
+
const res = (0, utils_1.cloneDeep)(config.hosting);
|
|
72
|
+
if (!res.target && !res.site) {
|
|
73
|
+
res.site = options.site;
|
|
74
|
+
}
|
|
75
|
+
assertOneTarget(res);
|
|
76
|
+
return [res];
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
config.hosting.forEach(assertOneTarget);
|
|
80
|
+
return (0, utils_1.cloneDeep)(config.hosting);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.extract = extract;
|
|
84
|
+
function validate(configs, options) {
|
|
85
|
+
for (const config of configs) {
|
|
86
|
+
validateOne(config, options);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.validate = validate;
|
|
90
|
+
function validateOne(config, options) {
|
|
91
|
+
var _a, _b, _c, _d;
|
|
92
|
+
const hasAnyStaticRewrites = !!((_a = config.rewrites) === null || _a === void 0 ? void 0 : _a.find((rw) => "destination" in rw));
|
|
93
|
+
const hasAnyDynamicRewrites = !!((_b = config.rewrites) === null || _b === void 0 ? void 0 : _b.find((rw) => !("destination" in rw)));
|
|
94
|
+
const hasAnyRedirects = !!((_c = config.redirects) === null || _c === void 0 ? void 0 : _c.length);
|
|
95
|
+
if (config.source && config.public) {
|
|
96
|
+
throw new error_1.FirebaseError('Can only specify "source" or "public" in a Hosting config, not both');
|
|
97
|
+
}
|
|
98
|
+
const root = experiments.isEnabled("webframeworks")
|
|
99
|
+
? config.source || config.public
|
|
100
|
+
: config.public;
|
|
101
|
+
const orSource = experiments.isEnabled("webframeworks") ? ' or "source"' : "";
|
|
102
|
+
if (!root && hasAnyStaticRewrites) {
|
|
103
|
+
throw new error_1.FirebaseError(`Must supply a "public"${orSource} directory when using "destination" rewrites.`);
|
|
104
|
+
}
|
|
105
|
+
if (!root && !hasAnyDynamicRewrites && !hasAnyRedirects) {
|
|
106
|
+
throw new error_1.FirebaseError(`Must supply a "public"${orSource} directory or at least one rewrite or redirect in each "hosting" config.`);
|
|
107
|
+
}
|
|
108
|
+
if (root && !(0, fsutils_1.dirExistsSync)((0, projectPath_1.resolveProjectPath)(options, root))) {
|
|
109
|
+
logger_1.logger.debug(`Specified "${config.source ? "source" : "public"}" directory "${root}" does not exist; Deploy to Hosting site "${config.site || config.target || ""}" may fail or be empty.`);
|
|
110
|
+
}
|
|
111
|
+
const regionWithoutFunction = (rewrite) => typeof rewrite.region === "string" && typeof rewrite.function !== "string";
|
|
112
|
+
const violation = (_d = config.rewrites) === null || _d === void 0 ? void 0 : _d.find(regionWithoutFunction);
|
|
113
|
+
if (violation) {
|
|
114
|
+
throw new error_1.FirebaseError("Rewrites only support 'region' as a top-level field when 'function' is set as a string");
|
|
115
|
+
}
|
|
116
|
+
if (config.i18n) {
|
|
117
|
+
if (!root) {
|
|
118
|
+
throw new error_1.FirebaseError(`Must supply a "public"${orSource} directory when using "i18n" configuration.`);
|
|
119
|
+
}
|
|
120
|
+
if (!config.i18n.root) {
|
|
121
|
+
throw new error_1.FirebaseError('Must supply a "root" in "i18n" config.');
|
|
122
|
+
}
|
|
123
|
+
const i18nPath = path.join(root, config.i18n.root);
|
|
124
|
+
if (!(0, fsutils_1.dirExistsSync)((0, projectPath_1.resolveProjectPath)(options, i18nPath))) {
|
|
125
|
+
(0, utils_1.logLabeledWarning)("hosting", `Couldn't find specified i18n root directory ${(0, colorette_1.bold)(config.i18n.root)} in public directory ${(0, colorette_1.bold)(root)}`);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function resolveTargets(configs, options) {
|
|
130
|
+
return configs.map((config) => {
|
|
131
|
+
const newConfig = (0, utils_1.cloneDeep)(config);
|
|
132
|
+
if (config.site) {
|
|
133
|
+
return newConfig;
|
|
134
|
+
}
|
|
135
|
+
if (!config.target) {
|
|
136
|
+
throw new error_1.FirebaseError("Assertion failed: resolving hosting target of a site with no site name " +
|
|
137
|
+
"or target name. This should have caused an error earlier", { exit: 2 });
|
|
138
|
+
}
|
|
139
|
+
if (!options.project) {
|
|
140
|
+
throw new error_1.FirebaseError("Assertion failed: options.project is not set. Commands depending on hosting.config should use requireProject", { exit: 2 });
|
|
141
|
+
}
|
|
142
|
+
const matchingTargets = options.rc.requireTarget(options.project, "hosting", config.target);
|
|
143
|
+
if (matchingTargets.length > 1) {
|
|
144
|
+
throw new error_1.FirebaseError(`Hosting target ${(0, colorette_1.bold)(config.target)} is linked to multiple sites, ` +
|
|
145
|
+
`but only one is permitted. ` +
|
|
146
|
+
`To clear, run:\n\n ${(0, colorette_1.bold)(`firebase target:clear hosting ${config.target}`)}`);
|
|
147
|
+
}
|
|
148
|
+
newConfig.site = matchingTargets[0];
|
|
149
|
+
return newConfig;
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
exports.resolveTargets = resolveTargets;
|
|
153
|
+
function isLegacyFunctionsRewrite(rewrite) {
|
|
154
|
+
return "function" in rewrite && typeof rewrite.function === "string";
|
|
155
|
+
}
|
|
156
|
+
function normalize(configs) {
|
|
157
|
+
var _a;
|
|
158
|
+
for (const config of configs) {
|
|
159
|
+
config.rewrites = (_a = config.rewrites) === null || _a === void 0 ? void 0 : _a.map((rewrite) => {
|
|
160
|
+
if (!("function" in rewrite)) {
|
|
161
|
+
return rewrite;
|
|
162
|
+
}
|
|
163
|
+
if (isLegacyFunctionsRewrite(rewrite)) {
|
|
164
|
+
const modern = Object.assign(Object.assign({}, rewrite), { function: {
|
|
165
|
+
functionId: rewrite.function,
|
|
166
|
+
} });
|
|
167
|
+
delete modern.region;
|
|
168
|
+
if ("region" in rewrite && typeof rewrite.region === "string") {
|
|
169
|
+
modern.function.region = rewrite.region;
|
|
170
|
+
}
|
|
171
|
+
if (rewrite.region) {
|
|
172
|
+
modern.function.region = rewrite.region;
|
|
173
|
+
}
|
|
174
|
+
return modern;
|
|
175
|
+
}
|
|
176
|
+
return rewrite;
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
exports.normalize = normalize;
|
|
181
|
+
function hostingConfig(options) {
|
|
182
|
+
if (!options.normalizedHostingConfig) {
|
|
183
|
+
let configs = extract(options);
|
|
184
|
+
configs = filterOnly(configs, options.only);
|
|
185
|
+
configs = filterExcept(configs, options.except);
|
|
186
|
+
normalize(configs);
|
|
187
|
+
validate(configs, options);
|
|
188
|
+
const resolved = resolveTargets(configs, options);
|
|
189
|
+
options.normalizedHostingConfig = resolved;
|
|
190
|
+
}
|
|
191
|
+
return options.normalizedHostingConfig;
|
|
192
|
+
}
|
|
193
|
+
exports.hostingConfig = hostingConfig;
|
|
@@ -16,7 +16,7 @@ const DURATIONS = {
|
|
|
16
16
|
};
|
|
17
17
|
exports.MAX_DURATION = 30 * Duration.DAY;
|
|
18
18
|
exports.DEFAULT_DURATION = 7 * Duration.DAY;
|
|
19
|
-
function calculateChannelExpireTTL(flag
|
|
19
|
+
function calculateChannelExpireTTL(flag) {
|
|
20
20
|
const match = exports.DURATION_REGEX.exec(flag);
|
|
21
21
|
if (!match) {
|
|
22
22
|
throw new error_1.FirebaseError(`"expires" flag must be a duration string (e.g. 24h or 7d) at most 30d`);
|
|
@@ -31,4 +31,3 @@ function calculateChannelExpireTTL(flag = "") {
|
|
|
31
31
|
return d;
|
|
32
32
|
}
|
|
33
33
|
exports.calculateChannelExpireTTL = calculateChannelExpireTTL;
|
|
34
|
-
//# sourceMappingURL=expireUtils.js.map
|
|
@@ -17,21 +17,27 @@ function functionsProxy(options) {
|
|
|
17
17
|
exit: 2,
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
let functionId;
|
|
21
|
+
let region;
|
|
22
|
+
if (typeof rewrite.function === "string") {
|
|
23
|
+
functionId = rewrite.function;
|
|
24
|
+
region = rewrite.region || "us-central1";
|
|
22
25
|
}
|
|
23
|
-
|
|
26
|
+
else {
|
|
27
|
+
functionId = rewrite.function.functionId;
|
|
28
|
+
region = rewrite.function.region || "us-central1";
|
|
29
|
+
}
|
|
30
|
+
let url = `https://${region}-${projectId}.cloudfunctions.net/${functionId}`;
|
|
24
31
|
let destLabel = "live";
|
|
25
32
|
if ((0, lodash_1.includes)(options.targets, "functions")) {
|
|
26
33
|
destLabel = "local";
|
|
27
34
|
const functionsEmu = registry_1.EmulatorRegistry.get(types_1.Emulators.FUNCTIONS);
|
|
28
35
|
if (functionsEmu) {
|
|
29
|
-
url = functionsEmulator_1.FunctionsEmulator.getHttpFunctionUrl(functionsEmu.getInfo().host, functionsEmu.getInfo().port, projectId,
|
|
36
|
+
url = functionsEmulator_1.FunctionsEmulator.getHttpFunctionUrl(functionsEmu.getInfo().host, functionsEmu.getInfo().port, projectId, functionId, region);
|
|
30
37
|
}
|
|
31
38
|
}
|
|
32
|
-
resolve((0, proxy_1.proxyRequestHandler)(url, `${destLabel} Function ${
|
|
39
|
+
resolve((0, proxy_1.proxyRequestHandler)(url, `${destLabel} Function ${region}/${functionId}`));
|
|
33
40
|
});
|
|
34
41
|
};
|
|
35
42
|
}
|
|
36
43
|
exports.functionsProxy = functionsProxy;
|
|
37
|
-
//# sourceMappingURL=functionsProxy.js.map
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.initMiddleware = void 0;
|
|
4
|
-
const url = require("url");
|
|
5
|
-
const qs = require("querystring");
|
|
6
4
|
const apiv2_1 = require("../apiv2");
|
|
7
5
|
const logger_1 = require("../logger");
|
|
8
6
|
const utils = require("../utils");
|
|
9
7
|
const SDK_PATH_REGEXP = /^\/__\/firebase\/([^/]+)\/([^/]+)$/;
|
|
10
8
|
function initMiddleware(init) {
|
|
11
9
|
return (req, res, next) => {
|
|
12
|
-
const parsedUrl =
|
|
13
|
-
const match = RegExp(SDK_PATH_REGEXP).exec(
|
|
10
|
+
const parsedUrl = new URL(req.url || "", `http://${req.headers.host}`);
|
|
11
|
+
const match = RegExp(SDK_PATH_REGEXP).exec(parsedUrl.pathname);
|
|
14
12
|
if (match) {
|
|
15
13
|
const version = match[1];
|
|
16
14
|
const sdkName = match[2];
|
|
17
|
-
const u = new
|
|
15
|
+
const u = new URL(`https://www.gstatic.com/firebasejs/${version}/${sdkName}`);
|
|
18
16
|
const c = new apiv2_1.Client({ urlPrefix: u.origin, auth: false });
|
|
19
17
|
const headers = {};
|
|
20
18
|
const acceptEncoding = req.headers["accept-encoding"];
|
|
@@ -44,9 +42,9 @@ function initMiddleware(init) {
|
|
|
44
42
|
});
|
|
45
43
|
}
|
|
46
44
|
else if (parsedUrl.pathname === "/__/firebase/init.js") {
|
|
47
|
-
const query =
|
|
45
|
+
const query = parsedUrl.searchParams;
|
|
48
46
|
res.setHeader("Content-Type", "application/javascript");
|
|
49
|
-
if (query
|
|
47
|
+
if (query.get("useEmulator") === "true") {
|
|
50
48
|
res.end(init.emulatorsJs);
|
|
51
49
|
}
|
|
52
50
|
else {
|
|
@@ -63,4 +61,3 @@ function initMiddleware(init) {
|
|
|
63
61
|
};
|
|
64
62
|
}
|
|
65
63
|
exports.initMiddleware = initMiddleware;
|
|
66
|
-
//# sourceMappingURL=initMiddleware.js.map
|
package/lib/hosting/proxy.js
CHANGED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ensureLatestRevisionTagged = exports.setRewriteTags = exports.setGarbageCollectionThreshold = exports.gcTagsForServices = exports.TODO_TAG_NAME = void 0;
|
|
4
|
+
const run = require("../gcp/run");
|
|
5
|
+
const api = require("./api");
|
|
6
|
+
const error_1 = require("../error");
|
|
7
|
+
const functional_1 = require("../functional");
|
|
8
|
+
exports.TODO_TAG_NAME = "this is an invalid tag name so it cannot be real";
|
|
9
|
+
async function gcTagsForServices(project, services) {
|
|
10
|
+
var _a;
|
|
11
|
+
const validTagsByServiceByRegion = {};
|
|
12
|
+
const sites = await api.listSites(project);
|
|
13
|
+
const allVersionsNested = await Promise.all(sites.map((site) => api.listVersions(site.name)));
|
|
14
|
+
const activeVersions = [...(0, functional_1.flattenArray)(allVersionsNested)].filter((version) => {
|
|
15
|
+
return version.status === "CREATED" || version.status === "FINALIZED";
|
|
16
|
+
});
|
|
17
|
+
for (const version of activeVersions) {
|
|
18
|
+
for (const rewrite of ((_a = version === null || version === void 0 ? void 0 : version.config) === null || _a === void 0 ? void 0 : _a.rewrites) || []) {
|
|
19
|
+
if (!("run" in rewrite) || !rewrite.run.tag) {
|
|
20
|
+
continue;
|
|
21
|
+
}
|
|
22
|
+
validTagsByServiceByRegion[rewrite.run.region] =
|
|
23
|
+
validTagsByServiceByRegion[rewrite.run.region] || {};
|
|
24
|
+
validTagsByServiceByRegion[rewrite.run.region][rewrite.run.serviceId] =
|
|
25
|
+
validTagsByServiceByRegion[rewrite.run.region][rewrite.run.serviceId] || new Set();
|
|
26
|
+
validTagsByServiceByRegion[rewrite.run.region][rewrite.run.serviceId].add(rewrite.run.tag);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
for (const service of services) {
|
|
30
|
+
const { region, serviceId } = run.gcpIds(service);
|
|
31
|
+
service.spec.traffic = (service.spec.traffic || []).filter((traffic) => {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
if (traffic.percent) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
if (!traffic.tag) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
if (!traffic.tag.startsWith("fh-")) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
if ((_b = (_a = validTagsByServiceByRegion[region]) === null || _a === void 0 ? void 0 : _a[serviceId]) === null || _b === void 0 ? void 0 : _b.has(traffic.tag)) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.gcTagsForServices = gcTagsForServices;
|
|
50
|
+
let garbageCollectionThreshold = 500;
|
|
51
|
+
function setGarbageCollectionThreshold(threshold) {
|
|
52
|
+
garbageCollectionThreshold = threshold;
|
|
53
|
+
}
|
|
54
|
+
exports.setGarbageCollectionThreshold = setGarbageCollectionThreshold;
|
|
55
|
+
async function setRewriteTags(rewrites, project, version) {
|
|
56
|
+
const services = await Promise.all(rewrites
|
|
57
|
+
.map((rewrite) => {
|
|
58
|
+
if (!("run" in rewrite)) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
if (rewrite.run.tag !== exports.TODO_TAG_NAME) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
return run.getService(`projects/${project}/locations/${rewrite.run.region}/services/${rewrite.run.serviceId}`);
|
|
65
|
+
})
|
|
66
|
+
.filter((s) => s !== null));
|
|
67
|
+
if (!services.length) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const needsGC = services
|
|
71
|
+
.map((service) => {
|
|
72
|
+
return service.spec.traffic.filter((traffic) => traffic.tag).length;
|
|
73
|
+
})
|
|
74
|
+
.some((length) => length >= garbageCollectionThreshold);
|
|
75
|
+
if (needsGC) {
|
|
76
|
+
await exports.gcTagsForServices(project, services);
|
|
77
|
+
}
|
|
78
|
+
const tags = await exports.ensureLatestRevisionTagged(services, `fh-${version}`);
|
|
79
|
+
for (const rewrite of rewrites) {
|
|
80
|
+
if (!("run" in rewrite) || rewrite.run.tag !== exports.TODO_TAG_NAME) {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
const tag = tags[rewrite.run.region][rewrite.run.serviceId];
|
|
84
|
+
rewrite.run.tag = tag;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.setRewriteTags = setRewriteTags;
|
|
88
|
+
async function ensureLatestRevisionTagged(services, defaultTag) {
|
|
89
|
+
var _a;
|
|
90
|
+
const tags = {};
|
|
91
|
+
const updateServices = [];
|
|
92
|
+
for (const service of services) {
|
|
93
|
+
const { projectNumber, region, serviceId } = run.gcpIds(service);
|
|
94
|
+
tags[region] = tags[region] || {};
|
|
95
|
+
const latestRevisionTarget = (_a = service.status) === null || _a === void 0 ? void 0 : _a.traffic.find((target) => target.latestRevision);
|
|
96
|
+
if (!latestRevisionTarget) {
|
|
97
|
+
throw new error_1.FirebaseError(`Assertion failed: service ${service.metadata.name} has no latestRevision traffic target`);
|
|
98
|
+
}
|
|
99
|
+
const latestRevision = latestRevisionTarget.revisionName;
|
|
100
|
+
const alreadyTagged = service.spec.traffic.find((target) => target.revisionName === latestRevision && target.tag);
|
|
101
|
+
if (alreadyTagged) {
|
|
102
|
+
tags[region][serviceId] = alreadyTagged.tag;
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
tags[region][serviceId] = defaultTag;
|
|
106
|
+
service.spec.traffic.push({
|
|
107
|
+
revisionName: latestRevision,
|
|
108
|
+
tag: defaultTag,
|
|
109
|
+
});
|
|
110
|
+
updateServices.push(run.updateService(`projects/${projectNumber}/locations/${region}/services/${serviceId}`, service));
|
|
111
|
+
}
|
|
112
|
+
await Promise.all(updateServices);
|
|
113
|
+
return tags;
|
|
114
|
+
}
|
|
115
|
+
exports.ensureLatestRevisionTagged = ensureLatestRevisionTagged;
|
package/lib/index.js
CHANGED
|
@@ -85,6 +85,9 @@ async function doSetup(setup, config) {
|
|
|
85
85
|
},
|
|
86
86
|
]);
|
|
87
87
|
}
|
|
88
|
+
if (setup.config.emulators.singleProjectMode === undefined) {
|
|
89
|
+
setup.config.emulators.singleProjectMode = true;
|
|
90
|
+
}
|
|
88
91
|
if (selections.download) {
|
|
89
92
|
for (const selected of selections.emulators) {
|
|
90
93
|
if ((0, types_1.isDownloadableEmulator)(selected)) {
|
|
@@ -97,4 +100,3 @@ async function doSetup(setup, config) {
|
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
102
|
exports.doSetup = doSetup;
|
|
100
|
-
//# sourceMappingURL=emulators.js.map
|
|
@@ -21,4 +21,3 @@ var remoteconfig_1 = require("./remoteconfig");
|
|
|
21
21
|
Object.defineProperty(exports, "remoteconfig", { enumerable: true, get: function () { return remoteconfig_1.doSetup; } });
|
|
22
22
|
var github_1 = require("./hosting/github");
|
|
23
23
|
Object.defineProperty(exports, "hostingGithub", { enumerable: true, get: function () { return github_1.initGitHub; } });
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
package/lib/init/index.js
CHANGED
package/lib/listFiles.js
CHANGED
package/lib/loadCJSON.js
CHANGED
package/lib/localFunction.js
CHANGED
package/lib/logError.js
CHANGED
package/lib/logger.js
CHANGED
package/lib/management/apps.js
CHANGED
package/lib/metaprogramming.js
CHANGED
package/lib/operation-poller.js
CHANGED
package/lib/options.js
CHANGED
package/lib/parseBoltRules.js
CHANGED
package/lib/profileReport.js
CHANGED
package/lib/profiler.js
CHANGED
package/lib/projectPath.js
CHANGED
package/lib/projectUtils.js
CHANGED
package/lib/prompt.js
CHANGED