@univer-cli/doc-typst-facade-command 1.4.0 → 1.6.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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x28b86f,_0x2b76ad){const _0x3f14d3=_0x1587,_0x47e561=_0x28b86f();while(!![]){try{const _0x431153=parseInt(_0x3f14d3(0x8f))/0x1*(parseInt(_0x3f14d3(0x99))/0x2)+parseInt(_0x3f14d3(0xa6))/0x3*(parseInt(_0x3f14d3(0x9e))/0x4)+-parseInt(_0x3f14d3(0xaa))/0x5*(parseInt(_0x3f14d3(0x88))/0x6)+-parseInt(_0x3f14d3(0x9d))/0x7*(-parseInt(_0x3f14d3(0x92))/0x8)+parseInt(_0x3f14d3(0x93))/0x9*(parseInt(_0x3f14d3(0x8c))/0xa)+parseInt(_0x3f14d3(0xaf))/0xb*(parseInt(_0x3f14d3(0x96))/0xc)+-parseInt(_0x3f14d3(0xb0))/0xd;if(_0x431153===_0x2b76ad)break;else _0x47e561['push'](_0x47e561['shift']());}catch(_0x136766){_0x47e561['push'](_0x47e561['shift']());}}}(_0x1ddb,0x32777));import{mkdir as _0x28182e,writeFile as _0x2e3ea0}from'node:fs/promises';import{dirname as _0x4b6925,resolve as _0x3d4add}from'node:path';import{compileDocTypstBundle as _0x45620c,isDocTypstFacadeError as _0x121442}from'@univer-cli/doc-typst-facade';function _0x1587(_0x4c5115,_0x5e81cf){_0x4c5115=_0x4c5115-0x87;const _0x1ddb83=_0x1ddb();let _0x158773=_0x1ddb83[_0x4c5115];return _0x158773;}import{Command as _0x5c781c}from'commander';function _0x1ddb(){const _0x583117=['out','3270UKidTN','diagnosticsOut','code','96529crHfnz','render\x20PNG\x20previews\x20into\x20this\x20directory','--out\x20<file>','1165624SCMsFH','1107xFdoXz','stringify','previews','141468QymtCW','requiredOption','writeOut','2MrJNPQ','utf8','javascript','<bundle>','14ZKVIfb','967596QSFACo','argument','write\x20the\x20structured\x20compile\x20result\x20as\x20JSON','\x20diagnostics)\x0a','compile-typst','description','--preview-dir\x20<directory>','action','3SVTfVK','\x20to\x20','Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program','option','3820VyisAX','write\x20the\x20generated\x20JavaScript\x20program','message','targetUnitId','previewDir','209EvcpXv','4674527fLdfTM','json','2574FHAfLG','bundle\x20directory\x20or\x20typst.json\x20path','diagnostics'];_0x1ddb=function(){return _0x583117;};return _0x1ddb();}function s(_0x498291={}){const _0x97a59e=_0x1587;let _0x3027c1=_0x498291['compile']??_0x45620c,_0x5d79cd=new _0x5c781c(_0x97a59e(0xa2))[_0x97a59e(0xa3)](_0x97a59e(0xa8))[_0x97a59e(0x9f)](_0x97a59e(0x9c),_0x97a59e(0x89))[_0x97a59e(0x97)](_0x97a59e(0x91),_0x97a59e(0xab))['option']('--diagnostics-out\x20<file>','write\x20structured\x20diagnostics\x20as\x20JSON')[_0x97a59e(0xa9)](_0x97a59e(0xa4),_0x97a59e(0x90))[_0x97a59e(0xa9)]('--json',_0x97a59e(0xa0))[_0x97a59e(0xa5)](async(_0x3de4f7,_0x30e07d)=>{const _0x2ce6d8=_0x97a59e;try{let _0xe8e8d9=_0x30e07d[_0x2ce6d8(0xae)]===void 0x0?{}:{'previewDir':_0x30e07d['previewDir']},_0x12dc2b=await _0x3027c1(_0x3de4f7,_0xe8e8d9),_0x13e66d=_0x3d4add(_0x30e07d[_0x2ce6d8(0x8b)]);await _0x28182e(_0x4b6925(_0x13e66d),{'recursive':!0x0}),await _0x2e3ea0(_0x13e66d,_0x12dc2b[_0x2ce6d8(0x9b)],_0x2ce6d8(0x9a));let _0x51cfa5;_0x30e07d[_0x2ce6d8(0x8d)]!==void 0x0&&(_0x51cfa5=_0x3d4add(_0x30e07d[_0x2ce6d8(0x8d)]),await _0x28182e(_0x4b6925(_0x51cfa5),{'recursive':!0x0}),await _0x2e3ea0(_0x51cfa5,JSON[_0x2ce6d8(0x94)]({'schemaVersion':0x1,'diagnostics':_0x12dc2b[_0x2ce6d8(0x8a)]},null,0x2)+'\x0a','utf8'));let _0x117e86={'targetUnitId':_0x12dc2b[_0x2ce6d8(0xad)],'title':_0x12dc2b['title'],'javascriptPath':_0x13e66d,..._0x51cfa5===void 0x0?{}:{'diagnosticsPath':_0x51cfa5},'diagnostics':_0x12dc2b[_0x2ce6d8(0x8a)],'previews':_0x12dc2b[_0x2ce6d8(0x95)]};_0x5d79cd['configureOutput']()[_0x2ce6d8(0x98)]?.(_0x30e07d[_0x2ce6d8(0x87)]===!0x0?JSON[_0x2ce6d8(0x94)](_0x117e86,null,0x2)+'\x0a':'Compiled\x20'+_0x12dc2b['targetUnitId']+_0x2ce6d8(0xa7)+_0x13e66d+'\x20('+String(_0x12dc2b[_0x2ce6d8(0x8a)]['length'])+_0x2ce6d8(0xa1));}catch(_0x3e825a){throw(_0x121442(_0x3e825a)||c(_0x3e825a))&&_0x5d79cd['error'](_0x3e825a[_0x2ce6d8(0x8e)]+':\x20'+_0x3e825a[_0x2ce6d8(0xac)],{'code':'compile-typst.failed','exitCode':0x1}),_0x3e825a;}});return _0x5d79cd;}function c(_0x23ed20){const _0x402b9a=_0x1587;return _0x23ed20 instanceof Error&&typeof _0x23ed20[_0x402b9a(0x8e)]=='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.
|
|
4
|
+
"version": "1.6.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.
|
|
21
|
+
"@univer-cli/doc-typst-facade": "1.6.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|