vome-core 0.0.59 → 0.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- const _0x52c18c=_0x2db5;function _0x2db5(_0x3680cc,_0x40bf61){_0x3680cc=_0x3680cc-0x17b;const _0x500b7d=_0x500b();let _0x2db528=_0x500b7d[_0x3680cc];if(_0x2db5['zdVaIG']===undefined){var _0x2b5a77=function(_0x53b6bf){const _0x575b49='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x191d44='',_0x35a344='';for(let _0x183d70=0x0,_0x16b0e1,_0x4566fc,_0x3bf0f3=0x0;_0x4566fc=_0x53b6bf['charAt'](_0x3bf0f3++);~_0x4566fc&&(_0x16b0e1=_0x183d70%0x4?_0x16b0e1*0x40+_0x4566fc:_0x4566fc,_0x183d70++%0x4)?_0x191d44+=String['fromCharCode'](0xff&_0x16b0e1>>(-0x2*_0x183d70&0x6)):0x0){_0x4566fc=_0x575b49['indexOf'](_0x4566fc);}for(let _0x46e916=0x0,_0x2d683a=_0x191d44['length'];_0x46e916<_0x2d683a;_0x46e916++){_0x35a344+='%'+('00'+_0x191d44['charCodeAt'](_0x46e916)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x35a344);};_0x2db5['NGsJfm']=_0x2b5a77,_0x2db5['PZkjgp']={},_0x2db5['zdVaIG']=!![];}const _0x117ef9=_0x500b7d[0x0],_0x414449=_0x3680cc+_0x117ef9,_0x3db81d=_0x2db5['PZkjgp'][_0x414449];return!_0x3db81d?(_0x2db528=_0x2db5['NGsJfm'](_0x2db528),_0x2db5['PZkjgp'][_0x414449]=_0x2db528):_0x2db528=_0x3db81d,_0x2db528;}(function(_0x25aa6b,_0x38639b){const _0x241c9e=_0x2db5,_0x3a0d21=_0x25aa6b();while(!![]){try{const _0x2aa6dc=parseInt(_0x241c9e(0x198))/0x1+-parseInt(_0x241c9e(0x18e))/0x2*(parseInt(_0x241c9e(0x189))/0x3)+parseInt(_0x241c9e(0x191))/0x4*(parseInt(_0x241c9e(0x184))/0x5)+-parseInt(_0x241c9e(0x193))/0x6*(parseInt(_0x241c9e(0x18b))/0x7)+parseInt(_0x241c9e(0x194))/0x8*(parseInt(_0x241c9e(0x17c))/0x9)+-parseInt(_0x241c9e(0x195))/0xa+-parseInt(_0x241c9e(0x190))/0xb*(-parseInt(_0x241c9e(0x19b))/0xc);if(_0x2aa6dc===_0x38639b)break;else _0x3a0d21['push'](_0x3a0d21['shift']());}catch(_0x12d32b){_0x3a0d21['push'](_0x3a0d21['shift']());}}}(_0x500b,0xa7397));import*as _0x191d44 from'xlsx';export const IMPORT_SKIP_FIELDS=['id','createTime',_0x52c18c(0x181),_0x52c18c(0x19c),'tenantId'];export function isImportSkipField(_0x35a344){return IMPORT_SKIP_FIELDS['includes'](_0x35a344);}export function buildExcelBuffer(_0x183d70,_0x16b0e1,_0x4566fc){const _0x2b3c14=_0x52c18c,_0x3bf0f3=_0x183d70[_0x2b3c14(0x17b)](_0x25f548=>_0x25f548[_0x2b3c14(0x17d)]||_0x25f548[_0x2b3c14(0x188)]),_0x46e916=_0x16b0e1[_0x2b3c14(0x17b)](_0x4c58ab=>_0x183d70[_0x2b3c14(0x17b)](_0x233854=>{const _0x51fdf8=_0x2b3c14;if(_0x4566fc)return _0x4566fc(_0x233854[_0x51fdf8(0x188)],_0x4c58ab);const _0xdd0c37=_0x4c58ab[_0x233854[_0x51fdf8(0x188)]];if(_0xdd0c37==null)return'';return String(_0xdd0c37);})),_0x2d683a=_0x191d44['utils'][_0x2b3c14(0x199)]([_0x3bf0f3,..._0x46e916]),_0x3f7e7c=_0x191d44[_0x2b3c14(0x186)][_0x2b3c14(0x192)]();return _0x191d44['utils'][_0x2b3c14(0x19a)](_0x3f7e7c,_0x2d683a,'Sheet1'),_0x191d44[_0x2b3c14(0x187)](_0x3f7e7c,{'bookType':'xlsx','type':'array'});}function _0x500b(){const _0x51825a=['yw9Hx3rVx3nOzwv0','yM9VA19HChbLBMrFC2HLzxq','mJG4nJq4vuXxyLvc','zgvSzxrLzef0','z2v0','BwfW','owHMuwzvDW','BgfIzwW','yxjYyxK','C2HLzxrFDg9FANnVBG','ChvZAa','DxbKyxrLvgLTzq','C2v0','u2HLzxroyw1LCW','ntq3nZaWnu95DfDMsa','C3rYAw5N','DxrPBhm','D3jPDgu','ChjVCa','mtjUwKHeug4','yxr0ywnOBwvUDdSGzMLSzw5HBwuQpvvurI04jYC','mtrPuKLRv3y','u2HLzxrZ','lNHSC3G','nJi1mtyYu2TYEhPo','BgvUz3rO','mtaXmKn5BuroDW','nhjHq3fSEG','yM9VA19UzxC','mJaXnZu0ogTqz3Hiuq','nZu1mZG0zunSy1n5','otCZotG0mg9tvhvuuW','CMvHza','zw5KC1DPDgG','mtC4otGZDhHjDLDs'];_0x500b=function(){return _0x51825a;};return _0x500b();}export function buildImportTemplateBuffer(_0x34e632){return buildExcelBuffer(_0x34e632,[]);}export function parseExcelBuffer(_0x361134,_0x46d89a){const _0x162df1=_0x52c18c,_0x1dc57f=_0x191d44[_0x162df1(0x196)](_0x361134,{'type':_0x162df1(0x17e),'cellDates':!![]}),_0x59181f=_0x1dc57f[_0x162df1(0x183)][0x0];if(!_0x59181f)return[];const _0xf3f915=_0x1dc57f[_0x162df1(0x18c)][_0x59181f];if(!_0xf3f915)return[];const _0x30bcf9=_0x191d44['utils'][_0x162df1(0x17f)](_0xf3f915,{'header':0x1,'defval':'','raw':![]});if(!_0x30bcf9['length'])return[];const _0x40be46=(_0x30bcf9[0x0]||[])[_0x162df1(0x17b)](_0xac5fd7=>String(_0xac5fd7??'')['trim']()),_0x2018dd=new Map();if(_0x46d89a?.[_0x162df1(0x18f)])for(const _0x2a455b of _0x46d89a){_0x2018dd[_0x162df1(0x182)](_0x2a455b[_0x162df1(0x17d)]['trim'](),_0x2a455b[_0x162df1(0x188)]),_0x2018dd[_0x162df1(0x182)](_0x2a455b[_0x162df1(0x188)],_0x2a455b[_0x162df1(0x188)]);}const _0x40a3f1=_0x40be46[_0x162df1(0x17b)](_0x29f1be=>{const _0x55ffa2=_0x162df1;if(!_0x29f1be)return'';return _0x2018dd[_0x55ffa2(0x19d)](_0x29f1be)||_0x29f1be;}),_0x40f9b1=[];for(let _0x3bbb37=0x1;_0x3bbb37<_0x30bcf9[_0x162df1(0x18f)];_0x3bbb37++){const _0x3c29e2=_0x30bcf9[_0x3bbb37]||[],_0x87dc40={};let _0x1cf14b=!![];for(let _0x52994e=0x0;_0x52994e<_0x40a3f1['length'];_0x52994e++){const _0x26a511=_0x40a3f1[_0x52994e];if(!_0x26a511)continue;let _0x365821=_0x3c29e2[_0x52994e];if(_0x365821==null||_0x365821===''){_0x87dc40[_0x26a511]=_0x365821==null?null:'';continue;}_0x1cf14b=![],typeof _0x365821===_0x162df1(0x185)?_0x87dc40[_0x26a511]=_0x365821['trim']():_0x87dc40[_0x26a511]=_0x365821;}if(!_0x1cf14b)_0x40f9b1[_0x162df1(0x180)](_0x87dc40);}return _0x40f9b1;}export function excelFilename(_0x16dd41){const _0x3bbf73=_0x52c18c;return _0x16dd41[_0x3bbf73(0x197)](_0x3bbf73(0x18d))?_0x16dd41:_0x16dd41+_0x3bbf73(0x18d);}export function excelResponseHeaders(_0x310f3b){const _0x1e7cf5=_0x52c18c,_0x4ad1b8=excelFilename(_0x310f3b);return{'Content-Type':'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','Content-Disposition':_0x1e7cf5(0x18a)+encodeURIComponent(_0x4ad1b8)};}
1
+ function _0x1a69(_0x58e86b,_0xca10e){_0x58e86b=_0x58e86b-0xc6;const _0x18c516=_0x18c5();let _0x1a69fc=_0x18c516[_0x58e86b];if(_0x1a69['XRALXy']===undefined){var _0x4ed661=function(_0x9b2d58){const _0x14bfb1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x56d383='',_0x4d22eb='';for(let _0xd0b2d5=0x0,_0x5bda71,_0x568152,_0x4fb360=0x0;_0x568152=_0x9b2d58['charAt'](_0x4fb360++);~_0x568152&&(_0x5bda71=_0xd0b2d5%0x4?_0x5bda71*0x40+_0x568152:_0x568152,_0xd0b2d5++%0x4)?_0x56d383+=String['fromCharCode'](0xff&_0x5bda71>>(-0x2*_0xd0b2d5&0x6)):0x0){_0x568152=_0x14bfb1['indexOf'](_0x568152);}for(let _0x489c4a=0x0,_0x49d3c7=_0x56d383['length'];_0x489c4a<_0x49d3c7;_0x489c4a++){_0x4d22eb+='%'+('00'+_0x56d383['charCodeAt'](_0x489c4a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4d22eb);};_0x1a69['dZlNtF']=_0x4ed661,_0x1a69['rmEzdI']={},_0x1a69['XRALXy']=!![];}const _0x19bf5b=_0x18c516[0x0],_0xa038e7=_0x58e86b+_0x19bf5b,_0x1930bd=_0x1a69['rmEzdI'][_0xa038e7];return!_0x1930bd?(_0x1a69fc=_0x1a69['dZlNtF'](_0x1a69fc),_0x1a69['rmEzdI'][_0xa038e7]=_0x1a69fc):_0x1a69fc=_0x1930bd,_0x1a69fc;}const _0x5b5841=_0x1a69;(function(_0x19dbbc,_0x2cbf71){const _0x48fbba=_0x1a69,_0x5c0def=_0x19dbbc();while(!![]){try{const _0x53d711=parseInt(_0x48fbba(0xcb))/0x1+-parseInt(_0x48fbba(0xe0))/0x2*(-parseInt(_0x48fbba(0xe3))/0x3)+-parseInt(_0x48fbba(0xdd))/0x4+parseInt(_0x48fbba(0xd2))/0x5*(parseInt(_0x48fbba(0xd7))/0x6)+-parseInt(_0x48fbba(0xd5))/0x7*(parseInt(_0x48fbba(0xe8))/0x8)+parseInt(_0x48fbba(0xdc))/0x9*(parseInt(_0x48fbba(0xc7))/0xa)+parseInt(_0x48fbba(0xe6))/0xb*(-parseInt(_0x48fbba(0xcf))/0xc);if(_0x53d711===_0x2cbf71)break;else _0x5c0def['push'](_0x5c0def['shift']());}catch(_0x5e8b0a){_0x5c0def['push'](_0x5c0def['shift']());}}}(_0x18c5,0xb16bc));import*as _0x56d383 from'xlsx';export const IMPORT_SKIP_FIELDS=['id',_0x5b5841(0xe1),_0x5b5841(0xde),'deletedAt',_0x5b5841(0xda)];export function isImportSkipField(_0x4d22eb){const _0x430199=_0x5b5841;return IMPORT_SKIP_FIELDS[_0x430199(0xdf)](_0x4d22eb);}export function buildExcelBuffer(_0xd0b2d5,_0x5bda71,_0x568152){const _0x4db3c1=_0x5b5841,_0x4fb360=_0xd0b2d5[_0x4db3c1(0xd4)](_0x4661a4=>_0x4661a4[_0x4db3c1(0xc9)]||_0x4661a4['prop']),_0x489c4a=_0x5bda71[_0x4db3c1(0xd4)](_0x1dd933=>_0xd0b2d5['map'](_0x2a14c9=>{const _0x4009b1=_0x4db3c1;if(_0x568152)return _0x568152(_0x2a14c9['prop'],_0x1dd933);const _0x42a767=_0x1dd933[_0x2a14c9[_0x4009b1(0xca)]];if(_0x42a767==null)return'';return String(_0x42a767);})),_0x49d3c7=_0x56d383[_0x4db3c1(0xd8)][_0x4db3c1(0xcc)]([_0x4fb360,..._0x489c4a]),_0x277adb=_0x56d383[_0x4db3c1(0xd8)]['book_new']();return _0x56d383[_0x4db3c1(0xd8)][_0x4db3c1(0xd1)](_0x277adb,_0x49d3c7,'Sheet1'),_0x56d383[_0x4db3c1(0xe4)](_0x277adb,{'bookType':_0x4db3c1(0xcd),'type':_0x4db3c1(0xce)});}function _0x18c5(){const _0x29021f=['Aw5JBhvKzxm','mtaXmda3oejPCfLQEa','y3jLyxrLvgLTzq','yxr0ywnOBwvUDdSGzMLSzw5HBwuQpvvurI04jYC','m1HRvezUsW','D3jPDgu','z2v0','mJe3ndq4vuHnwK9X','ChvZAa','ota0mtG0s2PHAvvR','lNHSC3G','mZa3mtmWv3nLwevO','zw5KC1DPDgG','BgfIzwW','ChjVCa','mZu2odGWB1bYz3Pg','yw9Hx3rVx3nOzwv0','EgXZEa','yxjYyxK','mZG0v0zftKjp','C2HLzxrFDg9FANnVBG','yM9VA19HChbLBMrFC2HLzxq','mtvlshPTrM4','C3rYAw5N','BwfW','nJnwCvvKBee','DhjPBq','mJuXode4mMfgsLj0uW','DxrPBhm','C2v0','DgvUyw50swq','BgvUz3rO','mJm0zwrRvw5b','mJe3mJe5nMHJuLznBq','DxbKyxrLvgLTzq'];_0x18c5=function(){return _0x29021f;};return _0x18c5();}export function buildImportTemplateBuffer(_0x54f45c){return buildExcelBuffer(_0x54f45c,[]);}export function parseExcelBuffer(_0x1924c9,_0x505c56){const _0x31d3e7=_0x5b5841,_0x230411=_0x56d383['read'](_0x1924c9,{'type':_0x31d3e7(0xce),'cellDates':!![]}),_0x59aa41=_0x230411['SheetNames'][0x0];if(!_0x59aa41)return[];const _0x34efe2=_0x230411['Sheets'][_0x59aa41];if(!_0x34efe2)return[];const _0x3a7497=_0x56d383[_0x31d3e7(0xd8)][_0x31d3e7(0xd0)](_0x34efe2,{'header':0x1,'defval':'','raw':![]});if(!_0x3a7497[_0x31d3e7(0xdb)])return[];const _0x3a97fb=(_0x3a7497[0x0]||[])[_0x31d3e7(0xd4)](_0x1e66c8=>String(_0x1e66c8??'')[_0x31d3e7(0xd6)]()),_0x510483=new Map();if(_0x505c56?.[_0x31d3e7(0xdb)])for(const _0x49ed47 of _0x505c56){_0x510483[_0x31d3e7(0xd9)](_0x49ed47[_0x31d3e7(0xc9)]['trim'](),_0x49ed47[_0x31d3e7(0xca)]),_0x510483[_0x31d3e7(0xd9)](_0x49ed47[_0x31d3e7(0xca)],_0x49ed47['prop']);}const _0x317711=_0x3a97fb[_0x31d3e7(0xd4)](_0x53631e=>{const _0x28f2f0=_0x31d3e7;if(!_0x53631e)return'';return _0x510483[_0x28f2f0(0xe5)](_0x53631e)||_0x53631e;}),_0x2659dc=[];for(let _0x280ef8=0x1;_0x280ef8<_0x3a7497[_0x31d3e7(0xdb)];_0x280ef8++){const _0xb2061d=_0x3a7497[_0x280ef8]||[],_0x5329f7={};let _0x279190=!![];for(let _0xf3d25d=0x0;_0xf3d25d<_0x317711[_0x31d3e7(0xdb)];_0xf3d25d++){const _0x393a8a=_0x317711[_0xf3d25d];if(!_0x393a8a)continue;let _0x1c15c2=_0xb2061d[_0xf3d25d];if(_0x1c15c2==null||_0x1c15c2===''){_0x5329f7[_0x393a8a]=_0x1c15c2==null?null:'';continue;}_0x279190=![],typeof _0x1c15c2===_0x31d3e7(0xd3)?_0x5329f7[_0x393a8a]=_0x1c15c2['trim']():_0x5329f7[_0x393a8a]=_0x1c15c2;}if(!_0x279190)_0x2659dc[_0x31d3e7(0xe7)](_0x5329f7);}return _0x2659dc;}export function excelFilename(_0x45dfa6){const _0x2bff29=_0x5b5841;return _0x45dfa6[_0x2bff29(0xc8)](_0x2bff29(0xc6))?_0x45dfa6:_0x45dfa6+_0x2bff29(0xc6);}export function excelResponseHeaders(_0x2c3ebe){const _0x50733d=_0x5b5841,_0x53269d=excelFilename(_0x2c3ebe);return{'Content-Type':'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','Content-Disposition':_0x50733d(0xe2)+encodeURIComponent(_0x53269d)};}
@@ -1 +1 @@
1
- (function(_0x326173,_0x7e8f67){var _0x524a61=_0x5e24,_0x3af4ca=_0x326173();while(!![]){try{var _0x435d5d=parseInt(_0x524a61(0x1d4))/0x1+-parseInt(_0x524a61(0x1db))/0x2*(parseInt(_0x524a61(0x1da))/0x3)+parseInt(_0x524a61(0x1d9))/0x4*(parseInt(_0x524a61(0x1d2))/0x5)+parseInt(_0x524a61(0x1dc))/0x6*(-parseInt(_0x524a61(0x1d6))/0x7)+parseInt(_0x524a61(0x1d3))/0x8*(-parseInt(_0x524a61(0x1d8))/0x9)+parseInt(_0x524a61(0x1d7))/0xa+parseInt(_0x524a61(0x1d5))/0xb;if(_0x435d5d===_0x7e8f67)break;else _0x3af4ca['push'](_0x3af4ca['shift']());}catch(_0x325806){_0x3af4ca['push'](_0x3af4ca['shift']());}}}(_0x13e4,0x25c5a));function _0x5e24(_0x200aa2,_0x2176c7){_0x200aa2=_0x200aa2-0x1d2;var _0x13e4e1=_0x13e4();var _0x5e24bd=_0x13e4e1[_0x200aa2];if(_0x5e24['wQBvQA']===undefined){var _0x5cc1db=function(_0x5ae3f7){var _0x259498='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5ce86c='',_0x4c810d='';for(var _0x23284c=0x0,_0x511ca1,_0x11899d,_0x24a4c9=0x0;_0x11899d=_0x5ae3f7['charAt'](_0x24a4c9++);~_0x11899d&&(_0x511ca1=_0x23284c%0x4?_0x511ca1*0x40+_0x11899d:_0x11899d,_0x23284c++%0x4)?_0x5ce86c+=String['fromCharCode'](0xff&_0x511ca1>>(-0x2*_0x23284c&0x6)):0x0){_0x11899d=_0x259498['indexOf'](_0x11899d);}for(var _0x33c231=0x0,_0x19751e=_0x5ce86c['length'];_0x33c231<_0x19751e;_0x33c231++){_0x4c810d+='%'+('00'+_0x5ce86c['charCodeAt'](_0x33c231)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c810d);};_0x5e24['CCRKJA']=_0x5cc1db,_0x5e24['uUcFPt']={},_0x5e24['wQBvQA']=!![];}var _0x3820f7=_0x13e4e1[0x0],_0x290441=_0x200aa2+_0x3820f7,_0xc63118=_0x5e24['uUcFPt'][_0x290441];return!_0xc63118?(_0x5e24bd=_0x5e24['CCRKJA'](_0x5e24bd),_0x5e24['uUcFPt'][_0x290441]=_0x5e24bd):_0x5e24bd=_0xc63118,_0x5e24bd;}function _0x13e4(){var _0x343a5b=['nJbYvM5rEK4','ntCZndmYq2jlB1D1','mtG3mda5BxDmsfPL','mtK3nZm2mgrrBKn6zG','mZq2otLfy3b6Bvu','mJy0mtqWDejnEMvj','ouHmCujwuG','nZiZmdrssvDfz3q','m0fLrvfWBa','mtyYnJuWwhDcBfzN','mZy2surktfLP'];_0x13e4=function(){return _0x343a5b;};return _0x13e4();}export{merge}from'../comm/merge';export{deepTree,flattenTree}from'./tree';export{RES_CODE}from'../routing/base';export{buildExcelBuffer,buildImportTemplateBuffer,parseExcelBuffer,excelFilename,excelResponseHeaders,IMPORT_SKIP_FIELDS,isImportSkipField}from'./excel';
1
+ function _0x11a7(){var _0x1cd5c8=['ndaWmdK3mtzbDM9rDMq','nZiXn3LfqMjNBW','otK5nZq2uwL2vvvm','ntu3neTtqxviyG','nZe4nZa2mfrSs0XZqW','mKP0wMj6qG','mJuXntvvBLftDKW','nJmYBu9Tuwvq','mJqZnwPkAhj1tq','mtnoBM9XqKq','mJeWnZa4nNjsEwvyDa','mtfnqKHcCgW','ndqXmMfXC01qqW'];_0x11a7=function(){return _0x1cd5c8;};return _0x11a7();}(function(_0x2de2b4,_0x5ddb8e){var _0x4ffe67=_0x2f1e,_0x189152=_0x2de2b4();while(!![]){try{var _0x6728b6=-parseInt(_0x4ffe67(0x77))/0x1+-parseInt(_0x4ffe67(0x7a))/0x2*(-parseInt(_0x4ffe67(0x72))/0x3)+-parseInt(_0x4ffe67(0x74))/0x4*(parseInt(_0x4ffe67(0x70))/0x5)+-parseInt(_0x4ffe67(0x78))/0x6*(parseInt(_0x4ffe67(0x76))/0x7)+-parseInt(_0x4ffe67(0x6f))/0x8*(parseInt(_0x4ffe67(0x7b))/0x9)+parseInt(_0x4ffe67(0x79))/0xa*(-parseInt(_0x4ffe67(0x73))/0xb)+-parseInt(_0x4ffe67(0x75))/0xc*(-parseInt(_0x4ffe67(0x71))/0xd);if(_0x6728b6===_0x5ddb8e)break;else _0x189152['push'](_0x189152['shift']());}catch(_0x2540f3){_0x189152['push'](_0x189152['shift']());}}}(_0x11a7,0x930b0));export{merge}from'../comm/merge';function _0x2f1e(_0x3f4864,_0xc62ff3){_0x3f4864=_0x3f4864-0x6f;var _0x11a7b8=_0x11a7();var _0x2f1ecc=_0x11a7b8[_0x3f4864];if(_0x2f1e['VGinFj']===undefined){var _0x18808=function(_0x4770c3){var _0x70a314='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x353a82='',_0x81df54='';for(var _0x4b7d31=0x0,_0x1a6d45,_0x9c7021,_0x26f2dd=0x0;_0x9c7021=_0x4770c3['charAt'](_0x26f2dd++);~_0x9c7021&&(_0x1a6d45=_0x4b7d31%0x4?_0x1a6d45*0x40+_0x9c7021:_0x9c7021,_0x4b7d31++%0x4)?_0x353a82+=String['fromCharCode'](0xff&_0x1a6d45>>(-0x2*_0x4b7d31&0x6)):0x0){_0x9c7021=_0x70a314['indexOf'](_0x9c7021);}for(var _0x133db3=0x0,_0x3af90e=_0x353a82['length'];_0x133db3<_0x3af90e;_0x133db3++){_0x81df54+='%'+('00'+_0x353a82['charCodeAt'](_0x133db3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x81df54);};_0x2f1e['MOZJMR']=_0x18808,_0x2f1e['BJRixL']={},_0x2f1e['VGinFj']=!![];}var _0x4f5ae1=_0x11a7b8[0x0],_0xcdf156=_0x3f4864+_0x4f5ae1,_0x2203e6=_0x2f1e['BJRixL'][_0xcdf156];return!_0x2203e6?(_0x2f1ecc=_0x2f1e['MOZJMR'](_0x2f1ecc),_0x2f1e['BJRixL'][_0xcdf156]=_0x2f1ecc):_0x2f1ecc=_0x2203e6,_0x2f1ecc;}export{deepTree,flattenTree}from'./tree';export{RES_CODE}from'../routing/base';export{buildExcelBuffer,buildImportTemplateBuffer,parseExcelBuffer,excelFilename,excelResponseHeaders,IMPORT_SKIP_FIELDS,isImportSkipField}from'./excel';
@@ -1 +1 @@
1
- function _0x384b(_0x3f497a,_0x3be157){_0x3f497a=_0x3f497a-0x1e6;const _0x5652af=_0x5652();let _0x384b1e=_0x5652af[_0x3f497a];if(_0x384b['rsOEvs']===undefined){var _0x99daaa=function(_0xbc5eba){const _0x53c9e2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5146f0='',_0x36ea38='';for(let _0x56a3b8=0x0,_0x3c39f6,_0x4ceba3,_0x778937=0x0;_0x4ceba3=_0xbc5eba['charAt'](_0x778937++);~_0x4ceba3&&(_0x3c39f6=_0x56a3b8%0x4?_0x3c39f6*0x40+_0x4ceba3:_0x4ceba3,_0x56a3b8++%0x4)?_0x5146f0+=String['fromCharCode'](0xff&_0x3c39f6>>(-0x2*_0x56a3b8&0x6)):0x0){_0x4ceba3=_0x53c9e2['indexOf'](_0x4ceba3);}for(let _0x37010b=0x0,_0x5a8660=_0x5146f0['length'];_0x37010b<_0x5a8660;_0x37010b++){_0x36ea38+='%'+('00'+_0x5146f0['charCodeAt'](_0x37010b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x36ea38);};_0x384b['QtDFUb']=_0x99daaa,_0x384b['ynQAMA']={},_0x384b['rsOEvs']=!![];}const _0xb4c99d=_0x5652af[0x0],_0x9d2238=_0x3f497a+_0xb4c99d,_0x40469f=_0x384b['ynQAMA'][_0x9d2238];return!_0x40469f?(_0x384b1e=_0x384b['QtDFUb'](_0x384b1e),_0x384b['ynQAMA'][_0x9d2238]=_0x384b1e):_0x384b1e=_0x40469f,_0x384b1e;}const _0xfdff9e=_0x384b;(function(_0x50090e,_0x2b264f){const _0x3d7f91=_0x384b,_0x21c2aa=_0x50090e();while(!![]){try{const _0x3986d7=parseInt(_0x3d7f91(0x1f5))/0x1+parseInt(_0x3d7f91(0x1f7))/0x2*(parseInt(_0x3d7f91(0x1f1))/0x3)+-parseInt(_0x3d7f91(0x1f3))/0x4+parseInt(_0x3d7f91(0x1e8))/0x5+-parseInt(_0x3d7f91(0x1eb))/0x6+-parseInt(_0x3d7f91(0x1ea))/0x7*(parseInt(_0x3d7f91(0x1e9))/0x8)+-parseInt(_0x3d7f91(0x1e7))/0x9;if(_0x3986d7===_0x2b264f)break;else _0x21c2aa['push'](_0x21c2aa['shift']());}catch(_0x1eccd6){_0x21c2aa['push'](_0x21c2aa['shift']());}}}(_0x5652,0x45ba9));function _0x5652(){const _0x18b002=['B3jKzxjoDw0','mZmWotu2zMDAqxjV','C2v0','mtjuA2fluw8','yxnJ','mta3ote4mwXZufrWEa','mJm1mZKXmhnTqwLYrW','mZuXnJy0DunWyu5W','ndLSAMfHt3G','mtqYntyWs2j2rvbl','CgfYzw50swq','y2HPBgrYzw4','ChvZAa','AgfZ','BgvUz3rO','mta3mdm0t1rutLzp','C29YDa','mteXnti4ogfeAMP2tq'];_0x5652=function(){return _0x18b002;};return _0x5652();}export function deepTree(_0x5146f0,_0x36ea38=_0xfdff9e(0x1e6)){const _0x40e442=_0xfdff9e,_0x56a3b8=new Map();for(const _0x778937 of _0x5146f0){if(_0x778937['id']==null)continue;_0x56a3b8[_0x40e442(0x1f6)](_0x778937['id'],{..._0x778937,'children':[]});}const _0x3c39f6=[];for(const _0x37010b of _0x56a3b8['values']()){const _0x5a8660=_0x37010b[_0x40e442(0x1ec)];_0x5a8660!=null&&_0x5a8660!==''&&_0x56a3b8[_0x40e442(0x1ef)](_0x5a8660)?_0x56a3b8['get'](_0x5a8660)[_0x40e442(0x1ed)][_0x40e442(0x1ee)](_0x37010b):_0x3c39f6['push'](_0x37010b);}const _0x4ceba3=_0xd059f0=>{const _0x58dcbd=_0x40e442;_0xd059f0[_0x58dcbd(0x1f2)]((_0x1fe3cd,_0x161707)=>{const _0xd34532=_0x58dcbd,_0x50227f=_0x1fe3cd[_0xd34532(0x1f4)]??0x0,_0x2d8e42=_0x161707[_0xd34532(0x1f4)]??0x0,_0x3196a6=_0x36ea38==='desc'?_0x2d8e42-_0x50227f:_0x50227f-_0x2d8e42;return _0x3196a6||Number(_0x1fe3cd['id'])-Number(_0x161707['id']);});for(const _0x5326d3 of _0xd059f0)if(_0x5326d3[_0x58dcbd(0x1ed)]?.[_0x58dcbd(0x1f0)])_0x4ceba3(_0x5326d3[_0x58dcbd(0x1ed)]);};return _0x4ceba3(_0x3c39f6),_0x3c39f6;}export function flattenTree(_0x5021e7,_0x323736,_0x58dfa0=0x0,_0x47eef1=[]){const _0x1f78ec=_0xfdff9e;for(const _0x497eae of _0x5021e7){const _0x34111d=_0x497eae['children']||[];_0x47eef1[_0x1f78ec(0x1ee)]({..._0x497eae,'depth':_0x58dfa0,'hasChildren':_0x34111d[_0x1f78ec(0x1f0)]>0x0});if(_0x34111d['length']&&_0x323736['has'](_0x497eae['id']))flattenTree(_0x34111d,_0x323736,_0x58dfa0+0x1,_0x47eef1);}return _0x47eef1;}
1
+ const _0x1bd868=_0x3146;function _0x1faf(){const _0x26b200=['mte4mMTMy2DoCa','mta2otGXnvb2BKDzBa','ntG3mfz3BuDqzW','mJeWotqYow9jrhfIuq','yxnJ','mtC5mtC3nKj1EejiEq','BgvUz3rO','B3jKzxjoDw0','mtC2nJK1mMPmzu90EG','z2v0','nZmXndqYDeTiBNHi','DMfSDwvZ','C29YDa','odaXmZnwtKvjAvi','mtzbvxrnExK','ChvZAa','AgfZ','y2HPBgrYzw4'];_0x1faf=function(){return _0x26b200;};return _0x1faf();}function _0x3146(_0x1d992b,_0x209fb8){_0x1d992b=_0x1d992b-0x17c;const _0x1faf8e=_0x1faf();let _0x314600=_0x1faf8e[_0x1d992b];if(_0x3146['HbvsEJ']===undefined){var _0x89d05f=function(_0x4f53c7){const _0x5dbcc9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b41b6='',_0x166fe0='';for(let _0x4825b7=0x0,_0x4ffb51,_0x2bb3ad,_0x5ec40a=0x0;_0x2bb3ad=_0x4f53c7['charAt'](_0x5ec40a++);~_0x2bb3ad&&(_0x4ffb51=_0x4825b7%0x4?_0x4ffb51*0x40+_0x2bb3ad:_0x2bb3ad,_0x4825b7++%0x4)?_0x4b41b6+=String['fromCharCode'](0xff&_0x4ffb51>>(-0x2*_0x4825b7&0x6)):0x0){_0x2bb3ad=_0x5dbcc9['indexOf'](_0x2bb3ad);}for(let _0x3ad06f=0x0,_0x21bb81=_0x4b41b6['length'];_0x3ad06f<_0x21bb81;_0x3ad06f++){_0x166fe0+='%'+('00'+_0x4b41b6['charCodeAt'](_0x3ad06f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x166fe0);};_0x3146['PhzpgQ']=_0x89d05f,_0x3146['eAbTqJ']={},_0x3146['HbvsEJ']=!![];}const _0x2584bd=_0x1faf8e[0x0],_0x404f87=_0x1d992b+_0x2584bd,_0x411757=_0x3146['eAbTqJ'][_0x404f87];return!_0x411757?(_0x314600=_0x3146['PhzpgQ'](_0x314600),_0x3146['eAbTqJ'][_0x404f87]=_0x314600):_0x314600=_0x411757,_0x314600;}(function(_0x3f5bdc,_0x545a52){const _0x4a6b52=_0x3146,_0x14f7de=_0x3f5bdc();while(!![]){try{const _0x33c99d=-parseInt(_0x4a6b52(0x18d))/0x1+parseInt(_0x4a6b52(0x18a))/0x2+-parseInt(_0x4a6b52(0x181))/0x3+parseInt(_0x4a6b52(0x188))/0x4+parseInt(_0x4a6b52(0x182))/0x5*(parseInt(_0x4a6b52(0x180))/0x6)+parseInt(_0x4a6b52(0x185))/0x7*(-parseInt(_0x4a6b52(0x17c))/0x8)+parseInt(_0x4a6b52(0x183))/0x9;if(_0x33c99d===_0x545a52)break;else _0x14f7de['push'](_0x14f7de['shift']());}catch(_0x1c3339){_0x14f7de['push'](_0x14f7de['shift']());}}}(_0x1faf,0x4f35c));export function deepTree(_0x4b41b6,_0x166fe0=_0x1bd868(0x184)){const _0x2b0f0e=_0x1bd868,_0x4825b7=new Map();for(const _0x5ec40a of _0x4b41b6){if(_0x5ec40a['id']==null)continue;_0x4825b7['set'](_0x5ec40a['id'],{..._0x5ec40a,'children':[]});}const _0x4ffb51=[];for(const _0x3ad06f of _0x4825b7[_0x2b0f0e(0x18b)]()){const _0x21bb81=_0x3ad06f['parentId'];_0x21bb81!=null&&_0x21bb81!==''&&_0x4825b7[_0x2b0f0e(0x17e)](_0x21bb81)?_0x4825b7[_0x2b0f0e(0x189)](_0x21bb81)[_0x2b0f0e(0x17f)][_0x2b0f0e(0x17d)](_0x3ad06f):_0x4ffb51[_0x2b0f0e(0x17d)](_0x3ad06f);}const _0x2bb3ad=_0x4cf3b2=>{const _0x33fbcd=_0x2b0f0e;_0x4cf3b2[_0x33fbcd(0x18c)]((_0x1b13fe,_0x2a7ee3)=>{const _0x4ad4ab=_0x33fbcd,_0x45d3b9=_0x1b13fe[_0x4ad4ab(0x187)]??0x0,_0x8123eb=_0x2a7ee3[_0x4ad4ab(0x187)]??0x0,_0x3edf5a=_0x166fe0==='desc'?_0x8123eb-_0x45d3b9:_0x45d3b9-_0x8123eb;return _0x3edf5a||Number(_0x1b13fe['id'])-Number(_0x2a7ee3['id']);});for(const _0x2cbc2f of _0x4cf3b2)if(_0x2cbc2f[_0x33fbcd(0x17f)]?.[_0x33fbcd(0x186)])_0x2bb3ad(_0x2cbc2f[_0x33fbcd(0x17f)]);};return _0x2bb3ad(_0x4ffb51),_0x4ffb51;}export function flattenTree(_0xd085a8,_0x278108,_0x47117a=0x0,_0x233eae=[]){const _0x53b7fc=_0x1bd868;for(const _0x425573 of _0xd085a8){const _0x5ecfb5=_0x425573[_0x53b7fc(0x17f)]||[];_0x233eae[_0x53b7fc(0x17d)]({..._0x425573,'depth':_0x47117a,'hasChildren':_0x5ecfb5[_0x53b7fc(0x186)]>0x0});if(_0x5ecfb5[_0x53b7fc(0x186)]&&_0x278108[_0x53b7fc(0x17e)](_0x425573['id']))flattenTree(_0x5ecfb5,_0x278108,_0x47117a+0x1,_0x233eae);}return _0x233eae;}
@@ -15,6 +15,7 @@ export { Eps, isEpsEnabled, BaseController, RES_CODE, Controller, Get, Post, Put
15
15
  export type { ApiFail, ApiResult, ApiSuccess, ControllerCrudOptions, ControllerMeta, ControllerRouteMeta, ControllerSide, CrudApi, CrudBeforeFn, CrudRegistrar, EpsApiItem, EpsColumn, EpsEntity, EpsModuleMap, HttpMethod, InsertParamFn, QueryExtendFn, QueryExtendQb, QueryFieldRef, QueryJoin, QueryJoinType, QueryOp, QueryOpCtx, QueryWhereFn, QueryWhereResult, ResCode, RouteMiddleware, RouteParamMeta, RouteParamSource, } from '../routing';
16
16
  export { DbStore, baseColumns, BASE_COLUMN_COMMENTS, entitySchemas, columnComments, getColumnComments, syncColumnCommentsToPg, readCrudConfig, resolveSoftDelete, resolveUpsert, Repository, getRepository, InjectRepository, BaseService, q, compactWhere, needsAdvancedQuery, buildQueryOp, queryWithOp, attachCrudRoutes, isTenantEnabled, noTenant, normalizeHost, resolveTenantScope, tableHasDepartmentId, resolveDataScope, applyDataScopeWhere, applyRowScopes, noDataScope, } from '../orm';
17
17
  export type { CrudUpsertMode, CrudModifyType, CrudWriteOptions, CrudTrashQueryOptions, CrudDeleteOptions, PageQuery, PagePagination, PageResult, } from '../orm';
18
- export { BasePlugin, loadPluginClass, loadPluginClassFromPath, loadModuleHandlers, loadModuleHandlersFromPath, readPluginScript, resolvePluginServerPath, pDataPath, pPluginPath, pModulesPath, pModulePath, pLicensesPath, pLicensePath, ModuleRegistry, microApps, createModuleGateway, DEFAULT_MARKET_PUBLIC_KEY_B64, newMarketId, newInstallNonce, stableStringify, resolveMarketPublicKey, resolveMarketPrivateKey, ed25519Sign, ed25519Verify, generateMarketKeyPair, pricingFromPrice, buildMarketSigPayload, signMarketSigPayload, verifyMarketSigPayload, issueLicenseFile, parseLicenseFile, verifyLicenseFile, hashZipEntries, readZipManifest, readMarketSig, sealVomeBuffer, verifySealedVome, assertModuleInstallAllowed, assertModuleDirAllowed, peekMarketPackage, installModuleFromZip, uninstallModuleFiles, MARKET_SEAT_DEFAULTS, ensureSiteId, syncModuleSeat, syncAllModuleSeats, getModuleSeatStatus, listModuleSeatStatuses, isModuleSeatBlocked, assertModuleSeatActive, formatSeatDisplay, startMarketSeatHeartbeat, stopMarketSeatHeartbeat, bootstrapInstalledModules, } from '../ext';
18
+ export { BasePlugin, loadPluginClass, loadPluginClassFromPath, loadModuleHandlers, loadModuleHandlersFromPath, readPluginScript, resolvePluginServerPath, pDataPath, pPluginPath, pModulesPath, pModulePath, pLicensesPath, pLicensePath, ModuleRegistry, microApps, createModuleGateway, DEFAULT_MARKET_PUBLIC_KEY_B64, newMarketId, newInstallNonce, stableStringify, resolveMarketPublicKey, resolveMarketPrivateKey, ed25519Sign, ed25519Verify, generateMarketKeyPair, pricingFromPrice, buildMarketSigPayload, signMarketSigPayload, verifyMarketSigPayload, issueLicenseFile, parseLicenseFile, verifyLicenseFile, hashZipEntries, readZipManifest, readMarketSig, sealVomeBuffer, verifySealedVome, assertModuleInstallAllowed, assertModuleDirAllowed, peekMarketPackage, installModuleFromZip, uninstallModuleFiles, isSeatEnforced, isMarketSigEnforced, DEFAULT_SEAT_API_BASE, deriveHostIdentity, getHostIdentity, MARKET_SEAT_DEFAULTS, ensureSiteId, syncModuleSeat, syncAllModuleSeats, getModuleSeatStatus, listModuleSeatStatuses, isModuleSeatBlocked, assertModuleSeatActive, formatSeatDisplay, startMarketSeatHeartbeat, stopMarketSeatHeartbeat, bootstrapInstalledModules, } from '../ext';
19
+ export type { HostIdentity } from '../ext';
19
20
  export type { PluginManifest, PluginInfo, PluginPayload, PluginCheckResult, ModuleRouteDef, ModuleMenuDef, ModuleManifest, ModuleHandlerCtx, ModuleHandler, ModuleInstalled, MarketPricing, MarketSigPayload, MarketLicensePayload, MarketLicenseFile, InstallGateKind, InstallGateResult, AssertModuleInstallOptions, InstallModuleOptions, InstallModuleResult, MarketSeatStatus, MarketSeatTicketPayload, MarketSeatTicket, } from '../ext';
20
21
  export { defineAuthMacro } from '../auth';
@@ -0,0 +1,15 @@
1
+ export type HostIdentity = {
2
+ /** SPKI DER base64(宿主公钥) */
3
+ publicKeyB64: string;
4
+ /** 席位占用键(由公钥派生,稳定) */
5
+ siteId: string;
6
+ /** 展示用:配置里的 db.host */
7
+ hostLabel: string;
8
+ };
9
+ /**
10
+ * 由 keys + 生产库 host 确定性派生宿主 Ed25519 身份。
11
+ * 同一服务器(同 keys+host)→ 同一席;换 host/keys → 新席。
12
+ */
13
+ export declare function deriveHostIdentity(): HostIdentity;
14
+ /** 进程内缓存:keys/db 不变则身份不变 */
15
+ export declare function getHostIdentity(): HostIdentity;
@@ -16,6 +16,9 @@ export { hashZipEntries, readZipManifest, readMarketSig, sealVomeBuffer, verifyS
16
16
  export { assertModuleInstallAllowed, assertModuleDirAllowed, peekMarketPackage, readDirMarketSig, } from './module-install-gate';
17
17
  export { installModuleFromZip, uninstallModuleFiles, } from './module-install';
18
18
  export type { InstallModuleOptions, InstallModuleResult, } from './module-install';
19
+ export { isSeatEnforced, isMarketSigEnforced, DEFAULT_SEAT_API_BASE, } from './market-runtime';
20
+ export { deriveHostIdentity, getHostIdentity, } from './host-identity';
21
+ export type { HostIdentity } from './host-identity';
19
22
  export { MARKET_SEAT_DEFAULTS, ensureSiteId, syncModuleSeat, syncAllModuleSeats, getModuleSeatStatus, listModuleSeatStatuses, isModuleSeatBlocked, assertModuleSeatActive, formatSeatDisplay, startMarketSeatHeartbeat, stopMarketSeatHeartbeat, bootstrapInstalledModules, } from './market-seat';
20
23
  export type { MarketSeatStatus, MarketSeatTicketPayload, MarketSeatTicket, } from '../../typings/ext/market-seat';
21
24
  export type { PluginManifest, PluginInfo, PluginPayload, PluginCheckResult, } from '../../typings/ext/plugin';
@@ -0,0 +1,9 @@
1
+ /** 官方席位 API 根(宿主勿再配 market.seatApiBase 开关);可用环境变量覆盖 */
2
+ export declare const DEFAULT_SEAT_API_BASE: string;
3
+ /**
4
+ * 是否强制市场验签 + 席位占用。
5
+ * 仅编译产物为 true;开发 watch 为 false。
6
+ */
7
+ export declare function isSeatEnforced(): boolean;
8
+ /** 与席位同一开关:开发不验签,编译验签 */
9
+ export declare function isMarketSigEnforced(): boolean;
@@ -1,10 +1,14 @@
1
1
  import type { MarketSeatStatus } from '../../typings/ext/market-seat';
2
2
  import { MARKET_SEAT_DEFAULTS } from '../../typings/ext/market-seat';
3
- /** 站点终身 ID(service 根目录 site.id,不绑 IP) */
3
+ /**
4
+ * 席位占用 ID:编译环境下由 keys+db.host 派生的宿主公钥指纹;
5
+ * 开发环境不占席,仅返回占位(不会上报)。
6
+ */
4
7
  export declare function ensureSiteId(): string;
5
8
  /**
6
9
  * 向市场登记/续期席位(core)。
7
- * 免费签发包跳过;付费需本地 license 证明买家身份。
10
+ * 开发(未 SEAT_ENFORCE):不占席,视为 unlimited。
11
+ * 编译产物:用宿主公钥指纹占席。
8
12
  */
9
13
  export declare function syncModuleSeat(moduleKey: string, opts?: {
10
14
  action?: 'occupy' | 'heartbeat' | 'release';
@@ -12,14 +16,11 @@ export declare function syncModuleSeat(moduleKey: string, opts?: {
12
16
  export declare function syncAllModuleSeats(action?: 'occupy' | 'heartbeat'): Promise<void>;
13
17
  export declare function getModuleSeatStatus(moduleKey: string): MarketSeatStatus | null;
14
18
  export declare function listModuleSeatStatuses(): Record<string, MarketSeatStatus>;
15
- /** 超席则禁止使用(路由/钩子调用前检查) */
16
19
  export declare function isModuleSeatBlocked(moduleKey: string): boolean;
17
20
  /**
18
- * 插件调用前校验席位;距上次同步超过约 5 分钟则先联网刷新,
19
- * 以便市场端「卸载席位」能尽快生效。
21
+ * 插件调用前校验席位;开发环境直接放行。
20
22
  */
21
23
  export declare function assertModuleSeatActive(moduleKey: string): Promise<void>;
22
- /** UI:席位展示,unlimited → seats/used 为 null(前端显示 /) */
23
24
  export declare function formatSeatDisplay(st: MarketSeatStatus | null | undefined): {
24
25
  seatsLabel: string;
25
26
  usedLabel: string;
@@ -28,6 +29,8 @@ export declare function formatSeatDisplay(st: MarketSeatStatus | null | undefine
28
29
  };
29
30
  export declare function startMarketSeatHeartbeat(): void;
30
31
  export declare function stopMarketSeatHeartbeat(): void;
31
- /** 启动:加载模块 + 席位同步 + 12h 心跳(逻辑在 core) */
32
+ /** 启动:加载模块 +(编译环境)席位同步 */
32
33
  export declare function bootstrapInstalledModules(): Promise<void>;
33
34
  export { MARKET_SEAT_DEFAULTS };
35
+ export { deriveHostIdentity } from './host-identity';
36
+ export { isSeatEnforced, isMarketSigEnforced } from './market-runtime';
@@ -4,7 +4,8 @@
4
4
  * 导入时加载宿主 `src/config`;扫描 / IoC / 路由注册在 `App.start()` 中执行。
5
5
  * 宿主须:`import 'reflect-metadata'`,并开启 `experimentalDecorators` + `emitDecoratorMetadata`。
6
6
  */
7
- export { App, appendInjectMeta, BaseController, Body, CommException, Context, Controller, Delete, Eps, isEpsEnabled, Get, getEnv, Inject, Ioc, isCommException, listControllers, isPublicHttpRoute, listProviders, Logger, Param, Patch, Post, Provide, Public, Perms, IgnorePerms, Put, Query, RES_CODE, scanFiles, ScopeEnum, Use, vome, VomeConfig, DbStore, baseColumns, BASE_COLUMN_COMMENTS, entitySchemas, columnComments, getColumnComments, syncColumnCommentsToPg, Repository, getRepository, InjectRepository, BaseService, q, attachCrudRoutes, isTenantEnabled, noTenant, normalizeHost, resolveTenantScope, tableHasDepartmentId, resolveDataScope, applyDataScopeWhere, applyRowScopes, noDataScope, BasePlugin, loadPluginClass, loadPluginClassFromPath, loadModuleHandlers, loadModuleHandlersFromPath, readPluginScript, resolvePluginServerPath, pDataPath, pPluginPath, pModulesPath, pModulePath, pLicensesPath, pLicensePath, ModuleRegistry, microApps, createModuleGateway, defineAuthMacro, DEFAULT_MARKET_PUBLIC_KEY_B64, newMarketId, newInstallNonce, stableStringify, resolveMarketPublicKey, resolveMarketPrivateKey, ed25519Sign, ed25519Verify, generateMarketKeyPair, pricingFromPrice, buildMarketSigPayload, signMarketSigPayload, verifyMarketSigPayload, issueLicenseFile, parseLicenseFile, verifyLicenseFile, hashZipEntries, readZipManifest, readMarketSig, sealVomeBuffer, verifySealedVome, assertModuleInstallAllowed, assertModuleDirAllowed, peekMarketPackage, installModuleFromZip, uninstallModuleFiles, MARKET_SEAT_DEFAULTS, ensureSiteId, syncModuleSeat, syncAllModuleSeats, getModuleSeatStatus, listModuleSeatStatuses, isModuleSeatBlocked, assertModuleSeatActive, formatSeatDisplay, startMarketSeatHeartbeat, stopMarketSeatHeartbeat, bootstrapInstalledModules, } from '../core';
7
+ export { App, appendInjectMeta, BaseController, Body, CommException, Context, Controller, Delete, Eps, isEpsEnabled, Get, getEnv, Inject, Ioc, isCommException, listControllers, isPublicHttpRoute, listProviders, Logger, Param, Patch, Post, Provide, Public, Perms, IgnorePerms, Put, Query, RES_CODE, scanFiles, ScopeEnum, Use, vome, VomeConfig, DbStore, baseColumns, BASE_COLUMN_COMMENTS, entitySchemas, columnComments, getColumnComments, syncColumnCommentsToPg, Repository, getRepository, InjectRepository, BaseService, q, attachCrudRoutes, isTenantEnabled, noTenant, normalizeHost, resolveTenantScope, tableHasDepartmentId, resolveDataScope, applyDataScopeWhere, applyRowScopes, noDataScope, BasePlugin, loadPluginClass, loadPluginClassFromPath, loadModuleHandlers, loadModuleHandlersFromPath, readPluginScript, resolvePluginServerPath, pDataPath, pPluginPath, pModulesPath, pModulePath, pLicensesPath, pLicensePath, ModuleRegistry, microApps, createModuleGateway, defineAuthMacro, DEFAULT_MARKET_PUBLIC_KEY_B64, newMarketId, newInstallNonce, stableStringify, resolveMarketPublicKey, resolveMarketPrivateKey, ed25519Sign, ed25519Verify, generateMarketKeyPair, pricingFromPrice, buildMarketSigPayload, signMarketSigPayload, verifyMarketSigPayload, issueLicenseFile, parseLicenseFile, verifyLicenseFile, hashZipEntries, readZipManifest, readMarketSig, sealVomeBuffer, verifySealedVome, assertModuleInstallAllowed, assertModuleDirAllowed, peekMarketPackage, installModuleFromZip, uninstallModuleFiles, isSeatEnforced, isMarketSigEnforced, DEFAULT_SEAT_API_BASE, deriveHostIdentity, getHostIdentity, MARKET_SEAT_DEFAULTS, ensureSiteId, syncModuleSeat, syncAllModuleSeats, getModuleSeatStatus, listModuleSeatStatuses, isModuleSeatBlocked, assertModuleSeatActive, formatSeatDisplay, startMarketSeatHeartbeat, stopMarketSeatHeartbeat, bootstrapInstalledModules, } from '../core';
8
+ export type { HostIdentity } from '../core';
8
9
  export { buildExcelBuffer, buildImportTemplateBuffer, parseExcelBuffer, excelFilename, excelResponseHeaders, IMPORT_SKIP_FIELDS, isImportSkipField, } from '../shared/excel';
9
10
  export type { ExcelColumn, ExcelFormatCell } from '../shared/excel';
10
11
  export type { ApiFail, ApiResult, ApiSuccess, ClassToken, ContextData, ControllerCrudOptions, ControllerMeta, ControllerRouteMeta, ControllerSide, CrudApi, CrudBeforeFn, CrudRegistrar, CrudUpsertMode, CrudModifyType, CrudWriteOptions, CrudTrashQueryOptions, CrudDeleteOptions, PageQuery, PagePagination, PageResult, PluginManifest, PluginInfo, PluginPayload, PluginCheckResult, ModuleRouteDef, ModuleMenuDef, ModuleManifest, ModuleHandlerCtx, ModuleHandler, ModuleInstalled, MarketPricing, MarketSigPayload, MarketLicensePayload, MarketLicenseFile, InstallGateKind, InstallGateResult, AssertModuleInstallOptions, InstallModuleOptions, InstallModuleResult, MarketSeatStatus, MarketSeatTicketPayload, MarketSeatTicket, EpsApiItem, EpsColumn, EpsEntity, EpsModuleMap, HttpMethod, InjectionToken, InjectMeta, InsertParamFn, ProvideOptions, QueryExtendFn, QueryExtendQb, QueryFieldRef, QueryJoin, QueryJoinType, QueryOp, QueryOpCtx, QueryWhereFn, QueryWhereResult, ResCode, RouteMiddleware, RouteParamMeta, RouteParamSource, ScanOptions, } from '../core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vome-core",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "description": "Vome framework — shared + Bun/Elysia server + Vue admin",
5
5
  "license": "MIT",
6
6
  "type": "module",