firebase-tools 11.6.0 → 11.8.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.
Files changed (52) hide show
  1. package/lib/auth.js +1 -1
  2. package/lib/commands/crashlytics-mappingfile-generateid.js +26 -0
  3. package/lib/commands/crashlytics-mappingfile-upload.js +46 -0
  4. package/lib/commands/crashlytics-symbols-upload.js +18 -87
  5. package/lib/commands/functions-delete.js +2 -0
  6. package/lib/commands/functions-secrets-get.js +2 -0
  7. package/lib/commands/index.js +3 -0
  8. package/lib/crashlytics/buildToolsJarHelper.js +51 -0
  9. package/lib/deploy/functions/backend.js +4 -4
  10. package/lib/deploy/functions/build.js +98 -17
  11. package/lib/deploy/functions/cache/applyHash.js +29 -0
  12. package/lib/deploy/functions/cache/hash.js +30 -0
  13. package/lib/deploy/functions/cel.js +249 -0
  14. package/lib/deploy/functions/checkIam.js +6 -5
  15. package/lib/deploy/functions/functionsDeployHelper.js +12 -1
  16. package/lib/deploy/functions/params.js +262 -105
  17. package/lib/deploy/functions/prepare.js +34 -4
  18. package/lib/deploy/functions/prepareFunctionsUpload.js +12 -4
  19. package/lib/deploy/functions/release/fabricator.js +39 -6
  20. package/lib/deploy/functions/release/index.js +2 -0
  21. package/lib/deploy/functions/release/planner.js +17 -0
  22. package/lib/deploy/functions/runtimes/discovery/index.js +1 -16
  23. package/lib/deploy/functions/runtimes/discovery/parsing.js +16 -0
  24. package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +59 -131
  25. package/lib/deploy/functions/runtimes/node/parseTriggers.js +10 -1
  26. package/lib/emulator/constants.js +1 -1
  27. package/lib/emulator/controller.js +6 -11
  28. package/lib/emulator/extensionsEmulator.js +1 -0
  29. package/lib/emulator/functionsEmulator.js +18 -59
  30. package/lib/emulator/functionsEmulatorRuntime.js +12 -23
  31. package/lib/emulator/functionsRuntimeWorker.js +38 -7
  32. package/lib/emulator/storage/apis/firebase.js +145 -129
  33. package/lib/emulator/storage/apis/gcloud.js +102 -42
  34. package/lib/emulator/storage/files.js +25 -15
  35. package/lib/emulator/storage/metadata.js +86 -56
  36. package/lib/emulator/storage/multipart.js +2 -2
  37. package/lib/emulator/storage/rules/runtime.js +10 -2
  38. package/lib/emulator/storage/upload.js +45 -9
  39. package/lib/extensions/extensionsHelper.js +1 -1
  40. package/lib/functions/constants.js +14 -0
  41. package/lib/functions/env.js +9 -9
  42. package/lib/functions/secrets.js +8 -1
  43. package/lib/gcp/cloudfunctions.js +15 -18
  44. package/lib/gcp/cloudfunctionsv2.js +15 -18
  45. package/lib/gcp/cloudscheduler.js +32 -14
  46. package/lib/gcp/secretManager.js +15 -1
  47. package/lib/gcp/storage.js +15 -1
  48. package/lib/previews.js +1 -1
  49. package/lib/track.js +3 -0
  50. package/npm-shrinkwrap.json +563 -30
  51. package/package.json +7 -5
  52. package/templates/init/storage/storage.rules +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "11.6.0",
3
+ "version": "11.8.1",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
@@ -21,8 +21,6 @@
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'",
26
24
  "prepare": "npm run clean && npm run build -- --build tsconfig.publish.json",
27
25
  "test": "npm run lint:quiet && npm run test:compile && npm run mocha",
28
26
  "test:client-integration": "bash ./scripts/client-integration-tests/run.sh",
@@ -35,6 +33,7 @@
35
33
  "test:hosting-rewrites": "bash ./scripts/hosting-tests/rewrites-tests/run.sh",
36
34
  "test:import-export": "bash ./scripts/emulator-import-export-tests/run.sh",
37
35
  "test:triggers-end-to-end": "bash ./scripts/triggers-end-to-end-tests/run.sh",
36
+ "test:triggers-end-to-end:inspect": "bash ./scripts/triggers-end-to-end-tests/run.sh inspect",
38
37
  "test:storage-deploy": "bash ./scripts/storage-deploy-tests/run.sh",
39
38
  "test:storage-emulator-integration": "bash ./scripts/storage-emulator-integration/run.sh"
40
39
  },
@@ -94,6 +93,7 @@
94
93
  "abort-controller": "^3.0.0",
95
94
  "ajv": "^6.12.6",
96
95
  "archiver": "^5.0.0",
96
+ "async-lock": "1.3.2",
97
97
  "body-parser": "^1.19.0",
98
98
  "chokidar": "^3.0.2",
99
99
  "cjson": "^0.3.1",
@@ -103,7 +103,7 @@
103
103
  "configstore": "^5.0.1",
104
104
  "cors": "^2.8.5",
105
105
  "cross-env": "^5.1.3",
106
- "cross-spawn": "^7.0.1",
106
+ "cross-spawn": "^7.0.3",
107
107
  "csv-parse": "^5.0.4",
108
108
  "exegesis": "^4.1.0",
109
109
  "exegesis-express": "^4.0.0",
@@ -114,6 +114,7 @@
114
114
  "fs-extra": "^10.1.0",
115
115
  "glob": "^7.1.2",
116
116
  "google-auth-library": "^7.11.0",
117
+ "googleapis": "^105.0.0",
117
118
  "inquirer": "^8.2.0",
118
119
  "js-yaml": "^3.13.1",
119
120
  "jsonwebtoken": "^8.5.1",
@@ -128,7 +129,7 @@
128
129
  "node-fetch": "^2.6.7",
129
130
  "open": "^6.3.0",
130
131
  "ora": "^5.4.1",
131
- "portfinder": "^1.0.23",
132
+ "portfinder": "^1.0.32",
132
133
  "progress": "^2.0.3",
133
134
  "proxy-agent": "^5.0.0",
134
135
  "request": "^2.87.0",
@@ -155,6 +156,7 @@
155
156
  "@google/events": "^5.1.1",
156
157
  "@manifoldco/swagger-to-ts": "^2.0.0",
157
158
  "@types/archiver": "^5.1.0",
159
+ "@types/async-lock": "^1.1.5",
158
160
  "@types/body-parser": "^1.17.0",
159
161
  "@types/chai": "^4.3.0",
160
162
  "@types/chai-as-promised": "^7.1.4",
@@ -2,7 +2,7 @@ rules_version = '2';
2
2
  service firebase.storage {
3
3
  match /b/{bucket}/o {
4
4
  match /{allPaths=**} {
5
- allow read, write: if request.auth!=null;
5
+ allow read, write: if false;
6
6
  }
7
7
  }
8
8
  }