@univer-cli/doc-typst-facade-command 1.3.1 → 1.5.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(_0x3fa3fa,_0x3a0e77){const _0x420ed7=_0x5cf6,_0xda765e=_0x3fa3fa();while(!![]){try{const _0x763bae=parseInt(_0x420ed7(0x1ef))/0x1+parseInt(_0x420ed7(0x1eb))/0x2*(parseInt(_0x420ed7(0x1ff))/0x3)+parseInt(_0x420ed7(0x204))/0x4+-parseInt(_0x420ed7(0x1f2))/0x5*(-parseInt(_0x420ed7(0x1ed))/0x6)+parseInt(_0x420ed7(0x203))/0x7*(parseInt(_0x420ed7(0x1f0))/0x8)+-parseInt(_0x420ed7(0x1fd))/0x9+-parseInt(_0x420ed7(0x20a))/0xa;if(_0x763bae===_0x3a0e77)break;else _0xda765e['push'](_0xda765e['shift']());}catch(_0x52fa39){_0xda765e['push'](_0xda765e['shift']());}}}(_0x4639,0x7f9d5));import{mkdir as _0x45ee16,writeFile as _0x4fe503}from'node:fs/promises';import{dirname as _0x97b10,resolve as _0x370043}from'node:path';import{compileDocTypstBundle as _0x2a51ac,isDocTypstFacadeError as _0x3df876}from'@univer-cli/doc-typst-facade';function _0x4639(){const _0x2b894f=['code','Compiled\x20','stringify','error','diagnostics','option','write\x20the\x20generated\x20JavaScript\x20program','previews','write\x20the\x20structured\x20compile\x20result\x20as\x20JSON','out','7797672YOzeSG','--preview-dir\x20<directory>','1400349LnyKMy','\x20to\x20','compile-typst.failed','message','371119rYXzJc','491032DSKEEc','targetUnitId','diagnosticsOut','utf8','previewDir','<bundle>','12421290lvxnli','action','\x20diagnostics)\x0a','--json','requiredOption','4BPZeSG','--diagnostics-out\x20<file>','318984gmAOAg','--out\x20<file>','1044017gyKuvC','40PxXtwH','description','25VZIGiT'];_0x4639=function(){return _0x2b894f;};return _0x4639();}import{Command as _0x4ded33}from'commander';function s(_0x441b10={}){const _0x4a5182=_0x5cf6;let _0x7fcae0=_0x441b10['compile']??_0x2a51ac,_0x40b11d=new _0x4ded33('compile-typst')[_0x4a5182(0x1f1)]('Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program')['argument'](_0x4a5182(0x209),'bundle\x20directory\x20or\x20typst.json\x20path')[_0x4a5182(0x1ea)](_0x4a5182(0x1ee),_0x4a5182(0x1f9))['option'](_0x4a5182(0x1ec),'write\x20structured\x20diagnostics\x20as\x20JSON')['option'](_0x4a5182(0x1fe),'render\x20PNG\x20previews\x20into\x20this\x20directory')[_0x4a5182(0x1f8)](_0x4a5182(0x1e9),_0x4a5182(0x1fb))[_0x4a5182(0x20b)](async(_0x1802fe,_0x3bd1ba)=>{const _0x303251=_0x4a5182;try{let _0x3e0a63=_0x3bd1ba[_0x303251(0x208)]===void 0x0?{}:{'previewDir':_0x3bd1ba['previewDir']},_0x4bf77c=await _0x7fcae0(_0x1802fe,_0x3e0a63),_0x5bdce6=_0x370043(_0x3bd1ba[_0x303251(0x1fc)]);await _0x45ee16(_0x97b10(_0x5bdce6),{'recursive':!0x0}),await _0x4fe503(_0x5bdce6,_0x4bf77c['javascript'],_0x303251(0x207));let _0x3a2c82;_0x3bd1ba[_0x303251(0x206)]!==void 0x0&&(_0x3a2c82=_0x370043(_0x3bd1ba['diagnosticsOut']),await _0x45ee16(_0x97b10(_0x3a2c82),{'recursive':!0x0}),await _0x4fe503(_0x3a2c82,JSON[_0x303251(0x1f5)]({'schemaVersion':0x1,'diagnostics':_0x4bf77c[_0x303251(0x1f7)]},null,0x2)+'\x0a',_0x303251(0x207)));let _0x11af02={'targetUnitId':_0x4bf77c[_0x303251(0x205)],'title':_0x4bf77c['title'],'javascriptPath':_0x5bdce6,..._0x3a2c82===void 0x0?{}:{'diagnosticsPath':_0x3a2c82},'diagnostics':_0x4bf77c[_0x303251(0x1f7)],'previews':_0x4bf77c[_0x303251(0x1fa)]};_0x40b11d['configureOutput']()['writeOut']?.(_0x3bd1ba['json']===!0x0?JSON[_0x303251(0x1f5)](_0x11af02,null,0x2)+'\x0a':_0x303251(0x1f4)+_0x4bf77c[_0x303251(0x205)]+_0x303251(0x200)+_0x5bdce6+'\x20('+String(_0x4bf77c[_0x303251(0x1f7)]['length'])+_0x303251(0x20c));}catch(_0x13cc83){throw(_0x3df876(_0x13cc83)||c(_0x13cc83))&&_0x40b11d[_0x303251(0x1f6)](_0x13cc83[_0x303251(0x1f3)]+':\x20'+_0x13cc83[_0x303251(0x202)],{'code':_0x303251(0x201),'exitCode':0x1}),_0x13cc83;}});return _0x40b11d;}function _0x5cf6(_0x1cddaf,_0x2ccffb){_0x1cddaf=_0x1cddaf-0x1e9;const _0x463962=_0x4639();let _0x5cf6f9=_0x463962[_0x1cddaf];return _0x5cf6f9;}function c(_0x3c0d78){const _0xd8b7be=_0x5cf6;return _0x3c0d78 instanceof Error&&typeof _0x3c0d78[_0xd8b7be(0x1f3)]=='string';}export{s as createCompileTypstCommand};
1
+ (function(_0x2d351c,_0x3eedcc){const _0x4ff58e=_0x269b,_0xca2d2d=_0x2d351c();while(!![]){try{const _0x4cf8a7=-parseInt(_0x4ff58e(0xac))/0x1+parseInt(_0x4ff58e(0xc7))/0x2+-parseInt(_0x4ff58e(0xaa))/0x3+-parseInt(_0x4ff58e(0xc4))/0x4*(parseInt(_0x4ff58e(0xb7))/0x5)+parseInt(_0x4ff58e(0xc1))/0x6+parseInt(_0x4ff58e(0xcb))/0x7*(parseInt(_0x4ff58e(0xb0))/0x8)+-parseInt(_0x4ff58e(0xca))/0x9;if(_0x4cf8a7===_0x3eedcc)break;else _0xca2d2d['push'](_0xca2d2d['shift']());}catch(_0x2e7508){_0xca2d2d['push'](_0xca2d2d['shift']());}}}(_0x3bfe,0x2983a));import{mkdir as _0x5c5406,writeFile as _0x5980e2}from'node:fs/promises';function _0x3bfe(){const _0x1b998b=['code','Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program','compile-typst.failed','out','5hCAFyN','stringify','write\x20structured\x20diagnostics\x20as\x20JSON','compile','previewDir','diagnostics','--out\x20<file>','json','diagnosticsOut','write\x20the\x20structured\x20compile\x20result\x20as\x20JSON','1492800zTLkhE','utf8','option','265084KYGcaM','writeOut','error','1936WaOhYL','\x20diagnostics)\x0a','<bundle>','813033oZCRdV','49ouBfyu','length','Compiled\x20','targetUnitId','--preview-dir\x20<directory>','description','render\x20PNG\x20previews\x20into\x20this\x20directory','bundle\x20directory\x20or\x20typst.json\x20path','compile-typst','argument','3489GIgjon','\x20to\x20','145248ttHtwv','configureOutput','javascript','message','255192fKOSEh','--diagnostics-out\x20<file>','string'];_0x3bfe=function(){return _0x1b998b;};return _0x3bfe();}import{dirname as _0x14bd75,resolve as _0x5e17bc}from'node:path';import{compileDocTypstBundle as _0x1f0673,isDocTypstFacadeError as _0x190c28}from'@univer-cli/doc-typst-facade';import{Command as _0x3b17b3}from'commander';function s(_0x552daa={}){const _0x53a24f=_0x269b;let _0x1bb21e=_0x552daa[_0x53a24f(0xba)]??_0x1f0673,_0x657a23=new _0x3b17b3(_0x53a24f(0xa8))[_0x53a24f(0xa5)](_0x53a24f(0xb4))[_0x53a24f(0xa9)](_0x53a24f(0xc9),_0x53a24f(0xa7))['requiredOption'](_0x53a24f(0xbd),'write\x20the\x20generated\x20JavaScript\x20program')[_0x53a24f(0xc3)](_0x53a24f(0xb1),_0x53a24f(0xb9))[_0x53a24f(0xc3)](_0x53a24f(0xa4),_0x53a24f(0xa6))[_0x53a24f(0xc3)]('--json',_0x53a24f(0xc0))['action'](async(_0x210726,_0x4be2e9)=>{const _0x3c1112=_0x53a24f;try{let _0x1aafed=_0x4be2e9['previewDir']===void 0x0?{}:{'previewDir':_0x4be2e9[_0x3c1112(0xbb)]},_0x746136=await _0x1bb21e(_0x210726,_0x1aafed),_0x562491=_0x5e17bc(_0x4be2e9[_0x3c1112(0xb6)]);await _0x5c5406(_0x14bd75(_0x562491),{'recursive':!0x0}),await _0x5980e2(_0x562491,_0x746136[_0x3c1112(0xae)],_0x3c1112(0xc2));let _0x742d07;_0x4be2e9[_0x3c1112(0xbf)]!==void 0x0&&(_0x742d07=_0x5e17bc(_0x4be2e9[_0x3c1112(0xbf)]),await _0x5c5406(_0x14bd75(_0x742d07),{'recursive':!0x0}),await _0x5980e2(_0x742d07,JSON[_0x3c1112(0xb8)]({'schemaVersion':0x1,'diagnostics':_0x746136[_0x3c1112(0xbc)]},null,0x2)+'\x0a',_0x3c1112(0xc2)));let _0x504993={'targetUnitId':_0x746136[_0x3c1112(0xa3)],'title':_0x746136['title'],'javascriptPath':_0x562491,..._0x742d07===void 0x0?{}:{'diagnosticsPath':_0x742d07},'diagnostics':_0x746136[_0x3c1112(0xbc)],'previews':_0x746136['previews']};_0x657a23[_0x3c1112(0xad)]()[_0x3c1112(0xc5)]?.(_0x4be2e9[_0x3c1112(0xbe)]===!0x0?JSON[_0x3c1112(0xb8)](_0x504993,null,0x2)+'\x0a':_0x3c1112(0xa2)+_0x746136['targetUnitId']+_0x3c1112(0xab)+_0x562491+'\x20('+String(_0x746136['diagnostics'][_0x3c1112(0xa1)])+_0x3c1112(0xc8));}catch(_0x3496c2){throw(_0x190c28(_0x3496c2)||c(_0x3496c2))&&_0x657a23[_0x3c1112(0xc6)](_0x3496c2[_0x3c1112(0xb3)]+':\x20'+_0x3496c2[_0x3c1112(0xaf)],{'code':_0x3c1112(0xb5),'exitCode':0x1}),_0x3496c2;}});return _0x657a23;}function c(_0x52bcb5){const _0x38732e=_0x269b;return _0x52bcb5 instanceof Error&&typeof _0x52bcb5['code']==_0x38732e(0xb2);}function _0x269b(_0x3a7957,_0x3e30b5){_0x3a7957=_0x3a7957-0xa1;const _0x3bfe1f=_0x3bfe();let _0x269b1e=_0x3bfe1f[_0x3a7957];return _0x269b1e;}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.3.1",
4
+ "version": "1.5.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.3.1"
21
+ "@univer-cli/doc-typst-facade": "1.5.2"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"