Skip to content

Commit dbc7813

Browse files
committed
change yaml.safeDump to yaml.dump
1 parent b74cc04 commit dbc7813

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

script/create-glossary-from-spreadsheet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ glossary.forEach(term => {
2727

2828
fs.writeFileSync(
2929
path.join(__dirname, '../data/glossaries/internal.yml'),
30-
yaml.safeDump(internal)
30+
yaml.dump(internal)
3131
)
3232

3333
fs.writeFileSync(
3434
path.join(__dirname, '../data/glossaries/external.yml'),
35-
yaml.safeDump(external)
35+
yaml.dump(external)
3636
)

script/enterprise-server-releases/release-banner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (options.action === 'remove') {
5050
}
5151

5252
// Update the file
53-
fs.writeFileSync(releaseCandidateYaml, yaml.safeDump(releaseCandidateData))
53+
fs.writeFileSync(releaseCandidateYaml, yaml.dump(releaseCandidateData))
5454

5555
// Display next steps
5656
console.log(`\nDone! Commit the update to ${releaseCandidateFile}. This ${options.action}s the banner for ${options.version}.

script/fix-translation-errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async function main () {
9494
if (content) {
9595
toWrite = matter.stringify(content, newData, { lineWidth: 10000, forceQuotes: true })
9696
} else {
97-
toWrite = yaml.safeDump(newData, { lineWidth: 10000, forceQuotes: true })
97+
toWrite = yaml.dump(newData, { lineWidth: 10000, forceQuotes: true })
9898
}
9999

100100
fs.writeFileSync(localisedAbsPath, toWrite)

script/graphql/update-files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async function main () {
6666
// 1. UPDATE PREVIEWS
6767
const previewsPath = getDataFilepath('previews', graphqlVersion)
6868
const safeForPublicPreviews = yaml.load(await getRemoteRawContent(previewsPath, graphqlVersion))
69-
updateFile(previewsPath, yaml.safeDump(safeForPublicPreviews))
69+
updateFile(previewsPath, yaml.dump(safeForPublicPreviews))
7070
previewsJson[graphqlVersion] = processPreviews(safeForPublicPreviews)
7171

7272
// 2. UPDATE UPCOMING CHANGES

0 commit comments

Comments
 (0)