@univer-cli/doc-typst-facade-command 1.6.2 → 1.7.0-alpha.0

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(_0x3e1fdf,_0x4dcb0a){const _0x2cf975=_0x4b48,_0x2b2df7=_0x3e1fdf();while(!![]){try{const _0x2336ba=parseInt(_0x2cf975(0x89))/0x1+-parseInt(_0x2cf975(0x9c))/0x2*(-parseInt(_0x2cf975(0x9e))/0x3)+parseInt(_0x2cf975(0x9b))/0x4+-parseInt(_0x2cf975(0x79))/0x5+parseInt(_0x2cf975(0x8f))/0x6*(parseInt(_0x2cf975(0x7f))/0x7)+parseInt(_0x2cf975(0x82))/0x8*(parseInt(_0x2cf975(0x87))/0x9)+-parseInt(_0x2cf975(0x93))/0xa*(parseInt(_0x2cf975(0x86))/0xb);if(_0x2336ba===_0x4dcb0a)break;else _0x2b2df7['push'](_0x2b2df7['shift']());}catch(_0x39aff0){_0x2b2df7['push'](_0x2b2df7['shift']());}}}(_0x429a,0xe54b4));import{mkdir as _0x44497c,writeFile as _0x118270}from'node:fs/promises';import{dirname as _0x522db9,resolve as _0x5a6278}from'node:path';import{compileDocTypstBundle as _0xa312f1,isDocTypstFacadeError as _0x498e15}from'@univer-cli/doc-typst-facade';function _0x429a(){const _0x40af34=['javascript','length','9202820LAEjlQ','string','render\x20PNG\x20previews\x20into\x20this\x20directory','write\x20structured\x20diagnostics\x20as\x20JSON','write\x20the\x20generated\x20JavaScript\x20program','\x20to\x20','353479zpbcHA','compile-typst.failed','json','2499848QFVYFB','write\x20the\x20structured\x20compile\x20result\x20as\x20JSON','utf8','previewDir','22JdABNu','9MwHIUu','--out\x20<file>','1573413Tfuqvp','previews','option','requiredOption','error','compile-typst','174IbXtIF','message','diagnostics','\x20diagnostics)\x0a','10419950RszwRB','action','configureOutput','diagnosticsOut','code','--preview-dir\x20<directory>','title','--diagnostics-out\x20<file>','3902288jAfGwX','2AhuOOx','targetUnitId','1613589XALmRh','bundle\x20directory\x20or\x20typst.json\x20path','--json','stringify','<bundle>'];_0x429a=function(){return _0x40af34;};return _0x429a();}function _0x4b48(_0x39cd4a,_0x5b4187){_0x39cd4a=_0x39cd4a-0x74;const _0x429a9b=_0x429a();let _0x4b4807=_0x429a9b[_0x39cd4a];return _0x4b4807;}import{Command as _0x27fe6d}from'commander';function s(_0x50e1b0={}){const _0x5433dc=_0x4b48;let _0x2d394e=_0x50e1b0['compile']??_0xa312f1,_0x4477a3=new _0x27fe6d(_0x5433dc(0x8e))['description']('Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program')['argument'](_0x5433dc(0x76),_0x5433dc(0x9f))[_0x5433dc(0x8c)](_0x5433dc(0x88),_0x5433dc(0x7d))[_0x5433dc(0x8b)](_0x5433dc(0x9a),_0x5433dc(0x7c))['option'](_0x5433dc(0x98),_0x5433dc(0x7b))[_0x5433dc(0x8b)](_0x5433dc(0x74),_0x5433dc(0x83))[_0x5433dc(0x94)](async(_0x5c2617,_0x523ae6)=>{const _0x4558ff=_0x5433dc;try{let _0x11e5cc=_0x523ae6['previewDir']===void 0x0?{}:{'previewDir':_0x523ae6[_0x4558ff(0x85)]},_0x14eb3e=await _0x2d394e(_0x5c2617,_0x11e5cc),_0x2ebd6f=_0x5a6278(_0x523ae6['out']);await _0x44497c(_0x522db9(_0x2ebd6f),{'recursive':!0x0}),await _0x118270(_0x2ebd6f,_0x14eb3e[_0x4558ff(0x77)],_0x4558ff(0x84));let _0x52b8f0;_0x523ae6[_0x4558ff(0x96)]!==void 0x0&&(_0x52b8f0=_0x5a6278(_0x523ae6['diagnosticsOut']),await _0x44497c(_0x522db9(_0x52b8f0),{'recursive':!0x0}),await _0x118270(_0x52b8f0,JSON[_0x4558ff(0x75)]({'schemaVersion':0x1,'diagnostics':_0x14eb3e[_0x4558ff(0x91)]},null,0x2)+'\x0a',_0x4558ff(0x84)));let _0x9768a6={'targetUnitId':_0x14eb3e[_0x4558ff(0x9d)],'title':_0x14eb3e[_0x4558ff(0x99)],'javascriptPath':_0x2ebd6f,..._0x52b8f0===void 0x0?{}:{'diagnosticsPath':_0x52b8f0},'diagnostics':_0x14eb3e[_0x4558ff(0x91)],'previews':_0x14eb3e[_0x4558ff(0x8a)]};_0x4477a3[_0x4558ff(0x95)]()['writeOut']?.(_0x523ae6[_0x4558ff(0x81)]===!0x0?JSON[_0x4558ff(0x75)](_0x9768a6,null,0x2)+'\x0a':'Compiled\x20'+_0x14eb3e['targetUnitId']+_0x4558ff(0x7e)+_0x2ebd6f+'\x20('+String(_0x14eb3e['diagnostics'][_0x4558ff(0x78)])+_0x4558ff(0x92));}catch(_0x579956){throw(_0x498e15(_0x579956)||c(_0x579956))&&_0x4477a3[_0x4558ff(0x8d)](_0x579956[_0x4558ff(0x97)]+':\x20'+_0x579956[_0x4558ff(0x90)],{'code':_0x4558ff(0x80),'exitCode':0x1}),_0x579956;}});return _0x4477a3;}function c(_0x521ee8){const _0x4a29ac=_0x4b48;return _0x521ee8 instanceof Error&&typeof _0x521ee8['code']==_0x4a29ac(0x7a);}export{s as createCompileTypstCommand};
1
+ (function(_0x210110,_0x1f4a32){const _0x57658d=_0x374a,_0x3d9416=_0x210110();while(!![]){try{const _0x3597ce=-parseInt(_0x57658d(0x168))/0x1*(parseInt(_0x57658d(0x158))/0x2)+-parseInt(_0x57658d(0x165))/0x3*(parseInt(_0x57658d(0x151))/0x4)+-parseInt(_0x57658d(0x15b))/0x5*(-parseInt(_0x57658d(0x150))/0x6)+parseInt(_0x57658d(0x155))/0x7+parseInt(_0x57658d(0x176))/0x8+-parseInt(_0x57658d(0x154))/0x9*(-parseInt(_0x57658d(0x157))/0xa)+-parseInt(_0x57658d(0x16c))/0xb;if(_0x3597ce===_0x1f4a32)break;else _0x3d9416['push'](_0x3d9416['shift']());}catch(_0x2a87e9){_0x3d9416['push'](_0x3d9416['shift']());}}}(_0x20b7,0x9e40d));import{mkdir as _0x363771,writeFile as _0xfcd92c}from'node:fs/promises';function _0x20b7(){const _0x2f90be=['render\x20PNG\x20previews\x20into\x20this\x20directory','configureOutput','code','option','compile-typst.failed','json','compile','1717602SFCWEQ','writeOut','--diagnostics-out\x20<file>','6778soHlSI','Compiled\x20','stringify','Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program','5086565PIJVZK','description','write\x20structured\x20diagnostics\x20as\x20JSON','\x20to\x20','<bundle>','diagnosticsOut','javascript','out','previews','\x20diagnostics)\x0a','1445576oNQxWI','targetUnitId','length','diagnostics','42aacjbi','8kDhQSA','--json','message','27URuFcp','6007281WWXuGE','string','3593220VgojSi','108McHuFY','argument','utf8','360610eFYDDW','write\x20the\x20structured\x20compile\x20result\x20as\x20JSON','--preview-dir\x20<directory>'];_0x20b7=function(){return _0x2f90be;};return _0x20b7();}import{dirname as _0x354697,resolve as _0x1fed4d}from'node:path';import{compileDocTypstBundle as _0xeceffc,isDocTypstFacadeError as _0x591b94}from'@univer-cli/doc-typst-facade';function _0x374a(_0x4f82c6,_0x22704c){_0x4f82c6=_0x4f82c6-0x14f;const _0x20b71c=_0x20b7();let _0x374aa9=_0x20b71c[_0x4f82c6];return _0x374aa9;}import{Command as _0x43b9d0}from'commander';function s(_0x22aab4={}){const _0x580e13=_0x374a;let _0x1207bf=_0x22aab4[_0x580e13(0x164)]??_0xeceffc,_0xcdeec4=new _0x43b9d0('compile-typst')[_0x580e13(0x16d)](_0x580e13(0x16b))[_0x580e13(0x159)](_0x580e13(0x170),'bundle\x20directory\x20or\x20typst.json\x20path')['requiredOption']('--out\x20<file>','write\x20the\x20generated\x20JavaScript\x20program')[_0x580e13(0x161)](_0x580e13(0x167),_0x580e13(0x16e))[_0x580e13(0x161)](_0x580e13(0x15d),_0x580e13(0x15e))['option'](_0x580e13(0x152),_0x580e13(0x15c))['action'](async(_0x2c0cce,_0x9dd18b)=>{const _0x33f2a2=_0x580e13;try{let _0x8206ca=_0x9dd18b['previewDir']===void 0x0?{}:{'previewDir':_0x9dd18b['previewDir']},_0x2278a8=await _0x1207bf(_0x2c0cce,_0x8206ca),_0x43484b=_0x1fed4d(_0x9dd18b[_0x33f2a2(0x173)]);await _0x363771(_0x354697(_0x43484b),{'recursive':!0x0}),await _0xfcd92c(_0x43484b,_0x2278a8[_0x33f2a2(0x172)],_0x33f2a2(0x15a));let _0xc3bafa;_0x9dd18b[_0x33f2a2(0x171)]!==void 0x0&&(_0xc3bafa=_0x1fed4d(_0x9dd18b[_0x33f2a2(0x171)]),await _0x363771(_0x354697(_0xc3bafa),{'recursive':!0x0}),await _0xfcd92c(_0xc3bafa,JSON[_0x33f2a2(0x16a)]({'schemaVersion':0x1,'diagnostics':_0x2278a8['diagnostics']},null,0x2)+'\x0a',_0x33f2a2(0x15a)));let _0x3c7a00={'targetUnitId':_0x2278a8[_0x33f2a2(0x177)],'title':_0x2278a8['title'],'javascriptPath':_0x43484b,..._0xc3bafa===void 0x0?{}:{'diagnosticsPath':_0xc3bafa},'diagnostics':_0x2278a8[_0x33f2a2(0x14f)],'previews':_0x2278a8[_0x33f2a2(0x174)]};_0xcdeec4[_0x33f2a2(0x15f)]()[_0x33f2a2(0x166)]?.(_0x9dd18b[_0x33f2a2(0x163)]===!0x0?JSON[_0x33f2a2(0x16a)](_0x3c7a00,null,0x2)+'\x0a':_0x33f2a2(0x169)+_0x2278a8[_0x33f2a2(0x177)]+_0x33f2a2(0x16f)+_0x43484b+'\x20('+String(_0x2278a8['diagnostics'][_0x33f2a2(0x178)])+_0x33f2a2(0x175));}catch(_0x4cf823){throw(_0x591b94(_0x4cf823)||c(_0x4cf823))&&_0xcdeec4['error'](_0x4cf823[_0x33f2a2(0x160)]+':\x20'+_0x4cf823[_0x33f2a2(0x153)],{'code':_0x33f2a2(0x162),'exitCode':0x1}),_0x4cf823;}});return _0xcdeec4;}function c(_0x1828af){const _0xc0fc0c=_0x374a;return _0x1828af instanceof Error&&typeof _0x1828af[_0xc0fc0c(0x160)]==_0xc0fc0c(0x156);}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.6.2",
4
+ "version": "1.7.0-alpha.0",
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.6.2"
21
+ "@univer-cli/doc-typst-facade": "1.7.0-alpha.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"