@sphido/core 2.0.7 → 2.0.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/lib/get-pages.js +4 -2
- package/lib/is-page.js +2 -1
- package/package.json +2 -2
package/lib/get-pages.js
CHANGED
|
@@ -24,8 +24,10 @@ export async function getPages({path = 'content', include = isPage} = {}, ...ext
|
|
|
24
24
|
page.children = await getPages({path: page.path, include}, ...extenders);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// Calling callbacks
|
|
28
|
-
|
|
27
|
+
// Calling callbacks in the series
|
|
28
|
+
for (const cb of extenders.filter(f => typeof f === 'function')) {
|
|
29
|
+
await cb(page, dirent, path);
|
|
30
|
+
}
|
|
29
31
|
|
|
30
32
|
// Assign objects with page
|
|
31
33
|
return Object.assign(page, ...extenders.filter(o => typeof o === 'object'));
|
package/lib/is-page.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphido/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Roman Ožana",
|
|
6
6
|
"email": "roman@ozana.cz",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"no-await-in-loop": 0
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "824894e08a8007b0c36d75fe005b153ccfa7c5fc"
|
|
49
49
|
}
|