@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 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
- await Promise.all(extenders.filter(f => typeof f === 'function').map(f => f(page, dirent, path)));
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
@@ -6,7 +6,8 @@
6
6
  * - skip drafts files with underscore at the beginning
7
7
  * - accept only *.html and *.md files
8
8
  *
9
- * @param {object} dirent
9
+ * @param {Dirent} dirent
10
+ * @param {string} path
10
11
  * @returns {boolean}
11
12
  */
12
13
  export function isPage(dirent) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphido/core",
3
- "version": "2.0.7",
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": "4e67a2c1a85839762864b2c06d657c2526ac7960"
48
+ "gitHead": "824894e08a8007b0c36d75fe005b153ccfa7c5fc"
49
49
  }