firebase-tools 13.20.1 → 13.20.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.
|
@@ -48,20 +48,20 @@ const EMULATOR_UPDATE_DETAILS = {
|
|
|
48
48
|
},
|
|
49
49
|
dataconnect: process.platform === "darwin"
|
|
50
50
|
? {
|
|
51
|
-
version: "1.4.
|
|
52
|
-
expectedSize:
|
|
53
|
-
expectedChecksum: "
|
|
51
|
+
version: "1.4.4",
|
|
52
|
+
expectedSize: 25142016,
|
|
53
|
+
expectedChecksum: "9b071275feaba21e04bbb0db842f945d",
|
|
54
54
|
}
|
|
55
55
|
: process.platform === "win32"
|
|
56
56
|
? {
|
|
57
|
-
version: "1.4.
|
|
58
|
-
expectedSize:
|
|
59
|
-
expectedChecksum: "
|
|
57
|
+
version: "1.4.4",
|
|
58
|
+
expectedSize: 25567744,
|
|
59
|
+
expectedChecksum: "d23bf88b04a09d666ae927a107317611",
|
|
60
60
|
}
|
|
61
61
|
: {
|
|
62
|
-
version: "1.4.
|
|
63
|
-
expectedSize:
|
|
64
|
-
expectedChecksum: "
|
|
62
|
+
version: "1.4.4",
|
|
63
|
+
expectedSize: 25055384,
|
|
64
|
+
expectedChecksum: "9c04a6c4738088305eb1a7b2a5d34df4",
|
|
65
65
|
},
|
|
66
66
|
};
|
|
67
67
|
exports.DownloadDetails = {
|
|
@@ -34,27 +34,34 @@ async function createInstance(projectId, location, instanceId, enableGoogleMlInt
|
|
|
34
34
|
if (enableGoogleMlIntegration) {
|
|
35
35
|
databaseFlags.push({ name: "cloudsql.enable_google_ml_integration", value: "on" });
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
37
|
+
let op;
|
|
38
|
+
try {
|
|
39
|
+
op = await client.post(`projects/${projectId}/instances`, {
|
|
40
|
+
name: instanceId,
|
|
41
|
+
region: location,
|
|
42
|
+
databaseVersion: "POSTGRES_15",
|
|
43
|
+
settings: {
|
|
44
|
+
tier: "db-f1-micro",
|
|
45
|
+
edition: "ENTERPRISE",
|
|
46
|
+
ipConfiguration: {
|
|
47
|
+
authorizedNetworks: [],
|
|
48
|
+
},
|
|
49
|
+
enableGoogleMlIntegration,
|
|
50
|
+
databaseFlags,
|
|
51
|
+
storageAutoResize: false,
|
|
52
|
+
userLabels: { "firebase-data-connect": "ft" },
|
|
53
|
+
insightsConfig: {
|
|
54
|
+
queryInsightsEnabled: true,
|
|
55
|
+
queryPlansPerMinute: 5,
|
|
56
|
+
queryStringLength: 1024,
|
|
57
|
+
},
|
|
55
58
|
},
|
|
56
|
-
}
|
|
57
|
-
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
catch (err) {
|
|
62
|
+
handleAllowlistError(err, location);
|
|
63
|
+
throw err;
|
|
64
|
+
}
|
|
58
65
|
if (!waitForCreation) {
|
|
59
66
|
return;
|
|
60
67
|
}
|
|
@@ -94,6 +101,11 @@ async function updateInstanceForDataConnect(instance, enableGoogleMlIntegration)
|
|
|
94
101
|
return pollRes;
|
|
95
102
|
}
|
|
96
103
|
exports.updateInstanceForDataConnect = updateInstanceForDataConnect;
|
|
104
|
+
function handleAllowlistError(err, region) {
|
|
105
|
+
if (err.message.includes("Not allowed to set system label: firebase-data-connect")) {
|
|
106
|
+
throw new error_1.FirebaseError(`Cloud SQL free trial instances are not yet available in ${region}. Please check https://firebase.google.com/docs/data-connect/ for a full list of available regions.`);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
97
109
|
function setDatabaseFlag(flag, flags = []) {
|
|
98
110
|
const temp = flags.filter((f) => f.name !== flag.name);
|
|
99
111
|
temp.push(flag);
|