@base44-preview/cli 0.0.32-pr.251.2056a80 → 0.0.32-pr.251.fd02def
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/dist/cli/index.js +9 -16
- package/dist/cli/index.js.map +6 -6
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -185412,9 +185412,7 @@ async function syncStripeConnector(localStripe) {
|
|
|
185412
185412
|
return handleStripeInstall();
|
|
185413
185413
|
}
|
|
185414
185414
|
if (alreadySynced) {
|
|
185415
|
-
|
|
185416
|
-
const hasUnclaimedSandbox = mode === "sandbox" && remoteStatus.sandbox_claim_url;
|
|
185417
|
-
return hasUnclaimedSandbox ? stripeProvisioned(mode, remoteStatus.sandbox_claim_url ?? undefined) : stripeSynced();
|
|
185415
|
+
return stripeSynced();
|
|
185418
185416
|
}
|
|
185419
185417
|
if (needsRemoval) {
|
|
185420
185418
|
return handleStripeRemoval();
|
|
@@ -185423,10 +185421,7 @@ async function syncStripeConnector(localStripe) {
|
|
|
185423
185421
|
}
|
|
185424
185422
|
async function fetchStripeRemoteStatus() {
|
|
185425
185423
|
try {
|
|
185426
|
-
|
|
185427
|
-
if (!status)
|
|
185428
|
-
return "error";
|
|
185429
|
-
return status;
|
|
185424
|
+
return await getStripeStatus();
|
|
185430
185425
|
} catch {
|
|
185431
185426
|
return "error";
|
|
185432
185427
|
}
|
|
@@ -185434,9 +185429,7 @@ async function fetchStripeRemoteStatus() {
|
|
|
185434
185429
|
async function handleStripeInstall() {
|
|
185435
185430
|
try {
|
|
185436
185431
|
const result = await installStripe();
|
|
185437
|
-
|
|
185438
|
-
const mode = status !== "error" && status.stripe_mode ? status.stripe_mode : "sandbox";
|
|
185439
|
-
return stripeProvisioned(mode, result.claim_url ?? undefined);
|
|
185432
|
+
return stripeProvisioned(result.claim_url ?? undefined);
|
|
185440
185433
|
} catch (err) {
|
|
185441
185434
|
return stripeError(err instanceof Error ? err.message : String(err));
|
|
185442
185435
|
}
|
|
@@ -185452,8 +185445,8 @@ async function handleStripeRemoval() {
|
|
|
185452
185445
|
function stripeSynced() {
|
|
185453
185446
|
return { type: STRIPE_CONNECTOR_TYPE, action: "synced" };
|
|
185454
185447
|
}
|
|
185455
|
-
function stripeProvisioned(
|
|
185456
|
-
return { type: STRIPE_CONNECTOR_TYPE, action: "provisioned",
|
|
185448
|
+
function stripeProvisioned(claimUrl) {
|
|
185449
|
+
return { type: STRIPE_CONNECTOR_TYPE, action: "provisioned", claimUrl };
|
|
185457
185450
|
}
|
|
185458
185451
|
function stripeRemoved() {
|
|
185459
185452
|
return { type: STRIPE_CONNECTOR_TYPE, action: "removed" };
|
|
@@ -194534,7 +194527,7 @@ var open_default = open;
|
|
|
194534
194527
|
var POLL_INTERVAL_MS = 2000;
|
|
194535
194528
|
var POLL_TIMEOUT_MS = 2 * 60 * 1000;
|
|
194536
194529
|
function filterPendingOAuth(results) {
|
|
194537
|
-
return results.filter((r2) => r2.action === "needs_oauth");
|
|
194530
|
+
return results.filter((r2) => r2.action === "needs_oauth" && !!r2.connectionId);
|
|
194538
194531
|
}
|
|
194539
194532
|
async function runOAuthFlowWithSkip(connector2) {
|
|
194540
194533
|
await open_default(connector2.redirectUrl);
|
|
@@ -194653,7 +194646,7 @@ function printSummary(results, oauthOutcomes) {
|
|
|
194653
194646
|
}
|
|
194654
194647
|
M2.info(theme.styles.bold("Summary:"));
|
|
194655
194648
|
for (const i2 of provisioned) {
|
|
194656
|
-
M2.success(`Provisioned: ${i2.type}
|
|
194649
|
+
M2.success(`Provisioned: ${i2.type}`);
|
|
194657
194650
|
if (i2.claimUrl) {
|
|
194658
194651
|
M2.info(` Claim your Stripe account: ${theme.colors.links(i2.claimUrl)}`);
|
|
194659
194652
|
}
|
|
@@ -195052,7 +195045,7 @@ async function handleOAuthConnectors(connectorResults, options) {
|
|
|
195052
195045
|
}
|
|
195053
195046
|
}
|
|
195054
195047
|
function printStripeResult(r2) {
|
|
195055
|
-
M2.success(`Provisioned: Stripe
|
|
195048
|
+
M2.success(`Provisioned: Stripe`);
|
|
195056
195049
|
if (r2.claimUrl) {
|
|
195057
195050
|
M2.info(` Claim your Stripe account: ${theme.colors.links(r2.claimUrl)}`);
|
|
195058
195051
|
}
|
|
@@ -199946,4 +199939,4 @@ export {
|
|
|
199946
199939
|
CLIExitError
|
|
199947
199940
|
};
|
|
199948
199941
|
|
|
199949
|
-
//# debugId=
|
|
199942
|
+
//# debugId=72EE81BD671BA57A64756E2164756E21
|