sim-setup 1.0.12-preview.105.1 → 1.0.12-preview.107.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.
- package/dist/index.js +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33251,18 +33251,24 @@ function checkCoherence(ctx) {
|
|
|
33251
33251
|
needs: ["STRIPE_SECRET_KEY"],
|
|
33252
33252
|
label: "billing"
|
|
33253
33253
|
},
|
|
33254
|
+
{
|
|
33255
|
+
flag: "SLACK_EXTENDED_SCOPES",
|
|
33256
|
+
needs: ["SLACK_SIGNING_SECRET"],
|
|
33257
|
+
label: "native Slack triggers",
|
|
33258
|
+
disableFields: ["SLACK_EXTENDED_SCOPES", "NEXT_PUBLIC_SLACK_EXTENDED_SCOPES"]
|
|
33259
|
+
},
|
|
33254
33260
|
{ flag: "SSO_ENABLED", needs: ["SSO_ISSUER"], label: "SSO" }
|
|
33255
33261
|
];
|
|
33256
33262
|
for (const rule of featureRules) {
|
|
33257
33263
|
if (!isTruthy(sim.vars.get(rule.flag)))
|
|
33258
33264
|
continue;
|
|
33259
|
-
const missing = rule.needs.filter((key) => !sim.vars.get(key));
|
|
33265
|
+
const missing = rule.needs.filter((key) => !sim.vars.get(key)?.trim());
|
|
33260
33266
|
if (missing.length > 0) {
|
|
33261
33267
|
findings.push({
|
|
33262
33268
|
group: "coherence",
|
|
33263
33269
|
status: "fail",
|
|
33264
33270
|
message: `${rule.flag} is on but ${missing.join(", ")} is not set — ${rule.label} will fail at runtime`,
|
|
33265
|
-
fix: `set ${missing.join(", ")} or remove ${rule.flag}`
|
|
33271
|
+
fix: `set ${missing.join(", ")} or remove ${(rule.disableFields ?? [rule.flag]).join(" and ")}`
|
|
33266
33272
|
});
|
|
33267
33273
|
}
|
|
33268
33274
|
}
|