@weborigami/origami 0.5.0 → 0.5.2-test.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/package.json +4 -4
- package/src/origami/sitemap.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weborigami/origami",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2-test.1",
|
|
4
4
|
"description": "Web Origami language, CLI, framework, and server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"typescript": "5.9.2"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@weborigami/async-tree": "0.5.
|
|
20
|
+
"@weborigami/async-tree": "0.5.2-test.1",
|
|
21
21
|
"@weborigami/json-feed-to-rss": "1.0.0",
|
|
22
|
-
"@weborigami/language": "0.5.
|
|
23
|
-
"@weborigami/types": "0.5.
|
|
22
|
+
"@weborigami/language": "0.5.2-test.1",
|
|
23
|
+
"@weborigami/types": "0.5.2-test.1",
|
|
24
24
|
"css-tree": "3.1.0",
|
|
25
25
|
"exif-parser": "0.1.12",
|
|
26
26
|
"graphviz-wasm": "3.0.2",
|
package/src/origami/sitemap.js
CHANGED
|
@@ -17,9 +17,9 @@ const templateText = `(urls) => \`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
17
17
|
* @typedef {import("@weborigami/async-tree").Treelike} Treelike
|
|
18
18
|
* @this {AsyncTree|null}
|
|
19
19
|
* @param {Treelike} treelike
|
|
20
|
-
* @param {string}
|
|
20
|
+
* @param {{ assumeSlashes?: boolean, base?: string }} options
|
|
21
21
|
*/
|
|
22
|
-
export default async function sitemap(treelike,
|
|
22
|
+
export default async function sitemap(treelike, options = {}) {
|
|
23
23
|
assertTreeIsDefined(this, "sitemap");
|
|
24
24
|
const tree = await getTreeArgument(this, arguments, treelike, "sitemap");
|
|
25
25
|
|
|
@@ -38,7 +38,7 @@ export default async function sitemap(treelike, baseHref = "") {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
const treePaths = await Tree.paths(filterTree,
|
|
41
|
+
const treePaths = await Tree.paths(filterTree, options);
|
|
42
42
|
|
|
43
43
|
// For simplicity, we assume that HTML pages will end in .html.
|
|
44
44
|
// If the page is named index.html, we remove index.html from
|