@slybridges/kiss 0.6.3 → 0.6.4

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/helpers.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slybridges/kiss",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Keep It Simple and Static site generator",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -12,9 +12,9 @@
12
12
  "author": "Sylvestre Dupont",
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "browser-sync": "^2.27.7",
15
+ "browser-sync": "^2.27.10",
16
16
  "chalk": "^4.1.2",
17
- "cheerio": "^1.0.0-rc.10",
17
+ "cheerio": "^1.0.0-rc.12",
18
18
  "chokidar": "^3.5.3",
19
19
  "date-fns": "^2.28.0",
20
20
  "fast-glob": "^3.2.11",
@@ -23,7 +23,7 @@
23
23
  "lodash": "^4.17.21",
24
24
  "marked": "^4.0.12",
25
25
  "nunjucks": "^3.2.3",
26
- "sharp": "^0.30.1",
26
+ "sharp": "^0.30.7",
27
27
  "slugify": "^1.6.5",
28
28
  "xml": "^1.0.1",
29
29
  "yargs": "^17.3.1"
package/src/helpers.js CHANGED
@@ -96,11 +96,11 @@ const getDescendantPages = (
96
96
  /** Computes the input path based on the permalink by checking if the parent
97
97
  * had a permalink different than their input path */
98
98
  const getInputPath = (permalink, pages, baseContentPath) => {
99
- const pathPbject = path.parse(permalink)
99
+ const pathObject = path.parse(permalink)
100
100
  // search if a have a parent corresponding to this permalink
101
101
  const parent = _.find(
102
102
  pages,
103
- (page) => page.permalink === pathPbject.dir + "/"
103
+ (page) => page.permalink === pathObject.dir + "/"
104
104
  )
105
105
  if (!parent) {
106
106
  // no result: assume inputPath same as permalink
@@ -108,7 +108,7 @@ const getInputPath = (permalink, pages, baseContentPath) => {
108
108
  }
109
109
  return path.join(
110
110
  path.dirname(parent._meta.inputPath), // inputPath of parent's dir
111
- pathPbject.base // filename
111
+ pathObject.base // filename
112
112
  )
113
113
  }
114
114