@mark1russell7/site-pages 0.8.7 → 0.8.8
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/cli.js +4 -4
- package/build/explorer/index.js +1 -1
- package/build/offline/index.js +4 -4
- package/build/vite.js +2 -2
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { T as safeUrl, b as escapeHtml, m as runFreshnessCli } from "./chunks/freshness.js";
|
|
3
|
-
import { a as runCli, o as TYPESCRIPT_PROBE, s as probeScript } from "./chunks/build.js";
|
|
4
|
-
import { t as FALLBACK_HEADER } from "./chunks/offline-header.js";
|
|
5
|
-
import { spawn } from "node:child_process";
|
|
6
2
|
import { appendFileSync, createReadStream, existsSync, globSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
7
3
|
import { delimiter, extname, isAbsolute, join, normalize, relative, resolve, sep } from "node:path";
|
|
8
4
|
import { parseArgs } from "node:util";
|
|
5
|
+
import { T as safeUrl, b as escapeHtml, m as runFreshnessCli } from "./chunks/freshness.js";
|
|
6
|
+
import { a as runCli, o as TYPESCRIPT_PROBE, s as probeScript } from "./chunks/build.js";
|
|
7
|
+
import { spawn } from "node:child_process";
|
|
9
8
|
import { homedir, tmpdir } from "node:os";
|
|
9
|
+
import { t as FALLBACK_HEADER } from "./chunks/offline-header.js";
|
|
10
10
|
import { gzipSync } from "node:zlib";
|
|
11
11
|
import { createServer } from "node:http";
|
|
12
12
|
// src/bar/bar.ts
|
package/build/explorer/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h, svg } from "../chrome.js";
|
|
2
1
|
import { heldOutError, parseResponseRecord, quantile, responseCells, sliceResponse, surfaceResponse, whenHolds } from "@mark1russell7/rigor-statistics";
|
|
2
|
+
import { h, svg } from "../chrome.js";
|
|
3
3
|
// src/explorer/model.ts
|
|
4
4
|
/**
|
|
5
5
|
* The pure core of the response explorer: the state, the rules of the controls and the data of a view. This module
|
package/build/offline/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as FALLBACK_HEADER } from "../chunks/offline-header.js";
|
|
2
|
-
import { OFFLINE_ATTRIBUTE, OFFLINE_EVENT, OFFLINE_STATES } from "../chrome.js";
|
|
3
1
|
import { readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
4
2
|
import { join, relative, resolve, sep } from "node:path";
|
|
5
3
|
import { createHash } from "node:crypto";
|
|
4
|
+
import { t as FALLBACK_HEADER } from "../chunks/offline-header.js";
|
|
5
|
+
import { OFFLINE_ATTRIBUTE, OFFLINE_EVENT, OFFLINE_STATES } from "../chrome.js";
|
|
6
6
|
// src/offline/shell.ts
|
|
7
7
|
/**
|
|
8
8
|
* The parts of the offline shell of a built site, as pure functions. They give the list of the files that the service worker
|
|
@@ -15,7 +15,7 @@ const SERVICE_WORKER_FILE = "service-worker.js";
|
|
|
15
15
|
/** The file of the web manifest, in the root of the built site. */
|
|
16
16
|
const MANIFEST_FILE = "manifest.webmanifest";
|
|
17
17
|
/** The default limit of the size of one kept file: 10 MiB. A larger file stays out of the cache. */
|
|
18
|
-
const MAX_FILE_BYTES =
|
|
18
|
+
const MAX_FILE_BYTES = 0xa00000;
|
|
19
19
|
/** This function gives the base with one `/` at the start and one `/` at the end. */
|
|
20
20
|
function offlineBase(base) {
|
|
21
21
|
let start = 0;
|
|
@@ -34,7 +34,7 @@ function offlineBase(base) {
|
|
|
34
34
|
*/
|
|
35
35
|
function precacheList(files, options) {
|
|
36
36
|
const base = offlineBase(options.base);
|
|
37
|
-
const limit = options.maxFileBytes ??
|
|
37
|
+
const limit = options.maxFileBytes ?? 0xa00000;
|
|
38
38
|
if (!(limit > 0)) throw new RangeError("The limit of the size of a file is not a positive number");
|
|
39
39
|
const urls = [];
|
|
40
40
|
const skipped = [];
|
package/build/vite.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as KPI_FILE, I as headCommit, P as git, j as kpiText, k as kpiFile, p as parseDataStamps, v as hasIconLink } from "./chunks/freshness.js";
|
|
2
|
-
import { t as renderDataStamp } from "./chunks/data-stamp.js";
|
|
3
1
|
import { readFileSync } from "node:fs";
|
|
4
2
|
import { resolve } from "node:path";
|
|
3
|
+
import { E as KPI_FILE, I as headCommit, P as git, j as kpiText, k as kpiFile, p as parseDataStamps, v as hasIconLink } from "./chunks/freshness.js";
|
|
4
|
+
import { t as renderDataStamp } from "./chunks/data-stamp.js";
|
|
5
5
|
// src/vite.ts
|
|
6
6
|
/**
|
|
7
7
|
* The build side of the shell of a site: a Vite plugin and its parts. Import this module from
|
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.8.
|
|
4
|
+
"version": "0.8.8",
|
|
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",
|