@cronwatch/sdk 0.12.2 → 0.12.3
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.cjs +8 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -11,7 +11,7 @@ export { a as AlertChannel, d as AlertDetails, e as AlertType, B as BudgetBreach
|
|
|
11
11
|
declare function memory(): Store;
|
|
12
12
|
|
|
13
13
|
/** This release of @cronwatch/sdk. scripts/release.mjs keeps it in step with package.json. */
|
|
14
|
-
declare const VERSION = "0.12.
|
|
14
|
+
declare const VERSION = "0.12.3";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* "15m" -> 900000. Accepts a plain number of milliseconds, and compound
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { a as AlertChannel, d as AlertDetails, e as AlertType, B as BudgetBreach
|
|
|
11
11
|
declare function memory(): Store;
|
|
12
12
|
|
|
13
13
|
/** This release of @cronwatch/sdk. scripts/release.mjs keeps it in step with package.json. */
|
|
14
|
-
declare const VERSION = "0.12.
|
|
14
|
+
declare const VERSION = "0.12.3";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* "15m" -> 900000. Accepts a plain number of milliseconds, and compound
|
package/dist/index.js
CHANGED
|
@@ -1038,6 +1038,10 @@ function staticAsset(path, base) {
|
|
|
1038
1038
|
return Object.hasOwn(ICONS, path) ? ICONS[path]() : null;
|
|
1039
1039
|
}
|
|
1040
1040
|
|
|
1041
|
+
// src/version.ts
|
|
1042
|
+
var VERSION = "0.12.3";
|
|
1043
|
+
var API_VERSION = 1;
|
|
1044
|
+
|
|
1041
1045
|
// src/routes/timeline.ts
|
|
1042
1046
|
var HOUR = 36e5;
|
|
1043
1047
|
var DAY = 24 * HOUR;
|
|
@@ -1348,6 +1352,7 @@ function weekRunsLimit(job, now) {
|
|
|
1348
1352
|
|
|
1349
1353
|
// src/routes/html.ts
|
|
1350
1354
|
var h = escapeHtml;
|
|
1355
|
+
var VERSION_LINK = `<a class="version" href="https://github.com/phillips-jon/cronwatch/blob/main/CHANGELOG.md">@cronwatch/sdk ${VERSION}</a>`;
|
|
1351
1356
|
var CSS = `
|
|
1352
1357
|
:root{color-scheme:light dark;--paper:#f4f4f5;--sheet:#fff;--sunk:#fafafa;--rule:#e4e4e7;--rule-2:#d4d4d8;--tick:#909098;--ink:#000;--body:#18181b;--muted:#71717a;--ok:#15803d;--warn:#a16207;--bad:#b91c1c;--serif:"Newsreader",ui-serif,Georgia,Cambria,"Times New Roman",serif;--mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;--who:200px}
|
|
1353
1358
|
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--paper:#09090b;--sheet:#111113;--sunk:#18181b;--rule:#27272a;--rule-2:#3f3f46;--tick:#66666f;--ink:#fff;--body:#e4e4e7;--muted:#a1a1aa;--ok:#4ade80;--warn:#fbbf24;--bad:#f87171}}
|
|
@@ -1422,7 +1427,7 @@ dl.def dd{margin:0;font:400 13.5px/1.7 var(--mono);color:var(--body);overflow-wr
|
|
|
1422
1427
|
.signin{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:28px auto 0;max-width:420px}
|
|
1423
1428
|
.signin label{font:500 11px/1.4 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
|
|
1424
1429
|
.signin input{flex:1 1 180px;min-width:0;font:400 16px/1.2 var(--mono);color:var(--ink);background:var(--sheet);border:1px solid var(--rule-2);border-radius:3px;height:32px;padding:0 10px}
|
|
1425
|
-
footer{display:flex;flex-wrap:wrap;gap:6px 18px;padding:20px 0 40px;border-top:1px solid var(--rule);font:400 12px/1.5 var(--mono);color:var(--muted)}
|
|
1430
|
+
footer{display:flex;flex-wrap:wrap;gap:6px 18px;padding:20px 0 40px;border-top:1px solid var(--rule);font:400 12px/1.5 var(--mono);color:var(--muted)}footer .version{margin-left:auto}
|
|
1426
1431
|
.timeline{margin:18px 0 0}
|
|
1427
1432
|
.timeline .axis,.timeline .under,.timeline .over,.timeline .lane{display:grid;grid-template-columns:var(--who) minmax(0,1fr)}
|
|
1428
1433
|
.timeline .hours{position:relative;height:22px;font:400 11px/1 var(--mono);color:var(--muted);letter-spacing:.04em}
|
|
@@ -1622,7 +1627,7 @@ ${jobs.length ? `<section class="sec" aria-label="Last 24 hours">
|
|
|
1622
1627
|
<tbody>${rows}</tbody></table></div>
|
|
1623
1628
|
</section>` : ""}
|
|
1624
1629
|
</main>
|
|
1625
|
-
<footer><span>Refreshes every minute. Times are UTC.</span><a href="${h(base)}/api/jobs">JSON</a
|
|
1630
|
+
<footer><span>Refreshes every minute. Times are UTC.</span><a href="${h(base)}/api/jobs">JSON</a>${VERSION_LINK}</footer>`;
|
|
1626
1631
|
return layout("CronWatch", body, base, { refresh: 60 });
|
|
1627
1632
|
}
|
|
1628
1633
|
function jobPage(job, runs, now, base, complete = true) {
|
|
@@ -1706,7 +1711,7 @@ function jobPage(job, runs, now, base, complete = true) {
|
|
|
1706
1711
|
</div>
|
|
1707
1712
|
</section>
|
|
1708
1713
|
</main>
|
|
1709
|
-
<footer><span>Refreshes every minute. Times are UTC.</span><a href="${h(base)}/api/jobs/${encodeURIComponent(job.name)}">JSON</a
|
|
1714
|
+
<footer><span>Refreshes every minute. Times are UTC.</span><a href="${h(base)}/api/jobs/${encodeURIComponent(job.name)}">JSON</a>${VERSION_LINK}</footer>`;
|
|
1710
1715
|
return layout(`${job.name}: CronWatch`, body, base, { refresh: 60 });
|
|
1711
1716
|
}
|
|
1712
1717
|
function messagePage(title, message, base, signIn = false) {
|
|
@@ -1714,10 +1719,6 @@ function messagePage(title, message, base, signIn = false) {
|
|
|
1714
1719
|
return layout(title, `<header class="top">${brand(base)}</header><main class="message"><h1>${h(title)}</h1><p>${h(message)}</p>${form}</main>`, base);
|
|
1715
1720
|
}
|
|
1716
1721
|
|
|
1717
|
-
// src/version.ts
|
|
1718
|
-
var VERSION = "0.12.2";
|
|
1719
|
-
var API_VERSION = 1;
|
|
1720
|
-
|
|
1721
1722
|
// src/routes/index.ts
|
|
1722
1723
|
var COOKIE = "cronwatch_token";
|
|
1723
1724
|
var LIBRARY = "@cronwatch/sdk";
|