@reddoorla/maintenance 0.10.7 → 0.11.0
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/bin.js +8 -1
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/commands/audit.js +8 -1
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +100 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/bin.js
CHANGED
|
@@ -38,6 +38,7 @@ __export(websites_exports, {
|
|
|
38
38
|
WEBSITES_TABLE: () => WEBSITES_TABLE,
|
|
39
39
|
getWebsiteBySlug: () => getWebsiteBySlug,
|
|
40
40
|
listWebsites: () => listWebsites,
|
|
41
|
+
mapRow: () => mapRow,
|
|
41
42
|
siteSlug: () => siteSlug,
|
|
42
43
|
updateScores: () => updateScores
|
|
43
44
|
});
|
|
@@ -66,7 +67,13 @@ function mapRow(rec) {
|
|
|
66
67
|
rScore: f["rScore"] ?? null,
|
|
67
68
|
bpScore: f["bpScore"] ?? null,
|
|
68
69
|
seoScore: f["seoScore"] ?? null,
|
|
69
|
-
lastLighthouseAuditAt: f["Last lighthouse audit at"] ?? null
|
|
70
|
+
lastLighthouseAuditAt: f["Last lighthouse audit at"] ?? null,
|
|
71
|
+
dashboardToken: (() => {
|
|
72
|
+
const raw = f["Dashboard Token"];
|
|
73
|
+
if (typeof raw !== "string") return null;
|
|
74
|
+
const trimmed = raw.trim();
|
|
75
|
+
return trimmed.length > 0 ? trimmed : null;
|
|
76
|
+
})()
|
|
70
77
|
};
|
|
71
78
|
}
|
|
72
79
|
async function listWebsites(base) {
|