UNPKG

test-openapi

Version:
23 lines (18 loc) 467 B
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.parseFlat=exports.stringifyFlat=void 0; const stringifyFlat=function(value){ if(value===undefined){ return""; } if(typeof value==="string"){ return value; } return JSON.stringify(value); };exports.stringifyFlat=stringifyFlat; const parseFlat=function(value){ try{ return JSON.parse(value); }catch(error){ return value; } };exports.parseFlat=parseFlat; //# sourceMappingURL=flat.js.map