firebase-tools 14.10.0 → 14.10.1
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.
|
@@ -162,9 +162,12 @@ async function ensureAppHostingComputeServiceAccount(projectId, serviceAccount)
|
|
|
162
162
|
if (!(err instanceof error_1.FirebaseError)) {
|
|
163
163
|
throw err;
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
if (err.status === 403) {
|
|
166
166
|
throw new error_1.FirebaseError(`Failed to create backend due to missing delegation permissions for ${sa}. Make sure you have the iam.serviceAccounts.actAs permission.`, { original: err });
|
|
167
167
|
}
|
|
168
|
+
else if (err.status !== 404) {
|
|
169
|
+
throw new error_1.FirebaseError("Unexpected error occurred while testing for IAM service account permissions", { original: err });
|
|
170
|
+
}
|
|
168
171
|
}
|
|
169
172
|
await provisionDefaultComputeServiceAccount(projectId);
|
|
170
173
|
}
|
|
@@ -232,7 +235,7 @@ async function provisionDefaultComputeServiceAccount(projectId) {
|
|
|
232
235
|
}
|
|
233
236
|
catch (err) {
|
|
234
237
|
if ((0, error_1.getErrStatus)(err) === 400) {
|
|
235
|
-
(0, utils_1.logWarning)("Your App Hosting compute service account is still being provisioned in the background
|
|
238
|
+
(0, utils_1.logWarning)("Your App Hosting compute service account is still being provisioned in the background. If you encounter an error, please try again after a few moments.");
|
|
236
239
|
}
|
|
237
240
|
else {
|
|
238
241
|
throw err;
|
|
@@ -13,15 +13,7 @@ async function default_1(context, options) {
|
|
|
13
13
|
const projectId = (0, projectUtils_1.needProjectId)(options);
|
|
14
14
|
await (0, apphosting_1.ensureApiEnabled)(options);
|
|
15
15
|
await (0, backend_1.ensureRequiredApisEnabled)(projectId);
|
|
16
|
-
|
|
17
|
-
await (0, backend_1.ensureAppHostingComputeServiceAccount)(projectId, "");
|
|
18
|
-
}
|
|
19
|
-
catch (err) {
|
|
20
|
-
if (err.status === 400) {
|
|
21
|
-
(0, utils_1.logLabeledWarning)("apphosting", "Your App Hosting compute service account is still being provisioned. Please try again in a few moments.");
|
|
22
|
-
}
|
|
23
|
-
throw err;
|
|
24
|
-
}
|
|
16
|
+
await (0, backend_1.ensureAppHostingComputeServiceAccount)(projectId, "");
|
|
25
17
|
context.backendConfigs = new Map();
|
|
26
18
|
context.backendLocations = new Map();
|
|
27
19
|
context.backendStorageUris = new Map();
|
|
@@ -44,7 +44,6 @@ BEGIN
|
|
|
44
44
|
END
|
|
45
45
|
$do$;`;
|
|
46
46
|
const decoder = new node_string_decoder_1.StringDecoder();
|
|
47
|
-
const pgliteDebugLog = fs.createWriteStream("pglite-debug.log");
|
|
48
47
|
class PostgresServer {
|
|
49
48
|
async createPGServer(host = "127.0.0.1", port) {
|
|
50
49
|
const getDb = this.getDb.bind(this);
|
|
@@ -244,6 +243,7 @@ class PGliteExtendedQueryPatch {
|
|
|
244
243
|
this.connection = connection;
|
|
245
244
|
this.isExtendedQuery = false;
|
|
246
245
|
this.eqpErrored = false;
|
|
246
|
+
this.pgliteDebugLog = fs.createWriteStream("pglite-debug.log");
|
|
247
247
|
}
|
|
248
248
|
filterResponse(message, response) {
|
|
249
249
|
return __asyncGenerator(this, arguments, function* filterResponse_1() {
|
|
@@ -254,7 +254,7 @@ class PGliteExtendedQueryPatch {
|
|
|
254
254
|
pg_gateway_1.FrontendMessageCode.Close,
|
|
255
255
|
];
|
|
256
256
|
const decoded = decoder.write(message);
|
|
257
|
-
pgliteDebugLog.write("Front: " + decoded);
|
|
257
|
+
this.pgliteDebugLog.write("Front: " + decoded);
|
|
258
258
|
if (pipelineStartMessages.includes(message[0])) {
|
|
259
259
|
this.isExtendedQuery = true;
|
|
260
260
|
}
|
|
@@ -275,10 +275,10 @@ class PGliteExtendedQueryPatch {
|
|
|
275
275
|
this.eqpErrored = true;
|
|
276
276
|
}
|
|
277
277
|
if (this.isExtendedQuery && bm[0] === pg_gateway_1.BackendMessageCode.ReadyForQuery) {
|
|
278
|
-
pgliteDebugLog.write("Filtered: " + decoder.write(bm));
|
|
278
|
+
this.pgliteDebugLog.write("Filtered: " + decoder.write(bm));
|
|
279
279
|
continue;
|
|
280
280
|
}
|
|
281
|
-
pgliteDebugLog.write("Sent: " + decoder.write(bm));
|
|
281
|
+
this.pgliteDebugLog.write("Sent: " + decoder.write(bm));
|
|
282
282
|
yield yield __await(bm);
|
|
283
283
|
}
|
|
284
284
|
finally {
|
|
@@ -54,28 +54,28 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dataconnect": {
|
|
56
56
|
"darwin": {
|
|
57
|
-
"version": "2.9.
|
|
58
|
-
"expectedSize":
|
|
59
|
-
"expectedChecksum": "
|
|
60
|
-
"expectedChecksumSHA256": "
|
|
61
|
-
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-macos-v2.9.
|
|
62
|
-
"downloadPathRelativeToCacheDir": "dataconnect-emulator-2.9.
|
|
57
|
+
"version": "2.9.1",
|
|
58
|
+
"expectedSize": 29307744,
|
|
59
|
+
"expectedChecksum": "b6c7485c7a25b703610172a5718e372c",
|
|
60
|
+
"expectedChecksumSHA256": "2442af6068478fad6e202412ed41a9bb4ca663c27286e654042a346e8c7f1557",
|
|
61
|
+
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-macos-v2.9.1",
|
|
62
|
+
"downloadPathRelativeToCacheDir": "dataconnect-emulator-2.9.1"
|
|
63
63
|
},
|
|
64
64
|
"win32": {
|
|
65
|
-
"version": "2.9.
|
|
66
|
-
"expectedSize":
|
|
67
|
-
"expectedChecksum": "
|
|
68
|
-
"expectedChecksumSHA256": "
|
|
69
|
-
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-windows-v2.9.
|
|
70
|
-
"downloadPathRelativeToCacheDir": "dataconnect-emulator-2.9.
|
|
65
|
+
"version": "2.9.1",
|
|
66
|
+
"expectedSize": 29797888,
|
|
67
|
+
"expectedChecksum": "643ed6d0ef81488dc23f2ef5247d3f6f",
|
|
68
|
+
"expectedChecksumSHA256": "ffc2723ce25ffedb958b848c71fcda5bf488208e9d2ef4310ac4f41d6533934d",
|
|
69
|
+
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-windows-v2.9.1",
|
|
70
|
+
"downloadPathRelativeToCacheDir": "dataconnect-emulator-2.9.1.exe"
|
|
71
71
|
},
|
|
72
72
|
"linux": {
|
|
73
|
-
"version": "2.9.
|
|
74
|
-
"expectedSize":
|
|
75
|
-
"expectedChecksum": "
|
|
76
|
-
"expectedChecksumSHA256": "
|
|
77
|
-
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-linux-v2.9.
|
|
78
|
-
"downloadPathRelativeToCacheDir": "dataconnect-emulator-2.9.
|
|
73
|
+
"version": "2.9.1",
|
|
74
|
+
"expectedSize": 29233336,
|
|
75
|
+
"expectedChecksum": "4ae414db7c87ebe8da9fe12139203d67",
|
|
76
|
+
"expectedChecksumSHA256": "777e5ee6661cce1874f8c363d06ca446838b0e98840ec51b9aa8a79af6565db7",
|
|
77
|
+
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-linux-v2.9.1",
|
|
78
|
+
"downloadPathRelativeToCacheDir": "dataconnect-emulator-2.9.1"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|