ssqch 0.9.0 → 0.10.1
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/bundled/completions/bash +1 -1
- package/bundled/completions/elvish +1 -0
- package/bundled/completions/fish +1 -0
- package/bundled/completions/powershell +1 -0
- package/bundled/completions/zsh +1 -0
- package/bundled/docs/agents.md +70 -0
- package/bundled/docs/benchmarks.md +29 -0
- package/bundled/docs/build-summary.md +57 -0
- package/bundled/docs/comparing-builds.md +51 -0
- package/bundled/docs/configuring.md +138 -0
- package/bundled/docs/content-schemas.md +54 -0
- package/bundled/docs/css-and-javascript.md +33 -0
- package/bundled/docs/data-files.md +55 -0
- package/bundled/docs/deploying.md +47 -0
- package/bundled/docs/field-guide.md +144 -0
- package/bundled/docs/footprint.md +27 -0
- package/bundled/docs/github-pages.md +41 -0
- package/bundled/docs/index.md +26 -0
- package/bundled/docs/install.md +27 -0
- package/bundled/docs/known-gaps.md +18 -0
- package/bundled/docs/markdown.md +114 -0
- package/bundled/docs/multilingual.md +14 -0
- package/bundled/docs/nav.yml +50 -0
- package/bundled/docs/netlify.md +30 -0
- package/bundled/docs/new-pages.md +42 -0
- package/bundled/docs/plugins.md +13 -0
- package/bundled/docs/rust-plugins.md +32 -0
- package/bundled/docs/seo.md +19 -0
- package/bundled/docs/template-languages.md +106 -0
- package/bundled/docs/templates.md +37 -0
- package/bundled/docs/themes.md +31 -0
- package/bundled/{trailheads → docs/trailheads}/from-component-frameworks.md +7 -3
- package/bundled/{trailheads → docs/trailheads}/from-docusaurus.md +7 -4
- package/bundled/{trailheads → docs/trailheads}/from-eleventy.md +7 -4
- package/bundled/{trailheads → docs/trailheads}/from-hexo.md +7 -4
- package/bundled/{trailheads → docs/trailheads}/from-jekyll.md +6 -3
- package/bundled/{trailheads → docs/trailheads}/from-mkdocs.md +8 -5
- package/bundled/{trailheads → docs/trailheads}/from-zola.md +6 -3
- package/bundled/docs/trailheads.md +38 -0
- package/bundled/docs/where-values-come-from.md +57 -0
- package/bundled/ssqch.d.ts +10 -3
- package/lib/assets.js +18 -12
- package/lib/{chunk-7PWCYHTJ.js → chunk-26SHWRC6.js} +6 -8
- package/lib/{chunk-GUKSZ2XM.js → chunk-3BQJY6GF.js} +4 -6
- package/lib/{chunk-TICWN55Z.js → chunk-3LODFCCH.js} +2 -3
- package/lib/{chunk-TVU3OPPK.js → chunk-3NDFUMV2.js} +3 -3
- package/lib/{chunk-YTHQBMDJ.js → chunk-6OUT5VFK.js} +3 -6
- package/lib/{chunk-HXCLCXRT.js → chunk-6RSZV5O2.js} +5 -3
- package/lib/{chunk-4Q6WMTER.js → chunk-7JGYYAKI.js} +1 -1
- package/lib/{chunk-MI6EJWA2.js → chunk-BT3NVQOD.js} +1 -1
- package/lib/{chunk-DDV6JEC2.js → chunk-BXARVN5Z.js} +1 -1
- package/lib/{chunk-RNJFPFXE.js → chunk-CXRHH5P5.js} +5 -6
- package/lib/{chunk-HPXAZ2HU.js → chunk-DNWA7WNO.js} +1 -1
- package/lib/{chunk-SURPOAW7.js → chunk-DTSTCVRX.js} +8 -9
- package/lib/{chunk-7SD7K567.js → chunk-DUGGZ4EE.js} +1 -1
- package/lib/{chunk-7XLK2GEG.js → chunk-ERNVEZOK.js} +1 -1
- package/lib/{chunk-3A647I3N.js → chunk-FYRC2HBU.js} +4 -6
- package/lib/{chunk-IJWHOFRP.js → chunk-FYU22VDK.js} +12 -13
- package/lib/{chunk-II5DEH3Q.js → chunk-FZGJUJAL.js} +5 -7
- package/lib/{chunk-BEGC7YP6.js → chunk-G67W2FTJ.js} +9 -11
- package/lib/{chunk-7RDRZHJD.js → chunk-HMVYNV6M.js} +13 -15
- package/lib/{chunk-DELWRJAO.js → chunk-HNG372DW.js} +143 -74
- package/lib/{chunk-47P4YREZ.js → chunk-II7ZRIAC.js} +11 -13
- package/lib/{chunk-NCWFYT74.js → chunk-IOXCGMSF.js} +5 -7
- package/lib/{chunk-GRWMGC7D.js → chunk-JFPLNHEQ.js} +2410 -2298
- package/lib/{chunk-LPHNACE4.js → chunk-LU73FTIR.js} +10 -11
- package/lib/{chunk-D2XE2GTY.js → chunk-LYPKL524.js} +9 -10
- package/lib/{chunk-NKXEPHRZ.js → chunk-MDB3D3LP.js} +106 -4
- package/lib/{chunk-CZ4XQC56.js → chunk-MDG5A4NI.js} +15 -13
- package/lib/{chunk-SXMJ52IK.js → chunk-MUYWL4ZX.js} +58 -19
- package/lib/{chunk-R7K3D5W5.js → chunk-P2TRR6XK.js} +83 -24
- package/lib/{chunk-SF4I6Z7S.js → chunk-R2YGC3VE.js} +2 -3
- package/lib/{chunk-76NTVE34.js → chunk-RFNLZM7W.js} +2 -4
- package/lib/{chunk-3K3ANWZ2.js → chunk-X7C6GFUM.js} +4 -4
- package/lib/{chunk-XMXBHXZR.js → chunk-XR7GFL4B.js} +12 -13
- package/lib/{chunk-NNUKIGOO.js → chunk-ZZBHBLDB.js} +16 -18
- package/lib/cli.js +25 -25
- package/lib/elements.js +10 -12
- package/lib/image.js +10 -11
- package/lib/links.js +13 -15
- package/lib/minify.js +9 -10
- package/lib/redirects.js +11 -13
- package/lib/rss.js +22 -22
- package/lib/sass.js +10 -12
- package/lib/sitemap.js +10 -12
- package/lib/ssqch.js +4 -5
- package/package.json +2 -2
- package/types/index.d.ts +9 -2
- package/types/rss.d.ts +1 -1
- package/bundled/README.md +0 -1314
- package/lib/chunk-VJWQSYEG.js +0 -119
- package/lib/{chunk-DELWRJAO.js.LEGAL.txt → chunk-HNG372DW.js.LEGAL.txt} +0 -0
- package/lib/{chunk-GRWMGC7D.js.LEGAL.txt → chunk-JFPLNHEQ.js.LEGAL.txt} +3 -3
package/lib/chunk-VJWQSYEG.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { createRequire as __ssqchCreateRequire } from "node:module";
|
|
2
|
-
const require = __ssqchCreateRequire(import.meta.url);
|
|
3
|
-
|
|
4
|
-
// src/paths.ts
|
|
5
|
-
import fs from "node:fs";
|
|
6
|
-
import path from "node:path";
|
|
7
|
-
var slashes = (p) => path.sep === "/" ? p : p.split(path.sep).join("/");
|
|
8
|
-
function displayPath(root, file) {
|
|
9
|
-
if (file === root) return "./";
|
|
10
|
-
return file.startsWith(root + path.sep) ? `./${slashes(file.slice(root.length + 1))}` : file;
|
|
11
|
-
}
|
|
12
|
-
var shown = (root, file) => displayPath(root, file).replace(/^\.\//, "");
|
|
13
|
-
var relative = (dir, file) => slashes(path.relative(dir, file));
|
|
14
|
-
var joinAsGiven = (base, rel) => path.isAbsolute(rel) || base === "" ? rel : /[\\/]$/.test(base) ? base + rel : base + path.sep + rel;
|
|
15
|
-
function parentAsGiven(p) {
|
|
16
|
-
const separators = path.sep === "/" ? "/" : "\\/";
|
|
17
|
-
let end = p.length;
|
|
18
|
-
while (end > 1 && separators.includes(p[end - 1])) end--;
|
|
19
|
-
let at = end - 1;
|
|
20
|
-
while (at >= 0 && !separators.includes(p[at])) at--;
|
|
21
|
-
if (at < 0) return "";
|
|
22
|
-
let parent = at;
|
|
23
|
-
while (parent > 0 && separators.includes(p[parent - 1])) parent--;
|
|
24
|
-
return parent === 0 ? p.slice(0, 1) : p.slice(0, parent);
|
|
25
|
-
}
|
|
26
|
-
var realPath = (p) => {
|
|
27
|
-
try {
|
|
28
|
-
return fs.realpathSync.native(p);
|
|
29
|
-
} catch {
|
|
30
|
-
return p;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
var isFile = (p) => fs.statSync(p, { throwIfNoEntry: false })?.isFile() ?? false;
|
|
34
|
-
var isDir = (p) => fs.statSync(p, { throwIfNoEntry: false })?.isDirectory() ?? false;
|
|
35
|
-
var isInside = (dir, file) => file === dir || file.startsWith(dir.endsWith(path.sep) ? dir : dir + path.sep);
|
|
36
|
-
function compareText(a, b) {
|
|
37
|
-
const n = Math.min(a.length, b.length);
|
|
38
|
-
for (let i = 0; i < n; i++) {
|
|
39
|
-
let x = a.charCodeAt(i), y = b.charCodeAt(i);
|
|
40
|
-
if (x === y) continue;
|
|
41
|
-
if (x >= 55296 && y >= 55296) {
|
|
42
|
-
x = x >= 57344 ? x - 2048 : x + 8192;
|
|
43
|
-
y = y >= 57344 ? y - 2048 : y + 8192;
|
|
44
|
-
}
|
|
45
|
-
return x - y;
|
|
46
|
-
}
|
|
47
|
-
return a.length - b.length;
|
|
48
|
-
}
|
|
49
|
-
function comparePaths(a, b) {
|
|
50
|
-
if (a === b) return 0;
|
|
51
|
-
const x = a.split(path.sep), y = b.split(path.sep);
|
|
52
|
-
const n = Math.min(x.length, y.length);
|
|
53
|
-
for (let i = 0; i < n; i++) {
|
|
54
|
-
if (x[i] === y[i]) continue;
|
|
55
|
-
return compareText(x[i], y[i]);
|
|
56
|
-
}
|
|
57
|
-
return x.length - y.length;
|
|
58
|
-
}
|
|
59
|
-
function walkFiles(dir) {
|
|
60
|
-
const out = [];
|
|
61
|
-
const walk = (d) => {
|
|
62
|
-
let entries;
|
|
63
|
-
try {
|
|
64
|
-
entries = fs.readdirSync(d, { withFileTypes: true });
|
|
65
|
-
} catch {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
for (const entry of entries) {
|
|
69
|
-
const p = path.join(d, entry.name);
|
|
70
|
-
if (entry.isDirectory()) walk(p);
|
|
71
|
-
else if (entry.isFile()) out.push(p);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
walk(dir);
|
|
75
|
-
return out;
|
|
76
|
-
}
|
|
77
|
-
function readFollowing(dir, above, onError) {
|
|
78
|
-
const out = [];
|
|
79
|
-
const here = above[above.length - 1] ?? realPath(dir);
|
|
80
|
-
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
81
|
-
const file = path.join(dir, entry.name);
|
|
82
|
-
if (!entry.isSymbolicLink()) {
|
|
83
|
-
out.push({ name: entry.name, path: file, isDirectory: entry.isDirectory(), isFile: entry.isFile(), real: path.join(here, entry.name) });
|
|
84
|
-
continue;
|
|
85
|
-
}
|
|
86
|
-
const stat = fs.statSync(file, { throwIfNoEntry: false });
|
|
87
|
-
if (!stat) {
|
|
88
|
-
onError({ path: file, broken: true });
|
|
89
|
-
continue;
|
|
90
|
-
}
|
|
91
|
-
const real = realPath(file);
|
|
92
|
-
if (stat.isDirectory()) {
|
|
93
|
-
const at = above.indexOf(real);
|
|
94
|
-
if (at !== -1) {
|
|
95
|
-
onError({ path: file, loop: above[at] });
|
|
96
|
-
continue;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
out.push({ name: entry.name, path: file, isDirectory: stat.isDirectory(), isFile: stat.isFile(), real });
|
|
100
|
-
}
|
|
101
|
-
return out;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export {
|
|
105
|
-
slashes,
|
|
106
|
-
displayPath,
|
|
107
|
-
shown,
|
|
108
|
-
relative,
|
|
109
|
-
joinAsGiven,
|
|
110
|
-
parentAsGiven,
|
|
111
|
-
realPath,
|
|
112
|
-
isFile,
|
|
113
|
-
isDir,
|
|
114
|
-
isInside,
|
|
115
|
-
compareText,
|
|
116
|
-
comparePaths,
|
|
117
|
-
walkFiles,
|
|
118
|
-
readFollowing
|
|
119
|
-
};
|
|
File without changes
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
Bundled license information:
|
|
2
2
|
|
|
3
|
+
js-yaml/dist/js-yaml.mjs:
|
|
4
|
+
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
5
|
+
|
|
3
6
|
smol-toml/dist/error.js:
|
|
4
7
|
smol-toml/dist/primitive.js:
|
|
5
8
|
smol-toml/dist/date.js:
|
|
@@ -36,6 +39,3 @@ smol-toml/dist/index.js:
|
|
|
36
39
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
37
40
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
38
41
|
*/
|
|
39
|
-
|
|
40
|
-
js-yaml/dist/js-yaml.mjs:
|
|
41
|
-
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|