@univer-cli/unit-layout-lint-command 1.1.0 → 1.3.0
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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x4500b7,_0xba5f57){const _0x2a7885=_0x1178,_0x6d8118=_0x4500b7();while(!![]){try{const _0x135ba1=parseInt(_0x2a7885(0x14b))/0x1*(parseInt(_0x2a7885(0x126))/0x2)+-parseInt(_0x2a7885(0x149))/0x3+-parseInt(_0x2a7885(0x132))/0x4+parseInt(_0x2a7885(0x136))/0x5+-parseInt(_0x2a7885(0x154))/0x6*(-parseInt(_0x2a7885(0x150))/0x7)+-parseInt(_0x2a7885(0x140))/0x8+-parseInt(_0x2a7885(0x144))/0x9*(-parseInt(_0x2a7885(0x14e))/0xa);if(_0x135ba1===_0xba5f57)break;else _0x6d8118['push'](_0x6d8118['shift']());}catch(_0x315992){_0x6d8118['push'](_0x6d8118['shift']());}}}(_0x59db,0xb4ac9));import{isUnitLayoutLintError as _0x3a7b2a}from'@univer-cli/unit-layout-lint';function _0x59db(){const _0x54251b=['findings','589608NNbWaq','Unit\x20to\x20lint;\x20currently\x20requires\x20a\x20Slide\x20Unit','--pages\x20cannot\x20be\x20empty','name','3756665IOSEEm','lint','Slide\x20layout\x20lint:\x20no\x20findings\x20(','string','json','length','trim','message','error','--json','9115392nYiYKn','Invalid\x20page\x20selector:\x20','option','Lint\x20browser-rendered\x20Unit\x20layout\x20(currently\x20Slide\x20only)','5145255MHpbUr','configureOutput','--pages\x20<pages>','write\x20the\x20complete\x20lint\x20report\x20as\x20JSON','code','1868883aYPEsc','unit-layout-lint.failed','1eRDdTd','split','\x20pages\x20checked)','10roLbmx','stringify','14brnjNH','page\x20','unit','loadUnit','62214hQIuXH','2612124EjdUWB','push','detail','pages','Slide\x20layout\x20lint:\x20','coverage','description','Slide\x20pages\x20or\x20page\x20IDs,\x20for\x20example\x201,3-5,cover','requiredOption','rule','--pages\x20contains\x20an\x20empty\x20selector'];_0x59db=function(){return _0x54251b;};return _0x59db();}import{Command as _0x2e5cce}from'commander';var n=0x2710,r=class extends Error{constructor(_0x131a51){const _0x2de245=_0x1178;super(_0x131a51),this[_0x2de245(0x135)]='UnitLayoutLintCommandInputError';}};function i(_0x430d73){const _0x3fc9f6=_0x1178;let _0x235016=new _0x2e5cce(_0x3fc9f6(0x137))[_0x3fc9f6(0x12c)](_0x3fc9f6(0x143))[_0x3fc9f6(0x12e)]('--unit\x20<unit-id>',_0x3fc9f6(0x133))['option'](_0x3fc9f6(0x146),_0x3fc9f6(0x12d))[_0x3fc9f6(0x142)](_0x3fc9f6(0x13f),_0x3fc9f6(0x147))['action'](async _0x55d7cb=>{const _0x2d70c3=_0x3fc9f6;let _0x8d3220;try{let _0x360599=_0x55d7cb[_0x2d70c3(0x129)]===void 0x0?void 0x0:s(_0x55d7cb[_0x2d70c3(0x129)]),_0x24f6f6=await _0x430d73[_0x2d70c3(0x153)]({'unitId':_0x55d7cb[_0x2d70c3(0x152)]});_0x8d3220=await _0x430d73[_0x2d70c3(0x137)][_0x2d70c3(0x137)]({..._0x24f6f6,..._0x360599===void 0x0?{}:{'pages':_0x360599}});}catch(_0xeeaace){throw(_0xeeaace instanceof r||_0x3a7b2a(_0xeeaace)||c(_0xeeaace))&&_0x235016[_0x2d70c3(0x13e)](''+(_0x2d70c3(0x148)in _0xeeaace?String(_0xeeaace[_0x2d70c3(0x148)])+':\x20':'')+_0xeeaace[_0x2d70c3(0x13d)],{'code':_0x2d70c3(0x14a),'exitCode':0x1}),_0xeeaace;}_0x235016[_0x2d70c3(0x145)]()['writeOut']?.((_0x55d7cb[_0x2d70c3(0x13a)]===!0x0?JSON[_0x2d70c3(0x14f)](_0x8d3220,null,0x2):a(_0x8d3220))+'\x0a');});return _0x235016;}function _0x1178(_0x2678d0,_0x4a4c54){_0x2678d0=_0x2678d0-0x126;const _0x59db47=_0x59db();let _0x1178ca=_0x59db47[_0x2678d0];return _0x1178ca;}function a(_0x120a7c){const _0x5796a7=_0x1178;if(_0x120a7c[_0x5796a7(0x131)]['length']===0x0)return _0x5796a7(0x138)+String(_0x120a7c[_0x5796a7(0x12b)]['pages'][_0x5796a7(0x13b)])+_0x5796a7(0x14d);let _0x170ba1=[_0x5796a7(0x12a)+String(_0x120a7c[_0x5796a7(0x131)]['length'])+'\x20findings\x20('+String(_0x120a7c[_0x5796a7(0x12b)][_0x5796a7(0x129)][_0x5796a7(0x13b)])+_0x5796a7(0x14d)];for(let _0x5817e5 of _0x120a7c[_0x5796a7(0x131)])_0x170ba1['push'](_0x5796a7(0x151)+String(_0x5817e5['page'])+'\x20\x20'+_0x5817e5[_0x5796a7(0x12f)]+'\x20\x20'+_0x5817e5['id']),_0x170ba1[_0x5796a7(0x127)]('\x20\x20'+_0x5817e5[_0x5796a7(0x128)]);return _0x170ba1['join']('\x0a');}function o(_0xd7a6e9){return s(_0xd7a6e9);}function s(_0x20ea2a){const _0x1c1735=_0x1178;if(_0x20ea2a[_0x1c1735(0x13c)]()==='all')return;if(_0x20ea2a[_0x1c1735(0x13c)]()==='')throw new r(_0x1c1735(0x134));let _0x1d45c8=[];for(let _0x20b5d8 of _0x20ea2a[_0x1c1735(0x14c)](',')){let _0x1cc5c8=_0x20b5d8['trim']();if(_0x1cc5c8==='')throw new r(_0x1c1735(0x130));let _0x50e601=/^(\d+)(?:-(\d+))?$/['exec'](_0x1cc5c8);if(_0x50e601===null){_0x1d45c8[_0x1c1735(0x127)](_0x1cc5c8);continue;}let _0x6652b3=Number(_0x50e601[0x1]),_0x3765b1=Number(_0x50e601[0x2]??_0x50e601[0x1]);if(_0x6652b3<0x1||_0x3765b1<_0x6652b3)throw new r(_0x1c1735(0x141)+_0x1cc5c8);if(_0x1d45c8['length']+_0x3765b1-_0x6652b3+0x1>n)throw new r('--pages\x20expands\x20to\x20too\x20many\x20pages');for(let _0x1cc096=_0x6652b3;_0x1cc096<=_0x3765b1;_0x1cc096+=0x1)_0x1d45c8[_0x1c1735(0x127)](_0x1cc096);}return _0x1d45c8;}function c(_0x106c41){const _0x4de0ee=_0x1178;return _0x106c41 instanceof Error&&typeof _0x106c41[_0x4de0ee(0x148)]==_0x4de0ee(0x139);}export{r as UnitLayoutLintCommandInputError,i as createUnitLayoutLintCommand,o as parseUnitLayoutLintPages,a as renderUnitLayoutLint};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univer-cli/unit-layout-lint-command",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
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/unit-layout-lint": "1.
|
|
21
|
+
"@univer-cli/unit-layout-lint": "1.3.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|