Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / utils / build-info.js
1 const a1231_0xb9ca=['../../package.json','git-last-commit','xcally','resolve','../config/config.service','isProduction','exports','join'];(function(_0xc46c94,_0xb9ca6a){const _0x4fed5d=function(_0x128fd5){while(--_0x128fd5){_0xc46c94['push'](_0xc46c94['shift']());}};_0x4fed5d(++_0xb9ca6a);}(a1231_0xb9ca,0x7c));const a1231_0x4fed=function(_0xc46c94,_0xb9ca6a){_0xc46c94=_0xc46c94-0x0;let _0x4fed5d=a1231_0xb9ca[_0xc46c94];return _0x4fed5d;};const _0x441981=a1231_0x4fed,{getLastCommit}=require(_0x441981('0x5')),{getConfigService}=require(_0x441981('0x0')),packageJson=require(_0x441981('0x4')),cs=getConfigService();function getBuildInfo(){return new Promise((_0x128fd5,_0x435621)=>{getLastCommit(function(_0x1d5307,_0xef95d1){const _0x1c269c=a1231_0x4fed;if(_0x1d5307)_0x435621(_0x1d5307);else{const {shortHash:_0x1ed1c6,branch:_0x1f7429,committedOn:_0x3d3f33,tags:_0x10ddbb}=_0xef95d1;_0x128fd5({'shortHash':_0x1ed1c6,'branch':_0x1f7429,'tag':_0x10ddbb[_0x1c269c('0x3')](',\x20'),'committedOn':new Date(Number(_0x3d3f33)*0x3e8),'buildDate':new Date()});}});});}function readBuildInfo(){const _0x45de73=_0x441981;return cs[_0x45de73('0x1')]&&typeof packageJson[_0x45de73('0x6')]!=='undefined'?Promise[_0x45de73('0x7')](packageJson['xcally']):getBuildInfo();}module[_0x441981('0x2')]={'getBuildInfo':getBuildInfo,'readBuildInfo':readBuildInfo};