Skip to content

Commit 13a2c54

Browse files
author
Adam Duncan
committed
Update YAML parser - outputs much more like inputted YAML file
1 parent c63be6e commit 13a2c54

File tree

4 files changed

+8
-23
lines changed

4 files changed

+8
-23
lines changed

lib/parsed-yaml-retriever.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { promisify } = require('util')
2-
const yaml = require('yamljs')
2+
const yaml = require('yaml')
33
const getParsedYaml = gh => async data => {
44
let contents = data.yaml
55
if (!contents) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"github4": "^1.1.1",
1515
"globule": "^1.2.1",
1616
"http-signature": "^1.2.0",
17-
"yamljs": "^0.3.0"
17+
"yaml": "^1.3.2"
1818
}
1919
}

plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const express = require('express')
22
const bodyParser = require('body-parser')
33
const GhApi = require('github4')
4-
const yaml = require('yamljs')
4+
const yaml = require('yaml')
55
const glob = require('globule')
66
const createFilesChangedDeterminer = require('./lib/files-changed-determiner')
77
const createParsedYamlRetriever = require('./lib/parsed-yaml-retriever')

yarn.lock

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ agent-base@2:
1818
extend "~3.0.0"
1919
semver "~5.0.1"
2020

21-
argparse@^1.0.7:
22-
version "1.0.10"
23-
resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911"
24-
integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==
25-
dependencies:
26-
sprintf-js "~1.0.2"
27-
2821
array-flatten@1.1.1:
2922
version "1.1.1"
3023
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
@@ -268,7 +261,7 @@ github4@^1.1.1:
268261
https-proxy-agent "^1.0.0"
269262
mime "^1.2.11"
270263

271-
glob@^7.0.5, glob@~7.1.1:
264+
glob@~7.1.1:
272265
version "7.1.3"
273266
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz#3960832d3f1574108342dafd3a67b332c0969df1"
274267
integrity sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==
@@ -527,11 +520,6 @@ setprototypeof@1.1.0:
527520
resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656"
528521
integrity sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==
529522

530-
sprintf-js@~1.0.2:
531-
version "1.0.3"
532-
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
533-
integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=
534-
535523
sshpk@^1.7.0:
536524
version "1.16.1"
537525
resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877"
@@ -604,10 +592,7 @@ wrappy@1:
604592
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
605593
integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
606594

607-
yamljs@^0.3.0:
608-
version "0.3.0"
609-
resolved "https://registry.yarnpkg.com/yamljs/-/yamljs-0.3.0.tgz#dc060bf267447b39f7304e9b2bfbe8b5a7ddb03b"
610-
integrity sha512-C/FsVVhht4iPQYXOInoxUM/1ELSf9EsgKH34FofQOp6hwCPrW4vG4w5++TED3xRUo8gD7l0P1J1dLlDYzODsTQ==
611-
dependencies:
612-
argparse "^1.0.7"
613-
glob "^7.0.5"
595+
yaml@^1.3.2:
596+
version "1.3.2"
597+
resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.3.2.tgz#3de83fafed3799fb0b0029c12f80035bc7611303"
598+
integrity sha512-ZZZIdcApMRcAez37EVrtCim+8JUESX0zRcsv+HMfatIX79cX22CAnVkxDrZhAmzsnka2nb/mvaTybzDYcnrIew==

0 commit comments

Comments
 (0)