@stoker-platform/cli 0.5.65 → 0.5.66
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.65",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"main": "./lib/src/main.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@google-cloud/secret-manager": "^6.1.1",
|
|
25
25
|
"@google-cloud/storage": "^7.19.0",
|
|
26
26
|
"@inquirer/prompts": "^8.4.2",
|
|
27
|
-
"@stoker-platform/node-client": "0.5.
|
|
28
|
-
"@stoker-platform/types": "0.5.
|
|
29
|
-
"@stoker-platform/utils": "0.5.
|
|
27
|
+
"@stoker-platform/node-client": "0.5.47",
|
|
28
|
+
"@stoker-platform/types": "0.5.30",
|
|
29
|
+
"@stoker-platform/utils": "0.5.39",
|
|
30
30
|
"algoliasearch": "^5.51.0",
|
|
31
31
|
"commander": "^14.0.0",
|
|
32
32
|
"cross-spawn": "^7.0.6",
|
|
@@ -829,7 +829,7 @@ export const addProject = async (options) => {
|
|
|
829
829
|
recaptchaKeyId = recaptchaKey.split("/").pop();
|
|
830
830
|
await updateProjectData(35);
|
|
831
831
|
}
|
|
832
|
-
|
|
832
|
+
const getRecaptchaKeyId = async () => {
|
|
833
833
|
if (!recaptchaKeyId) {
|
|
834
834
|
const listKeysResponse = await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${projectId}/keys?pageSize=100`, {
|
|
835
835
|
method: "GET",
|
|
@@ -850,6 +850,10 @@ export const addProject = async (options) => {
|
|
|
850
850
|
throw new Error("Failed to recover Recaptcha key ID");
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
|
+
return recaptchaKeyId;
|
|
854
|
+
};
|
|
855
|
+
if (getProgress() < 36) {
|
|
856
|
+
recaptchaKeyId = await getRecaptchaKeyId();
|
|
853
857
|
const recaptchaEnterpriseConfig = await fetch(`https://firebaseappcheck.googleapis.com/v1beta/projects/${projectId}/apps/${appId}/recaptchaEnterpriseConfig?updateMask=siteKey,tokenTtl,riskAnalysis`, {
|
|
854
858
|
method: "PATCH",
|
|
855
859
|
headers: {
|
|
@@ -931,6 +935,9 @@ export const addProject = async (options) => {
|
|
|
931
935
|
}
|
|
932
936
|
await updateProjectData(37);
|
|
933
937
|
}
|
|
938
|
+
if (!recaptchaKeyId) {
|
|
939
|
+
recaptchaKeyId = await getRecaptchaKeyId();
|
|
940
|
+
}
|
|
934
941
|
const firebaseJson = JSON.parse(await readFile(join(process.cwd(), "firebase.json"), "utf8"));
|
|
935
942
|
const authPort = firebaseJson.emulators.auth.port;
|
|
936
943
|
const databasePort = firebaseJson.emulators.database.port;
|
|
@@ -946,7 +953,7 @@ STOKER_ALGOLIA_ID="${process.env.ALGOLIA_ID || ""}"
|
|
|
946
953
|
STOKER_FB_FUNCTIONS_REGION="${process.env.FB_FUNCTIONS_REGION}"
|
|
947
954
|
FB_DATABASE="${projectId}-default-rtdb"
|
|
948
955
|
FB_FIRESTORE_EXPORT_BUCKET="${projectId}-export"`;
|
|
949
|
-
if (process.env.SENTRY_DSN) {
|
|
956
|
+
if (process.env.SENTRY_DSN && !options.development) {
|
|
950
957
|
envContent += `\nSTOKER_SENTRY_DSN="${process.env.SENTRY_DSN}"`;
|
|
951
958
|
}
|
|
952
959
|
if (process.env.TWILIO_ACCOUNT_SID && process.env.TWILIO_AUTH_TOKEN && process.env.TWILIO_PHONE_NUMBER) {
|