@mark1russell7/site-pages 0.3.3 → 0.3.4
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/README.md +1 -1
- package/build/chunks/build.js +85 -18
- package/build/chunks/build.js.map +1 -1
- package/build/index.d.ts +10 -6
- package/build/index.d.ts.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -176,15 +176,19 @@ type GitHubReleaseLag = {
|
|
|
176
176
|
*/
|
|
177
177
|
export declare function releaseLagOf(oldest: string | undefined, now: string): number;
|
|
178
178
|
/**
|
|
179
|
-
* This function reads how many days a branch is ahead of its newest release. That is the age of the oldest commit of the
|
|
180
|
-
*
|
|
181
|
-
* a pre-release is not the version that most users get. It gives `{ available: false, reason }` without a token, after an error,
|
|
179
|
+
* This function reads how many days a branch is ahead of its newest release. That is the age of the oldest commit of the
|
|
180
|
+
* first-parent line of the branch that the newest release of `tagPrefix` does not contain. It skips drafts and pre-releases,
|
|
181
|
+
* because a pre-release is not the version that most users get. It gives `{ available: false, reason }` without a token, after an error,
|
|
182
182
|
* or with no such release.
|
|
183
183
|
*
|
|
184
184
|
* @remarks The function reads the releases until it finds one, at most `maxPages` pages of 100 (default 10). It then compares the
|
|
185
|
-
* tag with the branch,
|
|
186
|
-
*
|
|
187
|
-
*
|
|
185
|
+
* tag with the branch, and reads each commit of the comparison, at most 2,000. A change lands on the branch as a commit of its
|
|
186
|
+
* first-parent line: a squash, a merge commit, or a rebased commit.
|
|
187
|
+
*
|
|
188
|
+
* The function follows that line from the tip of the branch back to the tag, and takes the date of its oldest commit. A tag
|
|
189
|
+
* that is not on that line gives `{ available: false, reason }`. So a merge commit counts at the time of the merge, not at the older
|
|
190
|
+
* dates of the commits that it brings. A commit that lands after the tag and before the release is published counts, because it
|
|
191
|
+
* is not in the release. The time of the release does not decide.
|
|
188
192
|
*/
|
|
189
193
|
export declare function githubReleaseLag(options: GitHubOptions & {
|
|
190
194
|
tagPrefix: string;
|
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;;;;;;;;wBAsIxF,eAAe,SAAS;EAAkB;EAAmB;IAAsB,QAAQ;;KAKrG;EAAqB;EAAiB;EAAe;EAAY;;EAAsB;EAAkB;;;;;;;;;wBAWrG,aAAa,4BAA4B
|
|
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;;;;;;;;wBAsIxF,eAAe,SAAS;EAAkB;EAAmB;IAAsB,QAAQ;;KAKrG;EAAqB;EAAiB;EAAe;EAAY;;EAAsB;EAAkB;;;;;;;;;wBAWrG,aAAa,4BAA4B;;;;;;;;;;;;;;;;wBAsDnC,iBACpB,SAAS;EAAkB;EAAmB;EAAiB;EAAmB;EAAmB;IACpG,QAAQ;;KA+CC;EAAmB;EAAiB;EAAe;;EAAiB;EAAkB;;;UAGjF;WACN;WACA;WACA;;;;;;;;wBASK,WAAW,eAAe;EAAqB;EAAe;;;;;;;;;wBAexD,eAAe,SAAS;EAAkB;EAAkB;EAAmB;IAAmB,QAAQ;;qBCjXnH;;UAGI;;EAEf;;EAEA,e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;;;;;;wBAOf,YAAY;;wBCsBZ,gBAAgB,OAAO,WAAW;;qBClBrC,mBAAmB;;UAGf;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;EACA;;EAEA;;EAEA;;EAEA;;EAEA;EACA,eAAe;;EAEf;EACA,SAAS;;;UAIM;;EAEf;EACA,UAAU;EACV,QAAQ;;;;;;;;;wBAgBY,MAAM,SAAS,eAAe,QAAQ;;qBA6C/C;;UA+BI;EACf;EACA,KAAK;EACL,SAAS;EACT,SAAS;EACT,eAAe;EACf;;;;;;;wBAQc,eAAe,yBAAyB,IAAI,KAAK,wBAAwB;;;;;wBAiEnE,OAAO,yBAAyB,IAAI,QAAQ"}
|
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.3.
|
|
4
|
+
"version": "0.3.4",
|
|
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",
|