@univer-cli/unit-layout-lint-command 1.3.0 → 1.3.1
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(_0x1cdf32,_0x4670db){const _0x41551b=_0xea77,_0x579d1a=_0x1cdf32();while(!![]){try{const _0x438a1d=-parseInt(_0x41551b(0x139))/0x1+parseInt(_0x41551b(0x11d))/0x2*(parseInt(_0x41551b(0x13b))/0x3)+-parseInt(_0x41551b(0x13c))/0x4+-parseInt(_0x41551b(0x134))/0x5*(-parseInt(_0x41551b(0x116))/0x6)+-parseInt(_0x41551b(0x137))/0x7*(parseInt(_0x41551b(0x12d))/0x8)+parseInt(_0x41551b(0x130))/0x9*(parseInt(_0x41551b(0x142))/0xa)+parseInt(_0x41551b(0x124))/0xb*(parseInt(_0x41551b(0x129))/0xc);if(_0x438a1d===_0x4670db)break;else _0x579d1a['push'](_0x579d1a['shift']());}catch(_0x30173f){_0x579d1a['push'](_0x579d1a['shift']());}}}(_0x3fab,0xcd446));import{isUnitLayoutLintError as _0x2185ee}from'@univer-cli/unit-layout-lint';import{Command as _0x13090c}from'commander';var n=0x2710,r=class extends Error{constructor(_0x47d687){const _0x28bc9a=_0xea77;super(_0x47d687),this[_0x28bc9a(0x123)]=_0x28bc9a(0x121);}};function i(_0x550b2d){const _0xd5273f=_0xea77;let _0x5412c7=new _0x13090c(_0xd5273f(0x143))['description'](_0xd5273f(0x11f))[_0xd5273f(0x140)](_0xd5273f(0x132),'Unit\x20to\x20lint;\x20currently\x20requires\x20a\x20Slide\x20Unit')['option'](_0xd5273f(0x13e),'Slide\x20pages\x20or\x20page\x20IDs,\x20for\x20example\x201,3-5,cover')[_0xd5273f(0x12a)](_0xd5273f(0x119),'write\x20the\x20complete\x20lint\x20report\x20as\x20JSON')[_0xd5273f(0x122)](async _0x334e84=>{const _0x1ece1b=_0xd5273f;let _0x1e17b5;try{let _0x310048=_0x334e84[_0x1ece1b(0x120)]===void 0x0?void 0x0:s(_0x334e84['pages']),_0x569774=await _0x550b2d['loadUnit']({'unitId':_0x334e84[_0x1ece1b(0x11e)]});_0x1e17b5=await _0x550b2d['lint'][_0x1ece1b(0x143)]({..._0x569774,..._0x310048===void 0x0?{}:{'pages':_0x310048}});}catch(_0x489064){throw(_0x489064 instanceof r||_0x2185ee(_0x489064)||c(_0x489064))&&_0x5412c7['error'](''+('code'in _0x489064?String(_0x489064[_0x1ece1b(0x138)])+':\x20':'')+_0x489064[_0x1ece1b(0x11a)],{'code':_0x1ece1b(0x141),'exitCode':0x1}),_0x489064;}_0x5412c7[_0x1ece1b(0x12e)]()[_0x1ece1b(0x11b)]?.((_0x334e84[_0x1ece1b(0x117)]===!0x0?JSON[_0x1ece1b(0x11c)](_0x1e17b5,null,0x2):a(_0x1e17b5))+'\x0a');});return _0x5412c7;}function _0x3fab(){const _0x707b3d=['writeOut','stringify','34226QwYpxv','unit','Lint\x20browser-rendered\x20Unit\x20layout\x20(currently\x20Slide\x20only)','pages','UnitLayoutLintCommandInputError','action','name','29843ZgcTkO','Invalid\x20page\x20selector:\x20','split','Slide\x20layout\x20lint:\x20no\x20findings\x20(','length','6276hbcerS','option','--pages\x20cannot\x20be\x20empty','trim','700064RnQkOy','configureOutput','string','9zCdzvc','coverage','--unit\x20<unit-id>','rule','8605NBaLSC','exec','all','105NlQylU','code','516466janyhK','--pages\x20expands\x20to\x20too\x20many\x20pages','12wKYlix','5389104gNrLyO','--pages\x20contains\x20an\x20empty\x20selector','--pages\x20<pages>','\x20pages\x20checked)','requiredOption','unit-layout-lint.failed','14730910fGASUS','lint','detail','3684SnQDwx','json','push','--json','message'];_0x3fab=function(){return _0x707b3d;};return _0x3fab();}function a(_0xea300){const _0x445489=_0xea77;if(_0xea300['findings']['length']===0x0)return _0x445489(0x127)+String(_0xea300[_0x445489(0x131)][_0x445489(0x120)][_0x445489(0x128)])+_0x445489(0x13f);let _0x59cb06=['Slide\x20layout\x20lint:\x20'+String(_0xea300['findings'][_0x445489(0x128)])+'\x20findings\x20('+String(_0xea300[_0x445489(0x131)][_0x445489(0x120)][_0x445489(0x128)])+'\x20pages\x20checked)'];for(let _0x223dbe of _0xea300['findings'])_0x59cb06[_0x445489(0x118)]('page\x20'+String(_0x223dbe['page'])+'\x20\x20'+_0x223dbe[_0x445489(0x133)]+'\x20\x20'+_0x223dbe['id']),_0x59cb06[_0x445489(0x118)]('\x20\x20'+_0x223dbe[_0x445489(0x144)]);return _0x59cb06['join']('\x0a');}function o(_0x14b6c0){return s(_0x14b6c0);}function _0xea77(_0x497e40,_0x5e2986){_0x497e40=_0x497e40-0x116;const _0x3fab83=_0x3fab();let _0xea77fe=_0x3fab83[_0x497e40];return _0xea77fe;}function s(_0x107c95){const _0x2ac385=_0xea77;if(_0x107c95[_0x2ac385(0x12c)]()===_0x2ac385(0x136))return;if(_0x107c95[_0x2ac385(0x12c)]()==='')throw new r(_0x2ac385(0x12b));let _0x89a1a8=[];for(let _0x3ff83b of _0x107c95[_0x2ac385(0x126)](',')){let _0x50bd4a=_0x3ff83b[_0x2ac385(0x12c)]();if(_0x50bd4a==='')throw new r(_0x2ac385(0x13d));let _0x2bb914=/^(\d+)(?:-(\d+))?$/[_0x2ac385(0x135)](_0x50bd4a);if(_0x2bb914===null){_0x89a1a8['push'](_0x50bd4a);continue;}let _0xcc430b=Number(_0x2bb914[0x1]),_0x18040c=Number(_0x2bb914[0x2]??_0x2bb914[0x1]);if(_0xcc430b<0x1||_0x18040c<_0xcc430b)throw new r(_0x2ac385(0x125)+_0x50bd4a);if(_0x89a1a8[_0x2ac385(0x128)]+_0x18040c-_0xcc430b+0x1>n)throw new r(_0x2ac385(0x13a));for(let _0x488c22=_0xcc430b;_0x488c22<=_0x18040c;_0x488c22+=0x1)_0x89a1a8[_0x2ac385(0x118)](_0x488c22);}return _0x89a1a8;}function c(_0x1229d4){const _0x31be68=_0xea77;return _0x1229d4 instanceof Error&&typeof _0x1229d4[_0x31be68(0x138)]==_0x31be68(0x12f);}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.3.
|
|
4
|
+
"version": "1.3.1",
|
|
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.3.
|
|
21
|
+
"@univer-cli/unit-layout-lint": "1.3.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|