@leaflink/oast
Advanced tools
Comparing version 1.6.0 to 1.6.1
{ | ||
"name": "@leaflink/oast", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,2 +11,3 @@ const { InvalidConfigurationFile } = require('@src/libs/exceptions/frosting-ingest-errors'); | ||
const vreplaceOptionsSchema = require('./schemas/vreplace-options-schema'); | ||
const outputLog = require('@src/output-log'); | ||
@@ -41,2 +42,9 @@ const transformer = {}; | ||
try { | ||
console.log(transformations.target.transformations); | ||
// If a configuration file is present, but has defined no transformation functions | ||
// skip applying and just return the unmodified specfile. | ||
if (!transformations.target || transformations.target.transformations === null) { | ||
outputLog.info('No transformations were found, skipping..'); | ||
return spec; | ||
} | ||
for (const element of transformations.target.transformations) { | ||
@@ -43,0 +51,0 @@ current = element; |
Sorry, the diff of this file is not supported yet
1862
163441