firebase-tools 11.0.1 → 11.2.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 +11 -4
- package/lib/accountImporter.js +93 -95
- package/lib/api.js +77 -218
- package/lib/apiv2.js +5 -4
- package/lib/appdistribution/client.js +7 -9
- package/lib/auth.js +72 -52
- package/lib/bin/firebase.js +42 -47
- package/lib/checkValidTargetFilters.js +36 -25
- 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 +2 -1
- 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 +4 -4
- package/lib/commands/database-push.js +4 -4
- package/lib/commands/database-remove.js +3 -3
- 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 +3 -3
- 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 +26 -25
- 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 +2 -1
- package/lib/commands/ext-dev-deprecate.js +2 -1
- package/lib/commands/ext-dev-emulators-exec.js +3 -2
- package/lib/commands/ext-dev-emulators-start.js +3 -2
- 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 +8 -8
- 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 +14 -14
- package/lib/commands/ext-install.js +2 -1
- package/lib/commands/ext-list.js +2 -1
- package/lib/commands/ext-sources-create.js +2 -1
- package/lib/commands/ext-uninstall.js +2 -1
- package/lib/commands/ext-update.js +2 -1
- package/lib/commands/ext.js +4 -4
- 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 +3 -8
- 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 +7 -7
- 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 +30 -30
- 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 -53
- package/lib/config.js +7 -6
- package/lib/deploy/database/deploy.js +3 -2
- package/lib/deploy/database/index.js +8 -5
- package/lib/deploy/database/prepare.js +22 -20
- package/lib/deploy/database/release.js +12 -9
- package/lib/deploy/extensions/secrets.js +3 -3
- package/lib/deploy/firestore/prepare.js +2 -2
- package/lib/deploy/functions/build.js +33 -20
- package/lib/deploy/functions/ensure.js +1 -11
- package/lib/deploy/functions/prepare.js +3 -13
- package/lib/deploy/functions/prepareFunctionsUpload.js +2 -3
- package/lib/deploy/functions/release/fabricator.js +0 -1
- package/lib/deploy/functions/release/index.js +1 -5
- package/lib/deploy/functions/runtimes/discovery/index.js +18 -3
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +188 -54
- package/lib/deploy/functions/runtimes/golang/index.js +2 -22
- package/lib/deploy/functions/runtimes/node/index.js +3 -7
- package/lib/deploy/functions/runtimes/node/parseTriggers.js +16 -4
- 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 +27 -27
- package/lib/deploy/remoteconfig/prepare.js +2 -2
- package/lib/deploy/storage/prepare.js +1 -1
- package/lib/emulator/auth/apiSpec.js +14 -46
- package/lib/emulator/auth/index.js +1 -1
- package/lib/emulator/auth/operations.js +342 -93
- package/lib/emulator/auth/server.js +2 -2
- package/lib/emulator/auth/state.js +34 -32
- package/lib/emulator/commandUtils.js +1 -1
- package/lib/emulator/constants.js +1 -1
- package/lib/emulator/controller.js +7 -6
- package/lib/emulator/databaseEmulator.js +4 -4
- package/lib/emulator/download.js +1 -1
- package/lib/emulator/downloadableEmulators.js +5 -5
- package/lib/emulator/events/types.js +2 -3
- package/lib/emulator/firestoreEmulator.js +2 -2
- package/lib/emulator/functionsEmulator.js +31 -45
- package/lib/emulator/functionsEmulatorRuntime.js +12 -16
- package/lib/emulator/functionsEmulatorShared.js +7 -5
- package/lib/emulator/functionsRuntimeWorker.js +0 -6
- package/lib/emulator/hostingEmulator.js +1 -1
- package/lib/emulator/hub.js +1 -1
- package/lib/emulator/loggingEmulator.js +1 -1
- package/lib/emulator/pubsubEmulator.js +1 -1
- package/lib/emulator/storage/crc.js +4 -4
- package/lib/emulator/storage/index.js +1 -1
- package/lib/emulator/types.js +1 -1
- package/lib/errorOut.js +2 -2
- package/lib/extensions/askUserForConsent.js +1 -2
- package/lib/extensions/askUserForParam.js +15 -18
- package/lib/extensions/emulator/optionsHelper.js +4 -4
- package/lib/extensions/extensionsApi.js +1 -22
- package/lib/extensions/extensionsHelper.js +6 -6
- package/lib/extensions/listExtensions.js +9 -10
- package/lib/extensions/manifest.js +2 -2
- package/lib/extensions/resolveSource.js +11 -7
- package/lib/extensions/secretsUtils.js +3 -3
- package/lib/extensions/types.js +24 -0
- package/lib/extensions/updateHelper.js +1 -1
- package/lib/extensions/utils.js +1 -2
- package/lib/extensions/warnings.js +3 -3
- package/lib/firestore/encodeFirestoreValue.js +11 -8
- package/lib/fsAsync.js +3 -3
- package/lib/functions/events/v2.js +7 -1
- package/lib/functionsConfig.js +17 -14
- package/lib/functionsConfigClone.js +46 -46
- package/lib/gcp/cloudfunctions.js +2 -15
- package/lib/gcp/cloudfunctionsv2.js +17 -2
- package/lib/gcp/iam.js +1 -1
- package/lib/gcp/index.js +10 -10
- package/lib/gcp/rules.js +1 -1
- package/lib/gcp/runtimeconfig.js +45 -47
- package/lib/hosting/proxy.js +1 -1
- package/lib/index.js +29 -28
- package/lib/init/features/database.js +10 -2
- 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 +6 -5
- package/lib/init/features/hosting/index.js +2 -2
- package/lib/loadCJSON.js +9 -6
- package/lib/localFunction.js +4 -4
- package/lib/logError.js +15 -12
- package/lib/parseBoltRules.js +15 -14
- package/lib/previews.js +1 -1
- package/lib/profileReport.js +504 -512
- package/lib/profiler.js +4 -4
- package/lib/prompt.js +1 -2
- package/lib/rc.js +1 -1
- package/lib/requireAuth.js +0 -1
- package/lib/responseToError.js +8 -5
- package/lib/rulesDeploy.js +2 -2
- package/lib/scopes.js +9 -9
- package/lib/serve/index.js +4 -5
- package/lib/utils.js +30 -6
- package/npm-shrinkwrap.json +537 -193
- package/package.json +17 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.1",
|
|
4
4
|
"description": "Command-Line Interface for Firebase",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -23,15 +23,16 @@
|
|
|
23
23
|
"mocha": "nyc mocha 'src/test/**/*.{ts,js}'",
|
|
24
24
|
"prepare": "npm run clean && npm run build -- --build tsconfig.publish.json",
|
|
25
25
|
"test": "npm run lint:quiet && npm run test:compile && npm run mocha",
|
|
26
|
-
"test:client-integration": "./scripts/client-integration-tests/run.sh",
|
|
26
|
+
"test:client-integration": "bash ./scripts/client-integration-tests/run.sh",
|
|
27
27
|
"test:compile": "tsc --project tsconfig.compile.json",
|
|
28
|
-
"test:emulator": "./scripts/emulator-tests/run.sh",
|
|
29
|
-
"test:
|
|
30
|
-
"test:extensions-
|
|
31
|
-
"test:
|
|
32
|
-
"test:
|
|
33
|
-
"test:
|
|
34
|
-
"test:storage-
|
|
28
|
+
"test:emulator": "bash ./scripts/emulator-tests/run.sh",
|
|
29
|
+
"test:import-export": "bash ./scripts/emulator-import-export-tests/run.sh",
|
|
30
|
+
"test:extensions-deploy": "bash ./scripts/extensions-deploy-tests/run.sh",
|
|
31
|
+
"test:extensions-emulator": "bash ./scripts/extensions-emulator-tests/run.sh",
|
|
32
|
+
"test:hosting": "bash ./scripts/hosting-tests/run.sh",
|
|
33
|
+
"test:triggers-end-to-end": "bash ./scripts/triggers-end-to-end-tests/run.sh",
|
|
34
|
+
"test:storage-deploy": "bash ./scripts/storage-deploy-tests/run.sh",
|
|
35
|
+
"test:storage-emulator-integration": "bash ./scripts/storage-emulator-integration/run.sh"
|
|
35
36
|
},
|
|
36
37
|
"files": [
|
|
37
38
|
"lib",
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
],
|
|
57
58
|
"preferGlobal": true,
|
|
58
59
|
"engines": {
|
|
59
|
-
"node": "
|
|
60
|
+
"node": "^14.18.0 || >=16.4.0"
|
|
60
61
|
},
|
|
61
62
|
"author": "Firebase (https://firebase.google.com/)",
|
|
62
63
|
"license": "MIT",
|
|
@@ -85,7 +86,7 @@
|
|
|
85
86
|
]
|
|
86
87
|
},
|
|
87
88
|
"dependencies": {
|
|
88
|
-
"@google-cloud/pubsub": "^
|
|
89
|
+
"@google-cloud/pubsub": "^3.0.1",
|
|
89
90
|
"abort-controller": "^3.0.0",
|
|
90
91
|
"ajv": "^6.12.6",
|
|
91
92
|
"archiver": "^5.0.0",
|
|
@@ -102,10 +103,10 @@
|
|
|
102
103
|
"csv-parse": "^5.0.4",
|
|
103
104
|
"exegesis": "^4.1.0",
|
|
104
105
|
"exegesis-express": "^4.0.0",
|
|
105
|
-
"exit-code": "^1.0.2",
|
|
106
106
|
"express": "^4.16.4",
|
|
107
107
|
"filesize": "^6.1.0",
|
|
108
108
|
"firebase-frameworks": "^0.4.2",
|
|
109
|
+
"form-data": "^4.0.0",
|
|
109
110
|
"fs-extra": "^10.1.0",
|
|
110
111
|
"glob": "^7.1.2",
|
|
111
112
|
"google-auth-library": "^7.11.0",
|
|
@@ -113,6 +114,7 @@
|
|
|
113
114
|
"js-yaml": "^3.13.1",
|
|
114
115
|
"jsonwebtoken": "^8.5.1",
|
|
115
116
|
"leven": "^3.1.0",
|
|
117
|
+
"libsodium-wrappers": "^0.7.10",
|
|
116
118
|
"lodash": "^4.17.21",
|
|
117
119
|
"marked": "^4.0.14",
|
|
118
120
|
"marked-terminal": "^5.1.1",
|
|
@@ -136,7 +138,6 @@
|
|
|
136
138
|
"tcp-port-used": "^1.0.2",
|
|
137
139
|
"tmp": "^0.2.1",
|
|
138
140
|
"triple-beam": "^1.3.0",
|
|
139
|
-
"tweetsodium": "0.0.5",
|
|
140
141
|
"universal-analytics": "^0.5.3",
|
|
141
142
|
"unzipper": "^0.10.10",
|
|
142
143
|
"update-notifier": "^5.1.0",
|
|
@@ -153,7 +154,7 @@
|
|
|
153
154
|
"@types/chai": "^4.3.0",
|
|
154
155
|
"@types/chai-as-promised": "^7.1.4",
|
|
155
156
|
"@types/cjson": "^0.5.0",
|
|
156
|
-
"@types/cli-color": "^0.
|
|
157
|
+
"@types/cli-color": "^2.0.2",
|
|
157
158
|
"@types/cli-table": "^0.3.0",
|
|
158
159
|
"@types/configstore": "^4.0.0",
|
|
159
160
|
"@types/cors": "^2.8.10",
|
|
@@ -165,6 +166,7 @@
|
|
|
165
166
|
"@types/inquirer": "^8.1.3",
|
|
166
167
|
"@types/js-yaml": "^3.12.2",
|
|
167
168
|
"@types/jsonwebtoken": "^8.3.8",
|
|
169
|
+
"@types/libsodium-wrappers": "^0.7.9",
|
|
168
170
|
"@types/lodash": "^4.14.149",
|
|
169
171
|
"@types/marked": "^4.0.3",
|
|
170
172
|
"@types/marked-terminal": "^3.1.3",
|
|
@@ -188,6 +190,7 @@
|
|
|
188
190
|
"@types/triple-beam": "^1.3.0",
|
|
189
191
|
"@types/universal-analytics": "^0.4.5",
|
|
190
192
|
"@types/unzipper": "^0.10.0",
|
|
193
|
+
"@types/update-notifier": "^5.1.0",
|
|
191
194
|
"@types/uuid": "^8.3.1",
|
|
192
195
|
"@types/ws": "^7.2.3",
|
|
193
196
|
"@typescript-eslint/eslint-plugin": "^5.9.0",
|