@univer-cli/doc-typst-facade-command 1.0.1 → 1.0.3

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(_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};
1
+ (function(_0x4a271e,_0x4711c7){const _0x48f48f=_0xe208,_0x4bcb08=_0x4a271e();while(!![]){try{const _0xc360fd=-parseInt(_0x48f48f(0xbf))/0x1*(parseInt(_0x48f48f(0xc1))/0x2)+parseInt(_0x48f48f(0xc4))/0x3*(parseInt(_0x48f48f(0xcd))/0x4)+-parseInt(_0x48f48f(0xd0))/0x5+parseInt(_0x48f48f(0xc8))/0x6*(parseInt(_0x48f48f(0xce))/0x7)+parseInt(_0x48f48f(0xe0))/0x8+-parseInt(_0x48f48f(0xcf))/0x9+-parseInt(_0x48f48f(0xca))/0xa;if(_0xc360fd===_0x4711c7)break;else _0x4bcb08['push'](_0x4bcb08['shift']());}catch(_0x32840f){_0x4bcb08['push'](_0x4bcb08['shift']());}}}(_0x5154,0xf07b8));import{mkdir as _0x1913b7,writeFile as _0x4a0025}from'node:fs/promises';function _0x5154(){const _0x28e650=['title','--json','render\x20PNG\x20previews\x20into\x20this\x20directory','--out\x20<file>','14230624gAawUk','write\x20structured\x20diagnostics\x20as\x20JSON','requiredOption','targetUnitId','javascript','write\x20the\x20generated\x20JavaScript\x20program','bundle\x20directory\x20or\x20typst.json\x20path','diagnosticsOut','--preview-dir\x20<directory>','182635rONUlb','utf8','8uejNQQ','--diagnostics-out\x20<file>','compile','55005yvQthx','diagnostics','stringify','option','10292460JELyTP','message','14997330yKCheX','<bundle>','\x20diagnostics)\x0a','376IPtIfV','7RnFXgD','2565288CzslEh','8587035iCLHMv','json','argument','previewDir','compile-typst.failed','code','length','previews','\x20to\x20','description','string','compile-typst'];_0x5154=function(){return _0x28e650;};return _0x5154();}import{dirname as _0x2c2160,resolve as _0x4f6e8b}from'node:path';function _0xe208(_0x598949,_0x277bbd){_0x598949=_0x598949-0xb8;const _0x5154f7=_0x5154();let _0xe20849=_0x5154f7[_0x598949];return _0xe20849;}import{compileDocTypstBundle as _0x3b298a,isDocTypstFacadeError as _0x15bfe6}from'@univer-cli/doc-typst-facade';import{Command as _0x2ceb4f}from'commander';function s(_0x112edb={}){const _0x49c826=_0xe208;let _0x40f359=_0x112edb[_0x49c826(0xc3)]??_0x3b298a,_0x2c2ed5=new _0x2ceb4f(_0x49c826(0xdb))[_0x49c826(0xd9)]('Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program')[_0x49c826(0xd2)](_0x49c826(0xcb),_0x49c826(0xbc))[_0x49c826(0xb8)](_0x49c826(0xdf),_0x49c826(0xbb))[_0x49c826(0xc7)](_0x49c826(0xc2),_0x49c826(0xe1))[_0x49c826(0xc7)](_0x49c826(0xbe),_0x49c826(0xde))['option'](_0x49c826(0xdd),'write\x20the\x20structured\x20compile\x20result\x20as\x20JSON')['action'](async(_0x142c10,_0x1388fd)=>{const _0x5a3920=_0x49c826;try{let _0x129c2c=_0x1388fd['previewDir']===void 0x0?{}:{'previewDir':_0x1388fd[_0x5a3920(0xd3)]},_0x3aba5a=await _0x40f359(_0x142c10,_0x129c2c),_0xf298eb=_0x4f6e8b(_0x1388fd['out']);await _0x1913b7(_0x2c2160(_0xf298eb),{'recursive':!0x0}),await _0x4a0025(_0xf298eb,_0x3aba5a[_0x5a3920(0xba)],_0x5a3920(0xc0));let _0x3166b5;_0x1388fd[_0x5a3920(0xbd)]!==void 0x0&&(_0x3166b5=_0x4f6e8b(_0x1388fd['diagnosticsOut']),await _0x1913b7(_0x2c2160(_0x3166b5),{'recursive':!0x0}),await _0x4a0025(_0x3166b5,JSON['stringify']({'schemaVersion':0x1,'diagnostics':_0x3aba5a[_0x5a3920(0xc5)]},null,0x2)+'\x0a','utf8'));let _0xdca801={'targetUnitId':_0x3aba5a[_0x5a3920(0xb9)],'title':_0x3aba5a[_0x5a3920(0xdc)],'javascriptPath':_0xf298eb,..._0x3166b5===void 0x0?{}:{'diagnosticsPath':_0x3166b5},'diagnostics':_0x3aba5a[_0x5a3920(0xc5)],'previews':_0x3aba5a[_0x5a3920(0xd7)]};_0x2c2ed5['configureOutput']()['writeOut']?.(_0x1388fd[_0x5a3920(0xd1)]===!0x0?JSON[_0x5a3920(0xc6)](_0xdca801,null,0x2)+'\x0a':'Compiled\x20'+_0x3aba5a[_0x5a3920(0xb9)]+_0x5a3920(0xd8)+_0xf298eb+'\x20('+String(_0x3aba5a[_0x5a3920(0xc5)][_0x5a3920(0xd6)])+_0x5a3920(0xcc));}catch(_0x4ffb1b){throw(_0x15bfe6(_0x4ffb1b)||c(_0x4ffb1b))&&_0x2c2ed5['error'](_0x4ffb1b[_0x5a3920(0xd5)]+':\x20'+_0x4ffb1b[_0x5a3920(0xc9)],{'code':_0x5a3920(0xd4),'exitCode':0x1}),_0x4ffb1b;}});return _0x2c2ed5;}function c(_0x207259){const _0x50261b=_0xe208;return _0x207259 instanceof Error&&typeof _0x207259[_0x50261b(0xd5)]==_0x50261b(0xda);}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.1",
4
+ "version": "1.0.3",
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.1"
21
+ "@univer-cli/doc-typst-facade": "1.0.3"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"