pshregistry-parser
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -157,3 +157,3 @@ 'use strict'; | ||
let registryData = this.parseRegistry(registrySource); | ||
fs.writeFileSync(`${registryName[0]}.yaml`, yml.safeDump(registryData, {noRefs:true}), function (err) { | ||
fs.writeFileSync(`${registryName[0]}.yaml`, yml.dump(registryData, {noRefs:true}), function (err) { | ||
if (err) throw err; | ||
@@ -160,0 +160,0 @@ }); |
{ | ||
"name": "pshregistry-parser", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Helper for library for accessing image data from the Platform.sh Registry and generating configuration files.", | ||
@@ -35,3 +35,3 @@ "main": "lib/registry-parser.js", | ||
"eslint": "^5.14.1", | ||
"js-yaml": "^3.13.1", | ||
"js-yaml": "^4.1.0", | ||
"mocha": "^6.0.0" | ||
@@ -38,0 +38,0 @@ }, |
@@ -157,3 +157,3 @@ 'use strict'; | ||
let registryData = this.parseRegistry(registrySource); | ||
fs.writeFileSync(`${registryName[0]}.yaml`, yml.safeDump(registryData, {noRefs:true}), function (err) { | ||
fs.writeFileSync(`${registryName[0]}.yaml`, yml.dump(registryData, {noRefs:true}), function (err) { | ||
if (err) throw err; | ||
@@ -160,0 +160,0 @@ }); |
@@ -60,3 +60,3 @@ 'use strict'; | ||
registry.writeRegistryYAML(registrySource); | ||
let yamlRegistry = yaml.safeLoad(fs.readFileSync('test/testdata/valid.yaml', 'utf8')); | ||
let yamlRegistry = yaml.load(fs.readFileSync('test/testdata/valid.yaml', 'utf8')); | ||
assert.equal(yamlRegistry.elasticsearch.disk, true); | ||
@@ -63,0 +63,0 @@ assert.equal(yamlRegistry.elasticsearch.endpoint, "elasticsearch"); |
164682