firebase-tools 11.4.0 → 11.5.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 +8 -15
- package/lib/accountImporter.js +1 -1
- package/lib/auth.js +3 -4
- package/lib/bin/firebase.js +4 -4
- package/lib/command.js +3 -3
- package/lib/commands/apps-android-sha-create.js +1 -1
- package/lib/commands/apps-android-sha-delete.js +1 -1
- package/lib/commands/apps-create.js +1 -1
- package/lib/commands/apps-list.js +1 -1
- package/lib/commands/auth-export.js +1 -1
- package/lib/commands/auth-import.js +1 -1
- package/lib/commands/database-instances-list.js +1 -1
- package/lib/commands/database-push.js +1 -1
- package/lib/commands/database-remove.js +1 -1
- package/lib/commands/database-set.js +1 -1
- package/lib/commands/database-update.js +1 -1
- package/lib/commands/emulators-start.js +1 -1
- package/lib/commands/ext-dev-deprecate.js +1 -1
- package/lib/commands/ext-dev-emulators-exec.js +1 -1
- package/lib/commands/ext-dev-emulators-start.js +1 -1
- package/lib/commands/ext-dev-extension-delete.js +1 -1
- package/lib/commands/ext-dev-list.js +1 -1
- package/lib/commands/ext-dev-publish.js +1 -1
- package/lib/commands/ext-dev-register.js +1 -1
- package/lib/commands/ext-dev-undeprecate.js +1 -1
- package/lib/commands/ext-dev-unpublish.js +1 -1
- package/lib/commands/ext-dev-usage.js +1 -1
- package/lib/commands/ext-info.js +1 -1
- package/lib/commands/ext-install.js +2 -2
- package/lib/commands/ext-update.js +1 -1
- package/lib/commands/ext.js +1 -1
- package/lib/commands/firestore-delete.js +2 -2
- package/lib/commands/firestore-indexes-list.js +3 -3
- package/lib/commands/functions-config-clone.js +1 -1
- package/lib/commands/functions-config-export.js +1 -1
- package/lib/commands/functions-config-set.js +1 -1
- package/lib/commands/functions-config-unset.js +1 -1
- package/lib/commands/functions-delete.js +1 -1
- package/lib/commands/functions-secrets-set.js +1 -1
- package/lib/commands/help.js +1 -1
- package/lib/commands/hosting-channel-create.js +5 -5
- package/lib/commands/hosting-channel-delete.js +3 -3
- package/lib/commands/hosting-channel-deploy.js +6 -6
- package/lib/commands/hosting-channel-list.js +2 -2
- package/lib/commands/hosting-channel-open.js +2 -2
- package/lib/commands/hosting-clone.js +13 -8
- package/lib/commands/hosting-disable.js +1 -1
- package/lib/commands/hosting-sites-create.js +4 -4
- package/lib/commands/hosting-sites-delete.js +4 -4
- package/lib/commands/hosting-sites-list.js +2 -2
- package/lib/commands/init.js +5 -5
- package/lib/commands/login-add.js +1 -1
- package/lib/commands/login-ci.js +4 -2
- package/lib/commands/login-list.js +1 -1
- package/lib/commands/login-use.js +1 -1
- package/lib/commands/login.js +1 -1
- package/lib/commands/logout.js +1 -1
- package/lib/commands/open.js +3 -3
- package/lib/commands/projects-list.js +2 -2
- package/lib/commands/serve.js +1 -1
- package/lib/commands/target-apply.js +1 -1
- package/lib/commands/target-clear.js +1 -1
- package/lib/commands/target-remove.js +1 -1
- package/lib/commands/target.js +1 -1
- package/lib/commands/use.js +7 -7
- package/lib/config.js +1 -1
- package/lib/deploy/database/prepare.js +3 -3
- package/lib/deploy/database/release.js +3 -3
- package/lib/deploy/extensions/deploymentSummary.js +1 -1
- package/lib/deploy/extensions/errors.js +1 -1
- package/lib/deploy/extensions/secrets.js +1 -1
- package/lib/deploy/extensions/tasks.js +2 -2
- package/lib/deploy/firestore/deploy.js +2 -2
- package/lib/deploy/firestore/prepare.js +2 -2
- package/lib/deploy/functions/backend.js +7 -5
- package/lib/deploy/functions/build.js +110 -95
- package/lib/deploy/functions/checkIam.js +3 -3
- package/lib/deploy/functions/containerCleaner.js +2 -2
- package/lib/deploy/functions/deploy.js +2 -2
- package/lib/deploy/functions/ensure.js +2 -2
- package/lib/deploy/functions/params.js +5 -2
- package/lib/deploy/functions/prepare.js +4 -4
- package/lib/deploy/functions/prepareFunctionsUpload.js +2 -2
- package/lib/deploy/functions/pricing.js +3 -2
- package/lib/deploy/functions/prompts.js +2 -2
- package/lib/deploy/functions/release/fabricator.js +10 -9
- package/lib/deploy/functions/release/index.js +1 -1
- package/lib/deploy/functions/release/reporter.js +1 -1
- package/lib/deploy/functions/runtimes/discovery/parsing.js +19 -8
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +112 -107
- package/lib/deploy/functions/runtimes/node/parseRuntimeAndValidateSDK.js +1 -1
- package/lib/deploy/functions/runtimes/node/parseTriggers.js +54 -26
- package/lib/deploy/functions/runtimes/node/versioning.js +4 -4
- package/lib/deploy/functions/services/storage.js +6 -0
- package/lib/deploy/functions/validate.js +1 -1
- package/lib/deploy/hosting/convertConfig.js +13 -2
- package/lib/deploy/hosting/deploy.js +11 -10
- package/lib/deploy/hosting/uploader.js +2 -2
- package/lib/deploy/hosting/validate.js +2 -2
- package/lib/deploy/index.js +7 -7
- package/lib/deploy/lifecycleHooks.js +5 -2
- package/lib/deploy/storage/prepare.js +5 -3
- package/lib/deploy/storage/release.js +7 -6
- package/lib/emulator/commandUtils.js +1 -1
- package/lib/emulator/controller.js +1 -1
- package/lib/emulator/databaseEmulator.js +1 -1
- package/lib/emulator/downloadableEmulators.js +1 -1
- package/lib/emulator/emulatorLogger.js +1 -1
- package/lib/emulator/extensionsEmulator.js +2 -2
- package/lib/emulator/firestoreEmulator.js +1 -1
- package/lib/emulator/functionsEmulator.js +22 -10
- package/lib/emulator/functionsEmulatorShared.js +6 -11
- package/lib/emulator/loggingEmulator.js +2 -2
- package/lib/emulator/storage/apis/firebase.js +13 -1
- package/lib/emulator/storage/apis/gcloud.js +15 -8
- package/lib/emulator/storage/files.js +26 -24
- package/lib/emulator/storage/metadata.js +6 -6
- package/lib/emulator/storage/multipart.js +4 -3
- package/lib/emulator/storage/persistence.js +26 -12
- package/lib/emulator/storage/rules/runtime.js +1 -1
- package/lib/emulator/storage/rules/utils.js +4 -2
- package/lib/emulator/types.js +1 -0
- package/lib/ensureApiEnabled.js +7 -7
- package/lib/extensions/askUserForConsent.js +1 -1
- package/lib/extensions/askUserForEventsConfig.js +1 -1
- package/lib/extensions/askUserForParam.js +1 -1
- package/lib/extensions/changelog.js +2 -2
- package/lib/extensions/checkProjectBilling.js +2 -2
- package/lib/extensions/displayExtensionInfo.js +2 -102
- package/lib/extensions/emulator/triggerHelper.js +2 -2
- package/lib/extensions/extensionsApi.js +1 -1
- package/lib/extensions/extensionsHelper.js +1 -1
- package/lib/extensions/listExtensions.js +1 -1
- package/lib/extensions/manifest.js +1 -1
- package/lib/extensions/metricsUtils.js +1 -1
- package/lib/extensions/paramHelper.js +1 -1
- package/lib/extensions/updateHelper.js +3 -9
- package/lib/extensions/warnings.js +2 -2
- package/lib/fetchMOTD.js +1 -1
- package/lib/firestore/delete.js +1 -1
- package/lib/firestore/indexes.js +2 -2
- package/lib/firestore/validator.js +1 -1
- package/lib/functional.js +16 -1
- package/lib/functions/env.js +3 -3
- package/lib/functions/runtimeConfigExport.js +1 -1
- package/lib/functionsConfig.js +1 -1
- package/lib/functionsConfigClone.js +1 -1
- package/lib/functionsShellCommandAction.js +1 -1
- package/lib/gcp/cloudfunctions.js +24 -11
- package/lib/gcp/cloudfunctionsv2.js +48 -24
- package/lib/gcp/cloudscheduler.js +58 -22
- package/lib/gcp/cloudtasks.js +21 -4
- package/lib/gcp/proto.js +18 -6
- package/lib/gcp/resourceManager.js +25 -3
- package/lib/gcp/serviceusage.js +2 -2
- package/lib/handlePreviewToggles.js +4 -4
- package/lib/hosting/implicitInit.js +1 -1
- package/lib/hosting/normalizedHostingConfigs.js +3 -3
- package/lib/index.js +3 -3
- package/lib/init/features/database.js +1 -1
- package/lib/init/features/emulators.js +1 -1
- package/lib/init/features/firestore/index.js +2 -2
- package/lib/init/features/firestore/indexes.js +1 -1
- package/lib/init/features/firestore/rules.js +1 -1
- package/lib/init/features/functions/golang.js +1 -1
- package/lib/init/features/functions/index.js +8 -1
- package/lib/init/features/hosting/github.js +9 -9
- package/lib/init/features/hosting/index.js +1 -1
- package/lib/init/features/project.js +1 -1
- package/lib/init/features/remoteconfig.js +1 -1
- package/lib/init/features/storage.js +1 -1
- package/lib/init/index.js +1 -1
- package/lib/logError.js +3 -3
- package/lib/management/projects.js +1 -1
- package/lib/parseBoltRules.js +1 -1
- package/lib/previews.js +1 -1
- package/lib/profileReport.js +2 -2
- package/lib/projectUtils.js +1 -1
- package/lib/rc.js +1 -1
- package/lib/requireAuth.js +5 -1
- package/lib/requireDatabaseInstance.js +2 -2
- package/lib/requirePermissions.js +2 -2
- package/lib/rulesDeploy.js +49 -13
- package/lib/serve/hosting.js +2 -1
- package/lib/utils.js +10 -10
- package/npm-shrinkwrap.json +26 -295
- package/package.json +8 -5
- package/templates/hosting/init.js +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.5.0",
|
|
4
4
|
"description": "Command-Line Interface for Firebase",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -21,16 +21,19 @@
|
|
|
21
21
|
"lint:quiet": "npm run lint:ts -- --quiet && npm run lint:other",
|
|
22
22
|
"lint:ts": "eslint --config .eslintrc.js --ext .ts,.js .",
|
|
23
23
|
"mocha": "nyc mocha 'src/test/**/*.{ts,js}'",
|
|
24
|
+
"mocha:storage-spec": "mocha 'src/test/emulators/storage/*.spec.ts'",
|
|
25
|
+
"mocha:storage-emulator-integration": "mocha 'scripts/storage-emulator-integration/tests.ts'",
|
|
24
26
|
"prepare": "npm run clean && npm run build -- --build tsconfig.publish.json",
|
|
25
27
|
"test": "npm run lint:quiet && npm run test:compile && npm run mocha",
|
|
26
28
|
"test:client-integration": "bash ./scripts/client-integration-tests/run.sh",
|
|
27
29
|
"test:compile": "tsc --project tsconfig.compile.json",
|
|
28
30
|
"test:emulator": "bash ./scripts/emulator-tests/run.sh",
|
|
29
|
-
"test:import-export": "bash ./scripts/emulator-import-export-tests/run.sh",
|
|
30
31
|
"test:extensions-deploy": "bash ./scripts/extensions-deploy-tests/run.sh",
|
|
31
32
|
"test:extensions-emulator": "bash ./scripts/extensions-emulator-tests/run.sh",
|
|
33
|
+
"test:functions-deploy": "bash ./scripts/functions-deploy-tests/run.sh",
|
|
32
34
|
"test:hosting": "bash ./scripts/hosting-tests/run.sh",
|
|
33
35
|
"test:hosting-rewrites": "bash ./scripts/hosting-tests/rewrites-tests/run.sh",
|
|
36
|
+
"test:import-export": "bash ./scripts/emulator-import-export-tests/run.sh",
|
|
34
37
|
"test:triggers-end-to-end": "bash ./scripts/triggers-end-to-end-tests/run.sh",
|
|
35
38
|
"test:storage-deploy": "bash ./scripts/storage-deploy-tests/run.sh",
|
|
36
39
|
"test:storage-emulator-integration": "bash ./scripts/storage-emulator-integration/run.sh"
|
|
@@ -94,8 +97,8 @@
|
|
|
94
97
|
"body-parser": "^1.19.0",
|
|
95
98
|
"chokidar": "^3.0.2",
|
|
96
99
|
"cjson": "^0.3.1",
|
|
97
|
-
"cli-color": "^2.0.2",
|
|
98
100
|
"cli-table": "0.3.11",
|
|
101
|
+
"colorette": "^2.0.19",
|
|
99
102
|
"commander": "^4.0.1",
|
|
100
103
|
"configstore": "^5.0.1",
|
|
101
104
|
"cors": "^2.8.5",
|
|
@@ -134,6 +137,7 @@
|
|
|
134
137
|
"semver": "^5.7.1",
|
|
135
138
|
"stream-chain": "^2.2.4",
|
|
136
139
|
"stream-json": "^1.7.3",
|
|
140
|
+
"strip-ansi": "^6.0.1",
|
|
137
141
|
"superstatic": "^8.0.0",
|
|
138
142
|
"tar": "^6.1.11",
|
|
139
143
|
"tcp-port-used": "^1.0.2",
|
|
@@ -155,7 +159,6 @@
|
|
|
155
159
|
"@types/chai": "^4.3.0",
|
|
156
160
|
"@types/chai-as-promised": "^7.1.4",
|
|
157
161
|
"@types/cjson": "^0.5.0",
|
|
158
|
-
"@types/cli-color": "^2.0.2",
|
|
159
162
|
"@types/cli-table": "^0.3.0",
|
|
160
163
|
"@types/configstore": "^4.0.0",
|
|
161
164
|
"@types/cors": "^2.8.10",
|
|
@@ -205,7 +208,7 @@
|
|
|
205
208
|
"eslint-plugin-prettier": "^4.0.0",
|
|
206
209
|
"firebase": "^7.24.0",
|
|
207
210
|
"firebase-admin": "^9.4.2",
|
|
208
|
-
"firebase-functions": "^3.
|
|
211
|
+
"firebase-functions": "^3.22.0",
|
|
209
212
|
"google-discovery-to-swagger": "^2.1.0",
|
|
210
213
|
"mocha": "^9.1.3",
|
|
211
214
|
"nock": "^13.0.5",
|
|
@@ -6,8 +6,8 @@ if (firebaseConfig) {
|
|
|
6
6
|
/*--EMULATORS--*/
|
|
7
7
|
if (firebaseEmulators) {
|
|
8
8
|
console.log("Automatically connecting Firebase SDKs to running emulators:");
|
|
9
|
-
Object.keys(firebaseEmulators).forEach(function(key) {
|
|
10
|
-
console.log('\t' + key + ': http://' +
|
|
9
|
+
Object.keys(firebaseEmulators).forEach(function (key) {
|
|
10
|
+
console.log('\t' + key + ': http://' + firebaseEmulators[key].host + ':' + firebaseEmulators[key].port);
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
if (firebaseEmulators.database && typeof firebase.database === 'function') {
|
|
@@ -25,6 +25,10 @@ if (firebaseConfig) {
|
|
|
25
25
|
if (firebaseEmulators.auth && typeof firebase.auth === 'function') {
|
|
26
26
|
firebase.auth().useEmulator('http://' + firebaseEmulators.auth.host + ':' + firebaseEmulators.auth.port);
|
|
27
27
|
}
|
|
28
|
+
|
|
29
|
+
if (firebaseEmulators.storage && typeof firebase.storage === 'function') {
|
|
30
|
+
firebase.storage().useEmulator(firebaseEmulators.storage.host, firebaseEmulators.storage.port);
|
|
31
|
+
}
|
|
28
32
|
} else {
|
|
29
33
|
console.log("To automatically connect the Firebase SDKs to running emulators, replace '/__/firebase/init.js' with '/__/firebase/init.js?useEmulator=true' in your index.html");
|
|
30
34
|
}
|