@univer-cli/config-command 1.6.1 → 1.6.2

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(_0xb25012,_0x5df995){const _0x276760=_0x5e21,_0x5d3f5b=_0xb25012();while(!![]){try{const _0x5a0b03=parseInt(_0x276760(0x167))/0x1*(parseInt(_0x276760(0x148))/0x2)+parseInt(_0x276760(0x157))/0x3+-parseInt(_0x276760(0x162))/0x4+-parseInt(_0x276760(0x16a))/0x5+-parseInt(_0x276760(0x165))/0x6*(parseInt(_0x276760(0x16c))/0x7)+parseInt(_0x276760(0x156))/0x8+-parseInt(_0x276760(0x166))/0x9*(-parseInt(_0x276760(0x15a))/0xa);if(_0x5a0b03===_0x5df995)break;else _0x5d3f5b['push'](_0x5d3f5b['shift']());}catch(_0x51a066){_0x5d3f5b['push'](_0x5d3f5b['shift']());}}}(_0x197c,0xc46db));function _0x197c(){const _0x318aaa=['3652959bkmdSr','writeOut','set','474860NDleyL','get','Show\x20the\x20config\x20file\x20path','command','error','list','write\x20structured\x20JSON','configureOutput','5813252TriORz','value','source','118278rKWROg','405pVhfmE','752729CezKLV','option','string','5005865fMnVWR','description','553SbHJRC','config','argument','config\x20value\x20as\x20text','outputHelp','--json','join','2BBJcQF','Get\x20a\x20registered\x20config\x20entry','code','message','map','stringify','registered\x20config\x20key','path','Set\x20a\x20registered\x20config\x20entry','action','<key>','unset','<value>','Inspect\x20and\x20update\x20application\x20config','5673056NRABxs'];_0x197c=function(){return _0x318aaa;};return _0x197c();}import{ConfigError as _0x4fc1fa}from'@univer-cli/config';import{Command as _0x613f1e}from'commander';function n(_0x4a60bc){const _0x1a2901=_0x5e21;let _0x3c27c1=new _0x613f1e('config')[_0x1a2901(0x16b)](_0x1a2901(0x155))[_0x1a2901(0x151)](()=>_0x3c27c1[_0x1a2901(0x170)]());return _0x3c27c1[_0x1a2901(0x15d)]('path')[_0x1a2901(0x16b)](_0x1a2901(0x15c))[_0x1a2901(0x168)](_0x1a2901(0x171),_0x1a2901(0x160))[_0x1a2901(0x151)](_0x31d6af=>{const _0x447d99=_0x1a2901;a(_0x3c27c1,_0x31d6af,{'path':_0x4a60bc[_0x447d99(0x16d)]['path']},_0x4a60bc[_0x447d99(0x16d)][_0x447d99(0x14f)]);}),_0x3c27c1[_0x1a2901(0x15d)](_0x1a2901(0x15f))[_0x1a2901(0x16b)]('List\x20registered\x20config\x20entries')[_0x1a2901(0x168)]('--json',_0x1a2901(0x160))[_0x1a2901(0x151)](async _0x1a9ab6=>{const _0x1759f5=_0x1a2901;let _0xe275f1=await r(_0x3c27c1,async()=>await _0x4a60bc[_0x1759f5(0x16d)][_0x1759f5(0x15f)]());a(_0x3c27c1,_0x1a9ab6,{'entries':_0xe275f1},o(_0xe275f1));}),_0x3c27c1[_0x1a2901(0x15d)](_0x1a2901(0x15b))[_0x1a2901(0x16b)](_0x1a2901(0x149))['argument'](_0x1a2901(0x152),'registered\x20config\x20key')[_0x1a2901(0x168)](_0x1a2901(0x171),'write\x20structured\x20JSON')['action'](async(_0x41f6a0,_0x1a4605)=>{const _0x1d429f=_0x1a2901;let _0x154ebd=await r(_0x3c27c1,async()=>await _0x4a60bc['config'][_0x1d429f(0x15b)]({'key':_0x41f6a0}));i(_0x3c27c1,_0x1a4605,_0x154ebd);}),_0x3c27c1['command'](_0x1a2901(0x159))[_0x1a2901(0x16b)](_0x1a2901(0x150))[_0x1a2901(0x16e)](_0x1a2901(0x152),'registered\x20config\x20key')[_0x1a2901(0x16e)](_0x1a2901(0x154),_0x1a2901(0x16f))[_0x1a2901(0x168)](_0x1a2901(0x171),_0x1a2901(0x160))[_0x1a2901(0x151)](async(_0x47178e,_0x943373,_0x543d4f)=>{const _0x16673e=_0x1a2901;let _0x58966e=await r(_0x3c27c1,async()=>await _0x4a60bc[_0x16673e(0x16d)]['setFromText']({'key':_0x47178e,'text':_0x943373}));i(_0x3c27c1,_0x543d4f,_0x58966e);}),_0x3c27c1[_0x1a2901(0x15d)](_0x1a2901(0x153))['description']('Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry')[_0x1a2901(0x16e)](_0x1a2901(0x152),_0x1a2901(0x14e))[_0x1a2901(0x168)](_0x1a2901(0x171),_0x1a2901(0x160))[_0x1a2901(0x151)](async(_0x9c9165,_0x395974)=>{const _0x231659=_0x1a2901;let _0x5cdbf7=await r(_0x3c27c1,async()=>await _0x4a60bc['config'][_0x231659(0x153)]({'key':_0x9c9165}));i(_0x3c27c1,_0x395974,_0x5cdbf7);}),_0x3c27c1;}async function r(_0x4ef03b,_0x77840f){const _0x5b1ab6=_0x5e21;try{return await _0x77840f();}catch(_0x7491c0){throw _0x7491c0 instanceof _0x4fc1fa&&_0x4ef03b[_0x5b1ab6(0x15e)](_0x7491c0[_0x5b1ab6(0x14a)]+':\x20'+_0x7491c0[_0x5b1ab6(0x14b)],{'code':'config.failed','exitCode':0x1}),_0x7491c0;}}function i(_0x4e3288,_0x3a7eee,_0x149e87){a(_0x4e3288,_0x3a7eee,{'entry':_0x149e87},s(_0x149e87));}function a(_0x3f98bb,_0x3fd21d,_0x2f69ba,_0x3056e5){const _0x3c64dd=_0x5e21;let _0x5701d8=_0x3fd21d['json']===!0x0?JSON[_0x3c64dd(0x14d)](_0x2f69ba,null,0x2):_0x3056e5;_0x3f98bb[_0x3c64dd(0x161)]()[_0x3c64dd(0x158)]?.(_0x5701d8+'\x0a');}function o(_0x1e830a){const _0x2a120e=_0x5e21;return _0x1e830a[_0x2a120e(0x14c)](s)[_0x2a120e(0x147)]('\x0a');}function s(_0x3f2569){const _0x308332=_0x5e21;let _0x12a191=_0x3f2569[_0x308332(0x164)]===_0x308332(0x153)?'<unset>':c(_0x3f2569[_0x308332(0x163)]);return _0x3f2569['key']+'\x20=\x20'+_0x12a191+'\x20('+_0x3f2569[_0x308332(0x164)]+')\x0a\x20\x20'+_0x3f2569[_0x308332(0x16b)];}function _0x5e21(_0x3d58e7,_0x17af0e){_0x3d58e7=_0x3d58e7-0x147;const _0x197c46=_0x197c();let _0x5e2168=_0x197c46[_0x3d58e7];return _0x5e2168;}function c(_0x225a41){const _0x31adbe=_0x5e21;return typeof _0x225a41==_0x31adbe(0x169)?_0x225a41:JSON[_0x31adbe(0x14d)](_0x225a41);}export{n as createConfigCommand};
1
+ (function(_0x55baf2,_0x3d2672){const _0x115b20=_0x22bc,_0x3b2b2f=_0x55baf2();while(!![]){try{const _0x319a9e=-parseInt(_0x115b20(0x1b2))/0x1*(-parseInt(_0x115b20(0x1a7))/0x2)+parseInt(_0x115b20(0x1b1))/0x3+parseInt(_0x115b20(0x1c9))/0x4+parseInt(_0x115b20(0x1c3))/0x5+parseInt(_0x115b20(0x1c0))/0x6+-parseInt(_0x115b20(0x1d1))/0x7+-parseInt(_0x115b20(0x1bb))/0x8*(parseInt(_0x115b20(0x1cd))/0x9);if(_0x319a9e===_0x3d2672)break;else _0x3b2b2f['push'](_0x3b2b2f['shift']());}catch(_0x73e228){_0x3b2b2f['push'](_0x3b2b2f['shift']());}}}(_0x324b,0x19782));import{ConfigError as _0x3ccaa8}from'@univer-cli/config';import{Command as _0x1e991b}from'commander';function n(_0x4a630b){const _0x5d8827=_0x22bc;let _0x5f5365=new _0x1e991b(_0x5d8827(0x1b3))[_0x5d8827(0x1ab)](_0x5d8827(0x1bc))[_0x5d8827(0x1ae)](()=>_0x5f5365[_0x5d8827(0x1c6)]());return _0x5f5365[_0x5d8827(0x1b6)](_0x5d8827(0x1ca))[_0x5d8827(0x1ab)](_0x5d8827(0x1c8))[_0x5d8827(0x1bd)](_0x5d8827(0x1ce),_0x5d8827(0x1b7))[_0x5d8827(0x1ae)](_0x4725c0=>{const _0x2319da=_0x5d8827;a(_0x5f5365,_0x4725c0,{'path':_0x4a630b['config']['path']},_0x4a630b[_0x2319da(0x1b3)][_0x2319da(0x1ca)]);}),_0x5f5365[_0x5d8827(0x1b6)]('list')[_0x5d8827(0x1ab)]('List\x20registered\x20config\x20entries')[_0x5d8827(0x1bd)]('--json',_0x5d8827(0x1b7))[_0x5d8827(0x1ae)](async _0x386bd9=>{const _0xb13e72=_0x5d8827;let _0x3ac4ca=await r(_0x5f5365,async()=>await _0x4a630b[_0xb13e72(0x1b3)][_0xb13e72(0x1c7)]());a(_0x5f5365,_0x386bd9,{'entries':_0x3ac4ca},o(_0x3ac4ca));}),_0x5f5365['command'](_0x5d8827(0x1b0))[_0x5d8827(0x1ab)](_0x5d8827(0x1bf))[_0x5d8827(0x1d2)](_0x5d8827(0x1d3),_0x5d8827(0x1c4))['option'](_0x5d8827(0x1ce),_0x5d8827(0x1b7))['action'](async(_0x2dfdbe,_0x357c49)=>{const _0x1bd1b7=_0x5d8827;let _0x204746=await r(_0x5f5365,async()=>await _0x4a630b[_0x1bd1b7(0x1b3)][_0x1bd1b7(0x1b0)]({'key':_0x2dfdbe}));i(_0x5f5365,_0x357c49,_0x204746);}),_0x5f5365[_0x5d8827(0x1b6)](_0x5d8827(0x1b9))[_0x5d8827(0x1ab)](_0x5d8827(0x1aa))[_0x5d8827(0x1d2)]('<key>',_0x5d8827(0x1c4))[_0x5d8827(0x1d2)](_0x5d8827(0x1cf),_0x5d8827(0x1cc))[_0x5d8827(0x1bd)](_0x5d8827(0x1ce),'write\x20structured\x20JSON')[_0x5d8827(0x1ae)](async(_0x2e7181,_0x21b888,_0x512ef3)=>{const _0x21fcd=_0x5d8827;let _0x14c3e7=await r(_0x5f5365,async()=>await _0x4a630b[_0x21fcd(0x1b3)][_0x21fcd(0x1a8)]({'key':_0x2e7181,'text':_0x21b888}));i(_0x5f5365,_0x512ef3,_0x14c3e7);}),_0x5f5365[_0x5d8827(0x1b6)]('unset')[_0x5d8827(0x1ab)](_0x5d8827(0x1af))[_0x5d8827(0x1d2)](_0x5d8827(0x1d3),'registered\x20config\x20key')[_0x5d8827(0x1bd)](_0x5d8827(0x1ce),_0x5d8827(0x1b7))[_0x5d8827(0x1ae)](async(_0x37253f,_0x4857db)=>{const _0x3af8dc=_0x5d8827;let _0x40559c=await r(_0x5f5365,async()=>await _0x4a630b[_0x3af8dc(0x1b3)][_0x3af8dc(0x1d0)]({'key':_0x37253f}));i(_0x5f5365,_0x4857db,_0x40559c);}),_0x5f5365;}function _0x22bc(_0x5d989e,_0x5a60c4){_0x5d989e=_0x5d989e-0x1a7;const _0x324b0b=_0x324b();let _0x22bc47=_0x324b0b[_0x5d989e];return _0x22bc47;}async function r(_0x101ec7,_0x232898){const _0x214cc9=_0x22bc;try{return await _0x232898();}catch(_0x2d16ea){throw _0x2d16ea instanceof _0x3ccaa8&&_0x101ec7[_0x214cc9(0x1b5)](_0x2d16ea['code']+':\x20'+_0x2d16ea[_0x214cc9(0x1c5)],{'code':'config.failed','exitCode':0x1}),_0x2d16ea;}}function i(_0x4acf8c,_0x16ee72,_0x2a2927){a(_0x4acf8c,_0x16ee72,{'entry':_0x2a2927},s(_0x2a2927));}function a(_0x32d54f,_0x474a1e,_0x452418,_0x17b2c2){const _0xe7cd82=_0x22bc;let _0x4ebe24=_0x474a1e[_0xe7cd82(0x1ad)]===!0x0?JSON[_0xe7cd82(0x1ba)](_0x452418,null,0x2):_0x17b2c2;_0x32d54f[_0xe7cd82(0x1cb)]()[_0xe7cd82(0x1a9)]?.(_0x4ebe24+'\x0a');}function o(_0x2397cc){const _0x5678b7=_0x22bc;return _0x2397cc['map'](s)[_0x5678b7(0x1b8)]('\x0a');}function _0x324b(){const _0x40c169=['611064ktrUVL','1262DFhfOg','config','source','error','command','write\x20structured\x20JSON','join','set','stringify','4968hBtKQP','Inspect\x20and\x20update\x20application\x20config','option','string','Get\x20a\x20registered\x20config\x20entry','733836jARfwT','value','<unset>','242800ZIJyPU','registered\x20config\x20key','message','outputHelp','list','Show\x20the\x20config\x20file\x20path','582424nXTeuk','path','configureOutput','config\x20value\x20as\x20text','5157XNtwqf','--json','<value>','unset','464205MxjyQZ','argument','<key>','10dZtevZ','setFromText','writeOut','Set\x20a\x20registered\x20config\x20entry','description',')\x0a\x20\x20','json','action','Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry','get'];_0x324b=function(){return _0x40c169;};return _0x324b();}function s(_0x3f7835){const _0x3555ec=_0x22bc;let _0x5572c4=_0x3f7835[_0x3555ec(0x1b4)]===_0x3555ec(0x1d0)?_0x3555ec(0x1c2):c(_0x3f7835[_0x3555ec(0x1c1)]);return _0x3f7835['key']+'\x20=\x20'+_0x5572c4+'\x20('+_0x3f7835[_0x3555ec(0x1b4)]+_0x3555ec(0x1ac)+_0x3f7835['description'];}function c(_0x20740c){const _0x25e9bd=_0x22bc;return typeof _0x20740c==_0x25e9bd(0x1be)?_0x20740c:JSON[_0x25e9bd(0x1ba)](_0x20740c);}export{n as createConfigCommand};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univer-cli/config-command",
3
3
  "type": "module",
4
- "version": "1.6.1",
4
+ "version": "1.6.2",
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/config": "1.6.1"
21
+ "@univer-cli/config": "1.6.2"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"