@univer-cli/doc-typst-facade-command 1.3.1 → 1.4.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(_0x21d0da,_0x28b63f){const _0x3b9f08=_0x52a5,_0x3f3a7e=_0x21d0da();while(!![]){try{const _0x1e37be=parseInt(_0x3b9f08(0x1d9))/0x1+-parseInt(_0x3b9f08(0x1cc))/0x2+-parseInt(_0x3b9f08(0x1ed))/0x3*(parseInt(_0x3b9f08(0x1ee))/0x4)+-parseInt(_0x3b9f08(0x1eb))/0x5*(-parseInt(_0x3b9f08(0x1df))/0x6)+parseInt(_0x3b9f08(0x1de))/0x7*(-parseInt(_0x3b9f08(0x1d1))/0x8)+-parseInt(_0x3b9f08(0x1ec))/0x9*(parseInt(_0x3b9f08(0x1e7))/0xa)+parseInt(_0x3b9f08(0x1e4))/0xb*(parseInt(_0x3b9f08(0x1cf))/0xc);if(_0x1e37be===_0x28b63f)break;else _0x3f3a7e['push'](_0x3f3a7e['shift']());}catch(_0x2ef86b){_0x3f3a7e['push'](_0x3f3a7e['shift']());}}}(_0x391d,0x4a871));import{mkdir as _0x3509cb,writeFile as _0x45b500}from'node:fs/promises';import{dirname as _0x3e6243,resolve as _0x136b77}from'node:path';import{compileDocTypstBundle as _0x1d1c7a,isDocTypstFacadeError as _0x3c6fd1}from'@univer-cli/doc-typst-facade';function _0x391d(){const _0x2e205a=['write\x20the\x20generated\x20JavaScript\x20program','6130bXtGHu','write\x20structured\x20diagnostics\x20as\x20JSON','json','Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program','5SflxuL','2565eypOto','3FOqHBu','2089904jAxvcF','stringify','action','error','previews','--preview-dir\x20<directory>','--json','compile-typst','previewDir','--diagnostics-out\x20<file>','write\x20the\x20structured\x20compile\x20result\x20as\x20JSON','499166trnWJW','javascript','bundle\x20directory\x20or\x20typst.json\x20path','56856jLzFiL','requiredOption','64BhmAgQ','description','--out\x20<file>','\x20diagnostics)\x0a','message','compile-typst.failed','writeOut','configureOutput','58372MdCtOA','utf8','argument','string','code','479920VDxhtI','1469574PpJyFg','targetUnitId','diagnosticsOut','option','out','3476lorhln','diagnostics'];_0x391d=function(){return _0x2e205a;};return _0x391d();}import{Command as _0x206cfa}from'commander';function s(_0x490c2a={}){const _0x59b3de=_0x52a5;let _0x325677=_0x490c2a['compile']??_0x1d1c7a,_0x45d8f5=new _0x206cfa(_0x59b3de(0x1c8))[_0x59b3de(0x1d2)](_0x59b3de(0x1ea))[_0x59b3de(0x1db)]('<bundle>',_0x59b3de(0x1ce))[_0x59b3de(0x1d0)](_0x59b3de(0x1d3),_0x59b3de(0x1e6))[_0x59b3de(0x1e2)](_0x59b3de(0x1ca),_0x59b3de(0x1e8))[_0x59b3de(0x1e2)](_0x59b3de(0x1c6),'render\x20PNG\x20previews\x20into\x20this\x20directory')['option'](_0x59b3de(0x1c7),_0x59b3de(0x1cb))[_0x59b3de(0x1f0)](async(_0x44ea60,_0x554b9c)=>{const _0x5e6fa9=_0x59b3de;try{let _0x53d940=_0x554b9c['previewDir']===void 0x0?{}:{'previewDir':_0x554b9c[_0x5e6fa9(0x1c9)]},_0x5cfafe=await _0x325677(_0x44ea60,_0x53d940),_0x57479c=_0x136b77(_0x554b9c[_0x5e6fa9(0x1e3)]);await _0x3509cb(_0x3e6243(_0x57479c),{'recursive':!0x0}),await _0x45b500(_0x57479c,_0x5cfafe[_0x5e6fa9(0x1cd)],_0x5e6fa9(0x1da));let _0xfa15eb;_0x554b9c[_0x5e6fa9(0x1e1)]!==void 0x0&&(_0xfa15eb=_0x136b77(_0x554b9c[_0x5e6fa9(0x1e1)]),await _0x3509cb(_0x3e6243(_0xfa15eb),{'recursive':!0x0}),await _0x45b500(_0xfa15eb,JSON[_0x5e6fa9(0x1ef)]({'schemaVersion':0x1,'diagnostics':_0x5cfafe[_0x5e6fa9(0x1e5)]},null,0x2)+'\x0a',_0x5e6fa9(0x1da)));let _0x413de7={'targetUnitId':_0x5cfafe['targetUnitId'],'title':_0x5cfafe['title'],'javascriptPath':_0x57479c,..._0xfa15eb===void 0x0?{}:{'diagnosticsPath':_0xfa15eb},'diagnostics':_0x5cfafe[_0x5e6fa9(0x1e5)],'previews':_0x5cfafe[_0x5e6fa9(0x1c5)]};_0x45d8f5[_0x5e6fa9(0x1d8)]()[_0x5e6fa9(0x1d7)]?.(_0x554b9c[_0x5e6fa9(0x1e9)]===!0x0?JSON[_0x5e6fa9(0x1ef)](_0x413de7,null,0x2)+'\x0a':'Compiled\x20'+_0x5cfafe[_0x5e6fa9(0x1e0)]+'\x20to\x20'+_0x57479c+'\x20('+String(_0x5cfafe[_0x5e6fa9(0x1e5)]['length'])+_0x5e6fa9(0x1d4));}catch(_0x477214){throw(_0x3c6fd1(_0x477214)||c(_0x477214))&&_0x45d8f5[_0x5e6fa9(0x1c4)](_0x477214[_0x5e6fa9(0x1dd)]+':\x20'+_0x477214[_0x5e6fa9(0x1d5)],{'code':_0x5e6fa9(0x1d6),'exitCode':0x1}),_0x477214;}});return _0x45d8f5;}function c(_0xf6f7e6){const _0x1972df=_0x52a5;return _0xf6f7e6 instanceof Error&&typeof _0xf6f7e6[_0x1972df(0x1dd)]==_0x1972df(0x1dc);}function _0x52a5(_0x168e78,_0x477fc7){_0x168e78=_0x168e78-0x1c4;const _0x391d41=_0x391d();let _0x52a59c=_0x391d41[_0x168e78];return _0x52a59c;}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.4.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.4.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|