@univer-cli/doc-typst-facade-command 1.6.1 → 1.6.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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3fb4eb,_0x45a851){const _0xe44202=_0x54a1,_0x5541d7=_0x3fb4eb();while(!![]){try{const _0x207d8f=parseInt(_0xe44202(0xec))/0x1+-parseInt(_0xe44202(0xf7))/0x2+-parseInt(_0xe44202(0x110))/0x3+-parseInt(_0xe44202(0x100))/0x4*(-parseInt(_0xe44202(0x107))/0x5)+-parseInt(_0xe44202(0xfe))/0x6+parseInt(_0xe44202(0xf3))/0x7*(parseInt(_0xe44202(0xf0))/0x8)+parseInt(_0xe44202(0x10b))/0x9;if(_0x207d8f===_0x45a851)break;else _0x5541d7['push'](_0x5541d7['shift']());}catch(_0x1b88f7){_0x5541d7['push'](_0x5541d7['shift']());}}}(_0x5efa,0x7ff59));import{mkdir as _0x121d2b,writeFile as _0x33e23d}from'node:fs/promises';import{dirname as _0x2bd214,resolve as _0x435e82}from'node:path';function _0x5efa(){const _0x4706da=['20qKCmYd','json','diagnosticsOut','string','previews','utf8','write\x20the\x20generated\x20JavaScript\x20program','227065eOnaDY','title','compile','diagnostics','14494482QYNSny','option','--out\x20<file>','message','targetUnitId','1772871ojLBok','\x20diagnostics)\x0a','configureOutput','641543RAYorN','length','compile-typst.failed','stringify','8HSyNSi','error','write\x20the\x20structured\x20compile\x20result\x20as\x20JSON','371119CDOSXf','action','--diagnostics-out\x20<file>','Compiled\x20','1683208xFWxaT','--preview-dir\x20<directory>','Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program','<bundle>','previewDir','writeOut','argument','3452646ulQBto','--json'];_0x5efa=function(){return _0x4706da;};return _0x5efa();}import{compileDocTypstBundle as _0x428310,isDocTypstFacadeError as _0x19922b}from'@univer-cli/doc-typst-facade';import{Command as _0x4ed2d6}from'commander';function s(_0x1bb7f7={}){const _0x5d1026=_0x54a1;let _0x2b7305=_0x1bb7f7[_0x5d1026(0x109)]??_0x428310,_0x21bd28=new _0x4ed2d6('compile-typst')['description'](_0x5d1026(0xf9))[_0x5d1026(0xfd)](_0x5d1026(0xfa),'bundle\x20directory\x20or\x20typst.json\x20path')['requiredOption'](_0x5d1026(0x10d),_0x5d1026(0x106))['option'](_0x5d1026(0xf5),'write\x20structured\x20diagnostics\x20as\x20JSON')[_0x5d1026(0x10c)](_0x5d1026(0xf8),'render\x20PNG\x20previews\x20into\x20this\x20directory')[_0x5d1026(0x10c)](_0x5d1026(0xff),_0x5d1026(0xf2))[_0x5d1026(0xf4)](async(_0x2b9a22,_0x2b92f4)=>{const _0x543998=_0x5d1026;try{let _0xaa2c05=_0x2b92f4[_0x543998(0xfb)]===void 0x0?{}:{'previewDir':_0x2b92f4[_0x543998(0xfb)]},_0x23f8fe=await _0x2b7305(_0x2b9a22,_0xaa2c05),_0x1dc848=_0x435e82(_0x2b92f4['out']);await _0x121d2b(_0x2bd214(_0x1dc848),{'recursive':!0x0}),await _0x33e23d(_0x1dc848,_0x23f8fe['javascript'],_0x543998(0x105));let _0x233a3b;_0x2b92f4[_0x543998(0x102)]!==void 0x0&&(_0x233a3b=_0x435e82(_0x2b92f4[_0x543998(0x102)]),await _0x121d2b(_0x2bd214(_0x233a3b),{'recursive':!0x0}),await _0x33e23d(_0x233a3b,JSON[_0x543998(0xef)]({'schemaVersion':0x1,'diagnostics':_0x23f8fe['diagnostics']},null,0x2)+'\x0a',_0x543998(0x105)));let _0x3121d6={'targetUnitId':_0x23f8fe[_0x543998(0x10f)],'title':_0x23f8fe[_0x543998(0x108)],'javascriptPath':_0x1dc848,..._0x233a3b===void 0x0?{}:{'diagnosticsPath':_0x233a3b},'diagnostics':_0x23f8fe['diagnostics'],'previews':_0x23f8fe[_0x543998(0x104)]};_0x21bd28[_0x543998(0xeb)]()[_0x543998(0xfc)]?.(_0x2b92f4[_0x543998(0x101)]===!0x0?JSON['stringify'](_0x3121d6,null,0x2)+'\x0a':_0x543998(0xf6)+_0x23f8fe[_0x543998(0x10f)]+'\x20to\x20'+_0x1dc848+'\x20('+String(_0x23f8fe[_0x543998(0x10a)][_0x543998(0xed)])+_0x543998(0xea));}catch(_0x18908d){throw(_0x19922b(_0x18908d)||c(_0x18908d))&&_0x21bd28[_0x543998(0xf1)](_0x18908d['code']+':\x20'+_0x18908d[_0x543998(0x10e)],{'code':_0x543998(0xee),'exitCode':0x1}),_0x18908d;}});return _0x21bd28;}function _0x54a1(_0xa7bd3c,_0x1d14be){_0xa7bd3c=_0xa7bd3c-0xea;const _0x5efa73=_0x5efa();let _0x54a1dd=_0x5efa73[_0xa7bd3c];return _0x54a1dd;}function c(_0x4f36a1){const _0x52c27d=_0x54a1;return _0x4f36a1 instanceof Error&&typeof _0x4f36a1['code']==_0x52c27d(0x103);}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.
|
|
4
|
+
"version": "1.6.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.6.
|
|
21
|
+
"@univer-cli/doc-typst-facade": "1.6.3"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|