firebase-tools 10.9.2 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -9
- package/lib/accountImporter.js +92 -93
- package/lib/api.js +77 -218
- package/lib/apiv2.js +5 -4
- package/lib/appdistribution/client.js +16 -25
- package/lib/auth.js +69 -47
- package/lib/bin/firebase.js +42 -47
- package/lib/checkValidTargetFilters.js +13 -12
- package/lib/commands/appdistribution-distribute.js +2 -1
- package/lib/commands/appdistribution-testers-add.js +2 -1
- package/lib/commands/appdistribution-testers-remove.js +2 -1
- package/lib/commands/apps-android-sha-create.js +2 -1
- package/lib/commands/apps-android-sha-delete.js +2 -1
- package/lib/commands/apps-android-sha-list.js +2 -1
- package/lib/commands/apps-create.js +2 -1
- package/lib/commands/apps-list.js +2 -1
- package/lib/commands/apps-sdkconfig.js +8 -3
- package/lib/commands/auth-export.js +2 -1
- package/lib/commands/auth-import.js +7 -10
- package/lib/commands/crashlytics-symbols-upload.js +2 -1
- package/lib/commands/database-get.js +4 -3
- package/lib/commands/database-instances-create.js +2 -1
- package/lib/commands/database-instances-list.js +3 -3
- package/lib/commands/database-profile.js +2 -1
- package/lib/commands/database-push.js +2 -1
- package/lib/commands/database-remove.js +2 -1
- package/lib/commands/database-rules-canary.js +2 -1
- package/lib/commands/database-rules-get.js +2 -1
- package/lib/commands/database-rules-list.js +2 -1
- package/lib/commands/database-rules-release.js +2 -1
- package/lib/commands/database-rules-stage.js +2 -1
- package/lib/commands/database-set.js +2 -1
- package/lib/commands/database-settings-get.js +2 -1
- package/lib/commands/database-settings-set.js +2 -1
- package/lib/commands/database-update.js +2 -1
- package/lib/commands/deploy.js +23 -21
- package/lib/commands/emulators-exec.js +2 -1
- package/lib/commands/emulators-export.js +2 -1
- package/lib/commands/emulators-start.js +2 -1
- package/lib/commands/experimental-functions-shell.js +10 -8
- package/lib/commands/ext-configure.js +56 -120
- package/lib/commands/ext-dev-deprecate.js +2 -1
- package/lib/commands/ext-dev-emulators-exec.js +13 -7
- package/lib/commands/ext-dev-emulators-start.js +12 -27
- package/lib/commands/ext-dev-extension-delete.js +2 -1
- package/lib/commands/ext-dev-init.js +2 -1
- package/lib/commands/ext-dev-list.js +2 -1
- package/lib/commands/ext-dev-publish.js +2 -1
- package/lib/commands/ext-dev-register.js +2 -1
- package/lib/commands/ext-dev-undeprecate.js +2 -1
- package/lib/commands/ext-dev-unpublish.js +2 -1
- package/lib/commands/ext-dev-usage.js +2 -1
- package/lib/commands/ext-export.js +2 -1
- package/lib/commands/ext-info.js +2 -1
- package/lib/commands/ext-install.js +14 -198
- package/lib/commands/ext-list.js +2 -1
- package/lib/commands/ext-sources-create.js +2 -1
- package/lib/commands/ext-uninstall.js +9 -92
- package/lib/commands/ext-update.js +67 -225
- package/lib/commands/ext.js +2 -1
- package/lib/commands/firestore-delete.js +2 -1
- package/lib/commands/firestore-indexes-list.js +2 -1
- package/lib/commands/functions-config-clone.js +4 -3
- package/lib/commands/functions-config-export.js +2 -1
- package/lib/commands/functions-config-get.js +2 -1
- package/lib/commands/functions-config-set.js +2 -1
- package/lib/commands/functions-config-unset.js +2 -1
- package/lib/commands/functions-delete.js +2 -1
- package/lib/commands/functions-deletegcfartifacts.js +2 -1
- package/lib/commands/functions-list.js +2 -1
- package/lib/commands/functions-log.js +2 -1
- package/lib/commands/functions-secrets-access.js +2 -1
- package/lib/commands/functions-secrets-destroy.js +2 -1
- package/lib/commands/functions-secrets-get.js +2 -1
- package/lib/commands/functions-secrets-prune.js +2 -1
- package/lib/commands/functions-secrets-set.js +2 -1
- package/lib/commands/functions-shell.js +12 -10
- package/lib/commands/help.js +2 -1
- package/lib/commands/hosting-channel-create.js +2 -1
- package/lib/commands/hosting-channel-delete.js +2 -1
- package/lib/commands/hosting-channel-deploy.js +2 -1
- package/lib/commands/hosting-channel-list.js +2 -1
- package/lib/commands/hosting-channel-open.js +2 -1
- package/lib/commands/hosting-clone.js +2 -1
- package/lib/commands/hosting-disable.js +2 -1
- package/lib/commands/hosting-sites-create.js +2 -1
- package/lib/commands/hosting-sites-delete.js +2 -1
- package/lib/commands/hosting-sites-get.js +2 -1
- package/lib/commands/hosting-sites-list.js +2 -1
- package/lib/commands/index.js +23 -13
- package/lib/commands/init.js +47 -43
- package/lib/commands/login-add.js +2 -1
- package/lib/commands/login-ci.js +2 -1
- package/lib/commands/login-list.js +2 -1
- package/lib/commands/login-use.js +2 -1
- package/lib/commands/login.js +2 -1
- package/lib/commands/logout.js +2 -1
- package/lib/commands/open.js +2 -1
- package/lib/commands/projects-addfirebase.js +2 -1
- package/lib/commands/projects-create.js +2 -1
- package/lib/commands/projects-list.js +2 -1
- package/lib/commands/remoteconfig-get.js +2 -1
- package/lib/commands/remoteconfig-rollback.js +2 -1
- package/lib/commands/remoteconfig-versions-list.js +2 -1
- package/lib/commands/serve.js +29 -27
- package/lib/commands/setup-emulators-database.js +2 -1
- package/lib/commands/setup-emulators-firestore.js +2 -1
- package/lib/commands/setup-emulators-pubsub.js +2 -1
- package/lib/commands/setup-emulators-storage.js +2 -1
- package/lib/commands/setup-emulators-ui.js +2 -1
- package/lib/commands/target-apply.js +2 -1
- package/lib/commands/target-clear.js +2 -1
- package/lib/commands/target-remove.js +2 -1
- package/lib/commands/target.js +2 -1
- package/lib/commands/use.js +54 -52
- package/lib/config.js +3 -3
- package/lib/deploy/database/deploy.js +3 -2
- package/lib/deploy/database/index.js +8 -5
- package/lib/deploy/database/prepare.js +22 -19
- package/lib/deploy/database/release.js +12 -9
- package/lib/deploy/firestore/prepare.js +2 -2
- package/lib/deploy/functions/build.js +32 -20
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +187 -54
- package/lib/deploy/functions/runtimes/node/parseTriggers.js +14 -2
- package/lib/deploy/functions/services/database.js +14 -0
- package/lib/deploy/functions/services/index.js +14 -0
- package/lib/deploy/index.js +3 -3
- package/lib/deploy/lifecycleHooks.js +23 -20
- package/lib/deploy/remoteconfig/functions.js +18 -14
- package/lib/deploy/remoteconfig/prepare.js +2 -2
- package/lib/emulator/auth/apiSpec.js +14 -46
- package/lib/emulator/auth/operations.js +6 -29
- package/lib/emulator/auth/state.js +2 -25
- package/lib/emulator/commandUtils.js +1 -1
- package/lib/emulator/controller.js +3 -3
- package/lib/emulator/databaseEmulator.js +9 -7
- package/lib/emulator/downloadableEmulators.js +6 -6
- package/lib/emulator/extensionsEmulator.js +7 -3
- package/lib/emulator/firestoreEmulator.js +10 -12
- package/lib/emulator/functionsEmulator.js +39 -42
- package/lib/emulator/hubClient.js +11 -22
- package/lib/emulator/hubExport.js +26 -16
- package/lib/emulator/portUtils.js +2 -0
- package/lib/emulator/storage/crc.js +3 -0
- package/lib/emulator/storage/rules/runtime.js +1 -1
- package/lib/errorOut.js +2 -2
- package/lib/extensions/extensionsHelper.js +4 -5
- package/lib/extensions/manifest.js +5 -11
- package/lib/firebaseConfigValidate.js +1 -1
- package/lib/firestore/checkDatabaseType.js +4 -5
- package/lib/firestore/indexes.js +17 -34
- package/lib/functions/events/v2.js +7 -1
- package/lib/functionsConfigClone.js +43 -41
- package/lib/gcp/cloudfunctionsv2.js +17 -2
- package/lib/gcp/iam.js +1 -1
- package/lib/gcp/index.js +10 -10
- package/lib/gcp/runtimeconfig.js +45 -47
- package/lib/gcp/storage.js +2 -4
- package/lib/hosting/cloudRunProxy.js +19 -15
- package/lib/index.js +29 -28
- package/lib/init/features/database.js +11 -5
- package/lib/init/features/functions/index.js +1 -1
- package/lib/init/features/functions/javascript.js +23 -20
- package/lib/init/features/functions/npm-dependencies.js +17 -14
- package/lib/init/features/functions/typescript.js +27 -24
- package/lib/init/features/hosting/github.js +5 -4
- package/lib/loadCJSON.js +9 -6
- package/lib/logError.js +15 -12
- package/lib/management/apps.js +47 -43
- package/lib/management/database.js +33 -31
- package/lib/management/projects.js +13 -7
- package/lib/parseBoltRules.js +15 -14
- package/lib/profileReport.js +503 -511
- package/lib/profiler.js +4 -4
- package/lib/requireAuth.js +0 -1
- package/lib/responseToError.js +8 -5
- package/lib/rtdb.js +31 -29
- package/lib/scopes.js +9 -9
- package/npm-shrinkwrap.json +1485 -670
- package/package.json +21 -22
- package/standalone/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "Command-Line Interface for Firebase",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"test:emulator": "./scripts/emulator-tests/run.sh",
|
|
29
29
|
"test:extensions-deploy": "./scripts/extensions-deploy-tests/run.sh",
|
|
30
30
|
"test:extensions-emulator": "./scripts/extensions-emulator-tests/run.sh",
|
|
31
|
-
"test:ext-dev-emulator": "./scripts/ext-dev-emulators-tests/run.sh",
|
|
32
31
|
"test:hosting": "./scripts/hosting-tests/run.sh",
|
|
33
32
|
"test:triggers-end-to-end": "./scripts/triggers-end-to-end-tests/run.sh",
|
|
34
33
|
"test:storage-deploy": "./scripts/storage-deploy-tests/run.sh",
|
|
@@ -57,7 +56,7 @@
|
|
|
57
56
|
],
|
|
58
57
|
"preferGlobal": true,
|
|
59
58
|
"engines": {
|
|
60
|
-
"node": ">=
|
|
59
|
+
"node": "^14.18.0 || >=16.4.0"
|
|
61
60
|
},
|
|
62
61
|
"author": "Firebase (https://firebase.google.com/)",
|
|
63
62
|
"license": "MIT",
|
|
@@ -86,7 +85,7 @@
|
|
|
86
85
|
]
|
|
87
86
|
},
|
|
88
87
|
"dependencies": {
|
|
89
|
-
"@google-cloud/pubsub": "^
|
|
88
|
+
"@google-cloud/pubsub": "^3.0.1",
|
|
90
89
|
"abort-controller": "^3.0.0",
|
|
91
90
|
"ajv": "^6.12.6",
|
|
92
91
|
"archiver": "^5.0.0",
|
|
@@ -101,23 +100,23 @@
|
|
|
101
100
|
"cross-env": "^5.1.3",
|
|
102
101
|
"cross-spawn": "^7.0.1",
|
|
103
102
|
"csv-parse": "^5.0.4",
|
|
104
|
-
"dotenv": "^6.1.0",
|
|
105
103
|
"exegesis": "^4.1.0",
|
|
106
104
|
"exegesis-express": "^4.0.0",
|
|
107
|
-
"exit-code": "^1.0.2",
|
|
108
105
|
"express": "^4.16.4",
|
|
109
106
|
"filesize": "^6.1.0",
|
|
110
107
|
"firebase-frameworks": "^0.4.2",
|
|
111
|
-
"
|
|
108
|
+
"form-data": "^4.0.0",
|
|
109
|
+
"fs-extra": "^10.1.0",
|
|
112
110
|
"glob": "^7.1.2",
|
|
113
111
|
"google-auth-library": "^7.11.0",
|
|
114
112
|
"inquirer": "^8.2.0",
|
|
115
113
|
"js-yaml": "^3.13.1",
|
|
116
114
|
"jsonwebtoken": "^8.5.1",
|
|
117
115
|
"leven": "^3.1.0",
|
|
116
|
+
"libsodium-wrappers": "^0.7.10",
|
|
118
117
|
"lodash": "^4.17.21",
|
|
119
|
-
"marked": "^4.0.
|
|
120
|
-
"marked-terminal": "^
|
|
118
|
+
"marked": "^4.0.14",
|
|
119
|
+
"marked-terminal": "^5.1.1",
|
|
121
120
|
"mime": "^2.5.2",
|
|
122
121
|
"minimatch": "^3.0.4",
|
|
123
122
|
"morgan": "^1.10.0",
|
|
@@ -135,10 +134,9 @@
|
|
|
135
134
|
"stream-json": "^1.7.3",
|
|
136
135
|
"superstatic": "^8.0.0",
|
|
137
136
|
"tar": "^6.1.11",
|
|
138
|
-
"tcp-port-used": "^1.0.
|
|
139
|
-
"tmp": "0.
|
|
137
|
+
"tcp-port-used": "^1.0.2",
|
|
138
|
+
"tmp": "^0.2.1",
|
|
140
139
|
"triple-beam": "^1.3.0",
|
|
141
|
-
"tweetsodium": "0.0.5",
|
|
142
140
|
"universal-analytics": "^0.5.3",
|
|
143
141
|
"unzipper": "^0.10.10",
|
|
144
142
|
"update-notifier": "^5.1.0",
|
|
@@ -155,25 +153,25 @@
|
|
|
155
153
|
"@types/chai": "^4.3.0",
|
|
156
154
|
"@types/chai-as-promised": "^7.1.4",
|
|
157
155
|
"@types/cjson": "^0.5.0",
|
|
158
|
-
"@types/cli-color": "^0.
|
|
156
|
+
"@types/cli-color": "^2.0.2",
|
|
159
157
|
"@types/cli-table": "^0.3.0",
|
|
160
158
|
"@types/configstore": "^4.0.0",
|
|
161
159
|
"@types/cors": "^2.8.10",
|
|
162
160
|
"@types/cross-spawn": "^6.0.1",
|
|
163
|
-
"@types/dotenv": "^6.1.0",
|
|
164
161
|
"@types/express": "^4.17.0",
|
|
165
162
|
"@types/express-serve-static-core": "^4.17.8",
|
|
166
|
-
"@types/fs-extra": "^
|
|
163
|
+
"@types/fs-extra": "^9.0.13",
|
|
167
164
|
"@types/glob": "^7.1.1",
|
|
168
165
|
"@types/inquirer": "^8.1.3",
|
|
169
166
|
"@types/js-yaml": "^3.12.2",
|
|
170
167
|
"@types/jsonwebtoken": "^8.3.8",
|
|
168
|
+
"@types/libsodium-wrappers": "^0.7.9",
|
|
171
169
|
"@types/lodash": "^4.14.149",
|
|
172
|
-
"@types/marked": "^4.0.
|
|
170
|
+
"@types/marked": "^4.0.3",
|
|
173
171
|
"@types/marked-terminal": "^3.1.3",
|
|
174
172
|
"@types/mocha": "^9.0.0",
|
|
175
173
|
"@types/multer": "^1.4.3",
|
|
176
|
-
"@types/node": "^
|
|
174
|
+
"@types/node": "^14.18.18",
|
|
177
175
|
"@types/node-fetch": "^2.5.12",
|
|
178
176
|
"@types/progress": "^2.0.3",
|
|
179
177
|
"@types/puppeteer": "^5.4.2",
|
|
@@ -184,13 +182,14 @@
|
|
|
184
182
|
"@types/sinon": "^9.0.10",
|
|
185
183
|
"@types/sinon-chai": "^3.2.2",
|
|
186
184
|
"@types/stream-json": "^1.7.2",
|
|
187
|
-
"@types/supertest": "^2.0.
|
|
185
|
+
"@types/supertest": "^2.0.12",
|
|
188
186
|
"@types/tar": "^6.1.1",
|
|
189
|
-
"@types/tcp-port-used": "^1.0.
|
|
190
|
-
"@types/tmp": "^0.
|
|
187
|
+
"@types/tcp-port-used": "^1.0.1",
|
|
188
|
+
"@types/tmp": "^0.2.3",
|
|
191
189
|
"@types/triple-beam": "^1.3.0",
|
|
192
190
|
"@types/universal-analytics": "^0.4.5",
|
|
193
191
|
"@types/unzipper": "^0.10.0",
|
|
192
|
+
"@types/update-notifier": "^5.1.0",
|
|
194
193
|
"@types/uuid": "^8.3.1",
|
|
195
194
|
"@types/ws": "^7.2.3",
|
|
196
195
|
"@typescript-eslint/eslint-plugin": "^5.9.0",
|
|
@@ -200,7 +199,7 @@
|
|
|
200
199
|
"eslint": "^8.6.0",
|
|
201
200
|
"eslint-config-google": "^0.14.0",
|
|
202
201
|
"eslint-config-prettier": "^8.3.0",
|
|
203
|
-
"eslint-plugin-jsdoc": "^
|
|
202
|
+
"eslint-plugin-jsdoc": "^39.2.9",
|
|
204
203
|
"eslint-plugin-prettier": "^4.0.0",
|
|
205
204
|
"firebase": "^7.24.0",
|
|
206
205
|
"firebase-admin": "^9.4.2",
|
|
@@ -216,7 +215,7 @@
|
|
|
216
215
|
"sinon": "^9.2.3",
|
|
217
216
|
"sinon-chai": "^3.6.0",
|
|
218
217
|
"source-map-support": "^0.5.9",
|
|
219
|
-
"supertest": "^
|
|
218
|
+
"supertest": "^6.2.3",
|
|
220
219
|
"swagger2openapi": "^6.0.3",
|
|
221
220
|
"ts-node": "^10.4.0",
|
|
222
221
|
"typescript": "^4.5.4",
|