@univer-cli/doc-typst-facade-command 1.0.1 → 1.0.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(_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(_0x3a185e,_0x296d5c){const _0x2ab6be=_0xdb10,_0x3ed1c4=_0x3a185e();while(!![]){try{const _0x376d49=-parseInt(_0x2ab6be(0x1d7))/0x1*(-parseInt(_0x2ab6be(0x1dc))/0x2)+-parseInt(_0x2ab6be(0x1df))/0x3+parseInt(_0x2ab6be(0x1db))/0x4*(-parseInt(_0x2ab6be(0x1d2))/0x5)+parseInt(_0x2ab6be(0x1d9))/0x6+-parseInt(_0x2ab6be(0x1e1))/0x7+-parseInt(_0x2ab6be(0x1e4))/0x8*(parseInt(_0x2ab6be(0x1bd))/0x9)+parseInt(_0x2ab6be(0x1d1))/0xa;if(_0x376d49===_0x296d5c)break;else _0x3ed1c4['push'](_0x3ed1c4['shift']());}catch(_0x2db59d){_0x3ed1c4['push'](_0x3ed1c4['shift']());}}}(_0x4540,0x58c6d));import{mkdir as _0x2b74f9,writeFile as _0x1a3bfe}from'node:fs/promises';import{dirname as _0xcb857a,resolve as _0x487f77}from'node:path';function _0xdb10(_0x2ff021,_0x100e17){_0x2ff021=_0x2ff021-0x1bd;const _0x454060=_0x4540();let _0xdb1023=_0x454060[_0x2ff021];return _0xdb1023;}import{compileDocTypstBundle as _0x292345,isDocTypstFacadeError as _0xb4f5ba}from'@univer-cli/doc-typst-facade';function _0x4540(){const _0x5c5615=['9566420UDRsIk','415VPybLN','\x20diagnostics)\x0a','write\x20the\x20generated\x20JavaScript\x20program','action','error','24591aqsFJn','message','764598sqJbNV','stringify','14984OZTUUJ','14ObEqPz','json','javascript','750390PIPNKc','--out\x20<file>','302190TKQVGX','title','writeOut','461384vhyFbs','compile','45CrrVvJ','write\x20structured\x20diagnostics\x20as\x20JSON','Compiled\x20','targetUnitId','description','previews','diagnosticsOut','--diagnostics-out\x20<file>','utf8','--preview-dir\x20<directory>','argument','Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program','previewDir','compile-typst','option','render\x20PNG\x20previews\x20into\x20this\x20directory','write\x20the\x20structured\x20compile\x20result\x20as\x20JSON','<bundle>','diagnostics','bundle\x20directory\x20or\x20typst.json\x20path'];_0x4540=function(){return _0x5c5615;};return _0x4540();}import{Command as _0x2cccf6}from'commander';function s(_0x3beb6c={}){const _0x44b77c=_0xdb10;let _0xe2a817=_0x3beb6c[_0x44b77c(0x1e5)]??_0x292345,_0x325e2f=new _0x2cccf6(_0x44b77c(0x1ca))[_0x44b77c(0x1c1)](_0x44b77c(0x1c8))[_0x44b77c(0x1c7)](_0x44b77c(0x1ce),_0x44b77c(0x1d0))['requiredOption'](_0x44b77c(0x1e0),_0x44b77c(0x1d4))[_0x44b77c(0x1cb)](_0x44b77c(0x1c4),_0x44b77c(0x1be))[_0x44b77c(0x1cb)](_0x44b77c(0x1c6),_0x44b77c(0x1cc))[_0x44b77c(0x1cb)]('--json',_0x44b77c(0x1cd))[_0x44b77c(0x1d5)](async(_0x51dd13,_0x55b753)=>{const _0x28108b=_0x44b77c;try{let _0x3f76d0=_0x55b753['previewDir']===void 0x0?{}:{'previewDir':_0x55b753[_0x28108b(0x1c9)]},_0x2212cf=await _0xe2a817(_0x51dd13,_0x3f76d0),_0x3b36ec=_0x487f77(_0x55b753['out']);await _0x2b74f9(_0xcb857a(_0x3b36ec),{'recursive':!0x0}),await _0x1a3bfe(_0x3b36ec,_0x2212cf[_0x28108b(0x1de)],_0x28108b(0x1c5));let _0x1d35b1;_0x55b753[_0x28108b(0x1c3)]!==void 0x0&&(_0x1d35b1=_0x487f77(_0x55b753[_0x28108b(0x1c3)]),await _0x2b74f9(_0xcb857a(_0x1d35b1),{'recursive':!0x0}),await _0x1a3bfe(_0x1d35b1,JSON[_0x28108b(0x1da)]({'schemaVersion':0x1,'diagnostics':_0x2212cf[_0x28108b(0x1cf)]},null,0x2)+'\x0a',_0x28108b(0x1c5)));let _0x46d038={'targetUnitId':_0x2212cf[_0x28108b(0x1c0)],'title':_0x2212cf[_0x28108b(0x1e2)],'javascriptPath':_0x3b36ec,..._0x1d35b1===void 0x0?{}:{'diagnosticsPath':_0x1d35b1},'diagnostics':_0x2212cf[_0x28108b(0x1cf)],'previews':_0x2212cf[_0x28108b(0x1c2)]};_0x325e2f['configureOutput']()[_0x28108b(0x1e3)]?.(_0x55b753[_0x28108b(0x1dd)]===!0x0?JSON[_0x28108b(0x1da)](_0x46d038,null,0x2)+'\x0a':_0x28108b(0x1bf)+_0x2212cf[_0x28108b(0x1c0)]+'\x20to\x20'+_0x3b36ec+'\x20('+String(_0x2212cf[_0x28108b(0x1cf)]['length'])+_0x28108b(0x1d3));}catch(_0x8c48a5){throw(_0xb4f5ba(_0x8c48a5)||c(_0x8c48a5))&&_0x325e2f[_0x28108b(0x1d6)](_0x8c48a5['code']+':\x20'+_0x8c48a5[_0x28108b(0x1d8)],{'code':'compile-typst.failed','exitCode':0x1}),_0x8c48a5;}});return _0x325e2f;}function c(_0x198257){return _0x198257 instanceof Error&&typeof _0x198257['code']=='string';}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.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/doc-typst-facade": "1.0.1"
21
+ "@univer-cli/doc-typst-facade": "1.0.2"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"