firebase-tools 10.5.0 → 10.7.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/command.js +4 -4
- package/lib/commands/deploy.js +1 -1
- package/lib/commands/emulators-start.js +7 -2
- package/lib/commands/ext-configure.js +15 -5
- package/lib/commands/ext-export.js +6 -5
- package/lib/commands/ext-install.js +28 -44
- package/lib/commands/ext-update.js +9 -1
- package/lib/commands/functions-delete.js +7 -3
- package/lib/commands/functions-secrets-destroy.js +23 -3
- package/lib/commands/functions-secrets-prune.js +15 -12
- package/lib/commands/functions-secrets-set.js +51 -4
- package/lib/commands/hosting-channel-deploy.js +2 -2
- package/lib/deploy/database/deploy.js +4 -0
- package/lib/deploy/database/index.js +1 -0
- package/lib/deploy/extensions/deploy.js +4 -4
- package/lib/deploy/extensions/deploymentSummary.js +8 -5
- package/lib/deploy/extensions/planner.js +36 -9
- package/lib/deploy/extensions/prepare.js +1 -1
- package/lib/deploy/extensions/secrets.js +2 -2
- package/lib/deploy/extensions/tasks.js +60 -21
- package/lib/deploy/functions/backend.js +37 -6
- package/lib/deploy/functions/build.js +162 -0
- package/lib/deploy/functions/checkIam.js +10 -6
- package/lib/deploy/functions/deploy.js +49 -28
- package/lib/deploy/functions/ensure.js +4 -4
- package/lib/deploy/functions/functionsDeployHelper.js +99 -24
- package/lib/deploy/functions/prepare.js +130 -62
- package/lib/deploy/functions/prepareFunctionsUpload.js +16 -21
- package/lib/deploy/functions/pricing.js +6 -3
- package/lib/deploy/functions/prompts.js +1 -7
- package/lib/deploy/functions/release/fabricator.js +70 -28
- package/lib/deploy/functions/release/index.js +41 -6
- package/lib/deploy/functions/release/planner.js +19 -12
- package/lib/deploy/functions/release/reporter.js +14 -11
- package/lib/deploy/functions/runtimes/discovery/parsing.js +12 -6
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +61 -13
- package/lib/deploy/functions/runtimes/node/index.js +1 -1
- package/lib/deploy/functions/runtimes/node/parseRuntimeAndValidateSDK.js +3 -3
- package/lib/deploy/functions/runtimes/node/parseTriggers.js +29 -24
- package/lib/deploy/functions/runtimes/node/versioning.js +2 -2
- package/lib/deploy/functions/services/auth.js +95 -0
- package/lib/deploy/functions/services/index.js +41 -21
- package/lib/deploy/functions/services/storage.js +1 -6
- package/lib/deploy/functions/validate.js +32 -6
- package/lib/deploy/hosting/args.js +2 -0
- package/lib/deploy/hosting/convertConfig.js +39 -8
- package/lib/deploy/hosting/deploy.js +3 -3
- package/lib/deploy/hosting/prepare.js +2 -2
- package/lib/deploy/hosting/release.js +6 -2
- package/lib/deploy/index.js +82 -93
- package/lib/deploy/remoteconfig/deploy.js +4 -0
- package/lib/deploy/remoteconfig/index.js +3 -1
- package/lib/emulator/auth/operations.js +5 -0
- package/lib/emulator/auth/utils.js +3 -25
- package/lib/emulator/controller.js +17 -14
- package/lib/emulator/downloadableEmulators.js +39 -23
- package/lib/emulator/extensions/postinstall.js +41 -0
- package/lib/emulator/extensions/validation.js +2 -2
- package/lib/emulator/extensionsEmulator.js +85 -21
- package/lib/emulator/functionsEmulator.js +88 -10
- package/lib/emulator/functionsEmulatorShared.js +37 -21
- package/lib/emulator/functionsEmulatorShell.js +2 -3
- package/lib/emulator/pubsubEmulator.js +13 -9
- package/lib/emulator/registry.js +34 -12
- package/lib/emulator/storage/apis/firebase.js +13 -8
- package/lib/emulator/storage/apis/gcloud.js +15 -9
- package/lib/emulator/storage/files.js +14 -3
- package/lib/emulator/storage/index.js +9 -1
- package/lib/emulator/storage/metadata.js +18 -8
- package/lib/emulator/storage/rules/manager.js +7 -17
- package/lib/emulator/storage/server.js +38 -12
- package/lib/ensureApiEnabled.js +8 -4
- package/lib/extensions/askUserForParam.js +14 -11
- package/lib/extensions/changelog.js +1 -1
- package/lib/extensions/emulator/optionsHelper.js +9 -10
- package/lib/extensions/emulator/specHelper.js +7 -1
- package/lib/extensions/emulator/triggerHelper.js +11 -14
- package/lib/extensions/extensionsApi.js +2 -1
- package/lib/extensions/extensionsHelper.js +30 -24
- package/lib/extensions/manifest.js +28 -8
- package/lib/extensions/paramHelper.js +19 -13
- package/lib/extensions/provisioningHelper.js +2 -2
- package/lib/extensions/warnings.js +3 -3
- package/lib/functions/env.js +10 -2
- package/lib/functions/events/index.js +7 -0
- package/lib/functions/events/v1.js +6 -0
- package/lib/functions/projectConfig.js +32 -6
- package/lib/functions/runtimeConfigExport.js +10 -6
- package/lib/functions/secrets.js +99 -6
- package/lib/functionsShellCommandAction.js +1 -1
- package/lib/gcp/cloudfunctions.js +44 -18
- package/lib/gcp/cloudfunctionsv2.js +48 -25
- package/lib/gcp/cloudtasks.js +5 -3
- package/lib/gcp/identityPlatform.js +44 -0
- package/lib/gcp/secretManager.js +2 -2
- package/lib/metaprogramming.js +2 -0
- package/lib/previews.js +1 -1
- package/lib/serve/functions.js +16 -19
- package/lib/serve/hosting.js +25 -12
- package/lib/serve/index.js +6 -0
- package/lib/track.js +15 -21
- package/lib/utils.js +30 -1
- package/npm-shrinkwrap.json +44 -2
- package/package.json +4 -1
- package/schema/firebase-config.json +6 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.7.1",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "firebase-tools",
|
|
9
|
-
"version": "10.
|
|
9
|
+
"version": "10.7.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@google-cloud/pubsub": "^2.18.4",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"exit-code": "^1.0.2",
|
|
31
31
|
"express": "^4.16.4",
|
|
32
32
|
"filesize": "^6.1.0",
|
|
33
|
+
"firebase-frameworks": "^0.3.0",
|
|
33
34
|
"fs-extra": "^5.0.0",
|
|
34
35
|
"glob": "^7.1.2",
|
|
35
36
|
"google-auth-library": "^7.11.0",
|
|
@@ -114,6 +115,7 @@
|
|
|
114
115
|
"@types/tcp-port-used": "^1.0.0",
|
|
115
116
|
"@types/tmp": "^0.1.0",
|
|
116
117
|
"@types/triple-beam": "^1.3.0",
|
|
118
|
+
"@types/universal-analytics": "^0.4.5",
|
|
117
119
|
"@types/unzipper": "^0.10.0",
|
|
118
120
|
"@types/uuid": "^8.3.1",
|
|
119
121
|
"@types/ws": "^7.2.3",
|
|
@@ -2477,6 +2479,12 @@
|
|
|
2477
2479
|
"integrity": "sha512-tl34wMtk3q+fSdRSJ+N83f47IyXLXPPuLjHm7cmAx0fE2Wml2TZCQV3FmQdSR5J6UEGV3qafG054e0cVVFCqPA==",
|
|
2478
2480
|
"dev": true
|
|
2479
2481
|
},
|
|
2482
|
+
"node_modules/@types/universal-analytics": {
|
|
2483
|
+
"version": "0.4.5",
|
|
2484
|
+
"resolved": "https://registry.npmjs.org/@types/universal-analytics/-/universal-analytics-0.4.5.tgz",
|
|
2485
|
+
"integrity": "sha512-Opb+Un786PS3te24VtJR/QPmX00P/pXaJQtLQYJklQefP4xP0Ic3mPc2z6SDz97OrITzR+RHTBEwjtNRjZ/nLQ==",
|
|
2486
|
+
"dev": true
|
|
2487
|
+
},
|
|
2480
2488
|
"node_modules/@types/unzipper": {
|
|
2481
2489
|
"version": "0.10.0",
|
|
2482
2490
|
"resolved": "https://registry.npmjs.org/@types/unzipper/-/unzipper-0.10.0.tgz",
|
|
@@ -6106,6 +6114,19 @@
|
|
|
6106
6114
|
"@firebase/app-types": "0.6.3"
|
|
6107
6115
|
}
|
|
6108
6116
|
},
|
|
6117
|
+
"node_modules/firebase-frameworks": {
|
|
6118
|
+
"version": "0.3.0",
|
|
6119
|
+
"resolved": "https://registry.npmjs.org/firebase-frameworks/-/firebase-frameworks-0.3.0.tgz",
|
|
6120
|
+
"integrity": "sha512-Zxtx5WsD8ZZdItIeDjjpM+JgaIWDdwBujmLYLKf2Ou6onyRsd8bNRrnVsqrnq4S3FN9TcNYliXdwMu7AwYdW7Q==",
|
|
6121
|
+
"dependencies": {
|
|
6122
|
+
"tslib": "^2.3.1"
|
|
6123
|
+
}
|
|
6124
|
+
},
|
|
6125
|
+
"node_modules/firebase-frameworks/node_modules/tslib": {
|
|
6126
|
+
"version": "2.3.1",
|
|
6127
|
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
|
|
6128
|
+
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
|
|
6129
|
+
},
|
|
6109
6130
|
"node_modules/firebase-functions": {
|
|
6110
6131
|
"version": "3.18.1",
|
|
6111
6132
|
"resolved": "https://registry.npmjs.org/firebase-functions/-/firebase-functions-3.18.1.tgz",
|
|
@@ -15801,6 +15822,12 @@
|
|
|
15801
15822
|
"integrity": "sha512-tl34wMtk3q+fSdRSJ+N83f47IyXLXPPuLjHm7cmAx0fE2Wml2TZCQV3FmQdSR5J6UEGV3qafG054e0cVVFCqPA==",
|
|
15802
15823
|
"dev": true
|
|
15803
15824
|
},
|
|
15825
|
+
"@types/universal-analytics": {
|
|
15826
|
+
"version": "0.4.5",
|
|
15827
|
+
"resolved": "https://registry.npmjs.org/@types/universal-analytics/-/universal-analytics-0.4.5.tgz",
|
|
15828
|
+
"integrity": "sha512-Opb+Un786PS3te24VtJR/QPmX00P/pXaJQtLQYJklQefP4xP0Ic3mPc2z6SDz97OrITzR+RHTBEwjtNRjZ/nLQ==",
|
|
15829
|
+
"dev": true
|
|
15830
|
+
},
|
|
15804
15831
|
"@types/unzipper": {
|
|
15805
15832
|
"version": "0.10.0",
|
|
15806
15833
|
"resolved": "https://registry.npmjs.org/@types/unzipper/-/unzipper-0.10.0.tgz",
|
|
@@ -18586,6 +18613,21 @@
|
|
|
18586
18613
|
}
|
|
18587
18614
|
}
|
|
18588
18615
|
},
|
|
18616
|
+
"firebase-frameworks": {
|
|
18617
|
+
"version": "0.3.0",
|
|
18618
|
+
"resolved": "https://registry.npmjs.org/firebase-frameworks/-/firebase-frameworks-0.3.0.tgz",
|
|
18619
|
+
"integrity": "sha512-Zxtx5WsD8ZZdItIeDjjpM+JgaIWDdwBujmLYLKf2Ou6onyRsd8bNRrnVsqrnq4S3FN9TcNYliXdwMu7AwYdW7Q==",
|
|
18620
|
+
"requires": {
|
|
18621
|
+
"tslib": "^2.3.1"
|
|
18622
|
+
},
|
|
18623
|
+
"dependencies": {
|
|
18624
|
+
"tslib": {
|
|
18625
|
+
"version": "2.3.1",
|
|
18626
|
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
|
|
18627
|
+
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
|
|
18628
|
+
}
|
|
18629
|
+
}
|
|
18630
|
+
},
|
|
18589
18631
|
"firebase-functions": {
|
|
18590
18632
|
"version": "3.18.1",
|
|
18591
18633
|
"resolved": "https://registry.npmjs.org/firebase-functions/-/firebase-functions-3.18.1.tgz",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.7.1",
|
|
4
4
|
"description": "Command-Line Interface for Firebase",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -28,6 +28,7 @@
|
|
|
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",
|
|
31
32
|
"test:hosting": "./scripts/hosting-tests/run.sh",
|
|
32
33
|
"test:triggers-end-to-end": "./scripts/triggers-end-to-end-tests/run.sh",
|
|
33
34
|
"test:storage-deploy": "./scripts/storage-deploy-tests/run.sh",
|
|
@@ -106,6 +107,7 @@
|
|
|
106
107
|
"exit-code": "^1.0.2",
|
|
107
108
|
"express": "^4.16.4",
|
|
108
109
|
"filesize": "^6.1.0",
|
|
110
|
+
"firebase-frameworks": "^0.3.0",
|
|
109
111
|
"fs-extra": "^5.0.0",
|
|
110
112
|
"glob": "^7.1.2",
|
|
111
113
|
"google-auth-library": "^7.11.0",
|
|
@@ -187,6 +189,7 @@
|
|
|
187
189
|
"@types/tcp-port-used": "^1.0.0",
|
|
188
190
|
"@types/tmp": "^0.1.0",
|
|
189
191
|
"@types/triple-beam": "^1.3.0",
|
|
192
|
+
"@types/universal-analytics": "^0.4.5",
|
|
190
193
|
"@types/unzipper": "^0.10.0",
|
|
191
194
|
"@types/uuid": "^8.3.1",
|
|
192
195
|
"@types/ws": "^7.2.3",
|
|
@@ -330,6 +330,9 @@
|
|
|
330
330
|
{
|
|
331
331
|
"additionalProperties": false,
|
|
332
332
|
"properties": {
|
|
333
|
+
"codebase": {
|
|
334
|
+
"type": "string"
|
|
335
|
+
},
|
|
333
336
|
"ignore": {
|
|
334
337
|
"items": {
|
|
335
338
|
"type": "string"
|
|
@@ -381,6 +384,9 @@
|
|
|
381
384
|
"items": {
|
|
382
385
|
"additionalProperties": false,
|
|
383
386
|
"properties": {
|
|
387
|
+
"codebase": {
|
|
388
|
+
"type": "string"
|
|
389
|
+
},
|
|
384
390
|
"ignore": {
|
|
385
391
|
"items": {
|
|
386
392
|
"type": "string"
|