firebase-tools 9.23.3 → 10.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/lib/api.js +1 -1
- package/lib/apiv2.js +2 -2
- package/lib/appdistribution/client.js +1 -1
- package/lib/appdistribution/options-parser-util.js +1 -1
- package/lib/auth.js +2 -2
- package/lib/command.js +26 -26
- package/lib/commands/appdistribution-distribute.js +4 -4
- package/lib/commands/appdistribution-testers-add.js +2 -2
- package/lib/commands/appdistribution-testers-remove.js +2 -2
- package/lib/commands/apps-android-sha-create.js +2 -2
- package/lib/commands/apps-android-sha-delete.js +2 -2
- package/lib/commands/apps-android-sha-list.js +2 -2
- package/lib/commands/apps-create.js +9 -9
- package/lib/commands/apps-list.js +3 -3
- package/lib/commands/apps-sdkconfig.js +8 -8
- package/lib/commands/database-get.js +1 -1
- package/lib/commands/database-instances-create.js +4 -4
- package/lib/commands/database-instances-list.js +4 -4
- package/lib/commands/database-profile.js +1 -1
- package/lib/commands/database-push.js +1 -1
- package/lib/commands/database-remove.js +4 -4
- package/lib/commands/database-set.js +4 -4
- package/lib/commands/database-settings-get.js +1 -1
- package/lib/commands/database-settings-set.js +1 -1
- package/lib/commands/database-update.js +4 -4
- package/lib/commands/ext-configure.js +2 -2
- package/lib/commands/ext-dev-deprecate.js +4 -4
- package/lib/commands/ext-dev-extension-delete.js +3 -3
- package/lib/commands/ext-dev-init.js +3 -3
- package/lib/commands/ext-dev-list.js +1 -1
- package/lib/commands/ext-dev-publish.js +3 -3
- package/lib/commands/ext-dev-register.js +5 -5
- package/lib/commands/ext-dev-undeprecate.js +4 -4
- package/lib/commands/ext-dev-unpublish.js +3 -3
- package/lib/commands/ext-dev-usage.js +145 -0
- package/lib/commands/ext-export.js +8 -8
- package/lib/commands/ext-info.js +4 -4
- package/lib/commands/ext-install.js +26 -22
- package/lib/commands/ext-list.js +2 -2
- package/lib/commands/ext-sources-create.js +2 -2
- package/lib/commands/ext-uninstall.js +3 -3
- package/lib/commands/ext-update.js +17 -17
- package/lib/commands/ext.js +3 -3
- package/lib/commands/firestore-delete.js +3 -3
- package/lib/commands/functions-config-export.js +11 -11
- package/lib/commands/functions-delete.js +3 -3
- package/lib/commands/functions-deletegcfartifacts.js +4 -4
- package/lib/commands/functions-list.js +1 -1
- package/lib/commands/functions-log.js +1 -1
- package/lib/commands/hosting-channel-create.js +12 -12
- package/lib/commands/hosting-channel-delete.js +9 -9
- package/lib/commands/hosting-channel-deploy.js +17 -17
- package/lib/commands/hosting-channel-list.js +5 -5
- package/lib/commands/hosting-channel-open.js +9 -9
- package/lib/commands/hosting-clone.js +15 -15
- package/lib/commands/hosting-disable.js +4 -4
- package/lib/commands/hosting-sites-create.js +7 -7
- package/lib/commands/hosting-sites-delete.js +7 -7
- package/lib/commands/hosting-sites-get.js +2 -2
- package/lib/commands/hosting-sites-list.js +3 -3
- package/lib/commands/index.js +1 -0
- package/lib/commands/login.js +2 -2
- package/lib/commands/logout.js +1 -1
- package/lib/commands/open.js +1 -1
- package/lib/commands/projects-addfirebase.js +2 -2
- package/lib/commands/projects-create.js +2 -2
- package/lib/commands/projects-list.js +1 -1
- package/lib/commands/remoteconfig-get.js +3 -3
- package/lib/commands/remoteconfig-rollback.js +3 -3
- package/lib/commands/remoteconfig-versions-list.js +1 -1
- package/lib/commands/setup-emulators-storage.js +1 -1
- package/lib/config.js +6 -6
- package/lib/database/api.js +2 -2
- package/lib/deploy/extensions/deploy.js +4 -4
- package/lib/deploy/extensions/deploymentSummary.js +5 -4
- package/lib/deploy/extensions/index.js +1 -0
- package/lib/deploy/extensions/params.js +1 -1
- package/lib/deploy/extensions/planner.js +3 -3
- package/lib/deploy/extensions/prepare.js +9 -9
- package/lib/deploy/extensions/release.js +1 -1
- package/lib/deploy/extensions/secrets.js +7 -7
- package/lib/deploy/extensions/validate.js +2 -2
- package/lib/deploy/functions/backend.js +6 -4
- package/lib/deploy/functions/checkIam.js +7 -7
- package/lib/deploy/functions/containerCleaner.js +3 -3
- package/lib/deploy/functions/deploy.js +10 -11
- package/lib/deploy/functions/ensureCloudBuildEnabled.js +3 -3
- package/lib/deploy/functions/index.js +1 -0
- package/lib/deploy/functions/prepare.js +27 -21
- package/lib/deploy/functions/prompts.js +5 -5
- package/lib/deploy/functions/release/executor.js +4 -1
- package/lib/deploy/functions/release/fabricator.js +5 -5
- package/lib/deploy/functions/release/index.js +3 -3
- package/lib/deploy/functions/release/planner.js +6 -6
- package/lib/deploy/functions/release/reporter.js +8 -4
- package/lib/deploy/functions/runtimes/discovery/index.js +2 -2
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +14 -14
- package/lib/deploy/functions/runtimes/golang/index.js +9 -13
- package/lib/deploy/functions/runtimes/index.js +6 -10
- package/lib/deploy/functions/runtimes/node/index.js +6 -10
- package/lib/deploy/functions/runtimes/node/parseRuntimeAndValidateSDK.js +1 -1
- package/lib/deploy/functions/runtimes/node/parseTriggers.js +3 -3
- package/lib/deploy/functions/runtimes/node/validate.js +2 -1
- package/lib/deploy/functions/services/storage.js +1 -1
- package/lib/deploy/functions/triggerRegionHelper.js +1 -1
- package/lib/deploy/functions/validate.js +4 -3
- package/lib/deploy/hosting/deploy.js +7 -7
- package/lib/deploy/hosting/uploader.js +1 -1
- package/lib/deploy/hosting/validate.js +3 -3
- package/lib/deploy/remoteconfig/prepare.js +3 -3
- package/lib/deploy/remoteconfig/release.js +3 -3
- package/lib/deploy/storage/deploy.js +1 -1
- package/lib/deploy/storage/release.js +2 -2
- package/lib/detectProjectRoot.js +5 -5
- package/lib/emulator/auth/apiSpec.js +13 -7
- package/lib/emulator/auth/handlers.js +3 -3
- package/lib/emulator/auth/index.js +1 -1
- package/lib/emulator/auth/operations.js +256 -248
- package/lib/emulator/auth/server.js +11 -8
- package/lib/emulator/auth/state.js +12 -12
- package/lib/emulator/commandUtils.js +5 -5
- package/lib/emulator/controller.js +16 -11
- package/lib/emulator/downloadableEmulators.js +2 -2
- package/lib/emulator/emulatorLogger.js +1 -1
- package/lib/emulator/functionsEmulator.js +101 -74
- package/lib/emulator/functionsEmulatorRuntime.js +33 -18
- package/lib/emulator/functionsEmulatorShell.js +3 -2
- package/lib/emulator/functionsRuntimeWorker.js +1 -1
- package/lib/emulator/hubExport.js +2 -2
- package/lib/emulator/storage/apis/firebase.js +2 -2
- package/lib/emulator/storage/apis/gcloud.js +2 -2
- package/lib/emulator/storage/cloudFunctions.js +1 -1
- package/lib/emulator/storage/files.js +14 -14
- package/lib/emulator/storage/index.js +2 -2
- package/lib/emulator/storage/metadata.js +7 -6
- package/lib/emulator/storage/rules/runtime.js +5 -5
- package/lib/emulator/storage/server.js +2 -2
- package/lib/ensureApiEnabled.js +7 -7
- package/lib/error.js +3 -3
- package/lib/extensions/askUserForConsent.js +2 -3
- package/lib/extensions/askUserForParam.js +10 -10
- package/lib/extensions/billingMigrationHelper.js +1 -1
- package/lib/extensions/changelog.js +3 -3
- package/lib/extensions/displayExtensionInfo.js +5 -5
- package/lib/extensions/emulator/optionsHelper.js +1 -1
- package/lib/extensions/emulator/specHelper.js +1 -1
- package/lib/extensions/emulator/triggerHelper.js +1 -1
- package/lib/extensions/export.js +6 -6
- package/lib/extensions/extensionsApi.js +14 -1
- package/lib/extensions/extensionsHelper.js +38 -29
- package/lib/extensions/listExtensions.js +1 -1
- package/lib/extensions/localHelper.js +1 -1
- package/lib/extensions/metricsTypeDef.js +2 -0
- package/lib/extensions/metricsUtils.js +98 -0
- package/lib/extensions/paramHelper.js +6 -6
- package/lib/extensions/provisioningHelper.js +6 -4
- package/lib/extensions/resolveSource.js +1 -1
- package/lib/extensions/secretsUtils.js +3 -3
- package/lib/extensions/updateHelper.js +9 -9
- package/lib/extensions/utils.js +1 -1
- package/lib/extensions/warnings.js +10 -9
- package/lib/fetchWebSetup.js +2 -2
- package/lib/filterTargets.js +2 -2
- package/lib/firestore/indexes.js +2 -2
- package/lib/fsAsync.js +3 -3
- package/lib/fsutils.js +2 -2
- package/lib/functional.js +2 -1
- package/lib/functions/env.js +1 -1
- package/lib/functions/runtimeConfigExport.js +4 -4
- package/lib/functionsConfig.js +3 -3
- package/lib/functionsShellCommandAction.js +4 -3
- package/lib/gcp/cloudmonitoring.js +74 -0
- package/lib/gcp/cloudscheduler.js +1 -1
- package/lib/gcp/iam.js +2 -2
- package/lib/gcp/resourceManager.js +2 -2
- package/lib/gcp/secretManager.js +3 -2
- package/lib/getDefaultDatabaseInstance.js +1 -1
- package/lib/getDefaultHostingSite.js +1 -1
- package/lib/getProjectNumber.js +2 -2
- package/lib/handlePreviewToggles.js +5 -5
- package/lib/hosting/api.js +6 -6
- package/lib/hosting/cloudRunProxy.js +6 -6
- package/lib/hosting/functionsProxy.js +3 -3
- package/lib/hosting/implicitInit.js +2 -2
- package/lib/hosting/normalizedHostingConfigs.js +3 -3
- package/lib/hosting/proxy.js +2 -2
- package/lib/init/features/account.js +7 -7
- package/lib/init/features/database.js +9 -9
- package/lib/init/features/emulators.js +8 -8
- package/lib/init/features/firestore/index.js +3 -3
- package/lib/init/features/firestore/indexes.js +2 -2
- package/lib/init/features/firestore/rules.js +2 -2
- package/lib/init/features/functions/golang.js +4 -4
- package/lib/init/features/functions/index.js +4 -4
- package/lib/init/features/hosting/github.js +31 -31
- package/lib/init/features/project.js +8 -8
- package/lib/init/features/remoteconfig.js +2 -2
- package/lib/init/features/storage.js +2 -2
- package/lib/listFiles.js +1 -1
- package/lib/management/apps.js +3 -3
- package/lib/management/projects.js +6 -6
- package/lib/previews.js +2 -2
- package/lib/profiler.js +1 -1
- package/lib/projectPath.js +1 -1
- package/lib/projectUtils.js +1 -1
- package/lib/prompt.js +0 -1
- package/lib/rc.js +1 -1
- package/lib/requireAuth.js +2 -2
- package/lib/requireDatabaseInstance.js +1 -1
- package/lib/requireHostingSite.js +1 -1
- package/lib/requirePermissions.js +4 -4
- package/lib/rulesDeploy.js +2 -2
- package/lib/serve/functions.js +14 -7
- package/lib/serve/hosting.js +7 -7
- package/lib/utils.js +3 -2
- package/npm-shrinkwrap.json +24889 -0
- package/package.json +24 -24
- package/templates/init/functions/javascript/package.lint.json +1 -1
- package/templates/init/functions/javascript/package.nolint.json +1 -1
- package/templates/init/functions/typescript/package.lint.json +1 -1
- package/templates/init/functions/typescript/package.nolint.json +1 -1
- package/templates/init/hosting/index.html +1 -1
- package/CHANGELOG.md +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.1.1",
|
|
4
4
|
"description": "Command-Line Interface for Firebase",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
],
|
|
56
56
|
"preferGlobal": true,
|
|
57
57
|
"engines": {
|
|
58
|
-
"node": ">=
|
|
58
|
+
"node": ">= 12"
|
|
59
59
|
},
|
|
60
60
|
"author": "Firebase (https://firebase.google.com/)",
|
|
61
61
|
"license": "MIT",
|
|
@@ -85,8 +85,6 @@
|
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@google-cloud/pubsub": "^2.7.0",
|
|
88
|
-
"@types/archiver": "^5.1.0",
|
|
89
|
-
"JSONStream": "^1.2.1",
|
|
90
88
|
"abort-controller": "^3.0.0",
|
|
91
89
|
"ajv": "^6.12.6",
|
|
92
90
|
"archiver": "^5.0.0",
|
|
@@ -102,16 +100,17 @@
|
|
|
102
100
|
"cross-spawn": "^7.0.1",
|
|
103
101
|
"csv-streamify": "^3.0.4",
|
|
104
102
|
"dotenv": "^6.1.0",
|
|
105
|
-
"exegesis": "^
|
|
106
|
-
"exegesis-express": "^
|
|
103
|
+
"exegesis": "^4.1.0",
|
|
104
|
+
"exegesis-express": "^4.0.0",
|
|
107
105
|
"exit-code": "^1.0.2",
|
|
108
106
|
"express": "^4.16.4",
|
|
109
107
|
"filesize": "^6.1.0",
|
|
110
108
|
"fs-extra": "^5.0.0",
|
|
111
109
|
"glob": "^7.1.2",
|
|
112
|
-
"google-auth-library": "^
|
|
113
|
-
"inquirer": "
|
|
110
|
+
"google-auth-library": "^7.11.0",
|
|
111
|
+
"inquirer": "^8.2.0",
|
|
114
112
|
"js-yaml": "^3.13.1",
|
|
113
|
+
"JSONStream": "^1.2.1",
|
|
115
114
|
"jsonwebtoken": "^8.5.1",
|
|
116
115
|
"leven": "^3.1.0",
|
|
117
116
|
"lodash": "^4.17.21",
|
|
@@ -122,7 +121,7 @@
|
|
|
122
121
|
"morgan": "^1.10.0",
|
|
123
122
|
"node-fetch": "^2.6.1",
|
|
124
123
|
"open": "^6.3.0",
|
|
125
|
-
"ora": "^
|
|
124
|
+
"ora": "^5.4.1",
|
|
126
125
|
"portfinder": "^1.0.23",
|
|
127
126
|
"progress": "^2.0.3",
|
|
128
127
|
"proxy-agent": "^5.0.0",
|
|
@@ -146,9 +145,10 @@
|
|
|
146
145
|
"devDependencies": {
|
|
147
146
|
"@google/events": "^5.1.1",
|
|
148
147
|
"@manifoldco/swagger-to-ts": "^2.0.0",
|
|
148
|
+
"@types/archiver": "^5.1.0",
|
|
149
149
|
"@types/body-parser": "^1.17.0",
|
|
150
|
-
"@types/chai": "^4.
|
|
151
|
-
"@types/chai-as-promised": "^7.1.
|
|
150
|
+
"@types/chai": "^4.3.0",
|
|
151
|
+
"@types/chai-as-promised": "^7.1.4",
|
|
152
152
|
"@types/cjson": "^0.5.0",
|
|
153
153
|
"@types/cli-color": "^0.3.29",
|
|
154
154
|
"@types/cli-table": "^0.3.0",
|
|
@@ -160,12 +160,12 @@
|
|
|
160
160
|
"@types/express-serve-static-core": "^4.17.8",
|
|
161
161
|
"@types/fs-extra": "^5.0.5",
|
|
162
162
|
"@types/glob": "^7.1.1",
|
|
163
|
-
"@types/inquirer": "^
|
|
163
|
+
"@types/inquirer": "^8.1.3",
|
|
164
164
|
"@types/js-yaml": "^3.12.2",
|
|
165
165
|
"@types/jsonwebtoken": "^8.3.8",
|
|
166
166
|
"@types/lodash": "^4.14.149",
|
|
167
167
|
"@types/marked": "^0.6.5",
|
|
168
|
-
"@types/mocha": "^
|
|
168
|
+
"@types/mocha": "^9.0.0",
|
|
169
169
|
"@types/multer": "^1.4.3",
|
|
170
170
|
"@types/node": "^10.17.50",
|
|
171
171
|
"@types/node-fetch": "^2.5.7",
|
|
@@ -185,24 +185,24 @@
|
|
|
185
185
|
"@types/uuid": "^8.3.1",
|
|
186
186
|
"@types/winston": "^2.4.4",
|
|
187
187
|
"@types/ws": "^7.2.3",
|
|
188
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
189
|
-
"@typescript-eslint/parser": "^
|
|
190
|
-
"chai": "^4.
|
|
188
|
+
"@typescript-eslint/eslint-plugin": "^5.9.0",
|
|
189
|
+
"@typescript-eslint/parser": "^5.9.0",
|
|
190
|
+
"chai": "^4.3.4",
|
|
191
191
|
"chai-as-promised": "^7.1.1",
|
|
192
|
-
"eslint": "^
|
|
192
|
+
"eslint": "^8.6.0",
|
|
193
193
|
"eslint-config-google": "^0.14.0",
|
|
194
|
-
"eslint-config-prettier": "^
|
|
195
|
-
"eslint-plugin-jsdoc": "^
|
|
196
|
-
"eslint-plugin-prettier": "^
|
|
194
|
+
"eslint-config-prettier": "^8.3.0",
|
|
195
|
+
"eslint-plugin-jsdoc": "^37.5.1",
|
|
196
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
197
197
|
"firebase": "^7.24.0",
|
|
198
198
|
"firebase-admin": "^9.4.2",
|
|
199
199
|
"firebase-functions": "^3.15.0",
|
|
200
200
|
"google-discovery-to-swagger": "^2.1.0",
|
|
201
|
-
"mocha": "^
|
|
201
|
+
"mocha": "^9.1.3",
|
|
202
202
|
"nock": "^13.0.5",
|
|
203
203
|
"nyc": "^15.1.0",
|
|
204
204
|
"openapi-merge": "^1.0.23",
|
|
205
|
-
"prettier": "^2.
|
|
205
|
+
"prettier": "^2.5.1",
|
|
206
206
|
"proxy": "^1.0.2",
|
|
207
207
|
"puppeteer": "^9.0.0",
|
|
208
208
|
"sinon": "^9.2.3",
|
|
@@ -210,8 +210,8 @@
|
|
|
210
210
|
"source-map-support": "^0.5.9",
|
|
211
211
|
"supertest": "^3.3.0",
|
|
212
212
|
"swagger2openapi": "^6.0.3",
|
|
213
|
-
"ts-node": "^
|
|
214
|
-
"typescript": "^
|
|
213
|
+
"ts-node": "^10.4.0",
|
|
214
|
+
"typescript": "^4.5.4",
|
|
215
215
|
"typescript-json-schema": "^0.50.1"
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
'performance',
|
|
80
80
|
].filter(feature => typeof app[feature] === 'function');
|
|
81
81
|
loadEl.textContent = `Firebase SDK loaded with ${features.join(', ')}`;
|
|
82
|
-
} catch (e) {
|
|
82
|
+
} catch (e: any) {
|
|
83
83
|
console.error(e);
|
|
84
84
|
loadEl.textContent = 'Error loading the Firebase SDK, check the console.';
|
|
85
85
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
- Upgrades Database Emulator to v4.7.3, removing log4j dependency.
|