firebase-tools 13.12.0 → 13.13.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.
@@ -13,7 +13,7 @@ const api_1 = require("../api");
13
13
  const fuzzy = require("fuzzy");
14
14
  const inquirer = require("inquirer");
15
15
  const APPHOSTING_CONN_PATTERN = /.+\/apphosting-github-conn-.+$/;
16
- const APPHOSTING_OAUTH_CONN_NAME = "apphosting-github-oauth";
16
+ const APPHOSTING_OAUTH_CONN_NAME = "firebase-app-hosting-github-oauth";
17
17
  const CONNECTION_NAME_REGEX = /^projects\/(?<projectId>[^\/]+)\/locations\/(?<location>[^\/]+)\/connections\/(?<id>[^\/]+)$/;
18
18
  function parseConnectionName(name) {
19
19
  const match = CONNECTION_NAME_REGEX.exec(name);
@@ -46,20 +46,20 @@ const EMULATOR_UPDATE_DETAILS = {
46
46
  },
47
47
  dataconnect: process.platform === "darwin"
48
48
  ? {
49
- version: "1.2.2",
50
- expectedSize: 24007488,
51
- expectedChecksum: "c1fb77895203681479ee5dd22d57249f",
49
+ version: "1.2.3",
50
+ expectedSize: 24056640,
51
+ expectedChecksum: "3ed315b230965d5a6471de08e59c226a",
52
52
  }
53
53
  : process.platform === "win32"
54
54
  ? {
55
- version: "1.2.2",
56
- expectedSize: 24414208,
57
- expectedChecksum: "7e263c2b2bc9055ead2db8102e883534",
55
+ version: "1.2.3",
56
+ expectedSize: 24466432,
57
+ expectedChecksum: "a371516844fea7ea6aad3c82baf0149c",
58
58
  }
59
59
  : {
60
- version: "1.2.2",
61
- expectedSize: 24023300,
62
- expectedChecksum: "12467418226ac9657fb64b4d719d0e1d",
60
+ version: "1.2.3",
61
+ expectedSize: 23965848,
62
+ expectedChecksum: "c5c342d76b0c118e74a5f6ecdcaa58b8",
63
63
  },
64
64
  };
65
65
  exports.DownloadDetails = {
@@ -87,9 +87,9 @@ async function getDevModeHandle(cwd) {
87
87
  return (0, utils_1.simpleProxy)(await host);
88
88
  }
89
89
  exports.getDevModeHandle = getDevModeHandle;
90
- async function getConfig(dir) {
91
- const { loadNuxtConfig } = await (0, utils_1.relativeRequire)(dir, "@nuxt/kit");
92
- return await loadNuxtConfig(dir);
90
+ async function getConfig(cwd) {
91
+ const { loadNuxtConfig } = await (0, utils_1.relativeRequire)(cwd, "@nuxt/kit");
92
+ return await loadNuxtConfig({ cwd });
93
93
  }
94
94
  exports.getConfig = getConfig;
95
95
  function init(setup, config) {
@@ -50,11 +50,11 @@ async function doSetup(setup, config) {
50
50
  newConnectorYaml.generate = {};
51
51
  }
52
52
  if (platforms.includes(IOS)) {
53
- const defaultOutputDir = (_a = newConnectorYaml.generate.swiftSdk) === null || _a === void 0 ? void 0 : _a.outputDir;
54
53
  const outputDir = await (0, prompt_1.promptOnce)({
55
54
  message: `What directory do you want to write your Swift SDK code to? (If not absolute, path will be relative to '${connectorInfo.directory}')`,
56
55
  type: "input",
57
- default: defaultOutputDir,
56
+ default: ((_a = newConnectorYaml.generate.swiftSdk) === null || _a === void 0 ? void 0 : _a.outputDir) ||
57
+ `./../.dataconnect/generated/${newConnectorYaml.connectorId}/swift-sdk`,
58
58
  });
59
59
  const swiftSdk = { outputDir };
60
60
  newConnectorYaml.generate.swiftSdk = swiftSdk;
@@ -63,7 +63,8 @@ async function doSetup(setup, config) {
63
63
  const outputDir = await (0, prompt_1.promptOnce)({
64
64
  message: `What directory do you want to write your JavaScript SDK code to? (If not absolute, path will be relative to '${connectorInfo.directory}')`,
65
65
  type: "input",
66
- default: (_b = newConnectorYaml.generate.javascriptSdk) === null || _b === void 0 ? void 0 : _b.outputDir,
66
+ default: ((_b = newConnectorYaml.generate.javascriptSdk) === null || _b === void 0 ? void 0 : _b.outputDir) ||
67
+ `./../.dataconnect/generated/${newConnectorYaml.connectorId}/javascript-sdk`,
67
68
  });
68
69
  const pkg = await (0, prompt_1.promptOnce)({
69
70
  message: "What package name do you want to use for your JavaScript SDK?",
@@ -88,7 +89,8 @@ async function doSetup(setup, config) {
88
89
  const outputDir = await (0, prompt_1.promptOnce)({
89
90
  message: `What directory do you want to write your Kotlin SDK code to? (If not absolute, path will be relative to '${connectorInfo.directory}')`,
90
91
  type: "input",
91
- default: (_f = newConnectorYaml.generate.kotlinSdk) === null || _f === void 0 ? void 0 : _f.outputDir,
92
+ default: ((_f = newConnectorYaml.generate.kotlinSdk) === null || _f === void 0 ? void 0 : _f.outputDir) ||
93
+ `./../.dataconnect/generated/${newConnectorYaml.connectorId}/kotlin-sdk/src/main/kotlin/${newConnectorYaml.connectorId}`,
92
94
  });
93
95
  const pkg = await (0, prompt_1.promptOnce)({
94
96
  message: "What package name do you want to use for your Kotlin SDK?",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "13.12.0",
3
+ "version": "13.13.0",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {