firebase-tools 11.26.0 → 11.28.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.
Files changed (37) hide show
  1. package/lib/commands/ext-install.js +6 -1
  2. package/lib/commands/ext-update.js +6 -1
  3. package/lib/commands/firestore-databases-create.js +45 -0
  4. package/lib/commands/firestore-databases-delete.js +39 -0
  5. package/lib/commands/firestore-databases-get.js +25 -0
  6. package/lib/commands/firestore-databases-list.js +24 -0
  7. package/lib/commands/firestore-databases-update.js +42 -0
  8. package/lib/commands/firestore-indexes-list.js +2 -2
  9. package/lib/commands/firestore-locations.js +24 -0
  10. package/lib/commands/index.js +7 -0
  11. package/lib/commands/init.js +5 -0
  12. package/lib/commands/open.js +10 -0
  13. package/lib/deploy/firestore/deploy.js +2 -2
  14. package/lib/deploy/functions/backend.js +1 -5
  15. package/lib/deploy/functions/build.js +8 -11
  16. package/lib/deploy/functions/release/fabricator.js +16 -6
  17. package/lib/experiments.js +1 -6
  18. package/lib/extensions/extensionsHelper.js +5 -37
  19. package/lib/extensions/manifest.js +23 -1
  20. package/lib/firestore/{indexes-sort.js → api-sort.js} +10 -2
  21. package/lib/firestore/{indexes-api.js → api-types.js} +16 -1
  22. package/lib/firestore/{indexes.js → api.js} +122 -16
  23. package/lib/frameworks/astro/index.js +76 -0
  24. package/lib/frameworks/astro/utils.js +22 -0
  25. package/lib/frameworks/nuxt/index.js +34 -14
  26. package/lib/frameworks/nuxt/utils.js +11 -1
  27. package/lib/frameworks/nuxt2/index.js +3 -9
  28. package/lib/gcp/cloudfunctions.js +3 -0
  29. package/lib/gcp/cloudfunctionsv2.js +39 -26
  30. package/lib/init/features/extensions/index.js +16 -0
  31. package/lib/init/features/firestore/indexes.js +2 -2
  32. package/lib/init/features/index.js +3 -1
  33. package/lib/init/index.js +1 -0
  34. package/lib/prompt.js +19 -1
  35. package/npm-shrinkwrap.json +14 -14
  36. package/package.json +1 -1
  37. /package/lib/firestore/{indexes-spec.js → api-spec.js} +0 -0
package/lib/prompt.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.promptOnce = exports.prompt = void 0;
3
+ exports.confirm = exports.promptOnce = exports.prompt = void 0;
4
4
  const inquirer = require("inquirer");
5
5
  const error_1 = require("./error");
6
6
  async function prompt(options, questions) {
@@ -30,3 +30,21 @@ async function promptOnce(question, options = {}) {
30
30
  return options[question.name];
31
31
  }
32
32
  exports.promptOnce = promptOnce;
33
+ async function confirm(args) {
34
+ var _a;
35
+ if (!args.nonInteractive && !args.force) {
36
+ const message = (_a = args.message) !== null && _a !== void 0 ? _a : `Do you wish to continue?`;
37
+ return await promptOnce({
38
+ type: "confirm",
39
+ message,
40
+ default: args.default,
41
+ });
42
+ }
43
+ else if (args.nonInteractive && !args.force) {
44
+ throw new error_1.FirebaseError("Pass the --force flag to use this command in non-interactive mode");
45
+ }
46
+ else {
47
+ return true;
48
+ }
49
+ }
50
+ exports.confirm = confirm;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "11.26.0",
3
+ "version": "11.28.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "firebase-tools",
9
- "version": "11.26.0",
9
+ "version": "11.28.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@google-cloud/pubsub": "^3.0.1",
@@ -90,9 +90,9 @@
90
90
  }
91
91
  },
92
92
  "node_modules/@babel/parser": {
93
- "version": "7.19.1",
94
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.19.1.tgz",
95
- "integrity": "sha512-h7RCSorm1DdTVGJf3P2Mhj3kdnkmF/EiysUkzS2TdgAYqyjFdMQJbVuXOBej2SBJaXan/lIVtT6KkGbyyq753A==",
93
+ "version": "7.21.4",
94
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.4.tgz",
95
+ "integrity": "sha512-alVJj7k7zIxqBZ7BTRhz0IqJFxW1VJbm6N8JbcYhQ186df9ZBPbZBmWSqAMXwHGsCJdYks7z/voa3ibiS5bCIw==",
96
96
  "bin": {
97
97
  "parser": "bin/babel-parser.js"
98
98
  },
@@ -547,9 +547,9 @@
547
547
  }
548
548
  },
549
549
  "node_modules/acorn": {
550
- "version": "8.8.0",
551
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz",
552
- "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==",
550
+ "version": "8.8.2",
551
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",
552
+ "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==",
553
553
  "bin": {
554
554
  "acorn": "bin/acorn"
555
555
  },
@@ -7173,9 +7173,9 @@
7173
7173
  }
7174
7174
  },
7175
7175
  "@babel/parser": {
7176
- "version": "7.19.1",
7177
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.19.1.tgz",
7178
- "integrity": "sha512-h7RCSorm1DdTVGJf3P2Mhj3kdnkmF/EiysUkzS2TdgAYqyjFdMQJbVuXOBej2SBJaXan/lIVtT6KkGbyyq753A=="
7176
+ "version": "7.21.4",
7177
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.4.tgz",
7178
+ "integrity": "sha512-alVJj7k7zIxqBZ7BTRhz0IqJFxW1VJbm6N8JbcYhQ186df9ZBPbZBmWSqAMXwHGsCJdYks7z/voa3ibiS5bCIw=="
7179
7179
  },
7180
7180
  "@colors/colors": {
7181
7181
  "version": "1.5.0",
@@ -7546,9 +7546,9 @@
7546
7546
  }
7547
7547
  },
7548
7548
  "acorn": {
7549
- "version": "8.8.0",
7550
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz",
7551
- "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w=="
7549
+ "version": "8.8.2",
7550
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",
7551
+ "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw=="
7552
7552
  },
7553
7553
  "acorn-jsx": {
7554
7554
  "version": "5.3.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "11.26.0",
3
+ "version": "11.28.0",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
File without changes