pshregistry-parser
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -145,3 +145,8 @@ 'use strict'; | ||
// in which case, use deprecated versions | ||
const versionArray = this.supported.length > 0 ? this.supported : this.deprecated | ||
const getVersionArray = () => { | ||
if (this.supported.length > 0) return this.supported | ||
if (this["versions-dedicated"]?.supported) return this["versions-dedicated"].supported | ||
return this.deprecated | ||
} | ||
const versionArray = getVersionArray(); | ||
@@ -148,0 +153,0 @@ for(let version of versionArray) { |
{ | ||
"name": "pshregistry-parser", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Helper for library for accessing image data from the Platform.sh Registry and generating configuration files.", | ||
@@ -5,0 +5,0 @@ "main": "lib/registry-parser.js", |
@@ -145,3 +145,8 @@ 'use strict'; | ||
// in which case, use deprecated versions | ||
const versionArray = this.supported.length > 0 ? this.supported : this.deprecated | ||
const getVersionArray = () => { | ||
if (this.supported.length > 0) return this.supported | ||
if (this["versions-dedicated"]?.supported) return this["versions-dedicated"].supported | ||
return this.deprecated | ||
} | ||
const versionArray = getVersionArray(); | ||
@@ -148,0 +153,0 @@ for(let version of versionArray) { |
163255
3534