test-openapi
Version:
Automated client requests
13 lines (8 loc) • 392 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:true});exports.convertPlainObject=void 0;var _bug=require("./bug.js");
const convertPlainObject=function({name,message,stack,...error}){
if((0,_bug.isBugError)({name})){
return{...error,name,message,stack};
}
return{...error,name,message};
};exports.convertPlainObject=convertPlainObject;
//# sourceMappingURL=convert.js.map