@sphido/core
Advanced tools
Comparing version 2.0.8 to 2.0.9
/** | ||
* Page generator that flatten pages structure | ||
* | ||
* @generator | ||
* @param {array} pages | ||
* @yields {name:string, path:string} next page in pages list | ||
*/ | ||
@@ -5,0 +8,0 @@ export function * allPages(pages) { |
@@ -8,4 +8,4 @@ import {mkdir, copyFile as copyFileSync} from 'node:fs/promises'; | ||
* | ||
* @param {string} file | ||
* @param {string} content | ||
* @param {string} src | ||
* @param {string} dest | ||
* @returns {Promise<*>} | ||
@@ -12,0 +12,0 @@ */ |
@@ -8,5 +8,5 @@ import {join, parse} from 'node:path'; | ||
* @param {string} path | ||
* @param {Function} include | ||
* @param extenders | ||
* @returns {Promise<Awaited<unknown>[{name, path}]>} | ||
* @param {function(dirent:Dirent, path:string)} include | ||
* @param {Object|function(page:{name:string, path:string}, dirent:Dirent, path:string)} extenders | ||
* @returns {Promise<Awaited<unknown>[{name:string, path:string}]>} | ||
*/ | ||
@@ -13,0 +13,0 @@ export async function getPages({path = 'content', include = isPage} = {}, ...extenders) { |
@@ -10,3 +10,2 @@ /** | ||
* @param {Dirent} dirent | ||
* @param {string} path | ||
* @returns {boolean} | ||
@@ -13,0 +12,0 @@ */ |
{ | ||
"name": "@sphido/core", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"author": { | ||
@@ -48,3 +48,3 @@ "name": "Roman Ožana", | ||
}, | ||
"gitHead": "824894e08a8007b0c36d75fe005b153ccfa7c5fc" | ||
"gitHead": "5ede811c6442f334f5dd04f0d146b49fc7a785ad" | ||
} |
9399
111