@mark1russell7/site-pages 0.2.22 → 0.2.23
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/build/chunks/build.js +68 -1
- package/build/chunks/build.js.map +1 -1
- package/build/index.d.ts +38 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -157,6 +157,43 @@ export declare function githubReleases(options: GitHubOptions & {
|
|
|
157
157
|
endpoint?: string;
|
|
158
158
|
maxPages?: number;
|
|
159
159
|
}): Promise<GitHubReleases>;
|
|
160
|
+
/** The result of `githubGreenRun`. The field `at` is the end of the newest scheduled run that ended. */
|
|
161
|
+
type GitHubGreenRun = {
|
|
162
|
+
available: true;
|
|
163
|
+
value: number;
|
|
164
|
+
at: string;
|
|
165
|
+
} | {
|
|
166
|
+
available: false;
|
|
167
|
+
reason: string;
|
|
168
|
+
};
|
|
169
|
+
/** One workflow run, with only the fields that `greenRunOf` reads. */
|
|
170
|
+
interface WorkflowRunEnd {
|
|
171
|
+
readonly status: string;
|
|
172
|
+
readonly conclusion: string | null;
|
|
173
|
+
readonly updated_at: string;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* This function counts the runs that passed in a row, from the newest run. A run that has not ended does not count and does not break the row.
|
|
177
|
+
* Each other conclusion breaks the row, a cancelled run too. It gives null when no run ended.
|
|
178
|
+
*
|
|
179
|
+
* @param runs - The runs, the newest first.
|
|
180
|
+
*/
|
|
181
|
+
export declare function greenRunOf(runs: readonly WorkflowRunEnd[]): {
|
|
182
|
+
value: number;
|
|
183
|
+
at: string;
|
|
184
|
+
} | null;
|
|
185
|
+
/**
|
|
186
|
+
* This function reads the scheduled runs of a workflow with the REST API, and counts the runs that passed in a row.
|
|
187
|
+
* It gives `{ available: false, reason }` without a token, after an error, or when no scheduled run ended.
|
|
188
|
+
* A caller then leaves the measure out, because 0 says that a run failed.
|
|
189
|
+
*
|
|
190
|
+
* @remarks The function reads at most `limit` runs (default 30), so the count stops at that limit.
|
|
191
|
+
*/
|
|
192
|
+
export declare function githubGreenRun(options: GitHubOptions & {
|
|
193
|
+
workflow: string;
|
|
194
|
+
endpoint?: string;
|
|
195
|
+
limit?: number;
|
|
196
|
+
}): Promise<GitHubGreenRun>;
|
|
160
197
|
/** The public npm registry. */
|
|
161
198
|
export declare const NPM_REGISTRY = "https://registry.npmjs.org";
|
|
162
199
|
/** The options of `npmPublishTimes`. */
|
|
@@ -675,5 +712,5 @@ export declare function parseBuildArgs(argv: readonly string[], io: Pick<CliIo,
|
|
|
675
712
|
* source is not correct, and 2 for an incorrect command line.
|
|
676
713
|
*/
|
|
677
714
|
export declare function runCli(argv: readonly string[], io: CliIo): Promise<number>;
|
|
678
|
-
export { type BoardIssue, type BoardItem, type BoardPullRequest, type BoardSection, type BuildOptions, type BuildResult, type ChangelogEntry, type ChangelogFault, type ChangelogFaultKind, type ChangelogFaultOptions, type ChangelogSection, type ChangelogSource, type CheckState, type CliIo, type CronLine, DATA_STAMP_SCHEMA, type DataLimit, type DataRun, type DataStamps, type DataStampsParse, type FailingCase, type FreshnessCheck, type FreshnessOptions, type GitHubOpenWork, type GitHubOptions, type GitHubRelease, type GitHubReleases, type ItemGroup, KPI_FILE, KPI_FORMAT, type KpiEngine, KpiError, type KpiFile, type KpiInput, type KpiMeasure, type Link, type LinkOptions, MAX_DATA_AGE_DAYS, MAX_LIMIT_DAYS_WITHOUT_RULING, MAX_MINORS_BEHIND, type MarkdownTable, type NpmOptions, type NpmPublishTimes, type NpmVersionTime, type OpenWorkTotals, type PageOptions, type PageParts, type PageStamp, type ParsedVersion, type ReadReleasesOptions, type ReadStatusBoardOptions, type Release, type ReleaseChange, type ReleaseGap, type ReleaseKind, type ReleaseListSources, type ReleasePoint, type ReleaseReading, type ReleaseSources, type ReleaseSummary, type StatusBoardData, type StatusBoardInput, type StatusClass, type TagDate, type TagVersion, type TimelineBand, type TimelineLayout, type TimelineMark, type TimelineOptions, checkFreshness, cronLines, failingCases, kpiFile, kpiProblems, kpiText, latestAt, minorsBehind, parseDataStamps, readKpi, writeKpi };
|
|
715
|
+
export { type BoardIssue, type BoardItem, type BoardPullRequest, type BoardSection, type BuildOptions, type BuildResult, type ChangelogEntry, type ChangelogFault, type ChangelogFaultKind, type ChangelogFaultOptions, type ChangelogSection, type ChangelogSource, type CheckState, type CliIo, type CronLine, DATA_STAMP_SCHEMA, type DataLimit, type DataRun, type DataStamps, type DataStampsParse, type FailingCase, type FreshnessCheck, type FreshnessOptions, type GitHubGreenRun, type GitHubOpenWork, type GitHubOptions, type GitHubRelease, type GitHubReleases, type ItemGroup, KPI_FILE, KPI_FORMAT, type KpiEngine, KpiError, type KpiFile, type KpiInput, type KpiMeasure, type Link, type LinkOptions, MAX_DATA_AGE_DAYS, MAX_LIMIT_DAYS_WITHOUT_RULING, MAX_MINORS_BEHIND, type MarkdownTable, type NpmOptions, type NpmPublishTimes, type NpmVersionTime, type OpenWorkTotals, type PageOptions, type PageParts, type PageStamp, type ParsedVersion, type ReadReleasesOptions, type ReadStatusBoardOptions, type Release, type ReleaseChange, type ReleaseGap, type ReleaseKind, type ReleaseListSources, type ReleasePoint, type ReleaseReading, type ReleaseSources, type ReleaseSummary, type StatusBoardData, type StatusBoardInput, type StatusClass, type TagDate, type TagVersion, type TimelineBand, type TimelineLayout, type TimelineMark, type TimelineOptions, type WorkflowRunEnd, checkFreshness, cronLines, failingCases, kpiFile, kpiProblems, kpiText, latestAt, minorsBehind, parseDataStamps, readKpi, writeKpi };
|
|
679
716
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/data/versions.ts","../src/data/changelog.ts","../src/data/github.ts","../src/data/npm.ts","../src/data/git.ts","../src/data/glob.ts","../src/data/releases.ts","../src/data/status.ts","../src/render/html.ts","../src/render/dates.ts","../src/render/theme.ts","../src/render/timeline.ts","../src/render/releases.ts","../src/render/status.ts","../src/check/probe.ts","../src/render/data-stamp.ts","../src/build.ts"],"mappings":";;UAOiB;EACf;EACA;EACA;EACA;;;wBAMc,aAAa,kBAAkB;;;;;;wBAgB/B,gBAAgB,WAAW;;;;;wBA2B3B,OAAO,iBAAiB,kBAAkB;;UASzC;EACf;EACA;;;;;;wBAOc,aAAa,cAAc;;;;;;;UCvE1B;;EAEf;;EAEA;;;UAIe;EACf;;EAEA;EACA,SAAS;;;;;;;;;wBAqBK,cAAc;;;;;;;wBA0Cd,eAAe,mBAAmB;;;;;;;;KA2CtC;;UAGK;EACf;EACA,MAAM;;EAEN;;;UAIe;;EAEf;;;;;;EAMA;;;;;;;;wBAec,kBAAkB;;;;;;;;;;wBAmFlB,gBAAgB,kBAAkB,UAAS,wBAA6B;;;;;wBAkCxE,mBAAmB,eAAe;;;;;wBAqClC,cAAc;;wBASd,kBAAkB;;qBCzTrB;;qBAEA;;UAKI;EACf;EACA;;EAEA;;EAEA,eAAe;;EAEf;;;wBA0Bc,aAAa;EAAU;uBAA6C;;;;;;wBA4C9D,eAAe,SAAS;EAAkB;EAAmB;IAAmB,QAAQ;;;;;;;;wBAmFxF,eAAe,SAAS;EAAkB;EAAmB;IAAsB,QAAQ;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/data/versions.ts","../src/data/changelog.ts","../src/data/github.ts","../src/data/npm.ts","../src/data/git.ts","../src/data/glob.ts","../src/data/releases.ts","../src/data/status.ts","../src/render/html.ts","../src/render/dates.ts","../src/render/theme.ts","../src/render/timeline.ts","../src/render/releases.ts","../src/render/status.ts","../src/check/probe.ts","../src/render/data-stamp.ts","../src/build.ts"],"mappings":";;UAOiB;EACf;EACA;EACA;EACA;;;wBAMc,aAAa,kBAAkB;;;;;;wBAgB/B,gBAAgB,WAAW;;;;;wBA2B3B,OAAO,iBAAiB,kBAAkB;;UASzC;EACf;EACA;;;;;;wBAOc,aAAa,cAAc;;;;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1
1
|
import { A as isShallow, C as kpiText, D as gitTagDates, F as compareVersions, I as kindOf, L as parseVersion, M as versionCommitTime, N as NPM_REGISTRY, O as headCommit, P as npmPublishTimes, R as versionOfTag, S as kpiProblems, T as writeKpi, _ as safeUrl, a as checkFreshness, b as KpiError, c as latestAt, f as escapeHtml, i as MAX_MINORS_BEHIND, j as originRepository, k as headingDate, l as minorsBehind, n as MAX_DATA_AGE_DAYS, o as cronLines, p as inlineMarkdown, r as MAX_LIMIT_DAYS_WITHOUT_RULING, s as failingCases, t as DATA_STAMP_SCHEMA, u as parseDataStamps, v as KPI_FILE, w as readKpi, x as kpiFile, y as KPI_FORMAT } from "./chunks/freshness.js";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as greenRunOf, A as STATUS_CLASSES, B as DEFAULT_CHANGELOGS, C as pageShell, D as utcDay, E as shortDate, F as plainText, G as releaseReading, H as mergeReleases, I as readStatusBoard, J as GITHUB_GRAPHQL, K as globFiles, L as roadmapItems, M as linksOf, N as markdownTables, O as OPEN_CLASSES, P as parseRoadmap, Q as githubReleases, R as splitRow, S as BASE_CSS, T as longDate, U as readChangelogs, V as ReleaseDataError, W as readReleases, X as githubGreenRun, Y as checkStateOf, Z as githubOpenWork, _ as renderReleasesPage, a as runCli, at as releaseBodyEntries, b as releaseSummary, c as STATUS_SCRIPT, d as renderStatusPage, et as changelogFaults, f as sectionsOf, g as releasesLead, h as RELEASES_SCRIPT, i as parseBuildArgs, it as parseChangelog, j as buildStatusBoard, k as RoadmapParseError, l as classCounts, m as statusLead, n as UsageError, nt as firstSentence, o as TYPESCRIPT_PROBE, ot as sectionMarksBreak, p as slugOf, q as GITHUB_API, r as build, rt as headingAnchor, s as probeScript, t as HELP, tt as changelogVersions, u as openGroups, v as laneCenter, w as dayRange, x as timelineLayout, y as oldestFirst, z as statusClassOf } from "./chunks/build.js";
|
|
3
3
|
import { t as renderDataStamp } from "./chunks/data-stamp.js";
|
|
4
|
-
export { BASE_CSS, DATA_STAMP_SCHEMA, DEFAULT_CHANGELOGS, GITHUB_API, GITHUB_GRAPHQL, HELP, KPI_FILE, KPI_FORMAT, KpiError, MAX_DATA_AGE_DAYS, MAX_LIMIT_DAYS_WITHOUT_RULING, MAX_MINORS_BEHIND, NPM_REGISTRY, OPEN_CLASSES, RELEASES_SCRIPT, ReleaseDataError, RoadmapParseError, STATUS_CLASSES, STATUS_SCRIPT, TYPESCRIPT_PROBE, UsageError, build, buildStatusBoard, changelogFaults, changelogVersions, checkFreshness, checkStateOf, classCounts, compareVersions, cronLines, dayRange, escapeHtml, failingCases, firstSentence, gitTagDates, githubOpenWork, githubReleases, globFiles, headCommit, headingAnchor, headingDate, inlineMarkdown, isShallow, kindOf, kpiFile, kpiProblems, kpiText, laneCenter, latestAt, linksOf, longDate, markdownTables, mergeReleases, minorsBehind, npmPublishTimes, oldestFirst, openGroups, originRepository, pageShell, parseBuildArgs, parseChangelog, parseDataStamps, parseRoadmap, parseVersion, plainText, probeScript, readChangelogs, readKpi, readReleases, readStatusBoard, releaseBodyEntries, releaseReading, releaseSummary, releasesLead, renderDataStamp, renderReleasesPage, renderStatusPage, roadmapItems, runCli, safeUrl, sectionMarksBreak, sectionsOf, shortDate, slugOf, splitRow, statusClassOf, statusLead, timelineLayout, utcDay, versionCommitTime, versionOfTag, writeKpi };
|
|
4
|
+
export { BASE_CSS, DATA_STAMP_SCHEMA, DEFAULT_CHANGELOGS, GITHUB_API, GITHUB_GRAPHQL, HELP, KPI_FILE, KPI_FORMAT, KpiError, MAX_DATA_AGE_DAYS, MAX_LIMIT_DAYS_WITHOUT_RULING, MAX_MINORS_BEHIND, NPM_REGISTRY, OPEN_CLASSES, RELEASES_SCRIPT, ReleaseDataError, RoadmapParseError, STATUS_CLASSES, STATUS_SCRIPT, TYPESCRIPT_PROBE, UsageError, build, buildStatusBoard, changelogFaults, changelogVersions, checkFreshness, checkStateOf, classCounts, compareVersions, cronLines, dayRange, escapeHtml, failingCases, firstSentence, gitTagDates, githubGreenRun, githubOpenWork, githubReleases, globFiles, greenRunOf, headCommit, headingAnchor, headingDate, inlineMarkdown, isShallow, kindOf, kpiFile, kpiProblems, kpiText, laneCenter, latestAt, linksOf, longDate, markdownTables, mergeReleases, minorsBehind, npmPublishTimes, oldestFirst, openGroups, originRepository, pageShell, parseBuildArgs, parseChangelog, parseDataStamps, parseRoadmap, parseVersion, plainText, probeScript, readChangelogs, readKpi, readReleases, readStatusBoard, releaseBodyEntries, releaseReading, releaseSummary, releasesLead, renderDataStamp, renderReleasesPage, renderStatusPage, roadmapItems, runCli, safeUrl, sectionMarksBreak, sectionsOf, shortDate, slugOf, splitRow, statusClassOf, statusLead, timelineLayout, utcDay, versionCommitTime, versionOfTag, writeKpi };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@mark1russell7/site-pages",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.23",
|
|
5
5
|
"description": "A release timeline page and a live status page for the site of a GitHub repository: JSON data and standalone HTML, made at deploy time.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"github-pages",
|