File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -154,14 +154,14 @@ function fail (err, expected) {
154154
155155function readYAML ( fp ) {
156156 try {
157- return yaml . safeLoad ( fs . readFileSync ( fp , 'utf8' ) )
157+ return yaml . load ( fs . readFileSync ( fp , 'utf8' ) )
158158 } catch ( err ) {
159159 if ( err . code !== 'ENOENT' ) fail ( err )
160160 }
161161}
162162
163163function toYAML ( value ) {
164- return yaml . safeDump ( value , { noRefs : true } ) . trim ( )
164+ return yaml . dump ( value , { noRefs : true } ) . trim ( )
165165}
166166
167167function indent ( str ) {
Original file line number Diff line number Diff line change 3838 "globs-to-files" : " ^1.0.0" ,
3939 "http-proxy" : " ^1.18.1" ,
4040 "humanize-duration" : " ^3.23.1" ,
41- "js-yaml" : " ^3.14 .0" ,
41+ "js-yaml" : " ^4.0 .0" ,
4242 "load-script" : " ^1.0.0" ,
4343 "make-promises-safe" : " ^5.1.0" ,
4444 "maybe-combine-errors" : " ^1.0.0" ,
Original file line number Diff line number Diff line change @@ -143,5 +143,5 @@ function writeConfig (cwd, config) {
143143}
144144
145145function toYAML ( value ) {
146- return yaml . safeDump ( value , { noRefs : true } ) . trim ( )
146+ return yaml . dump ( value , { noRefs : true } ) . trim ( )
147147}
You can’t perform that action at this time.
0 commit comments