firebase-tools 15.22.4 → 15.23.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/lib/apiv2.js +91 -32
- package/lib/apphosting/backend.js +11 -4
- package/lib/commands/functions-delete.js +5 -3
- package/lib/commands/functions-lifecycle-list.js +94 -0
- package/lib/commands/functions-lifecycle-run.js +29 -0
- package/lib/commands/index.js +3 -0
- package/lib/database/import.js +3 -3
- package/lib/dataconnect/webhook.js +1 -2
- package/lib/deploy/functions/backend.js +9 -0
- package/lib/deploy/functions/build.js +3 -0
- package/lib/deploy/functions/prepare.js +90 -1
- package/lib/deploy/functions/prompts.js +62 -0
- package/lib/deploy/functions/release/fabricator.js +79 -4
- package/lib/deploy/functions/release/index.js +40 -25
- package/lib/deploy/functions/release/lifecycle.js +44 -51
- package/lib/deploy/functions/release/planner.js +41 -5
- package/lib/deploy/functions/runtimes/discovery/index.js +4 -3
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +18 -1
- package/lib/deploy/functions/runtimes/node/index.js +1 -2
- package/lib/deploy/functions/runtimes/python/index.js +1 -2
- package/lib/deploy/hosting/uploader.js +2 -3
- package/lib/downloadUtils.js +3 -1
- package/lib/emulator/auth/operations.js +18 -8
- package/lib/emulator/downloadableEmulatorInfo.json +24 -24
- package/lib/emulator/storage/apis/gcloud.js +61 -0
- package/lib/emulator/storage/multipart.js +82 -2
- package/lib/emulator/taskQueue.js +3 -11
- package/lib/extensions/extensionsHelper.js +6 -4
- package/lib/gcp/iam.js +68 -2
- package/lib/gcp/knownRoles.json +99 -0
- package/lib/gcp/resourceManager.js +42 -1
- package/lib/gemini/fdcExperience.js +2 -2
- package/lib/hosting/initMiddleware.js +1 -1
- package/lib/hosting/proxy.js +42 -20
- package/lib/management/apps.js +4 -2
- package/lib/profiler.js +1 -2
- package/lib/streamUtils.js +24 -0
- package/lib/track.js +1 -2
- package/lib/tsconfig.compile.tsbuildinfo +1 -1
- package/lib/tsconfig.publish.tsbuildinfo +1 -1
- package/lib/utils.js +4 -21
- package/package.json +2 -4
package/lib/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.vscodeEnvVars = exports.envOverrides = exports.IS_WINDOWS = void 0;
|
|
3
|
+
exports.streamToString = exports.stringToStream = exports.vscodeEnvVars = exports.envOverrides = exports.IS_WINDOWS = void 0;
|
|
4
4
|
exports.consoleUrl = consoleUrl;
|
|
5
5
|
exports.getInheritedOption = getInheritedOption;
|
|
6
6
|
exports.setVSCodeEnvVars = setVSCodeEnvVars;
|
|
@@ -20,8 +20,6 @@ exports.logLabeledError = logLabeledError;
|
|
|
20
20
|
exports.reject = reject;
|
|
21
21
|
exports.allSettled = allSettled;
|
|
22
22
|
exports.explainStdin = explainStdin;
|
|
23
|
-
exports.stringToStream = stringToStream;
|
|
24
|
-
exports.streamToString = streamToString;
|
|
25
23
|
exports.makeActiveProject = makeActiveProject;
|
|
26
24
|
exports.endpoint = endpoint;
|
|
27
25
|
exports.getFunctionsEventProvider = getFunctionsEventProvider;
|
|
@@ -78,7 +76,6 @@ const clc = require("colorette");
|
|
|
78
76
|
const open = require("open");
|
|
79
77
|
const ora = require("ora");
|
|
80
78
|
const process = require("process");
|
|
81
|
-
const stream_1 = require("stream");
|
|
82
79
|
const assert_1 = require("assert");
|
|
83
80
|
const portfinder_1 = require("portfinder");
|
|
84
81
|
const configstore_1 = require("./configstore");
|
|
@@ -220,23 +217,9 @@ function explainStdin() {
|
|
|
220
217
|
logger_1.logger.info(clc.bold("Note:"), "Reading STDIN. Type JSON data and then press Ctrl-D");
|
|
221
218
|
}
|
|
222
219
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
const s = new stream_1.Readable();
|
|
228
|
-
s.push(text);
|
|
229
|
-
s.push(null);
|
|
230
|
-
return s;
|
|
231
|
-
}
|
|
232
|
-
function streamToString(s) {
|
|
233
|
-
return new Promise((resolve, reject) => {
|
|
234
|
-
let b = "";
|
|
235
|
-
s.on("error", reject);
|
|
236
|
-
s.on("data", (d) => (b += `${d}`));
|
|
237
|
-
s.once("end", () => resolve(b));
|
|
238
|
-
});
|
|
239
|
-
}
|
|
220
|
+
var streamUtils_1 = require("./streamUtils");
|
|
221
|
+
Object.defineProperty(exports, "stringToStream", { enumerable: true, get: function () { return streamUtils_1.stringToStream; } });
|
|
222
|
+
Object.defineProperty(exports, "streamToString", { enumerable: true, get: function () { return streamUtils_1.streamToString; } });
|
|
240
223
|
function makeActiveProject(projectDir, newActive) {
|
|
241
224
|
const activeProjects = configstore_1.configstore.get("activeProjects") || {};
|
|
242
225
|
if (newActive) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.23.0",
|
|
4
4
|
"description": "Command-Line Interface for Firebase",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"mcpName": "io.github.firebase/firebase-mcp",
|
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
"triple-beam": "^1.3.0",
|
|
128
128
|
"universal-analytics": "^0.5.3",
|
|
129
129
|
"update-notifier-cjs": "^5.1.6",
|
|
130
|
+
"undici": "^6.19.0",
|
|
130
131
|
"winston": "^3.0.0",
|
|
131
132
|
"winston-transport": "^4.4.0",
|
|
132
133
|
"ws": "^7.5.10",
|
|
@@ -138,9 +139,6 @@
|
|
|
138
139
|
"ajv-formats": "3.0.1",
|
|
139
140
|
"ajv": "^8.17.1"
|
|
140
141
|
},
|
|
141
|
-
"node-fetch": {
|
|
142
|
-
"whatwg-url": "^14.0.0"
|
|
143
|
-
},
|
|
144
142
|
"hono": "^4.11.4",
|
|
145
143
|
"@tootallnate/once": "^3.0.1",
|
|
146
144
|
"protobufjs": "^7.4.0",
|