firebase-tools 15.30.3-main.2 → 15.32.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "15.30.3-main.2",
3
+ "version": "15.32.0",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "mcpName": "io.github.firebase/firebase-mcp",
@@ -85,7 +85,7 @@
85
85
  "cors": "^2.8.5",
86
86
  "cross-env": "^7.0.3",
87
87
  "cross-spawn": "^7.0.5",
88
- "csv-parse": "^5.0.4",
88
+ "csv-parse": "^7.0.2",
89
89
  "exegesis": "^4.2.0",
90
90
  "exegesis-express": "^4.0.0",
91
91
  "express": "^4.16.4",
@@ -118,16 +118,16 @@
118
118
  "retry": "^0.13.1",
119
119
  "semver": "^7.5.2",
120
120
  "sql-formatter": "^15.3.0",
121
- "stream-chain": "^2.2.4",
122
- "stream-json": "^1.7.3",
121
+ "stream-chain": "^4.2.5",
122
+ "stream-json": "^3.6.0",
123
123
  "superstatic": "^10.0.0",
124
124
  "tar": "^7.5.11",
125
125
  "tcp-port-used": "^1.0.2",
126
126
  "tmp": "^0.2.3",
127
127
  "triple-beam": "^1.3.0",
128
+ "undici": "^6.19.0",
128
129
  "universal-analytics": "^0.5.3",
129
130
  "update-notifier-cjs": "^5.1.6",
130
- "undici": "^6.19.0",
131
131
  "winston": "^3.0.0",
132
132
  "winston-transport": "^4.4.0",
133
133
  "ws": "^8.21.1",
@@ -29,7 +29,7 @@ setGlobalOptions({
29
29
  // running at the same time. This helps mitigate the impact of unexpected
30
30
  // traffic spikes by instead downgrading performance. This limit is a
31
31
  // per-function limit.
32
- maxInstances: 10,
32
+ // maxInstances: 100,
33
33
  });
34
34
 
35
35
  // Exports the functions located in the kit.
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const express = require("express");
4
- const app = express();
5
- app.get("/backend.yaml", (req, res) => {
6
- res.setHeader("content-type", "text/yaml");
7
- res.send(process.env.BACKEND);
8
- });
9
- let port = 8080;
10
- if (process.env.ADMIN_PORT) {
11
- port = Number.parseInt(process.env.ADMIN_PORT);
12
- }
13
- console.error("Serving at port", port);
14
- app.listen(port);
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkDatabaseType = checkDatabaseType;
4
- const api_1 = require("../api");
5
- const apiv2_1 = require("../apiv2");
6
- const logger_1 = require("../logger");
7
- const error_1 = require("../error");
8
- async function checkDatabaseType(projectId, databaseId = "(default)") {
9
- try {
10
- const client = new apiv2_1.Client({ urlPrefix: (0, api_1.firestoreOrigin)(), apiVersion: "v1" });
11
- const resp = await client.get(`/projects/${projectId}/databases/${databaseId}`);
12
- return resp.body.type;
13
- }
14
- catch (err) {
15
- logger_1.logger.debug("error getting database type: ", err);
16
- if (err instanceof error_1.FirebaseError) {
17
- if (err.status === 404) {
18
- logger_1.logger.info(`${databaseId} does not exist in project ${projectId}.`);
19
- return "DATABASE_DOES_NOT_EXIST";
20
- }
21
- }
22
- return undefined;
23
- }
24
- }