@oas-tools/cli
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -43,3 +43,3 @@ import fs from "fs"; | ||
rObj[rn.toLowerCase()] = {}; | ||
Object.entries([content].flat()[idx]).forEach(([k,v]) => rObj[rn.toLowerCase()][k] = typeof v); | ||
Object.entries([content].flat()[idx]).forEach(([k,v]) => rObj[rn.toLowerCase()][k] = Array.isArray(v) ? 'array' : typeof v); | ||
}); | ||
@@ -71,2 +71,7 @@ | ||
/* Register EQUALS operation in handlebars */ | ||
Handlebars.registerHelper('eq', function (v1, v2) { | ||
return v1 === v2; | ||
}); | ||
/* Render template and write file */ | ||
@@ -73,0 +78,0 @@ const template = Handlebars.compile(fs.readFileSync(`${dirName}/../templates/file/oas-doc.hbs`).toString()); |
{ | ||
"name": "@oas-tools/cli", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Comand line interface for OAS-Tools project", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
61479
718