firebase-tools 15.28.1 → 15.28.2
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/apphosting/backend.js +44 -10
- package/lib/apphosting/githubConnections.js +1 -1
- package/lib/apphosting/repo.js +1 -1
- package/lib/apphosting/rollout.js +1 -1
- package/lib/commands/ext-export.js +25 -29
- package/lib/commands/ext-migrate.js +36 -0
- package/lib/commands/functions-kits-install.js +21 -401
- package/lib/commands/functions-kits-uninstall.js +266 -0
- package/lib/commands/index.js +4 -0
- package/lib/config.js +34 -0
- package/lib/dataconnect/client.js +2 -2
- package/lib/deploy/functions/ensure.js +29 -19
- package/lib/deploy/functions/prepare.js +8 -1
- package/lib/deploy/functions/release/fabricator.js +19 -3
- package/lib/deploy/functions/release/planner.js +8 -0
- package/lib/extensions/listExtensions.js +27 -3
- package/lib/extensions/migrate.js +171 -0
- package/lib/extensions/replacementRegistry.js +39 -4
- package/lib/extensions/replacements.json +7 -7
- package/lib/functions/kits/env.js +38 -0
- package/lib/functions/kits/index.js +19 -0
- package/lib/functions/kits/install.js +709 -0
- package/lib/requireTosAcceptance.js +2 -1
- package/lib/tsconfig.compile.tsbuildinfo +1 -1
- package/lib/tsconfig.publish.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/schema/firebase-config.json +1 -1
|
@@ -5,6 +5,7 @@ const error_1 = require("./error");
|
|
|
5
5
|
const firedata_1 = require("./gcp/firedata");
|
|
6
6
|
const api_1 = require("./api");
|
|
7
7
|
const auth_1 = require("./auth");
|
|
8
|
+
const defaultCredentials_1 = require("./defaultCredentials");
|
|
8
9
|
const consoleLandingPage = new Map([
|
|
9
10
|
[firedata_1.APPHOSTING_TOS_ID, `${(0, api_1.consoleOrigin)()}/project/_/apphosting`],
|
|
10
11
|
[firedata_1.DATA_CONNECT_TOS_ID, `${(0, api_1.consoleOrigin)()}/project/_/dataconnect`],
|
|
@@ -13,7 +14,7 @@ function requireTosAcceptance(tosId) {
|
|
|
13
14
|
return () => requireTos(tosId);
|
|
14
15
|
}
|
|
15
16
|
async function requireTos(tosId) {
|
|
16
|
-
if (!(0, auth_1.loggedIn)()) {
|
|
17
|
+
if (!(0, auth_1.loggedIn)() || (await (0, defaultCredentials_1.hasDefaultCredentials)())) {
|
|
17
18
|
return;
|
|
18
19
|
}
|
|
19
20
|
const res = await (0, firedata_1.getTosStatus)();
|