@sleetch/server 1.0.5 → 1.0.6
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/dist/index.d.ts +5 -11
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { partial_sleetch_configuration as sleetch_configuration } from "@sleetch/core/configuration";
|
|
1
|
+
import { partial_sleetch_configuration as sleetch_configuration, path_transformer } from "@sleetch/core/configuration";
|
|
2
2
|
//#region src/utils/pages.d.ts
|
|
3
3
|
declare const get_page: (_path: string, _language?: string) => Promise<{
|
|
4
4
|
language: string;
|
|
@@ -20,34 +20,28 @@ declare const get_pages: (_language?: string) => Promise<{
|
|
|
20
20
|
}[];
|
|
21
21
|
}>;
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region src/types/builder.d.ts
|
|
24
|
-
type transformer<T = unknown> = (data: {
|
|
25
|
-
language: string;
|
|
26
|
-
path: string;
|
|
27
|
-
}) => T;
|
|
28
|
-
//#endregion
|
|
29
23
|
//#region src/utils/tree.d.ts
|
|
30
24
|
declare const get_tree: (_language?: string) => Promise<{
|
|
31
25
|
tree: import("@sleetch/core/compiler").tree_object[];
|
|
32
26
|
language: string;
|
|
33
27
|
}>;
|
|
34
|
-
declare const get_static_paths: <T>(transformer:
|
|
28
|
+
declare const get_static_paths: <T>(transformer: path_transformer<T>, _language?: string) => Promise<{
|
|
35
29
|
paths: T[];
|
|
36
30
|
language: string;
|
|
37
31
|
}>;
|
|
38
32
|
//#endregion
|
|
39
33
|
//#region src/utils/sitemap.d.ts
|
|
40
|
-
declare function get_sitemap(path_builder:
|
|
34
|
+
declare function get_sitemap(path_builder: path_transformer): Promise<string>;
|
|
41
35
|
//#endregion
|
|
42
36
|
//#region src/utils/llms.d.ts
|
|
43
|
-
declare function get_llms(transformer:
|
|
37
|
+
declare function get_llms(transformer: path_transformer<string>): Promise<string>;
|
|
44
38
|
//#endregion
|
|
45
39
|
//#region src/utils/rss.d.ts
|
|
46
40
|
declare function get_rss({ site, title, description, transformer }: {
|
|
47
41
|
site: string;
|
|
48
42
|
title: string;
|
|
49
43
|
description: string;
|
|
50
|
-
transformer:
|
|
44
|
+
transformer: path_transformer<string>;
|
|
51
45
|
}): Promise<string>;
|
|
52
46
|
//#endregion
|
|
53
47
|
export { get_llms, get_page, get_pages, get_rss, get_sitemap, get_static_paths, get_tree, type sleetch_configuration };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleetch/server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"dev": "tsdown --watch"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@sleetch/core": "1.0.
|
|
16
|
+
"@sleetch/core": "1.0.6"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@sleetch/client": "1.0.
|
|
19
|
+
"@sleetch/client": "1.0.6"
|
|
20
20
|
},
|
|
21
21
|
"exports": {
|
|
22
22
|
".": "./dist/index.js",
|