@univer-cli/resource-library-command 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- (function(_0x22ff33,_0x3e95e7){const _0x46b98f=_0x6616,_0x575bce=_0x22ff33();while(!![]){try{const _0x12044e=-parseInt(_0x46b98f(0x154))/0x1+-parseInt(_0x46b98f(0x159))/0x2+-parseInt(_0x46b98f(0x1aa))/0x3+parseInt(_0x46b98f(0x1b1))/0x4*(-parseInt(_0x46b98f(0x182))/0x5)+-parseInt(_0x46b98f(0x153))/0x6+parseInt(_0x46b98f(0x16c))/0x7+parseInt(_0x46b98f(0x161))/0x8*(parseInt(_0x46b98f(0x1a2))/0x9);if(_0x12044e===_0x3e95e7)break;else _0x575bce['push'](_0x575bce['shift']());}catch(_0x48edbd){_0x575bce['push'](_0x575bce['shift']());}}}(_0xd597,0x31bdb));import{isResourceLibraryError as _0x439723}from'@univer-cli/resource-library';import{Command as _0x4decb1,InvalidArgumentError as _0x5f03db,Option as _0x5e10b3}from'commander';var i=0x1e;function _0x6616(_0x515663,_0x4c1f30){_0x515663=_0x515663-0x151;const _0xd597d7=_0xd597();let _0x661613=_0xd597d7[_0x515663];return _0x661613;}function a(_0x344fe3){const _0x10f07d=_0x6616;let _0x1ad7b6=new _0x4decb1(_0x10f07d(0x199))['description'](_0x10f07d(0x19a))['action'](()=>_0x1ad7b6[_0x10f07d(0x172)]());_0x1ad7b6[_0x10f07d(0x192)](_0x10f07d(0x194))[_0x10f07d(0x1ac)](_0x10f07d(0x17b))[_0x10f07d(0x18f)](_0x10f07d(0x198),'write\x20structured\x20JSON')[_0x10f07d(0x162)](async _0x13bca8=>{const _0x3142be=_0x10f07d;let _0x483588=await c(_0x1ad7b6,async()=>_0x344fe3[_0x3142be(0x179)]()[_0x3142be(0x185)]());l(_0x1ad7b6,_0x13bca8,{'registries':_0x483588},d(_0x483588));}),_0x1ad7b6[_0x10f07d(0x192)](_0x10f07d(0x175))[_0x10f07d(0x1ac)](_0x10f07d(0x19e))[_0x10f07d(0x1a4)](_0x10f07d(0x167),_0x10f07d(0x181))[_0x10f07d(0x151)](new _0x5e10b3(_0x10f07d(0x160),_0x10f07d(0x15d))[_0x10f07d(0x18d)](o)[_0x10f07d(0x169)]([]))['addOption'](new _0x5e10b3(_0x10f07d(0x197),_0x10f07d(0x187))[_0x10f07d(0x18d)](s)[_0x10f07d(0x169)](i))[_0x10f07d(0x18f)](_0x10f07d(0x198),_0x10f07d(0x18a))[_0x10f07d(0x162)](async(_0xa9026,_0x3ad00d)=>{const _0x5bc1c4=_0x10f07d;let _0x25fd06=await c(_0x1ad7b6,async()=>_0x344fe3[_0x5bc1c4(0x179)]()[_0x5bc1c4(0x175)]({'queries':_0xa9026,'registries':_0x3ad00d[_0x5bc1c4(0x173)],'limit':_0x3ad00d[_0x5bc1c4(0x190)]}));l(_0x1ad7b6,_0x3ad00d,{'query':{'queries':_0xa9026,'registries':_0x3ad00d[_0x5bc1c4(0x173)]},'resources':_0x25fd06[_0x5bc1c4(0x199)],'total':_0x25fd06[_0x5bc1c4(0x1a9)],'limit':_0x3ad00d[_0x5bc1c4(0x190)]},f(_0x25fd06[_0x5bc1c4(0x199)],_0x25fd06[_0x5bc1c4(0x1a9)]));}),_0x1ad7b6[_0x10f07d(0x192)](_0x10f07d(0x16b))[_0x10f07d(0x1ac)]('Read\x20one\x20SVG\x20or\x20export\x20resources\x20to\x20a\x20directory')[_0x10f07d(0x1a4)](_0x10f07d(0x18b),_0x10f07d(0x19f))[_0x10f07d(0x18f)](_0x10f07d(0x163),_0x10f07d(0x1ad))[_0x10f07d(0x18f)](_0x10f07d(0x198),_0x10f07d(0x18a))[_0x10f07d(0x162)](async(_0x43ca4d,_0x408cd8)=>{const _0x5aaa2b=_0x10f07d;if(_0x408cd8[_0x5aaa2b(0x19d)]===void 0x0){_0x43ca4d[_0x5aaa2b(0x1ae)]!==0x1&&_0x1ad7b6['error'](_0x5aaa2b(0x183),{'code':_0x5aaa2b(0x16e),'exitCode':0x1});let _0x26797f=await c(_0x1ad7b6,async()=>_0x344fe3[_0x5aaa2b(0x179)]()[_0x5aaa2b(0x189)]({'handle':_0x43ca4d[0x0]}));_0x408cd8['json']===!0x0?u(_0x1ad7b6,_0x26797f):_0x1ad7b6[_0x5aaa2b(0x152)]()[_0x5aaa2b(0x17e)]?.(_0x26797f['svg']);return;}let _0x1418fe=await c(_0x1ad7b6,async()=>_0x344fe3[_0x5aaa2b(0x179)]()[_0x5aaa2b(0x16b)]({'handles':_0x43ca4d,'destination':_0x408cd8[_0x5aaa2b(0x19d)]}));if(_0x408cd8['json']===!0x0)u(_0x1ad7b6,_0x1418fe);else{let _0x342631=_0x1ad7b6[_0x5aaa2b(0x152)]();for(let _0xe0da1b of _0x1418fe[_0x5aaa2b(0x16a)])_0x342631[_0x5aaa2b(0x17e)]?.(_0xe0da1b[_0x5aaa2b(0x155)]+'\x0a');for(let _0x13aac8 of _0x1418fe['failed'])_0x342631[_0x5aaa2b(0x17f)]?.(_0x13aac8['handle']+':\x20'+_0x13aac8['code']+':\x20'+_0x13aac8[_0x5aaa2b(0x1a3)]+'\x0a');}_0x1418fe[_0x5aaa2b(0x15c)][_0x5aaa2b(0x1ae)]>0x0&&_0x1ad7b6[_0x5aaa2b(0x1a8)](_0x1418fe[_0x5aaa2b(0x15c)][_0x5aaa2b(0x1ae)]+_0x5aaa2b(0x196)+(_0x1418fe[_0x5aaa2b(0x15c)]['length']===0x1?'':'s')+_0x5aaa2b(0x193),{'code':'resources.export.failed','exitCode':0x1});});let _0x544142=_0x1ad7b6[_0x10f07d(0x192)](_0x10f07d(0x188))['description'](_0x10f07d(0x191));return _0x544142[_0x10f07d(0x162)](()=>_0x544142[_0x10f07d(0x172)]()),_0x544142[_0x10f07d(0x192)](_0x10f07d(0x155))[_0x10f07d(0x1ac)](_0x10f07d(0x19b))[_0x10f07d(0x18f)](_0x10f07d(0x198),_0x10f07d(0x18a))['action'](_0x45df35=>{let _0x50b3e2=_0x344fe3['openLibrary']()['cacheLocation'];l(_0x1ad7b6,_0x45df35,{'path':_0x50b3e2},_0x50b3e2);}),_0x544142[_0x10f07d(0x192)]('clear')[_0x10f07d(0x1ac)](_0x10f07d(0x1a0))[_0x10f07d(0x18f)](_0x10f07d(0x198),_0x10f07d(0x18a))[_0x10f07d(0x162)](async _0x59286c=>{const _0x4e8270=_0x10f07d;let _0x3a3e87=await c(_0x1ad7b6,async()=>_0x344fe3[_0x4e8270(0x179)]()['clearCache']());l(_0x1ad7b6,_0x59286c,{'cleared':_0x3a3e87},_0x4e8270(0x186)+_0x3a3e87['resourceCount']+'\x20resources\x20('+p(_0x3a3e87[_0x4e8270(0x156)])+_0x4e8270(0x15b)+_0x3a3e87[_0x4e8270(0x155)]+'.');}),_0x1ad7b6;}function _0xd597(){const _0x11981b=['name','outputHelp','registry','\x20KB','find','editable','padStart','json','openLibrary','toFixed','List\x20available\x20resource\x20registries','GROUPS','REGISTRY','writeOut','writeErr','join','one\x20or\x20more\x20queries,\x20searched\x20independently','160YqHmLs','Exporting\x20more\x20than\x20one\x20resource\x20requires\x20--out\x20<directory>.','fixed','listRegistries','Cleared\x20','maximum\x20number\x20of\x20results','cache','read','write\x20structured\x20JSON','<handles...>','height','argParser','GROUP','option','limit','Inspect\x20or\x20clear\x20the\x20resource\x20cache','command','\x20could\x20not\x20be\x20exported.','registries','\x20more;\x20raise\x20--limit\x20or\x20narrow\x20the\x20query.','\x20resource','--limit\x20<number>','--json','resources','Find\x20and\x20export\x20SVG\x20resources\x20from\x20a\x20multi-registry\x20catalog','Show\x20the\x20resource\x20cache\x20path','resources.failed','out','Find\x20resources\x20by\x20name,\x20description,\x20group,\x20tag,\x20or\x20keyword','canonical\x20<registryId>/<resourceId>\x20handles','Clear\x20all\x20cached\x20resources','label','308709kQACjd','message','argument','map','No\x20resources\x20matched;\x20try\x20a\x20shorter\x20substring,\x20a\x20synonym,\x20or\x20another\x20registry.','\x20MB','error','total','250965LcZrjG','TAGS','description','write\x20flat\x20<registry>--<resource>.svg\x20files','length','colorEditable','COLOR','35396xrpvfL','addOption','configureOutput','408396ZWSurn','384378YBrgfh','path','byteCount','code','Expected\x20a\x20positive\x20integer;\x20received\x20\x22','103120KFLeJZ','intrinsicSize',')\x20from\x20','failed','restrict\x20results\x20to\x20a\x20registry;\x20repeatable','groupCount','push','--registry\x20<id>','208gApUWX','action','--out\x20<directory>','resourceCount','HANDLE','padEnd','<queries...>','\x20\x20SIZE','default','exported','export','1279180pWYxiC','colorEditableCount','resources.invalid-input','RESOURCES','stringify'];_0xd597=function(){return _0x11981b;};return _0xd597();}function o(_0x3ecaa0,_0x526a05){return[..._0x526a05,_0x3ecaa0];}function s(_0x3afc09){const _0x3e1264=_0x6616;let _0x282fa9=Number(_0x3afc09);if(!Number['isInteger'](_0x282fa9)||_0x282fa9<0x1)throw new _0x5f03db(_0x3e1264(0x158)+_0x3afc09+'\x22.');return _0x282fa9;}async function c(_0x4c211f,_0xa5fb55){const _0x39aeb3=_0x6616;try{return await _0xa5fb55();}catch(_0xab84bf){throw _0x439723(_0xab84bf)&&_0x4c211f[_0x39aeb3(0x1a8)](_0xab84bf[_0x39aeb3(0x157)]+':\x20'+_0xab84bf[_0x39aeb3(0x1a3)],{'code':_0x39aeb3(0x19c),'exitCode':0x1}),_0xab84bf;}}function l(_0x3add66,_0x3835f2,_0x345035,_0x2010ba){const _0x4b40ad=_0x6616;_0x3835f2[_0x4b40ad(0x178)]===!0x0?u(_0x3add66,_0x345035):_0x3add66[_0x4b40ad(0x152)]()[_0x4b40ad(0x17e)]?.(_0x2010ba+'\x0a');}function u(_0x507325,_0x3b6567){const _0x652273=_0x6616;_0x507325[_0x652273(0x152)]()['writeOut']?.(JSON[_0x652273(0x170)](_0x3b6567,null,0x2)+'\x0a');}function d(_0x38f118){const _0x32782a=_0x6616;return[_0x32782a(0x17d)[_0x32782a(0x166)](0x22)+'\x20\x20'+_0x32782a(0x16f)[_0x32782a(0x177)](0x9)+'\x20\x20'+_0x32782a(0x17c)[_0x32782a(0x177)](0x7)+'\x20\x20'+_0x32782a(0x1ab)[_0x32782a(0x177)](0x6)+'\x20\x20'+'EDITABLE'[_0x32782a(0x177)](0xa),..._0x38f118[_0x32782a(0x1a5)](_0x4e4590=>[_0x4e4590['id'][_0x32782a(0x166)](0x22),String(_0x4e4590[_0x32782a(0x164)])[_0x32782a(0x177)](0x9),String(_0x4e4590[_0x32782a(0x15e)])[_0x32782a(0x177)](0x7),String(_0x4e4590['tagCount'])[_0x32782a(0x177)](0x6),(_0x4e4590[_0x32782a(0x16d)]+'/'+_0x4e4590['resourceCount'])['padStart'](0xa)][_0x32782a(0x180)]('\x20\x20'))][_0x32782a(0x180)]('\x0a');}function f(_0x4a21b4,_0x5bb19d){const _0x5bfdc1=_0x6616;if(_0x4a21b4[_0x5bfdc1(0x1ae)]===0x0)return _0x5bfdc1(0x1a6);let _0x594b10=[_0x5bfdc1(0x165)[_0x5bfdc1(0x166)](0x32)+'\x20\x20'+'NAME'[_0x5bfdc1(0x166)](0x1c)+'\x20\x20'+_0x5bfdc1(0x18e)[_0x5bfdc1(0x166)](0x12)+'\x20\x20'+_0x5bfdc1(0x1b0)['padEnd'](0x8)+_0x5bfdc1(0x168),..._0x4a21b4[_0x5bfdc1(0x1a5)](_0x2ed742=>{const _0x4eb01e=_0x5bfdc1;let _0x4102aa=_0x2ed742['group']?.[_0x4eb01e(0x1a1)]??'-',_0x30461a=_0x2ed742[_0x4eb01e(0x1af)]?_0x4eb01e(0x176):_0x4eb01e(0x184),_0x55fcc8=_0x2ed742[_0x4eb01e(0x15a)]['width']+'×'+_0x2ed742[_0x4eb01e(0x15a)][_0x4eb01e(0x18c)];return _0x2ed742['handle'][_0x4eb01e(0x166)](0x32)+'\x20\x20'+_0x2ed742[_0x4eb01e(0x171)]['padEnd'](0x1c)+'\x20\x20'+_0x4102aa[_0x4eb01e(0x166)](0x12)+'\x20\x20'+_0x30461a[_0x4eb01e(0x166)](0x8)+'\x20\x20'+_0x55fcc8;})];return _0x5bb19d>_0x4a21b4[_0x5bfdc1(0x1ae)]&&_0x594b10[_0x5bfdc1(0x15f)]('…\x20'+(_0x5bb19d-_0x4a21b4[_0x5bfdc1(0x1ae)])+_0x5bfdc1(0x195)),_0x594b10['join']('\x0a');}function p(_0x770dd4){const _0x1fbcca=_0x6616;return _0x770dd4<0x400?_0x770dd4+'\x20B':_0x770dd4<0x100000?(_0x770dd4/0x400)[_0x1fbcca(0x17a)](0x1)+_0x1fbcca(0x174):(_0x770dd4/0x100000)[_0x1fbcca(0x17a)](0x1)+_0x1fbcca(0x1a7);}export{a as createResourcesCommand};
1
+ (function(_0x3dea12,_0x300d1a){const _0x217ae4=_0x4a5a,_0x61cdff=_0x3dea12();while(!![]){try{const _0x3c1969=parseInt(_0x217ae4(0x135))/0x1+-parseInt(_0x217ae4(0x15d))/0x2*(-parseInt(_0x217ae4(0x17b))/0x3)+parseInt(_0x217ae4(0x12c))/0x4+parseInt(_0x217ae4(0x158))/0x5*(parseInt(_0x217ae4(0x151))/0x6)+parseInt(_0x217ae4(0x172))/0x7+-parseInt(_0x217ae4(0x155))/0x8+-parseInt(_0x217ae4(0x15f))/0x9*(parseInt(_0x217ae4(0x13f))/0xa);if(_0x3c1969===_0x300d1a)break;else _0x61cdff['push'](_0x61cdff['shift']());}catch(_0x121fb5){_0x61cdff['push'](_0x61cdff['shift']());}}}(_0x4146,0xa3580));import{isResourceLibraryError as _0xe99236}from'@univer-cli/resource-library';import{Command as _0x96efab,InvalidArgumentError as _0x663a0d,Option as _0x39ac34}from'commander';function _0x4146(){const _0x4e3bca=['--json','HANDLE','openLibrary','\x20resources\x20(','76710dbbWjw','clearCache','List\x20available\x20resource\x20registries','padEnd','description','Show\x20the\x20resource\x20cache\x20path','\x20could\x20not\x20be\x20exported.','error','code','\x20resource','Clear\x20all\x20cached\x20resources','Inspect\x20or\x20clear\x20the\x20resource\x20cache','clear','group','map','resourceCount','isInteger','Find\x20resources\x20by\x20name,\x20description,\x20group,\x20tag,\x20or\x20keyword','18fuWHpq','write\x20structured\x20JSON','addOption','svg','1309328yDXZBU','join','writeOut','744855GXLOCD','path','label','\x20more;\x20raise\x20--limit\x20or\x20narrow\x20the\x20query.','toFixed','2269978JaSWES','<handles...>','3879mKqEaa','length','width','cache','RESOURCES','configureOutput','out','option','limit','GROUPS','REGISTRY','--limit\x20<number>','message','<queries...>','json','editable','handle','argParser','Expected\x20a\x20positive\x20integer;\x20received\x20\x22','7762027ApkNID','resources','push','outputHelp','listRegistries','resources.invalid-input','Find\x20and\x20export\x20SVG\x20resources\x20from\x20a\x20multi-registry\x20catalog','command','registry','3kYSafw','argument','default','padStart','canonical\x20<registryId>/<resourceId>\x20handles','--out\x20<directory>','total','find','\x20KB','EDITABLE','maximum\x20number\x20of\x20results','GROUP','Exporting\x20more\x20than\x20one\x20resource\x20requires\x20--out\x20<directory>.','tagCount','colorEditable','4058796JUAfAX','No\x20resources\x20matched;\x20try\x20a\x20shorter\x20substring,\x20a\x20synonym,\x20or\x20another\x20registry.','action','TAGS','colorEditableCount','height','failed','intrinsicSize','groupCount','433461DbHbSv','write\x20flat\x20<registry>--<resource>.svg\x20files','resources.failed','COLOR','restrict\x20results\x20to\x20a\x20registry;\x20repeatable','Read\x20one\x20SVG\x20or\x20export\x20resources\x20to\x20a\x20directory'];_0x4146=function(){return _0x4e3bca;};return _0x4146();}var i=0x1e;function a(_0x509c2c){const _0x35c113=_0x4a5a;let _0x3037db=new _0x96efab(_0x35c113(0x173))[_0x35c113(0x143)](_0x35c113(0x178))[_0x35c113(0x12e)](()=>_0x3037db[_0x35c113(0x175)]());_0x3037db['command']('registries')[_0x35c113(0x143)](_0x35c113(0x141))[_0x35c113(0x166)](_0x35c113(0x13b),_0x35c113(0x152))[_0x35c113(0x12e)](async _0x25433=>{const _0x3ea291=_0x35c113;let _0x3fd454=await c(_0x3037db,async()=>_0x509c2c[_0x3ea291(0x13d)]()[_0x3ea291(0x176)]());l(_0x3037db,_0x25433,{'registries':_0x3fd454},d(_0x3fd454));}),_0x3037db[_0x35c113(0x179)](_0x35c113(0x124))[_0x35c113(0x143)](_0x35c113(0x150))['argument'](_0x35c113(0x16c),'one\x20or\x20more\x20queries,\x20searched\x20independently')[_0x35c113(0x153)](new _0x39ac34('--registry\x20<id>',_0x35c113(0x139))[_0x35c113(0x170)](o)[_0x35c113(0x17d)]([]))[_0x35c113(0x153)](new _0x39ac34(_0x35c113(0x16a),_0x35c113(0x127))[_0x35c113(0x170)](s)['default'](i))[_0x35c113(0x166)](_0x35c113(0x13b),'write\x20structured\x20JSON')[_0x35c113(0x12e)](async(_0x1eb24f,_0x790c4c)=>{const _0x129ac4=_0x35c113;let _0x47c509=await c(_0x3037db,async()=>_0x509c2c['openLibrary']()[_0x129ac4(0x124)]({'queries':_0x1eb24f,'registries':_0x790c4c['registry'],'limit':_0x790c4c[_0x129ac4(0x167)]}));l(_0x3037db,_0x790c4c,{'query':{'queries':_0x1eb24f,'registries':_0x790c4c[_0x129ac4(0x17a)]},'resources':_0x47c509[_0x129ac4(0x173)],'total':_0x47c509[_0x129ac4(0x123)],'limit':_0x790c4c[_0x129ac4(0x167)]},f(_0x47c509[_0x129ac4(0x173)],_0x47c509[_0x129ac4(0x123)]));}),_0x3037db[_0x35c113(0x179)]('export')[_0x35c113(0x143)](_0x35c113(0x13a))[_0x35c113(0x17c)](_0x35c113(0x15e),_0x35c113(0x17f))['option'](_0x35c113(0x122),_0x35c113(0x136))[_0x35c113(0x166)]('--json',_0x35c113(0x152))[_0x35c113(0x12e)](async(_0x401074,_0x35ee67)=>{const _0x15148a=_0x35c113;if(_0x35ee67[_0x15148a(0x165)]===void 0x0){_0x401074['length']!==0x1&&_0x3037db[_0x15148a(0x146)](_0x15148a(0x129),{'code':_0x15148a(0x177),'exitCode':0x1});let _0x379dbe=await c(_0x3037db,async()=>_0x509c2c[_0x15148a(0x13d)]()['read']({'handle':_0x401074[0x0]}));_0x35ee67[_0x15148a(0x16d)]===!0x0?u(_0x3037db,_0x379dbe):_0x3037db[_0x15148a(0x164)]()[_0x15148a(0x157)]?.(_0x379dbe[_0x15148a(0x154)]);return;}let _0x52a02b=await c(_0x3037db,async()=>_0x509c2c[_0x15148a(0x13d)]()['export']({'handles':_0x401074,'destination':_0x35ee67[_0x15148a(0x165)]}));if(_0x35ee67[_0x15148a(0x16d)]===!0x0)u(_0x3037db,_0x52a02b);else{let _0x187e6b=_0x3037db['configureOutput']();for(let _0x40fb27 of _0x52a02b['exported'])_0x187e6b[_0x15148a(0x157)]?.(_0x40fb27[_0x15148a(0x159)]+'\x0a');for(let _0x1dcb17 of _0x52a02b[_0x15148a(0x132)])_0x187e6b['writeErr']?.(_0x1dcb17[_0x15148a(0x16f)]+':\x20'+_0x1dcb17[_0x15148a(0x147)]+':\x20'+_0x1dcb17[_0x15148a(0x16b)]+'\x0a');}_0x52a02b['failed']['length']>0x0&&_0x3037db[_0x15148a(0x146)](_0x52a02b[_0x15148a(0x132)][_0x15148a(0x160)]+_0x15148a(0x148)+(_0x52a02b[_0x15148a(0x132)][_0x15148a(0x160)]===0x1?'':'s')+_0x15148a(0x145),{'code':'resources.export.failed','exitCode':0x1});});let _0x5c42cc=_0x3037db[_0x35c113(0x179)](_0x35c113(0x162))[_0x35c113(0x143)](_0x35c113(0x14a));return _0x5c42cc[_0x35c113(0x12e)](()=>_0x5c42cc['outputHelp']()),_0x5c42cc[_0x35c113(0x179)](_0x35c113(0x159))[_0x35c113(0x143)](_0x35c113(0x144))[_0x35c113(0x166)](_0x35c113(0x13b),_0x35c113(0x152))[_0x35c113(0x12e)](_0x34d381=>{const _0x473a1e=_0x35c113;let _0x44a5dc=_0x509c2c[_0x473a1e(0x13d)]()['cacheLocation'];l(_0x3037db,_0x34d381,{'path':_0x44a5dc},_0x44a5dc);}),_0x5c42cc[_0x35c113(0x179)](_0x35c113(0x14b))[_0x35c113(0x143)](_0x35c113(0x149))[_0x35c113(0x166)]('--json',_0x35c113(0x152))[_0x35c113(0x12e)](async _0x528103=>{const _0x8116fc=_0x35c113;let _0x21dd72=await c(_0x3037db,async()=>_0x509c2c['openLibrary']()[_0x8116fc(0x140)]());l(_0x3037db,_0x528103,{'cleared':_0x21dd72},'Cleared\x20'+_0x21dd72[_0x8116fc(0x14e)]+_0x8116fc(0x13e)+p(_0x21dd72['byteCount'])+')\x20from\x20'+_0x21dd72[_0x8116fc(0x159)]+'.');}),_0x3037db;}function o(_0x43e0c2,_0x4e88a3){return[..._0x4e88a3,_0x43e0c2];}function s(_0x50fd1f){const _0x54be06=_0x4a5a;let _0x4ca6b9=Number(_0x50fd1f);if(!Number[_0x54be06(0x14f)](_0x4ca6b9)||_0x4ca6b9<0x1)throw new _0x663a0d(_0x54be06(0x171)+_0x50fd1f+'\x22.');return _0x4ca6b9;}async function c(_0x320d2b,_0x345174){const _0x5248e6=_0x4a5a;try{return await _0x345174();}catch(_0x4bf755){throw _0xe99236(_0x4bf755)&&_0x320d2b[_0x5248e6(0x146)](_0x4bf755[_0x5248e6(0x147)]+':\x20'+_0x4bf755['message'],{'code':_0x5248e6(0x137),'exitCode':0x1}),_0x4bf755;}}function l(_0x5d6a26,_0xffc9ca,_0x1cdd7c,_0x355038){const _0x272133=_0x4a5a;_0xffc9ca[_0x272133(0x16d)]===!0x0?u(_0x5d6a26,_0x1cdd7c):_0x5d6a26[_0x272133(0x164)]()[_0x272133(0x157)]?.(_0x355038+'\x0a');}function u(_0x540a02,_0x3a70a2){const _0x3aead1=_0x4a5a;_0x540a02[_0x3aead1(0x164)]()[_0x3aead1(0x157)]?.(JSON['stringify'](_0x3a70a2,null,0x2)+'\x0a');}function _0x4a5a(_0x213ed3,_0xe9e49){_0x213ed3=_0x213ed3-0x122;const _0x4146b8=_0x4146();let _0x4a5ae9=_0x4146b8[_0x213ed3];return _0x4a5ae9;}function d(_0x103b6){const _0x59b6a2=_0x4a5a;return[_0x59b6a2(0x169)[_0x59b6a2(0x142)](0x22)+'\x20\x20'+_0x59b6a2(0x163)[_0x59b6a2(0x17e)](0x9)+'\x20\x20'+_0x59b6a2(0x168)['padStart'](0x7)+'\x20\x20'+_0x59b6a2(0x12f)[_0x59b6a2(0x17e)](0x6)+'\x20\x20'+_0x59b6a2(0x126)[_0x59b6a2(0x17e)](0xa),..._0x103b6[_0x59b6a2(0x14d)](_0x344d68=>[_0x344d68['id']['padEnd'](0x22),String(_0x344d68[_0x59b6a2(0x14e)])[_0x59b6a2(0x17e)](0x9),String(_0x344d68[_0x59b6a2(0x134)])[_0x59b6a2(0x17e)](0x7),String(_0x344d68[_0x59b6a2(0x12a)])[_0x59b6a2(0x17e)](0x6),(_0x344d68[_0x59b6a2(0x130)]+'/'+_0x344d68[_0x59b6a2(0x14e)])['padStart'](0xa)]['join']('\x20\x20'))]['join']('\x0a');}function f(_0x9d7fb9,_0x1a7f71){const _0x136fac=_0x4a5a;if(_0x9d7fb9[_0x136fac(0x160)]===0x0)return _0x136fac(0x12d);let _0x27eaa4=[_0x136fac(0x13c)[_0x136fac(0x142)](0x32)+'\x20\x20'+'NAME'[_0x136fac(0x142)](0x1c)+'\x20\x20'+_0x136fac(0x128)[_0x136fac(0x142)](0x12)+'\x20\x20'+_0x136fac(0x138)[_0x136fac(0x142)](0x8)+'\x20\x20SIZE',..._0x9d7fb9[_0x136fac(0x14d)](_0x325ca3=>{const _0x25f293=_0x136fac;let _0x17bdb0=_0x325ca3[_0x25f293(0x14c)]?.[_0x25f293(0x15a)]??'-',_0x40ee35=_0x325ca3[_0x25f293(0x12b)]?_0x25f293(0x16e):'fixed',_0x5bc4ad=_0x325ca3[_0x25f293(0x133)][_0x25f293(0x161)]+'×'+_0x325ca3[_0x25f293(0x133)][_0x25f293(0x131)];return _0x325ca3['handle'][_0x25f293(0x142)](0x32)+'\x20\x20'+_0x325ca3['name']['padEnd'](0x1c)+'\x20\x20'+_0x17bdb0[_0x25f293(0x142)](0x12)+'\x20\x20'+_0x40ee35[_0x25f293(0x142)](0x8)+'\x20\x20'+_0x5bc4ad;})];return _0x1a7f71>_0x9d7fb9[_0x136fac(0x160)]&&_0x27eaa4[_0x136fac(0x174)]('…\x20'+(_0x1a7f71-_0x9d7fb9[_0x136fac(0x160)])+_0x136fac(0x15b)),_0x27eaa4[_0x136fac(0x156)]('\x0a');}function p(_0x155fec){const _0x33776a=_0x4a5a;return _0x155fec<0x400?_0x155fec+'\x20B':_0x155fec<0x100000?(_0x155fec/0x400)[_0x33776a(0x15c)](0x1)+_0x33776a(0x125):(_0x155fec/0x100000)[_0x33776a(0x15c)](0x1)+'\x20MB';}export{a as createResourcesCommand};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univer-cli/resource-library-command",
3
3
  "type": "module",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "README.zh-CN.md"
19
19
  ],
20
20
  "dependencies": {
21
- "@univer-cli/resource-library": "1.0.3"
21
+ "@univer-cli/resource-library": "1.0.4"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"