@koda-sl/baker-cli 0.132.1-dev.42a8955b3 → 0.133.0-dev.42a8955b3
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.js +2 -15
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -14564,19 +14564,6 @@ function reportError(err) {
|
|
|
14564
14564
|
}
|
|
14565
14565
|
|
|
14566
14566
|
// src/commands/analytics/index.ts
|
|
14567
|
-
function failAnalytics(err) {
|
|
14568
|
-
if (err instanceof ApiError && err.code === "INTERNAL_ERROR") {
|
|
14569
|
-
writeJson({
|
|
14570
|
-
ok: false,
|
|
14571
|
-
error: {
|
|
14572
|
-
code: "INTERNAL_ERROR",
|
|
14573
|
-
message: "Landing analytics is unavailable \u2014 not yet configured for this environment, or temporarily unreachable. Safe to retry later. Do NOT report this as zero traffic."
|
|
14574
|
-
}
|
|
14575
|
-
});
|
|
14576
|
-
process.exit(1);
|
|
14577
|
-
}
|
|
14578
|
-
reportError(err);
|
|
14579
|
-
}
|
|
14580
14567
|
var PERIODS = "today|7d|28d|90d";
|
|
14581
14568
|
var NO_TRAFFIC_HINT = "No visits recorded in this window. Analytics counts real visitors on published pages only \u2014 previews, bots, and pre-consent traffic are excluded.";
|
|
14582
14569
|
function rowsEmpty(response) {
|
|
@@ -14667,7 +14654,7 @@ function buildSubcommand(spec) {
|
|
|
14667
14654
|
}
|
|
14668
14655
|
writeOutput({ ok: true, data: response.rows }, format, parseFields(args.fields), false, (record) => record);
|
|
14669
14656
|
} catch (err) {
|
|
14670
|
-
|
|
14657
|
+
reportError(err);
|
|
14671
14658
|
}
|
|
14672
14659
|
}
|
|
14673
14660
|
});
|
|
@@ -14708,7 +14695,7 @@ Examples:
|
|
|
14708
14695
|
hints: OVERVIEW_SPEC.hints(response)
|
|
14709
14696
|
});
|
|
14710
14697
|
} catch (err) {
|
|
14711
|
-
|
|
14698
|
+
reportError(err);
|
|
14712
14699
|
}
|
|
14713
14700
|
}
|
|
14714
14701
|
});
|