Skip to content

Commit 6e84427

Browse files
authored
Merge pull request #197 from empress/update-dependencies
update dependencies
2 parents 79dc60b + 0af7507 commit 6e84427

File tree

8 files changed

+281
-190
lines changed

8 files changed

+281
-190
lines changed

lib/authors-array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function modifyFile(fileContents, file) {
4545
}
4646

4747
return `---
48-
${yaml.safeDump(frontMatter)}---${content}`;
48+
${yaml.dump(frontMatter)}---${content}`;
4949
}
5050

5151
module.exports.modifyFile = modifyFile;

lib/automatic-new-tag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = class AutomaticNewTag extends BroccoliPlugin {
4949
delete frontMatter.__content;
5050

5151
const fileContent = `---
52-
${yaml.safeDump(frontMatter)}---${content}`;
52+
${yaml.dump(frontMatter)}---${content}`;
5353

5454
writeFileSync(join(this.outputPath,file), fileContent);
5555
})

lib/import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable prettier/prettier */
22
const { existsSync, readFileSync, writeFileSync, mkdirSync } = require('fs');
3-
const { safeDump } = require('js-yaml');
3+
const { dump: safeDump } = require('js-yaml');
44

55
const importers = require('./importers');
66

lib/item-include-posts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module.exports = class ItemIncludePosts extends BroccoliPlugin {
8787
const newFile = join(this.outputPath, `${itemId}.md`);
8888

8989
const fileContent = `---
90-
${yaml.safeDump(frontMatter)}---${content}`;
90+
${yaml.dump(frontMatter)}---${content}`;
9191

9292
writeFileSync(newFile, fileContent);
9393
});

node-tests/authors-array.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ title: Setting up your own Ghost theme
2424
image: /images/design.jpg
2525
imageMeta:
2626
attribution: face
27-
attributionLink: 'https://www.emberjs.com/face'
27+
attributionLink: https://www.emberjs.com/face
2828
featured: true
29-
date: 'Tue Jun 12 2018 17:49:21 GMT+0100 (IST)'
29+
date: Tue Jun 12 2018 17:49:21 GMT+0100 (IST)
3030
tags:
3131
- getting-started
3232
authors:
@@ -44,11 +44,11 @@ title: Setting up your own Ghost theme
4444
image: /images/design.jpg
4545
imageMeta:
4646
attribution: face
47-
attributionLink: 'https://www.emberjs.com/face'
47+
attributionLink: https://www.emberjs.com/face
4848
featured: true
4949
authors:
5050
- ghost
51-
date: 'Tue Jun 12 2018 17:49:21 GMT+0100 (IST)'
51+
date: Tue Jun 12 2018 17:49:21 GMT+0100 (IST)
5252
tags:
5353
- getting-started
5454
---

node-tests/automatic-new-tag.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ tags:
8888
- new
8989
authors:
9090
- ghost
91-
date: 'Tue Jun 12 2018 17:50:59 GMT+0100 (IST)'
91+
date: Tue Jun 12 2018 17:50:59 GMT+0100 (IST)
9292
---
9393
# Hello world`)
9494
// oldest file does not have new tag
@@ -97,7 +97,7 @@ tags:
9797
- a-tag-of-sorts
9898
authors:
9999
- ghost
100-
date: 'Tue Jun 09 2018 17:50:59 GMT+0100 (IST)'
100+
date: Tue Jun 09 2018 17:50:59 GMT+0100 (IST)
101101
---
102102
# Hello world`)
103103

@@ -108,7 +108,7 @@ tags:
108108
- new
109109
authors:
110110
- ghost
111-
date: 'Tue Jun 13 2018 17:50:59 GMT+0100 (IST)'
111+
date: Tue Jun 13 2018 17:50:59 GMT+0100 (IST)
112112
---
113113
# Hello world`)
114114
})

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"broccoli-funnel": "^3.0.3",
4040
"broccoli-merge-trees": "^4.2.0",
4141
"broccoli-plugin": "^4.0.3",
42-
"broccoli-static-site-json": "^4.2.0",
42+
"broccoli-static-site-json": "^5.0.0",
4343
"broccoli-static-site-json-xml": "^1.0.1",
4444
"case": "^1.6.1",
4545
"downsize-cjs": "^1.0.1",
@@ -53,12 +53,12 @@
5353
"ember-meta": "^2.0.0",
5454
"ember-scroll": "^1.0.2",
5555
"empress-blueprint-helpers": "^1.2.1",
56-
"js-yaml": "^3.13.1",
56+
"js-yaml": "^4.1.0",
5757
"lodash": "^4.17.20",
5858
"recast": "^0.23.4",
5959
"require-directory": "^2.1.1",
6060
"resolve": "^1.10.1",
61-
"walk-sync": "^3.0.0",
61+
"walk-sync": "^4.0.1",
6262
"xml2js": "^0.6.2",
6363
"yaml-front-matter": "^4.0.0"
6464
},

0 commit comments

Comments
 (0)