firebase-tools-with-isolate 12.9.1-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/LICENSE +21 -0
- package/README.md +48 -0
- package/lib/accountExporter.js +207 -0
- package/lib/accountImporter.js +305 -0
- package/lib/api.js +84 -0
- package/lib/apiv2.js +353 -0
- package/lib/appdistribution/client.js +193 -0
- package/lib/appdistribution/distribution.js +51 -0
- package/lib/appdistribution/options-parser-util.js +51 -0
- package/lib/archiveDirectory.js +120 -0
- package/lib/auth.js +535 -0
- package/lib/bin/firebase.js +132 -0
- package/lib/checkMinRequiredVersion.js +14 -0
- package/lib/checkValidTargetFilters.js +46 -0
- package/lib/command.js +250 -0
- package/lib/commands/appdistribution-distribute.js +121 -0
- package/lib/commands/appdistribution-group-create.js +19 -0
- package/lib/commands/appdistribution-group-delete.js +24 -0
- package/lib/commands/appdistribution-testers-add.js +24 -0
- package/lib/commands/appdistribution-testers-remove.js +40 -0
- package/lib/commands/apps-android-sha-create.js +29 -0
- package/lib/commands/apps-android-sha-delete.js +16 -0
- package/lib/commands/apps-android-sha-list.js +42 -0
- package/lib/commands/apps-create.js +166 -0
- package/lib/commands/apps-list.js +53 -0
- package/lib/commands/apps-sdkconfig.js +103 -0
- package/lib/commands/auth-export.js +44 -0
- package/lib/commands/auth-import.js +114 -0
- package/lib/commands/crashlytics-mappingfile-generateid.js +26 -0
- package/lib/commands/crashlytics-mappingfile-upload.js +46 -0
- package/lib/commands/crashlytics-symbols-upload.js +78 -0
- package/lib/commands/database-get.js +122 -0
- package/lib/commands/database-import.js +85 -0
- package/lib/commands/database-instances-create.js +29 -0
- package/lib/commands/database-instances-list.js +53 -0
- package/lib/commands/database-profile.js +46 -0
- package/lib/commands/database-push.js +63 -0
- package/lib/commands/database-remove.js +42 -0
- package/lib/commands/database-rules-canary.js +24 -0
- package/lib/commands/database-rules-get.js +22 -0
- package/lib/commands/database-rules-list.js +36 -0
- package/lib/commands/database-rules-release.js +24 -0
- package/lib/commands/database-rules-stage.js +26 -0
- package/lib/commands/database-set.js +68 -0
- package/lib/commands/database-settings-get.js +44 -0
- package/lib/commands/database-settings-set.js +46 -0
- package/lib/commands/database-update.js +69 -0
- package/lib/commands/deploy.js +101 -0
- package/lib/commands/emulators-exec.js +19 -0
- package/lib/commands/emulators-export.js +14 -0
- package/lib/commands/emulators-start.js +115 -0
- package/lib/commands/experimental-functions-shell.js +13 -0
- package/lib/commands/experiments-describe.js +31 -0
- package/lib/commands/experiments-disable.js +28 -0
- package/lib/commands/experiments-enable.js +28 -0
- package/lib/commands/experiments-list.js +29 -0
- package/lib/commands/ext-configure.js +110 -0
- package/lib/commands/ext-dev-deprecate.js +68 -0
- package/lib/commands/ext-dev-init.js +148 -0
- package/lib/commands/ext-dev-list.js +47 -0
- package/lib/commands/ext-dev-publish.js +32 -0
- package/lib/commands/ext-dev-register.js +50 -0
- package/lib/commands/ext-dev-undeprecate.js +57 -0
- package/lib/commands/ext-dev-upload.js +88 -0
- package/lib/commands/ext-dev-usage.js +141 -0
- package/lib/commands/ext-export.js +68 -0
- package/lib/commands/ext-info.js +118 -0
- package/lib/commands/ext-install.js +167 -0
- package/lib/commands/ext-list.js +18 -0
- package/lib/commands/ext-uninstall.js +29 -0
- package/lib/commands/ext-update.js +105 -0
- package/lib/commands/ext.js +41 -0
- package/lib/commands/firestore-databases-create.js +55 -0
- package/lib/commands/firestore-databases-delete.js +39 -0
- package/lib/commands/firestore-databases-get.js +25 -0
- package/lib/commands/firestore-databases-list.js +24 -0
- package/lib/commands/firestore-databases-update.js +59 -0
- package/lib/commands/firestore-delete.js +88 -0
- package/lib/commands/firestore-indexes-list.js +38 -0
- package/lib/commands/firestore-locations.js +24 -0
- package/lib/commands/frameworks-backends-create.js +14 -0
- package/lib/commands/frameworks-backends-delete.js +98 -0
- package/lib/commands/frameworks-backends-get.js +80 -0
- package/lib/commands/frameworks-backends-list.js +68 -0
- package/lib/commands/functions-config-clone.js +53 -0
- package/lib/commands/functions-config-export.js +118 -0
- package/lib/commands/functions-config-get.js +35 -0
- package/lib/commands/functions-config-set.js +43 -0
- package/lib/commands/functions-config-unset.js +42 -0
- package/lib/commands/functions-delete.js +95 -0
- package/lib/commands/functions-deletegcfartifacts.js +44 -0
- package/lib/commands/functions-list.js +47 -0
- package/lib/commands/functions-log.js +34 -0
- package/lib/commands/functions-secrets-access.js +22 -0
- package/lib/commands/functions-secrets-destroy.js +64 -0
- package/lib/commands/functions-secrets-get.js +28 -0
- package/lib/commands/functions-secrets-prune.js +57 -0
- package/lib/commands/functions-secrets-set.js +108 -0
- package/lib/commands/functions-shell.js +15 -0
- package/lib/commands/help.js +27 -0
- package/lib/commands/hosting-channel-create.js +78 -0
- package/lib/commands/hosting-channel-delete.js +47 -0
- package/lib/commands/hosting-channel-deploy.js +146 -0
- package/lib/commands/hosting-channel-list.js +40 -0
- package/lib/commands/hosting-channel-open.js +48 -0
- package/lib/commands/hosting-clone.js +103 -0
- package/lib/commands/hosting-disable.js +31 -0
- package/lib/commands/hosting-sites-create.js +34 -0
- package/lib/commands/hosting-sites-delete.js +39 -0
- package/lib/commands/hosting-sites-get.js +27 -0
- package/lib/commands/hosting-sites-list.js +28 -0
- package/lib/commands/index.js +191 -0
- package/lib/commands/init.js +195 -0
- package/lib/commands/internaltesting-frameworks-compose.js +22 -0
- package/lib/commands/internaltesting-functions-discover.js +25 -0
- package/lib/commands/login-add.js +32 -0
- package/lib/commands/login-ci.js +25 -0
- package/lib/commands/login-list.js +28 -0
- package/lib/commands/login-use.js +24 -0
- package/lib/commands/login.js +57 -0
- package/lib/commands/logout.js +76 -0
- package/lib/commands/open.js +100 -0
- package/lib/commands/projects-addfirebase.js +19 -0
- package/lib/commands/projects-create.js +37 -0
- package/lib/commands/projects-list.js +61 -0
- package/lib/commands/remoteconfig-get.js +68 -0
- package/lib/commands/remoteconfig-rollback.js +48 -0
- package/lib/commands/remoteconfig-versions-list.js +34 -0
- package/lib/commands/serve.js +60 -0
- package/lib/commands/setup-emulators-database.js +12 -0
- package/lib/commands/setup-emulators-firestore.js +12 -0
- package/lib/commands/setup-emulators-pubsub.js +12 -0
- package/lib/commands/setup-emulators-storage.js +12 -0
- package/lib/commands/setup-emulators-ui.js +12 -0
- package/lib/commands/target-apply.js +24 -0
- package/lib/commands/target-clear.js +20 -0
- package/lib/commands/target-remove.js +20 -0
- package/lib/commands/target.js +34 -0
- package/lib/commands/use.js +162 -0
- package/lib/config.js +227 -0
- package/lib/configstore.js +6 -0
- package/lib/crashlytics/buildToolsJarHelper.js +51 -0
- package/lib/database/api.js +19 -0
- package/lib/database/import.js +218 -0
- package/lib/database/listRemote.js +37 -0
- package/lib/database/metadata.js +67 -0
- package/lib/database/remove.js +88 -0
- package/lib/database/removeRemote.js +51 -0
- package/lib/database/rulesConfig.js +79 -0
- package/lib/database/settings.js +62 -0
- package/lib/defaultCredentials.js +80 -0
- package/lib/deploy/database/deploy.js +5 -0
- package/lib/deploy/database/index.js +9 -0
- package/lib/deploy/database/prepare.js +54 -0
- package/lib/deploy/database/release.js +30 -0
- package/lib/deploy/extensions/args.js +2 -0
- package/lib/deploy/extensions/deploy.js +49 -0
- package/lib/deploy/extensions/deploymentSummary.js +56 -0
- package/lib/deploy/extensions/errors.js +31 -0
- package/lib/deploy/extensions/index.js +9 -0
- package/lib/deploy/extensions/planner.js +157 -0
- package/lib/deploy/extensions/prepare.js +110 -0
- package/lib/deploy/extensions/release.js +57 -0
- package/lib/deploy/extensions/secrets.js +150 -0
- package/lib/deploy/extensions/tasks.js +156 -0
- package/lib/deploy/extensions/v2FunctionHelper.js +53 -0
- package/lib/deploy/extensions/validate.js +17 -0
- package/lib/deploy/firestore/deploy.js +44 -0
- package/lib/deploy/firestore/index.js +9 -0
- package/lib/deploy/firestore/prepare.js +59 -0
- package/lib/deploy/firestore/release.js +22 -0
- package/lib/deploy/functions/args.js +2 -0
- package/lib/deploy/functions/backend.js +316 -0
- package/lib/deploy/functions/build.js +311 -0
- package/lib/deploy/functions/cache/applyHash.js +22 -0
- package/lib/deploy/functions/cache/hash.js +30 -0
- package/lib/deploy/functions/cel.js +365 -0
- package/lib/deploy/functions/checkIam.js +183 -0
- package/lib/deploy/functions/containerCleaner.js +305 -0
- package/lib/deploy/functions/deploy.js +108 -0
- package/lib/deploy/functions/ensure.js +105 -0
- package/lib/deploy/functions/ensureCloudBuildEnabled.js +1 -0
- package/lib/deploy/functions/functionsDeployHelper.js +134 -0
- package/lib/deploy/functions/index.js +9 -0
- package/lib/deploy/functions/params.js +517 -0
- package/lib/deploy/functions/prepare.js +304 -0
- package/lib/deploy/functions/prepareFunctionsUpload.js +113 -0
- package/lib/deploy/functions/pricing.js +171 -0
- package/lib/deploy/functions/prompts.js +157 -0
- package/lib/deploy/functions/release/executor.js +51 -0
- package/lib/deploy/functions/release/fabricator.js +584 -0
- package/lib/deploy/functions/release/index.js +93 -0
- package/lib/deploy/functions/release/planner.js +205 -0
- package/lib/deploy/functions/release/reporter.js +196 -0
- package/lib/deploy/functions/release/sourceTokenScraper.js +67 -0
- package/lib/deploy/functions/release/timer.js +14 -0
- package/lib/deploy/functions/runtimes/discovery/index.js +85 -0
- package/lib/deploy/functions/runtimes/discovery/mockDiscoveryServer.js +14 -0
- package/lib/deploy/functions/runtimes/discovery/parsing.js +95 -0
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +296 -0
- package/lib/deploy/functions/runtimes/index.js +59 -0
- package/lib/deploy/functions/runtimes/node/extractTriggers.js +23 -0
- package/lib/deploy/functions/runtimes/node/index.js +173 -0
- package/lib/deploy/functions/runtimes/node/parseRuntimeAndValidateSDK.js +57 -0
- package/lib/deploy/functions/runtimes/node/parseTriggers.js +332 -0
- package/lib/deploy/functions/runtimes/node/triggerParser.js +72 -0
- package/lib/deploy/functions/runtimes/node/validate.js +34 -0
- package/lib/deploy/functions/runtimes/node/versioning.js +95 -0
- package/lib/deploy/functions/runtimes/python/index.js +154 -0
- package/lib/deploy/functions/services/auth.js +95 -0
- package/lib/deploy/functions/services/database.js +14 -0
- package/lib/deploy/functions/services/firebaseAlerts.js +14 -0
- package/lib/deploy/functions/services/firestore.js +17 -0
- package/lib/deploy/functions/services/index.js +117 -0
- package/lib/deploy/functions/services/remoteConfig.js +14 -0
- package/lib/deploy/functions/services/storage.js +44 -0
- package/lib/deploy/functions/services/testLab.js +14 -0
- package/lib/deploy/functions/triggerRegionHelper.js +16 -0
- package/lib/deploy/functions/validate.js +198 -0
- package/lib/deploy/hosting/args.js +2 -0
- package/lib/deploy/hosting/context.js +2 -0
- package/lib/deploy/hosting/convertConfig.js +181 -0
- package/lib/deploy/hosting/deploy.js +85 -0
- package/lib/deploy/hosting/hashcache.js +48 -0
- package/lib/deploy/hosting/index.js +9 -0
- package/lib/deploy/hosting/prepare.js +162 -0
- package/lib/deploy/hosting/release.js +40 -0
- package/lib/deploy/hosting/uploader.js +207 -0
- package/lib/deploy/index.js +127 -0
- package/lib/deploy/lifecycleHooks.js +151 -0
- package/lib/deploy/remoteconfig/deploy.js +4 -0
- package/lib/deploy/remoteconfig/functions.js +69 -0
- package/lib/deploy/remoteconfig/index.js +9 -0
- package/lib/deploy/remoteconfig/prepare.js +23 -0
- package/lib/deploy/remoteconfig/release.js +14 -0
- package/lib/deploy/storage/deploy.js +12 -0
- package/lib/deploy/storage/index.js +9 -0
- package/lib/deploy/storage/prepare.js +52 -0
- package/lib/deploy/storage/release.js +27 -0
- package/lib/deploymentTool.js +22 -0
- package/lib/detectProjectRoot.js +28 -0
- package/lib/downloadUtils.js +37 -0
- package/lib/dynamicImport.js +22 -0
- package/lib/emulator/ExpressBasedEmulator.js +92 -0
- package/lib/emulator/adminSdkConfig.js +65 -0
- package/lib/emulator/auth/apiSpec.js +8138 -0
- package/lib/emulator/auth/cloudFunctions.js +70 -0
- package/lib/emulator/auth/errors.js +77 -0
- package/lib/emulator/auth/handlers.js +281 -0
- package/lib/emulator/auth/index.js +146 -0
- package/lib/emulator/auth/operations.js +2145 -0
- package/lib/emulator/auth/schema.js +2 -0
- package/lib/emulator/auth/server.js +474 -0
- package/lib/emulator/auth/state.js +668 -0
- package/lib/emulator/auth/types.js +2 -0
- package/lib/emulator/auth/utils.js +84 -0
- package/lib/emulator/auth/widget_ui.js +620 -0
- package/lib/emulator/commandUtils.js +380 -0
- package/lib/emulator/constants.js +111 -0
- package/lib/emulator/controller.js +654 -0
- package/lib/emulator/databaseEmulator.js +172 -0
- package/lib/emulator/dns.js +49 -0
- package/lib/emulator/download.js +88 -0
- package/lib/emulator/downloadableEmulators.js +384 -0
- package/lib/emulator/emulatorLogger.js +237 -0
- package/lib/emulator/env.js +37 -0
- package/lib/emulator/eventarcEmulator.js +143 -0
- package/lib/emulator/eventarcEmulatorUtils.js +62 -0
- package/lib/emulator/events/types.js +28 -0
- package/lib/emulator/extensions/postinstall.js +41 -0
- package/lib/emulator/extensions/validation.js +72 -0
- package/lib/emulator/extensionsEmulator.js +254 -0
- package/lib/emulator/firestoreEmulator.js +96 -0
- package/lib/emulator/functionsEmulator.js +1038 -0
- package/lib/emulator/functionsEmulatorRuntime.js +730 -0
- package/lib/emulator/functionsEmulatorShared.js +322 -0
- package/lib/emulator/functionsEmulatorShell.js +88 -0
- package/lib/emulator/functionsEmulatorUtils.js +91 -0
- package/lib/emulator/functionsRuntimeWorker.js +314 -0
- package/lib/emulator/hostingEmulator.js +40 -0
- package/lib/emulator/hub.js +162 -0
- package/lib/emulator/hubClient.js +53 -0
- package/lib/emulator/hubExport.js +208 -0
- package/lib/emulator/loggingEmulator.js +118 -0
- package/lib/emulator/portUtils.js +323 -0
- package/lib/emulator/pubsubEmulator.js +186 -0
- package/lib/emulator/registry.js +122 -0
- package/lib/emulator/shared/request.js +19 -0
- package/lib/emulator/storage/apis/firebase.js +500 -0
- package/lib/emulator/storage/apis/gcloud.js +405 -0
- package/lib/emulator/storage/apis/shared.js +44 -0
- package/lib/emulator/storage/cloudFunctions.js +88 -0
- package/lib/emulator/storage/crc.js +33 -0
- package/lib/emulator/storage/errors.js +9 -0
- package/lib/emulator/storage/files.js +410 -0
- package/lib/emulator/storage/index.js +98 -0
- package/lib/emulator/storage/metadata.js +349 -0
- package/lib/emulator/storage/multipart.js +63 -0
- package/lib/emulator/storage/persistence.js +92 -0
- package/lib/emulator/storage/rules/config.js +53 -0
- package/lib/emulator/storage/rules/expressionValue.js +2 -0
- package/lib/emulator/storage/rules/manager.js +88 -0
- package/lib/emulator/storage/rules/runtime.js +363 -0
- package/lib/emulator/storage/rules/types.js +19 -0
- package/lib/emulator/storage/rules/utils.js +60 -0
- package/lib/emulator/storage/server.js +113 -0
- package/lib/emulator/storage/upload.js +143 -0
- package/lib/emulator/types.js +200 -0
- package/lib/emulator/ui.js +52 -0
- package/lib/emulator/workQueue.js +114 -0
- package/lib/ensureApiEnabled.js +110 -0
- package/lib/ensureCloudResourceLocation.js +12 -0
- package/lib/error.js +29 -0
- package/lib/errorOut.js +23 -0
- package/lib/experiments.js +153 -0
- package/lib/extensions/askUserForEventsConfig.js +97 -0
- package/lib/extensions/askUserForParam.js +338 -0
- package/lib/extensions/billingMigrationHelper.js +61 -0
- package/lib/extensions/change-log.js +95 -0
- package/lib/extensions/checkProjectBilling.js +82 -0
- package/lib/extensions/diagnose.js +56 -0
- package/lib/extensions/displayExtensionInfo.js +175 -0
- package/lib/extensions/emulator/optionsHelper.js +73 -0
- package/lib/extensions/emulator/specHelper.js +102 -0
- package/lib/extensions/emulator/triggerHelper.js +105 -0
- package/lib/extensions/etags.js +28 -0
- package/lib/extensions/export.js +64 -0
- package/lib/extensions/extensionsApi.js +361 -0
- package/lib/extensions/extensionsHelper.js +862 -0
- package/lib/extensions/listExtensions.js +53 -0
- package/lib/extensions/localHelper.js +67 -0
- package/lib/extensions/manifest.js +205 -0
- package/lib/extensions/metricsTypeDef.js +2 -0
- package/lib/extensions/metricsUtils.js +98 -0
- package/lib/extensions/paramHelper.js +140 -0
- package/lib/extensions/provisioningHelper.js +109 -0
- package/lib/extensions/publishHelpers.js +8 -0
- package/lib/extensions/publisherApi.js +214 -0
- package/lib/extensions/refs.js +67 -0
- package/lib/extensions/resolveSource.js +24 -0
- package/lib/extensions/secretsUtils.js +60 -0
- package/lib/extensions/tos.js +90 -0
- package/lib/extensions/types.js +25 -0
- package/lib/extensions/updateHelper.js +127 -0
- package/lib/extensions/utils.js +63 -0
- package/lib/extensions/versionHelper.js +14 -0
- package/lib/extensions/warnings.js +44 -0
- package/lib/fetchMOTD.js +46 -0
- package/lib/fetchWebSetup.js +75 -0
- package/lib/filterTargets.js +34 -0
- package/lib/firebaseConfig.js +2 -0
- package/lib/firebaseConfigValidate.js +29 -0
- package/lib/firestore/api-sort.js +118 -0
- package/lib/firestore/api-spec.js +2 -0
- package/lib/firestore/api-types.js +60 -0
- package/lib/firestore/api.js +566 -0
- package/lib/firestore/checkDatabaseType.js +18 -0
- package/lib/firestore/delete.js +347 -0
- package/lib/firestore/encodeFirestoreValue.js +59 -0
- package/lib/firestore/fsConfig.js +74 -0
- package/lib/firestore/options.js +2 -0
- package/lib/firestore/util.js +39 -0
- package/lib/firestore/validator.js +38 -0
- package/lib/frameworks/angular/index.js +193 -0
- package/lib/frameworks/angular/interfaces.js +2 -0
- package/lib/frameworks/angular/utils.js +431 -0
- package/lib/frameworks/astro/index.js +73 -0
- package/lib/frameworks/astro/utils.js +40 -0
- package/lib/frameworks/compose/discover/filesystem.js +52 -0
- package/lib/frameworks/compose/discover/frameworkMatcher.js +76 -0
- package/lib/frameworks/compose/discover/frameworkSpec.js +39 -0
- package/lib/frameworks/compose/discover/index.js +32 -0
- package/lib/frameworks/compose/discover/runtime/node.js +149 -0
- package/lib/frameworks/compose/discover/types.js +2 -0
- package/lib/frameworks/compose/driver/docker.js +187 -0
- package/lib/frameworks/compose/driver/hooks.js +22 -0
- package/lib/frameworks/compose/driver/index.js +16 -0
- package/lib/frameworks/compose/driver/local.js +51 -0
- package/lib/frameworks/compose/index.js +31 -0
- package/lib/frameworks/compose/interfaces.js +21 -0
- package/lib/frameworks/constants.js +40 -0
- package/lib/frameworks/docs/index.js +2 -0
- package/lib/frameworks/express/index.js +102 -0
- package/lib/frameworks/flutter/constants.js +72 -0
- package/lib/frameworks/flutter/index.js +58 -0
- package/lib/frameworks/flutter/utils.js +11 -0
- package/lib/frameworks/frameworks.js +31 -0
- package/lib/frameworks/index.js +421 -0
- package/lib/frameworks/interfaces.js +2 -0
- package/lib/frameworks/lit/index.js +23 -0
- package/lib/frameworks/next/constants.js +12 -0
- package/lib/frameworks/next/index.js +403 -0
- package/lib/frameworks/next/interfaces.js +2 -0
- package/lib/frameworks/next/utils.js +197 -0
- package/lib/frameworks/nuxt/index.js +92 -0
- package/lib/frameworks/nuxt/interfaces.js +2 -0
- package/lib/frameworks/nuxt/utils.js +23 -0
- package/lib/frameworks/nuxt2/index.js +79 -0
- package/lib/frameworks/preact/index.js +23 -0
- package/lib/frameworks/react/index.js +23 -0
- package/lib/frameworks/svelte/index.js +23 -0
- package/lib/frameworks/sveltekit/index.js +54 -0
- package/lib/frameworks/sveltekit/interfaces.js +2 -0
- package/lib/frameworks/utils.js +260 -0
- package/lib/frameworks/vite/index.js +99 -0
- package/lib/fsAsync.js +43 -0
- package/lib/fsutils.js +35 -0
- package/lib/functional.js +87 -0
- package/lib/functions/constants.js +14 -0
- package/lib/functions/ensureTargeted.js +21 -0
- package/lib/functions/env.js +246 -0
- package/lib/functions/events/index.js +7 -0
- package/lib/functions/events/v1.js +6 -0
- package/lib/functions/events/v2.js +25 -0
- package/lib/functions/functionslog.js +35 -0
- package/lib/functions/projectConfig.js +68 -0
- package/lib/functions/python.js +23 -0
- package/lib/functions/runtimeConfigExport.js +141 -0
- package/lib/functions/secrets.js +239 -0
- package/lib/functionsConfig.js +157 -0
- package/lib/functionsConfigClone.js +68 -0
- package/lib/functionsShellCommandAction.js +112 -0
- package/lib/gcp/artifactregistry.js +16 -0
- package/lib/gcp/auth.js +16 -0
- package/lib/gcp/cloudbilling.js +25 -0
- package/lib/gcp/cloudbuild.js +50 -0
- package/lib/gcp/cloudfunctions.js +351 -0
- package/lib/gcp/cloudfunctionsv2.js +389 -0
- package/lib/gcp/cloudlogging.js +25 -0
- package/lib/gcp/cloudmonitoring.js +77 -0
- package/lib/gcp/cloudscheduler.js +155 -0
- package/lib/gcp/cloudtasks.js +162 -0
- package/lib/gcp/docker.js +80 -0
- package/lib/gcp/eventarc.js +42 -0
- package/lib/gcp/firestore.js +47 -0
- package/lib/gcp/frameworks.js +40 -0
- package/lib/gcp/iam.js +76 -0
- package/lib/gcp/identityPlatform.js +44 -0
- package/lib/gcp/index.js +11 -0
- package/lib/gcp/location.js +44 -0
- package/lib/gcp/proto.js +130 -0
- package/lib/gcp/pubsub.js +34 -0
- package/lib/gcp/resourceManager.js +74 -0
- package/lib/gcp/rules.js +156 -0
- package/lib/gcp/run.js +157 -0
- package/lib/gcp/runtimeconfig.js +127 -0
- package/lib/gcp/secretManager.js +207 -0
- package/lib/gcp/serviceusage.js +24 -0
- package/lib/gcp/storage.js +111 -0
- package/lib/getDefaultDatabaseInstance.js +10 -0
- package/lib/getDefaultHostingSite.js +32 -0
- package/lib/getProjectNumber.js +15 -0
- package/lib/handlePreviewToggles.js +38 -0
- package/lib/hosting/api.js +289 -0
- package/lib/hosting/cloudRunProxy.js +52 -0
- package/lib/hosting/config.js +189 -0
- package/lib/hosting/expireUtils.js +33 -0
- package/lib/hosting/functionsProxy.js +42 -0
- package/lib/hosting/implicitInit.js +58 -0
- package/lib/hosting/initMiddleware.js +63 -0
- package/lib/hosting/interactive.js +75 -0
- package/lib/hosting/options.js +3 -0
- package/lib/hosting/proxy.js +143 -0
- package/lib/hosting/runTags.js +114 -0
- package/lib/index.js +71 -0
- package/lib/init/features/account.js +62 -0
- package/lib/init/features/database.js +133 -0
- package/lib/init/features/emulators.js +102 -0
- package/lib/init/features/extensions/index.js +16 -0
- package/lib/init/features/firestore/index.js +36 -0
- package/lib/init/features/firestore/indexes.js +71 -0
- package/lib/init/features/firestore/rules.js +80 -0
- package/lib/init/features/frameworks/constants.js +7 -0
- package/lib/init/features/frameworks/index.js +116 -0
- package/lib/init/features/frameworks/repo.js +125 -0
- package/lib/init/features/functions/index.js +165 -0
- package/lib/init/features/functions/javascript.js +46 -0
- package/lib/init/features/functions/npm-dependencies.js +37 -0
- package/lib/init/features/functions/python.js +48 -0
- package/lib/init/features/functions/typescript.js +61 -0
- package/lib/init/features/hosting/github.js +397 -0
- package/lib/init/features/hosting/index.js +183 -0
- package/lib/init/features/index.js +27 -0
- package/lib/init/features/project.js +101 -0
- package/lib/init/features/remoteconfig.js +32 -0
- package/lib/init/features/storage.js +27 -0
- package/lib/init/index.js +45 -0
- package/lib/listFiles.js +15 -0
- package/lib/loadCJSON.js +17 -0
- package/lib/localFunction.js +222 -0
- package/lib/logError.js +29 -0
- package/lib/logger.js +31 -0
- package/lib/management/apps.js +280 -0
- package/lib/management/database.js +184 -0
- package/lib/management/projects.js +312 -0
- package/lib/metaprogramming.js +2 -0
- package/lib/monospace/index.js +82 -0
- package/lib/monospace/interfaces.js +2 -0
- package/lib/operation-poller.js +59 -0
- package/lib/options.js +2 -0
- package/lib/parseBoltRules.js +29 -0
- package/lib/profileReport.js +577 -0
- package/lib/profiler.js +99 -0
- package/lib/projectPath.js +16 -0
- package/lib/projectUtils.js +59 -0
- package/lib/prompt.js +50 -0
- package/lib/rc.js +165 -0
- package/lib/remoteconfig/get.js +49 -0
- package/lib/remoteconfig/interfaces.js +17 -0
- package/lib/remoteconfig/rollback.js +22 -0
- package/lib/remoteconfig/versionslist.js +33 -0
- package/lib/requireAuth.js +81 -0
- package/lib/requireConfig.js +13 -0
- package/lib/requireDatabaseInstance.js +26 -0
- package/lib/requireHostingSite.js +12 -0
- package/lib/requireInteractive.js +12 -0
- package/lib/requirePermissions.js +30 -0
- package/lib/responseToError.js +58 -0
- package/lib/rtdb.js +35 -0
- package/lib/rulesDeploy.js +180 -0
- package/lib/scopes.js +10 -0
- package/lib/serve/functions.js +64 -0
- package/lib/serve/hosting.js +115 -0
- package/lib/serve/index.js +53 -0
- package/lib/shortenUrl.js +29 -0
- package/lib/throttler/errors/retries-exhausted-error.js +11 -0
- package/lib/throttler/errors/task-error.js +9 -0
- package/lib/throttler/errors/timeout-error.js +9 -0
- package/lib/throttler/queue.js +23 -0
- package/lib/throttler/stack.js +28 -0
- package/lib/throttler/throttler.js +230 -0
- package/lib/track.js +196 -0
- package/lib/unzip.js +126 -0
- package/lib/utils.js +488 -0
- package/package.json +239 -0
- package/schema/extension-yaml.json +432 -0
- package/schema/firebase-config.json +2619 -0
- package/standalone/check.js +6 -0
- package/standalone/config.template.js +19 -0
- package/standalone/firepit.js +1074 -0
- package/standalone/package-lock.json +7019 -0
- package/standalone/package.json +36 -0
- package/standalone/runtime.js +122 -0
- package/standalone/welcome.js +178 -0
- package/templates/_gitignore +66 -0
- package/templates/banner.txt +6 -0
- package/templates/emulators/default_storage.rules +8 -0
- package/templates/extensions/CL-template.md +2 -0
- package/templates/extensions/POSTINSTALL.md +29 -0
- package/templates/extensions/PREINSTALL.md +22 -0
- package/templates/extensions/extension.yaml +61 -0
- package/templates/extensions/integration-test.env +2 -0
- package/templates/extensions/integration-test.json +14 -0
- package/templates/extensions/javascript/WELCOME.md +18 -0
- package/templates/extensions/javascript/_gitignore +1 -0
- package/templates/extensions/javascript/index.js +25 -0
- package/templates/extensions/javascript/integration-test.js +13 -0
- package/templates/extensions/javascript/package.lint.json +25 -0
- package/templates/extensions/javascript/package.nolint.json +19 -0
- package/templates/extensions/typescript/WELCOME.md +22 -0
- package/templates/extensions/typescript/_gitignore +8 -0
- package/templates/extensions/typescript/_mocharc +10 -0
- package/templates/extensions/typescript/index.ts +26 -0
- package/templates/extensions/typescript/integration-test.ts +13 -0
- package/templates/extensions/typescript/package.lint.json +31 -0
- package/templates/extensions/typescript/package.nolint.json +24 -0
- package/templates/extensions/typescript/tsconfig.dev.json +5 -0
- package/templates/extensions/typescript/tsconfig.json +15 -0
- package/templates/firebase.json +9 -0
- package/templates/hosting/init.js +36 -0
- package/templates/init/firestore/firestore.indexes.json +26 -0
- package/templates/init/firestore/firestore.rules +16 -0
- package/templates/init/functions/javascript/_eslintrc +28 -0
- package/templates/init/functions/javascript/_gitignore +1 -0
- package/templates/init/functions/javascript/index.js +19 -0
- package/templates/init/functions/javascript/package.lint.json +26 -0
- package/templates/init/functions/javascript/package.nolint.json +23 -0
- package/templates/init/functions/python/_gitignore +0 -0
- package/templates/init/functions/python/main.py +13 -0
- package/templates/init/functions/python/requirements.txt +1 -0
- package/templates/init/functions/typescript/_eslintrc +32 -0
- package/templates/init/functions/typescript/_gitignore +9 -0
- package/templates/init/functions/typescript/index.ts +19 -0
- package/templates/init/functions/typescript/package.lint.json +31 -0
- package/templates/init/functions/typescript/package.nolint.json +25 -0
- package/templates/init/functions/typescript/tsconfig.dev.json +5 -0
- package/templates/init/functions/typescript/tsconfig.json +15 -0
- package/templates/init/hosting/404.html +33 -0
- package/templates/init/hosting/index.html +89 -0
- package/templates/init/storage/storage.rules +12 -0
- package/templates/loginFailure.html +34 -0
- package/templates/loginSuccess.html +32 -0
- package/templates/loginSuccessGithub.html +32 -0
- package/templates/setup/web.js +5 -0
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DockerHelper = exports.deleteGcfArtifacts = exports.listGcfPaths = exports.ContainerRegistryCleaner = exports.NoopArtifactRegistryCleaner = exports.ArtifactRegistryCleaner = exports.cleanupBuildImages = void 0;
|
|
4
|
+
const clc = require("colorette");
|
|
5
|
+
const error_1 = require("../../error");
|
|
6
|
+
const api_1 = require("../../api");
|
|
7
|
+
const logger_1 = require("../../logger");
|
|
8
|
+
const artifactregistry = require("../../gcp/artifactregistry");
|
|
9
|
+
const backend = require("./backend");
|
|
10
|
+
const docker = require("../../gcp/docker");
|
|
11
|
+
const utils = require("../../utils");
|
|
12
|
+
const poller = require("../../operation-poller");
|
|
13
|
+
async function retry(func) {
|
|
14
|
+
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
15
|
+
const MAX_RETRIES = 3;
|
|
16
|
+
const INITIAL_BACKOFF = 100;
|
|
17
|
+
const TIMEOUT_MS = 10000;
|
|
18
|
+
let retry = 0;
|
|
19
|
+
while (true) {
|
|
20
|
+
try {
|
|
21
|
+
const timeout = new Promise((resolve, reject) => {
|
|
22
|
+
setTimeout(() => reject(new Error("Timeout")), TIMEOUT_MS);
|
|
23
|
+
});
|
|
24
|
+
return await Promise.race([func(), timeout]);
|
|
25
|
+
}
|
|
26
|
+
catch (err) {
|
|
27
|
+
logger_1.logger.debug("Failed docker command with error ", err);
|
|
28
|
+
retry += 1;
|
|
29
|
+
if (retry >= MAX_RETRIES) {
|
|
30
|
+
throw new error_1.FirebaseError("Failed to clean up artifacts", { original: err });
|
|
31
|
+
}
|
|
32
|
+
await sleep(Math.pow(INITIAL_BACKOFF, retry - 1));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
async function cleanupBuildImages(haveFunctions, deletedFunctions, cleaners = {}) {
|
|
37
|
+
utils.logBullet(clc.bold(clc.cyan("functions: ")) + "cleaning up build files...");
|
|
38
|
+
const failedDomains = new Set();
|
|
39
|
+
const cleanup = [];
|
|
40
|
+
const arCleaner = cleaners.ar || new ArtifactRegistryCleaner();
|
|
41
|
+
cleanup.push(...haveFunctions.map(async (func) => {
|
|
42
|
+
try {
|
|
43
|
+
await arCleaner.cleanupFunction(func);
|
|
44
|
+
}
|
|
45
|
+
catch (err) {
|
|
46
|
+
const path = `${func.project}/${func.region}/gcf-artifacts`;
|
|
47
|
+
failedDomains.add(`https://console.cloud.google.com/artifacts/docker/${path}`);
|
|
48
|
+
}
|
|
49
|
+
}));
|
|
50
|
+
cleanup.push(...deletedFunctions.map(async (func) => {
|
|
51
|
+
try {
|
|
52
|
+
await Promise.all([arCleaner.cleanupFunction(func), arCleaner.cleanupFunctionCache(func)]);
|
|
53
|
+
}
|
|
54
|
+
catch (err) {
|
|
55
|
+
const path = `${func.project}/${func.region}/gcf-artifacts`;
|
|
56
|
+
failedDomains.add(`https://console.cloud.google.com/artifacts/docker/${path}`);
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
59
|
+
const gcrCleaner = cleaners.gcr || new ContainerRegistryCleaner();
|
|
60
|
+
cleanup.push(...[...haveFunctions, ...deletedFunctions].map(async (func) => {
|
|
61
|
+
try {
|
|
62
|
+
await gcrCleaner.cleanupFunction(func);
|
|
63
|
+
}
|
|
64
|
+
catch (err) {
|
|
65
|
+
const path = `${func.project}/${docker.GCR_SUBDOMAIN_MAPPING[func.region]}/gcf`;
|
|
66
|
+
failedDomains.add(`https://console.cloud.google.com/gcr/images/${path}`);
|
|
67
|
+
}
|
|
68
|
+
}));
|
|
69
|
+
await Promise.all(cleanup);
|
|
70
|
+
if (failedDomains.size) {
|
|
71
|
+
let message = "Unhandled error cleaning up build images. This could result in a small monthly bill if not corrected. ";
|
|
72
|
+
message +=
|
|
73
|
+
"You can attempt to delete these images by redeploying or you can delete them manually at";
|
|
74
|
+
if (failedDomains.size === 1) {
|
|
75
|
+
message += " " + failedDomains.values().next().value;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
message += [...failedDomains].map((domain) => "\n\t" + domain).join("");
|
|
79
|
+
}
|
|
80
|
+
utils.logLabeledWarning("functions", message);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.cleanupBuildImages = cleanupBuildImages;
|
|
84
|
+
class ArtifactRegistryCleaner {
|
|
85
|
+
static packagePath(func) {
|
|
86
|
+
const encodedId = func.id
|
|
87
|
+
.replace(/_/g, "__")
|
|
88
|
+
.replace(/-/g, "--")
|
|
89
|
+
.replace(/^[A-Z]/, (first) => `${first.toLowerCase()}-${first.toLowerCase()}`)
|
|
90
|
+
.replace(/[A-Z]/g, (upper) => `_${upper.toLowerCase()}`);
|
|
91
|
+
return `projects/${func.project}/locations/${func.region}/repositories/gcf-artifacts/packages/${encodedId}`;
|
|
92
|
+
}
|
|
93
|
+
async cleanupFunction(func) {
|
|
94
|
+
let op;
|
|
95
|
+
try {
|
|
96
|
+
op = await artifactregistry.deletePackage(ArtifactRegistryCleaner.packagePath(func));
|
|
97
|
+
}
|
|
98
|
+
catch (err) {
|
|
99
|
+
if (err.status === 404) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
throw err;
|
|
103
|
+
}
|
|
104
|
+
if (op.done) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
await poller.pollOperation(Object.assign(Object.assign({}, ArtifactRegistryCleaner.POLLER_OPTIONS), { pollerName: `cleanup-${func.region}-${func.id}`, operationResourceName: op.name }));
|
|
108
|
+
}
|
|
109
|
+
async cleanupFunctionCache(func) {
|
|
110
|
+
const op = await artifactregistry.deletePackage(`${ArtifactRegistryCleaner.packagePath(func)}%2Fcache`);
|
|
111
|
+
if (op.done) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
await poller.pollOperation(Object.assign(Object.assign({}, ArtifactRegistryCleaner.POLLER_OPTIONS), { pollerName: `cleanup-cache-${func.region}-${func.id}`, operationResourceName: op.name }));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
exports.ArtifactRegistryCleaner = ArtifactRegistryCleaner;
|
|
118
|
+
ArtifactRegistryCleaner.POLLER_OPTIONS = {
|
|
119
|
+
apiOrigin: api_1.artifactRegistryDomain,
|
|
120
|
+
apiVersion: artifactregistry.API_VERSION,
|
|
121
|
+
masterTimeout: 5 * 60 * 1000,
|
|
122
|
+
};
|
|
123
|
+
class NoopArtifactRegistryCleaner extends ArtifactRegistryCleaner {
|
|
124
|
+
cleanupFunction() {
|
|
125
|
+
return Promise.resolve();
|
|
126
|
+
}
|
|
127
|
+
cleanupFunctionCache() {
|
|
128
|
+
return Promise.resolve();
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.NoopArtifactRegistryCleaner = NoopArtifactRegistryCleaner;
|
|
132
|
+
class ContainerRegistryCleaner {
|
|
133
|
+
constructor() {
|
|
134
|
+
this.helpers = {};
|
|
135
|
+
}
|
|
136
|
+
helper(location) {
|
|
137
|
+
const subdomain = docker.GCR_SUBDOMAIN_MAPPING[location] || "us";
|
|
138
|
+
if (!this.helpers[subdomain]) {
|
|
139
|
+
const origin = `https://${subdomain}.${api_1.containerRegistryDomain}`;
|
|
140
|
+
this.helpers[subdomain] = new DockerHelper(origin);
|
|
141
|
+
}
|
|
142
|
+
return this.helpers[subdomain];
|
|
143
|
+
}
|
|
144
|
+
async cleanupFunction(func) {
|
|
145
|
+
const helper = this.helper(func.region);
|
|
146
|
+
const uuids = (await helper.ls(`${func.project}/gcf/${func.region}`)).children;
|
|
147
|
+
const uuidTags = {};
|
|
148
|
+
const loadUuidTags = [];
|
|
149
|
+
for (const uuid of uuids) {
|
|
150
|
+
loadUuidTags.push((async () => {
|
|
151
|
+
const path = `${func.project}/gcf/${func.region}/${uuid}`;
|
|
152
|
+
const tags = (await helper.ls(path)).tags;
|
|
153
|
+
uuidTags[path] = tags;
|
|
154
|
+
})());
|
|
155
|
+
}
|
|
156
|
+
await Promise.all(loadUuidTags);
|
|
157
|
+
const extractFunction = /^(.*)_version-\d+$/;
|
|
158
|
+
const entry = Object.entries(uuidTags).find(([, tags]) => {
|
|
159
|
+
return tags.find((tag) => { var _a; return ((_a = extractFunction.exec(tag)) === null || _a === void 0 ? void 0 : _a[1]) === func.id; });
|
|
160
|
+
});
|
|
161
|
+
if (!entry) {
|
|
162
|
+
logger_1.logger.debug("Could not find image for function", backend.functionName(func));
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
await helper.rm(entry[0]);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
exports.ContainerRegistryCleaner = ContainerRegistryCleaner;
|
|
169
|
+
function getHelper(cache, subdomain) {
|
|
170
|
+
if (!cache[subdomain]) {
|
|
171
|
+
cache[subdomain] = new DockerHelper(`https://${subdomain}.${api_1.containerRegistryDomain}`);
|
|
172
|
+
}
|
|
173
|
+
return cache[subdomain];
|
|
174
|
+
}
|
|
175
|
+
async function listGcfPaths(projectId, locations, dockerHelpers = {}) {
|
|
176
|
+
if (!locations) {
|
|
177
|
+
locations = Object.keys(docker.GCR_SUBDOMAIN_MAPPING);
|
|
178
|
+
}
|
|
179
|
+
const invalidRegion = locations.find((loc) => !docker.GCR_SUBDOMAIN_MAPPING[loc]);
|
|
180
|
+
if (invalidRegion) {
|
|
181
|
+
throw new error_1.FirebaseError(`Invalid region ${invalidRegion} supplied`);
|
|
182
|
+
}
|
|
183
|
+
const locationsSet = new Set(locations);
|
|
184
|
+
const subdomains = new Set(Object.values(docker.GCR_SUBDOMAIN_MAPPING));
|
|
185
|
+
const failedSubdomains = [];
|
|
186
|
+
const listAll = [];
|
|
187
|
+
for (const subdomain of subdomains) {
|
|
188
|
+
listAll.push((async () => {
|
|
189
|
+
try {
|
|
190
|
+
return getHelper(dockerHelpers, subdomain).ls(`${projectId}/gcf`);
|
|
191
|
+
}
|
|
192
|
+
catch (err) {
|
|
193
|
+
failedSubdomains.push(subdomain);
|
|
194
|
+
logger_1.logger.debug(err);
|
|
195
|
+
const stat = {
|
|
196
|
+
children: [],
|
|
197
|
+
digests: [],
|
|
198
|
+
tags: [],
|
|
199
|
+
};
|
|
200
|
+
return Promise.resolve(stat);
|
|
201
|
+
}
|
|
202
|
+
})());
|
|
203
|
+
}
|
|
204
|
+
const gcfDirs = (await Promise.all(listAll))
|
|
205
|
+
.map((results) => results.children)
|
|
206
|
+
.reduce((acc, val) => [...acc, ...val], [])
|
|
207
|
+
.filter((loc) => locationsSet.has(loc));
|
|
208
|
+
if (failedSubdomains.length === subdomains.size) {
|
|
209
|
+
throw new error_1.FirebaseError("Failed to search all subdomains.");
|
|
210
|
+
}
|
|
211
|
+
else if (failedSubdomains.length > 0) {
|
|
212
|
+
throw new error_1.FirebaseError(`Failed to search the following subdomains: ${failedSubdomains.join(",")}`);
|
|
213
|
+
}
|
|
214
|
+
return gcfDirs.map((loc) => {
|
|
215
|
+
return `${docker.GCR_SUBDOMAIN_MAPPING[loc]}.${api_1.containerRegistryDomain}/${projectId}/gcf/${loc}`;
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
exports.listGcfPaths = listGcfPaths;
|
|
219
|
+
async function deleteGcfArtifacts(projectId, locations, dockerHelpers = {}) {
|
|
220
|
+
if (!locations) {
|
|
221
|
+
locations = Object.keys(docker.GCR_SUBDOMAIN_MAPPING);
|
|
222
|
+
}
|
|
223
|
+
const invalidRegion = locations.find((loc) => !docker.GCR_SUBDOMAIN_MAPPING[loc]);
|
|
224
|
+
if (invalidRegion) {
|
|
225
|
+
throw new error_1.FirebaseError(`Invalid region ${invalidRegion} supplied`);
|
|
226
|
+
}
|
|
227
|
+
const subdomains = new Set(Object.values(docker.GCR_SUBDOMAIN_MAPPING));
|
|
228
|
+
const failedSubdomains = [];
|
|
229
|
+
const deleteLocations = locations.map((loc) => {
|
|
230
|
+
const subdomain = docker.GCR_SUBDOMAIN_MAPPING[loc];
|
|
231
|
+
try {
|
|
232
|
+
return getHelper(dockerHelpers, subdomain).rm(`${projectId}/gcf/${loc}`);
|
|
233
|
+
}
|
|
234
|
+
catch (err) {
|
|
235
|
+
failedSubdomains.push(subdomain);
|
|
236
|
+
logger_1.logger.debug(err);
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
await Promise.all(deleteLocations);
|
|
240
|
+
if (failedSubdomains.length === subdomains.size) {
|
|
241
|
+
throw new error_1.FirebaseError("Failed to search all subdomains.");
|
|
242
|
+
}
|
|
243
|
+
else if (failedSubdomains.length > 0) {
|
|
244
|
+
throw new error_1.FirebaseError(`Failed to search the following subdomains: ${failedSubdomains.join(",")}`);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
exports.deleteGcfArtifacts = deleteGcfArtifacts;
|
|
248
|
+
class DockerHelper {
|
|
249
|
+
constructor(origin) {
|
|
250
|
+
this.cache = {};
|
|
251
|
+
this.client = new docker.Client(origin);
|
|
252
|
+
}
|
|
253
|
+
async ls(path) {
|
|
254
|
+
if (!(path in this.cache)) {
|
|
255
|
+
this.cache[path] = retry(() => this.client.listTags(path)).then((res) => {
|
|
256
|
+
return {
|
|
257
|
+
tags: res.tags,
|
|
258
|
+
digests: Object.keys(res.manifest),
|
|
259
|
+
children: res.child,
|
|
260
|
+
};
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
return this.cache[path];
|
|
264
|
+
}
|
|
265
|
+
async rm(path) {
|
|
266
|
+
let toThrowLater = undefined;
|
|
267
|
+
const stat = await this.ls(path);
|
|
268
|
+
const recursive = stat.children.map(async (child) => {
|
|
269
|
+
try {
|
|
270
|
+
await this.rm(`${path}/${child}`);
|
|
271
|
+
stat.children.splice(stat.children.indexOf(child), 1);
|
|
272
|
+
}
|
|
273
|
+
catch (err) {
|
|
274
|
+
toThrowLater = err;
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
const deleteTags = stat.tags.map(async (tag) => {
|
|
278
|
+
try {
|
|
279
|
+
await retry(() => this.client.deleteTag(path, tag));
|
|
280
|
+
stat.tags.splice(stat.tags.indexOf(tag), 1);
|
|
281
|
+
}
|
|
282
|
+
catch (err) {
|
|
283
|
+
logger_1.logger.debug("Got error trying to remove docker tag:", err);
|
|
284
|
+
toThrowLater = err;
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
await Promise.all(deleteTags);
|
|
288
|
+
const deleteImages = stat.digests.map(async (digest) => {
|
|
289
|
+
try {
|
|
290
|
+
await retry(() => this.client.deleteImage(path, digest));
|
|
291
|
+
stat.digests.splice(stat.digests.indexOf(digest), 1);
|
|
292
|
+
}
|
|
293
|
+
catch (err) {
|
|
294
|
+
logger_1.logger.debug("Got error trying to remove docker image:", err);
|
|
295
|
+
toThrowLater = err;
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
await Promise.all(deleteImages);
|
|
299
|
+
await Promise.all(recursive);
|
|
300
|
+
if (toThrowLater) {
|
|
301
|
+
throw toThrowLater;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
exports.DockerHelper = DockerHelper;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.shouldUploadBeSkipped = exports.deploy = void 0;
|
|
4
|
+
const tmp_1 = require("tmp");
|
|
5
|
+
const clc = require("colorette");
|
|
6
|
+
const fs = require("fs");
|
|
7
|
+
const checkIam_1 = require("./checkIam");
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
|
+
const projectConfig_1 = require("../../functions/projectConfig");
|
|
10
|
+
const gcs = require("../../gcp/storage");
|
|
11
|
+
const gcf = require("../../gcp/cloudfunctions");
|
|
12
|
+
const gcfv2 = require("../../gcp/cloudfunctionsv2");
|
|
13
|
+
const backend = require("./backend");
|
|
14
|
+
const backend_1 = require("./backend");
|
|
15
|
+
(0, tmp_1.setGracefulCleanup)();
|
|
16
|
+
async function uploadSourceV1(projectId, source, wantBackend) {
|
|
17
|
+
const v1Endpoints = backend.allEndpoints(wantBackend).filter((e) => e.platform === "gcfv1");
|
|
18
|
+
if (v1Endpoints.length === 0) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const region = v1Endpoints[0].region;
|
|
22
|
+
const uploadUrl = await gcf.generateUploadUrl(projectId, region);
|
|
23
|
+
const uploadOpts = {
|
|
24
|
+
file: source.functionsSourceV1,
|
|
25
|
+
stream: fs.createReadStream(source.functionsSourceV1),
|
|
26
|
+
};
|
|
27
|
+
await gcs.upload(uploadOpts, uploadUrl, {
|
|
28
|
+
"x-goog-content-length-range": "0,104857600",
|
|
29
|
+
});
|
|
30
|
+
return uploadUrl;
|
|
31
|
+
}
|
|
32
|
+
async function uploadSourceV2(projectId, source, wantBackend) {
|
|
33
|
+
const v2Endpoints = backend.allEndpoints(wantBackend).filter((e) => e.platform === "gcfv2");
|
|
34
|
+
if (v2Endpoints.length === 0) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const region = v2Endpoints[0].region;
|
|
38
|
+
const res = await gcfv2.generateUploadUrl(projectId, region);
|
|
39
|
+
const uploadOpts = {
|
|
40
|
+
file: source.functionsSourceV2,
|
|
41
|
+
stream: fs.createReadStream(source.functionsSourceV2),
|
|
42
|
+
};
|
|
43
|
+
await gcs.upload(uploadOpts, res.uploadUrl);
|
|
44
|
+
return res.storageSource;
|
|
45
|
+
}
|
|
46
|
+
async function uploadCodebase(context, codebase, wantBackend) {
|
|
47
|
+
var _a;
|
|
48
|
+
const source = (_a = context.sources) === null || _a === void 0 ? void 0 : _a[codebase];
|
|
49
|
+
if (!source || (!source.functionsSourceV1 && !source.functionsSourceV2)) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const uploads = [];
|
|
53
|
+
try {
|
|
54
|
+
uploads.push(uploadSourceV1(context.projectId, source, wantBackend));
|
|
55
|
+
uploads.push(uploadSourceV2(context.projectId, source, wantBackend));
|
|
56
|
+
const [sourceUrl, storage] = await Promise.all(uploads);
|
|
57
|
+
if (sourceUrl) {
|
|
58
|
+
source.sourceUrl = sourceUrl;
|
|
59
|
+
}
|
|
60
|
+
if (storage) {
|
|
61
|
+
source.storage = storage;
|
|
62
|
+
}
|
|
63
|
+
const sourceDir = (0, projectConfig_1.configForCodebase)(context.config, codebase).source;
|
|
64
|
+
if (uploads.length) {
|
|
65
|
+
(0, utils_1.logSuccess)(`${clc.green(clc.bold("functions:"))} ${clc.bold(sourceDir)} folder uploaded successfully`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
catch (err) {
|
|
69
|
+
(0, utils_1.logWarning)(clc.yellow("functions:") + " Upload Error: " + err.message);
|
|
70
|
+
throw err;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
async function deploy(context, options, payload) {
|
|
74
|
+
if (!context.config) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (!payload.functions) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
await (0, checkIam_1.checkHttpIam)(context, options, payload);
|
|
81
|
+
const uploads = [];
|
|
82
|
+
for (const [codebase, { wantBackend, haveBackend }] of Object.entries(payload.functions)) {
|
|
83
|
+
if (shouldUploadBeSkipped(context, wantBackend, haveBackend)) {
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
uploads.push(uploadCodebase(context, codebase, wantBackend));
|
|
87
|
+
}
|
|
88
|
+
await Promise.all(uploads);
|
|
89
|
+
}
|
|
90
|
+
exports.deploy = deploy;
|
|
91
|
+
function shouldUploadBeSkipped(context, wantBackend, haveBackend) {
|
|
92
|
+
if (context.filters && context.filters.length > 0) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
const wantEndpoints = backend.allEndpoints(wantBackend);
|
|
96
|
+
const haveEndpoints = backend.allEndpoints(haveBackend);
|
|
97
|
+
if (wantEndpoints.length !== haveEndpoints.length) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
return wantEndpoints.every((wantEndpoint) => {
|
|
101
|
+
const haveEndpoint = (0, backend_1.findEndpoint)(haveBackend, (endpoint) => endpoint.id === wantEndpoint.id);
|
|
102
|
+
if (!haveEndpoint) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
return haveEndpoint.hash && wantEndpoint.hash && haveEndpoint.hash === wantEndpoint.hash;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
exports.shouldUploadBeSkipped = shouldUploadBeSkipped;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.secretAccess = exports.cloudBuildEnabled = exports.defaultServiceAccount = void 0;
|
|
4
|
+
const clc = require("colorette");
|
|
5
|
+
const ensureApiEnabled_1 = require("../../ensureApiEnabled");
|
|
6
|
+
const error_1 = require("../../error");
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
|
+
const secretManager_1 = require("../../gcp/secretManager");
|
|
9
|
+
const projects_1 = require("../../management/projects");
|
|
10
|
+
const functional_1 = require("../../functional");
|
|
11
|
+
const backend = require("./backend");
|
|
12
|
+
const FAQ_URL = "https://firebase.google.com/support/faq#functions-runtime";
|
|
13
|
+
const CLOUD_BUILD_API = "cloudbuild.googleapis.com";
|
|
14
|
+
const metadataCallCache = new Map();
|
|
15
|
+
async function defaultServiceAccount(e) {
|
|
16
|
+
let metadataCall = metadataCallCache.get(e.project);
|
|
17
|
+
if (!metadataCall) {
|
|
18
|
+
metadataCall = (0, projects_1.getFirebaseProject)(e.project);
|
|
19
|
+
metadataCallCache.set(e.project, metadataCall);
|
|
20
|
+
}
|
|
21
|
+
const metadata = await metadataCall;
|
|
22
|
+
if (e.platform === "gcfv1") {
|
|
23
|
+
return `${metadata.projectId}@appspot.gserviceaccount.com`;
|
|
24
|
+
}
|
|
25
|
+
else if (e.platform === "gcfv2") {
|
|
26
|
+
return `${metadata.projectNumber}-compute@developer.gserviceaccount.com`;
|
|
27
|
+
}
|
|
28
|
+
(0, functional_1.assertExhaustive)(e.platform);
|
|
29
|
+
}
|
|
30
|
+
exports.defaultServiceAccount = defaultServiceAccount;
|
|
31
|
+
function nodeBillingError(projectId) {
|
|
32
|
+
return new error_1.FirebaseError(`Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan. To upgrade your project, visit the following URL:
|
|
33
|
+
|
|
34
|
+
https://console.firebase.google.com/project/${projectId}/usage/details
|
|
35
|
+
|
|
36
|
+
For additional information about this requirement, see Firebase FAQs:
|
|
37
|
+
|
|
38
|
+
${FAQ_URL}`, { exit: 1 });
|
|
39
|
+
}
|
|
40
|
+
function nodePermissionError(projectId) {
|
|
41
|
+
return new error_1.FirebaseError(`Cloud Functions deployment requires the Cloud Build API to be enabled. The current credentials do not have permission to enable APIs for project ${clc.bold(projectId)}.
|
|
42
|
+
|
|
43
|
+
Please ask a project owner to visit the following URL to enable Cloud Build:
|
|
44
|
+
|
|
45
|
+
https://console.cloud.google.com/apis/library/cloudbuild.googleapis.com?project=${projectId}
|
|
46
|
+
|
|
47
|
+
For additional information about this requirement, see Firebase FAQs:
|
|
48
|
+
${FAQ_URL}
|
|
49
|
+
`);
|
|
50
|
+
}
|
|
51
|
+
function isPermissionError(e) {
|
|
52
|
+
var _a, _b, _c;
|
|
53
|
+
return ((_c = (_b = (_a = e.context) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.status) === "PERMISSION_DENIED";
|
|
54
|
+
}
|
|
55
|
+
async function cloudBuildEnabled(projectId) {
|
|
56
|
+
try {
|
|
57
|
+
await (0, ensureApiEnabled_1.ensure)(projectId, CLOUD_BUILD_API, "functions");
|
|
58
|
+
}
|
|
59
|
+
catch (e) {
|
|
60
|
+
if ((0, error_1.isBillingError)(e)) {
|
|
61
|
+
throw nodeBillingError(projectId);
|
|
62
|
+
}
|
|
63
|
+
else if (isPermissionError(e)) {
|
|
64
|
+
throw nodePermissionError(projectId);
|
|
65
|
+
}
|
|
66
|
+
throw e;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.cloudBuildEnabled = cloudBuildEnabled;
|
|
70
|
+
async function secretsToServiceAccounts(b) {
|
|
71
|
+
const secretsToSa = {};
|
|
72
|
+
for (const e of backend.allEndpoints(b)) {
|
|
73
|
+
const sa = e.serviceAccount || (await module.exports.defaultServiceAccount(e));
|
|
74
|
+
for (const s of e.secretEnvironmentVariables || []) {
|
|
75
|
+
const serviceAccounts = secretsToSa[s.secret] || new Set();
|
|
76
|
+
serviceAccounts.add(sa);
|
|
77
|
+
secretsToSa[s.secret] = serviceAccounts;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return secretsToSa;
|
|
81
|
+
}
|
|
82
|
+
async function secretAccess(projectId, wantBackend, haveBackend) {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
const ensureAccess = async (secret, serviceAccounts) => {
|
|
85
|
+
(0, utils_1.logLabeledBullet)("functions", `ensuring ${clc.bold(serviceAccounts.join(", "))} access to secret ${clc.bold(secret)}.`);
|
|
86
|
+
await (0, secretManager_1.ensureServiceAgentRole)({ name: secret, projectId }, serviceAccounts, "roles/secretmanager.secretAccessor");
|
|
87
|
+
(0, utils_1.logLabeledSuccess)("functions", `ensured ${clc.bold(serviceAccounts.join(", "))} access to ${clc.bold(secret)}.`);
|
|
88
|
+
};
|
|
89
|
+
const wantSecrets = await secretsToServiceAccounts(wantBackend);
|
|
90
|
+
const haveSecrets = await secretsToServiceAccounts(haveBackend);
|
|
91
|
+
for (const [secret, serviceAccounts] of Object.entries(haveSecrets)) {
|
|
92
|
+
for (const serviceAccount of serviceAccounts) {
|
|
93
|
+
(_a = wantSecrets[secret]) === null || _a === void 0 ? void 0 : _a.delete(serviceAccount);
|
|
94
|
+
}
|
|
95
|
+
if (((_b = wantSecrets[secret]) === null || _b === void 0 ? void 0 : _b.size) === 0) {
|
|
96
|
+
delete wantSecrets[secret];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
const ensure = [];
|
|
100
|
+
for (const [secret, serviceAccounts] of Object.entries(wantSecrets)) {
|
|
101
|
+
ensure.push(ensureAccess(secret, Array.from(serviceAccounts)));
|
|
102
|
+
}
|
|
103
|
+
await Promise.all(ensure);
|
|
104
|
+
}
|
|
105
|
+
exports.secretAccess = secretAccess;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isEndpointFiltered = exports.isCodebaseFiltered = exports.groupEndpointsByCodebase = exports.targetCodebases = exports.getFunctionLabel = exports.getHumanFriendlyPlatformName = exports.getEndpointFilters = exports.parseFunctionSelector = exports.endpointMatchesFilter = exports.endpointMatchesAnyFilter = void 0;
|
|
4
|
+
const backend = require("./backend");
|
|
5
|
+
const projectConfig_1 = require("../../functions/projectConfig");
|
|
6
|
+
function endpointMatchesAnyFilter(endpoint, filters) {
|
|
7
|
+
if (!filters) {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
return filters.some((filter) => endpointMatchesFilter(endpoint, filter));
|
|
11
|
+
}
|
|
12
|
+
exports.endpointMatchesAnyFilter = endpointMatchesAnyFilter;
|
|
13
|
+
function endpointMatchesFilter(endpoint, filter) {
|
|
14
|
+
if (endpoint.codebase && filter.codebase) {
|
|
15
|
+
if (endpoint.codebase !== filter.codebase) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
if (!filter.idChunks) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
const idChunks = endpoint.id.split("-");
|
|
23
|
+
if (idChunks.length < filter.idChunks.length) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
for (let i = 0; i < filter.idChunks.length; i += 1) {
|
|
27
|
+
if (idChunks[i] !== filter.idChunks[i]) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
exports.endpointMatchesFilter = endpointMatchesFilter;
|
|
34
|
+
function parseFunctionSelector(selector) {
|
|
35
|
+
const fragments = selector.split(":");
|
|
36
|
+
if (fragments.length < 2) {
|
|
37
|
+
return [
|
|
38
|
+
{ codebase: fragments[0] },
|
|
39
|
+
{ codebase: projectConfig_1.DEFAULT_CODEBASE, idChunks: fragments[0].split(/[-.]/) },
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
return [
|
|
43
|
+
{
|
|
44
|
+
codebase: fragments[0],
|
|
45
|
+
idChunks: fragments[1].split(/[-.]/),
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
exports.parseFunctionSelector = parseFunctionSelector;
|
|
50
|
+
function getEndpointFilters(options) {
|
|
51
|
+
if (!options.only) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
const selectors = options.only.split(",");
|
|
55
|
+
const filters = [];
|
|
56
|
+
for (let selector of selectors) {
|
|
57
|
+
if (selector.startsWith("functions:")) {
|
|
58
|
+
selector = selector.replace("functions:", "");
|
|
59
|
+
if (selector.length > 0) {
|
|
60
|
+
filters.push(...parseFunctionSelector(selector));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (filters.length === 0) {
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
return filters;
|
|
68
|
+
}
|
|
69
|
+
exports.getEndpointFilters = getEndpointFilters;
|
|
70
|
+
function getHumanFriendlyPlatformName(platform) {
|
|
71
|
+
if (platform === "gcfv1") {
|
|
72
|
+
return "1st Gen";
|
|
73
|
+
}
|
|
74
|
+
return "2nd Gen";
|
|
75
|
+
}
|
|
76
|
+
exports.getHumanFriendlyPlatformName = getHumanFriendlyPlatformName;
|
|
77
|
+
function getFunctionLabel(fn) {
|
|
78
|
+
let id = `${fn.id}(${fn.region})`;
|
|
79
|
+
if (fn.codebase && fn.codebase !== projectConfig_1.DEFAULT_CODEBASE) {
|
|
80
|
+
id = `${fn.codebase}:${id}`;
|
|
81
|
+
}
|
|
82
|
+
return id;
|
|
83
|
+
}
|
|
84
|
+
exports.getFunctionLabel = getFunctionLabel;
|
|
85
|
+
function targetCodebases(config, filters) {
|
|
86
|
+
const codebasesFromConfig = [...new Set(Object.values(config).map((c) => c.codebase))];
|
|
87
|
+
if (!filters) {
|
|
88
|
+
return [...codebasesFromConfig];
|
|
89
|
+
}
|
|
90
|
+
const codebasesFromFilters = [
|
|
91
|
+
...new Set(filters.map((f) => f.codebase).filter((c) => c !== undefined)),
|
|
92
|
+
];
|
|
93
|
+
if (codebasesFromFilters.length === 0) {
|
|
94
|
+
return [...codebasesFromConfig];
|
|
95
|
+
}
|
|
96
|
+
const intersections = [];
|
|
97
|
+
for (const codebase of codebasesFromConfig) {
|
|
98
|
+
if (codebasesFromFilters.includes(codebase)) {
|
|
99
|
+
intersections.push(codebase);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return intersections;
|
|
103
|
+
}
|
|
104
|
+
exports.targetCodebases = targetCodebases;
|
|
105
|
+
function groupEndpointsByCodebase(wantBackends, haveEndpoints) {
|
|
106
|
+
const grouped = {};
|
|
107
|
+
let endpointsToAssign = haveEndpoints;
|
|
108
|
+
for (const codebase of Object.keys(wantBackends)) {
|
|
109
|
+
const names = backend.allEndpoints(wantBackends[codebase]).map((e) => backend.functionName(e));
|
|
110
|
+
grouped[codebase] = backend.of(...endpointsToAssign.filter((e) => names.includes(backend.functionName(e))));
|
|
111
|
+
endpointsToAssign = endpointsToAssign.filter((e) => !names.includes(backend.functionName(e)));
|
|
112
|
+
}
|
|
113
|
+
for (const codebase of Object.keys(wantBackends)) {
|
|
114
|
+
const matchedEndpoints = endpointsToAssign.filter((e) => e.codebase === codebase);
|
|
115
|
+
grouped[codebase] = backend.merge(grouped[codebase], backend.of(...matchedEndpoints));
|
|
116
|
+
const matchedNames = matchedEndpoints.map((e) => backend.functionName(e));
|
|
117
|
+
endpointsToAssign = endpointsToAssign.filter((e) => {
|
|
118
|
+
return !matchedNames.includes(backend.functionName(e));
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
return grouped;
|
|
122
|
+
}
|
|
123
|
+
exports.groupEndpointsByCodebase = groupEndpointsByCodebase;
|
|
124
|
+
function isCodebaseFiltered(codebase, filters) {
|
|
125
|
+
return filters.some((filter) => {
|
|
126
|
+
const noIdChunks = (filter.idChunks || []).length === 0;
|
|
127
|
+
return noIdChunks && filter.codebase === codebase;
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
exports.isCodebaseFiltered = isCodebaseFiltered;
|
|
131
|
+
function isEndpointFiltered(endpoint, filters) {
|
|
132
|
+
return filters.some((filter) => endpointMatchesFilter(endpoint, filter));
|
|
133
|
+
}
|
|
134
|
+
exports.isEndpointFiltered = isEndpointFiltered;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.release = exports.deploy = exports.prepare = void 0;
|
|
4
|
+
var prepare_1 = require("./prepare");
|
|
5
|
+
Object.defineProperty(exports, "prepare", { enumerable: true, get: function () { return prepare_1.prepare; } });
|
|
6
|
+
var deploy_1 = require("./deploy");
|
|
7
|
+
Object.defineProperty(exports, "deploy", { enumerable: true, get: function () { return deploy_1.deploy; } });
|
|
8
|
+
var release_1 = require("./release");
|
|
9
|
+
Object.defineProperty(exports, "release", { enumerable: true, get: function () { return release_1.release; } });
|