@univer-cli/doc-typst-facade-command 1.0.0-rc.0 → 1.0.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.
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(_0x21f616,_0x45775b){const _0x25b5e0=_0x52cd,_0x31244f=_0x21f616();while(!![]){try{const _0xf4e9bf=parseInt(_0x25b5e0(0x118))/0x1+parseInt(_0x25b5e0(0x10a))/0x2+parseInt(_0x25b5e0(0x12b))/0x3*(parseInt(_0x25b5e0(0x122))/0x4)+parseInt(_0x25b5e0(0x112))/0x5*(parseInt(_0x25b5e0(0x119))/0x6)+parseInt(_0x25b5e0(0x130))/0x7+parseInt(_0x25b5e0(0x10f))/0x8+-parseInt(_0x25b5e0(0x11b))/0x9*(parseInt(_0x25b5e0(0x110))/0xa);if(_0xf4e9bf===_0x45775b)break;else _0x31244f['push'](_0x31244f['shift']());}catch(_0x294672){_0x31244f['push'](_0x31244f['shift']());}}}(_0xfb3f,0x92ff6));function _0x52cd(_0x4a6c62,_0x5d65a1){_0x4a6c62=_0x4a6c62-0x109;const _0xfb3ff9=_0xfb3f();let _0x52cd71=_0xfb3ff9[_0x4a6c62];return _0x52cd71;}import{mkdir as _0x4c219d,writeFile as _0x5de9ac}from'node:fs/promises';function _0xfb3f(){const _0x2b94b9=['diagnostics','length','bundle\x20directory\x20or\x20typst.json\x20path','--out\x20<file>','5842552xmpGAU','650ZoLrOY','option','65Xyjenv','targetUnitId','--json','write\x20the\x20generated\x20JavaScript\x20program','error','Compiled\x20','650939TpnyxU','454116LGytZY','diagnosticsOut','506916XKhEux','write\x20the\x20structured\x20compile\x20result\x20as\x20JSON','title','description','action','configureOutput','Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program','12EsLIGh','--diagnostics-out\x20<file>','write\x20structured\x20diagnostics\x20as\x20JSON','message','compile-typst','javascript','writeOut','utf8','out','1063137YljgqP','previewDir','--preview-dir\x20<directory>','<bundle>','code','3567452EREPzA','\x20to\x20','requiredOption','previews','\x20diagnostics)\x0a','650426QuJSQY'];_0xfb3f=function(){return _0x2b94b9;};return _0xfb3f();}import{dirname as _0xc9bcae,resolve as _0x1a4fd9}from'node:path';import{compileDocTypstBundle as _0x178416,isDocTypstFacadeError as _0x24d3da}from'@univer-cli/doc-typst-facade';import{Command as _0x25eab8}from'commander';function s(_0x1d34e4={}){const _0x54f2b8=_0x52cd;let _0x24b599=_0x1d34e4['compile']??_0x178416,_0x49c622=new _0x25eab8(_0x54f2b8(0x126))[_0x54f2b8(0x11e)](_0x54f2b8(0x121))['argument'](_0x54f2b8(0x12e),_0x54f2b8(0x10d))[_0x54f2b8(0x132)](_0x54f2b8(0x10e),_0x54f2b8(0x115))[_0x54f2b8(0x111)](_0x54f2b8(0x123),_0x54f2b8(0x124))[_0x54f2b8(0x111)](_0x54f2b8(0x12d),'render\x20PNG\x20previews\x20into\x20this\x20directory')[_0x54f2b8(0x111)](_0x54f2b8(0x114),_0x54f2b8(0x11c))[_0x54f2b8(0x11f)](async(_0x4e5c39,_0x4c4188)=>{const _0x293931=_0x54f2b8;try{let _0x4f37b0=_0x4c4188[_0x293931(0x12c)]===void 0x0?{}:{'previewDir':_0x4c4188[_0x293931(0x12c)]},_0x563b53=await _0x24b599(_0x4e5c39,_0x4f37b0),_0x84da00=_0x1a4fd9(_0x4c4188[_0x293931(0x12a)]);await _0x4c219d(_0xc9bcae(_0x84da00),{'recursive':!0x0}),await _0x5de9ac(_0x84da00,_0x563b53[_0x293931(0x127)],_0x293931(0x129));let _0x219f1e;_0x4c4188[_0x293931(0x11a)]!==void 0x0&&(_0x219f1e=_0x1a4fd9(_0x4c4188[_0x293931(0x11a)]),await _0x4c219d(_0xc9bcae(_0x219f1e),{'recursive':!0x0}),await _0x5de9ac(_0x219f1e,JSON['stringify']({'schemaVersion':0x1,'diagnostics':_0x563b53['diagnostics']},null,0x2)+'\x0a',_0x293931(0x129)));let _0x215004={'targetUnitId':_0x563b53[_0x293931(0x113)],'title':_0x563b53[_0x293931(0x11d)],'javascriptPath':_0x84da00,..._0x219f1e===void 0x0?{}:{'diagnosticsPath':_0x219f1e},'diagnostics':_0x563b53[_0x293931(0x10b)],'previews':_0x563b53[_0x293931(0x133)]};_0x49c622[_0x293931(0x120)]()[_0x293931(0x128)]?.(_0x4c4188['json']===!0x0?JSON['stringify'](_0x215004,null,0x2)+'\x0a':_0x293931(0x117)+_0x563b53['targetUnitId']+_0x293931(0x131)+_0x84da00+'\x20('+String(_0x563b53[_0x293931(0x10b)][_0x293931(0x10c)])+_0x293931(0x109));}catch(_0x1402ab){throw(_0x24d3da(_0x1402ab)||c(_0x1402ab))&&_0x49c622[_0x293931(0x116)](_0x1402ab['code']+':\x20'+_0x1402ab[_0x293931(0x125)],{'code':'compile-typst.failed','exitCode':0x1}),_0x1402ab;}});return _0x49c622;}function c(_0x146518){const _0x2f9f0d=_0x52cd;return _0x146518 instanceof Error&&typeof _0x146518[_0x2f9f0d(0x12f)]=='string';}export{s as createCompileTypstCommand};
1
+ (function(_0x17dfd5,_0x20307b){const _0x3d69b1=_0x19a0,_0x3458e4=_0x17dfd5();while(!![]){try{const _0x24e6b1=-parseInt(_0x3d69b1(0xe2))/0x1*(parseInt(_0x3d69b1(0xd3))/0x2)+-parseInt(_0x3d69b1(0xec))/0x3+parseInt(_0x3d69b1(0xeb))/0x4+parseInt(_0x3d69b1(0xfc))/0x5+-parseInt(_0x3d69b1(0xf0))/0x6*(-parseInt(_0x3d69b1(0xf1))/0x7)+parseInt(_0x3d69b1(0xe1))/0x8*(-parseInt(_0x3d69b1(0xf7))/0x9)+parseInt(_0x3d69b1(0xf3))/0xa;if(_0x24e6b1===_0x20307b)break;else _0x3458e4['push'](_0x3458e4['shift']());}catch(_0x201445){_0x3458e4['push'](_0x3458e4['shift']());}}}(_0x4489,0xc7bd4));import{mkdir as _0x5eb45b,writeFile as _0x3318dc}from'node:fs/promises';function _0x4489(){const _0x1dbe9c=['1991133GnzFML','diagnosticsOut','write\x20structured\x20diagnostics\x20as\x20JSON','length','message','3462560rRPLjx','--json','action','242rMgwkx','title','<bundle>','\x20to\x20','stringify','write\x20the\x20generated\x20JavaScript\x20program','render\x20PNG\x20previews\x20into\x20this\x20directory','bundle\x20directory\x20or\x20typst.json\x20path','json','argument','Compiled\x20','string','previewDir','description','24IhgZfl','770muqYfT','code','utf8','compile-typst.failed','targetUnitId','error','write\x20the\x20structured\x20compile\x20result\x20as\x20JSON','out','requiredOption','2439672aDxgra','3531927wKrmlB','option','\x20diagnostics)\x0a','Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program','2460kTgCTW','6937cxFpzI','--out\x20<file>','10435820corZhE','diagnostics','compile-typst','configureOutput'];_0x4489=function(){return _0x1dbe9c;};return _0x4489();}import{dirname as _0x3f0fea,resolve as _0x36c1e9}from'node:path';import{compileDocTypstBundle as _0x8c9a91,isDocTypstFacadeError as _0x3ce5a2}from'@univer-cli/doc-typst-facade';function _0x19a0(_0x513fc2,_0xd06b2f){_0x513fc2=_0x513fc2-0xd1;const _0x4489a8=_0x4489();let _0x19a048=_0x4489a8[_0x513fc2];return _0x19a048;}import{Command as _0x3ca612}from'commander';function s(_0x50d72d={}){const _0x26b502=_0x19a0;let _0x470199=_0x50d72d['compile']??_0x8c9a91,_0x552207=new _0x3ca612(_0x26b502(0xf5))[_0x26b502(0xe0)](_0x26b502(0xef))[_0x26b502(0xdc)](_0x26b502(0xd5),_0x26b502(0xda))[_0x26b502(0xea)](_0x26b502(0xf2),_0x26b502(0xd8))['option']('--diagnostics-out\x20<file>',_0x26b502(0xf9))[_0x26b502(0xed)]('--preview-dir\x20<directory>',_0x26b502(0xd9))[_0x26b502(0xed)](_0x26b502(0xd1),_0x26b502(0xe8))[_0x26b502(0xd2)](async(_0x2ede47,_0x5605c2)=>{const _0x41ac01=_0x26b502;try{let _0x115fb9=_0x5605c2[_0x41ac01(0xdf)]===void 0x0?{}:{'previewDir':_0x5605c2[_0x41ac01(0xdf)]},_0x4e7029=await _0x470199(_0x2ede47,_0x115fb9),_0x2a2464=_0x36c1e9(_0x5605c2[_0x41ac01(0xe9)]);await _0x5eb45b(_0x3f0fea(_0x2a2464),{'recursive':!0x0}),await _0x3318dc(_0x2a2464,_0x4e7029['javascript'],_0x41ac01(0xe4));let _0x45b7cc;_0x5605c2[_0x41ac01(0xf8)]!==void 0x0&&(_0x45b7cc=_0x36c1e9(_0x5605c2[_0x41ac01(0xf8)]),await _0x5eb45b(_0x3f0fea(_0x45b7cc),{'recursive':!0x0}),await _0x3318dc(_0x45b7cc,JSON[_0x41ac01(0xd7)]({'schemaVersion':0x1,'diagnostics':_0x4e7029[_0x41ac01(0xf4)]},null,0x2)+'\x0a',_0x41ac01(0xe4)));let _0x1108fe={'targetUnitId':_0x4e7029[_0x41ac01(0xe6)],'title':_0x4e7029[_0x41ac01(0xd4)],'javascriptPath':_0x2a2464,..._0x45b7cc===void 0x0?{}:{'diagnosticsPath':_0x45b7cc},'diagnostics':_0x4e7029[_0x41ac01(0xf4)],'previews':_0x4e7029['previews']};_0x552207[_0x41ac01(0xf6)]()['writeOut']?.(_0x5605c2[_0x41ac01(0xdb)]===!0x0?JSON[_0x41ac01(0xd7)](_0x1108fe,null,0x2)+'\x0a':_0x41ac01(0xdd)+_0x4e7029[_0x41ac01(0xe6)]+_0x41ac01(0xd6)+_0x2a2464+'\x20('+String(_0x4e7029[_0x41ac01(0xf4)][_0x41ac01(0xfa)])+_0x41ac01(0xee));}catch(_0x13dace){throw(_0x3ce5a2(_0x13dace)||c(_0x13dace))&&_0x552207[_0x41ac01(0xe7)](_0x13dace[_0x41ac01(0xe3)]+':\x20'+_0x13dace[_0x41ac01(0xfb)],{'code':_0x41ac01(0xe5),'exitCode':0x1}),_0x13dace;}});return _0x552207;}function c(_0x3dfa7c){const _0x389b10=_0x19a0;return _0x3dfa7c instanceof Error&&typeof _0x3dfa7c[_0x389b10(0xe3)]==_0x389b10(0xde);}export{s as createCompileTypstCommand};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univer-cli/doc-typst-facade-command",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.0",
4
+ "version": "1.0.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/doc-typst-facade": "1.0.0-rc.0"
21
+ "@univer-cli/doc-typst-facade": "1.0.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"