@univer-cli/doc-typst-facade-command 1.1.0 → 1.2.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(_0x226f27,_0x5678ff){const _0x3f5557=_0x5510,_0x1c6f2a=_0x226f27();while(!![]){try{const _0x5b44b6=parseInt(_0x3f5557(0x1a4))/0x1*(parseInt(_0x3f5557(0x19a))/0x2)+-parseInt(_0x3f5557(0x1a2))/0x3+-parseInt(_0x3f5557(0x19f))/0x4+parseInt(_0x3f5557(0x18c))/0x5+-parseInt(_0x3f5557(0x1a8))/0x6+-parseInt(_0x3f5557(0x1ac))/0x7*(-parseInt(_0x3f5557(0x190))/0x8)+parseInt(_0x3f5557(0x1b0))/0x9;if(_0x5b44b6===_0x5678ff)break;else _0x1c6f2a['push'](_0x1c6f2a['shift']());}catch(_0x5e17ee){_0x1c6f2a['push'](_0x1c6f2a['shift']());}}}(_0x4759,0x2e945));function _0x5510(_0x8d8f75,_0x334ce0){_0x8d8f75=_0x8d8f75-0x186;const _0x47595d=_0x4759();let _0x551056=_0x47595d[_0x8d8f75];return _0x551056;}import{mkdir as _0x160b53,writeFile as _0x4c499f}from'node:fs/promises';import{dirname as _0x31fc29,resolve as _0x5d68f0}from'node:path';import{compileDocTypstBundle as _0x26a1f6,isDocTypstFacadeError as _0x595cf1}from'@univer-cli/doc-typst-facade';function _0x4759(){const _0x13196b=['write\x20the\x20generated\x20JavaScript\x20program','727470oLMIsH','diagnostics','\x20diagnostics)\x0a','out','8ddEaDQ','configureOutput','action','compile','bundle\x20directory\x20or\x20typst.json\x20path','compile-typst','option','--json','<bundle>','--diagnostics-out\x20<file>','33758TixZAj','length','javascript','utf8','Compiled\x20','827724CxoGwl','title','argument','216249aLjBbZ','code','9KoWpCg','write\x20the\x20structured\x20compile\x20result\x20as\x20JSON','write\x20structured\x20diagnostics\x20as\x20JSON','targetUnitId','858570TxMsAd','previewDir','json','message','1459528TDLxbN','writeOut','--out\x20<file>','string','962901gnBsyJ','Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program','description','requiredOption','render\x20PNG\x20previews\x20into\x20this\x20directory','diagnosticsOut','stringify'];_0x4759=function(){return _0x13196b;};return _0x4759();}import{Command as _0x32798c}from'commander';function s(_0x45ac5e={}){const _0x51075e=_0x5510;let _0x37087c=_0x45ac5e[_0x51075e(0x193)]??_0x26a1f6,_0x44f42f=new _0x32798c(_0x51075e(0x195))[_0x51075e(0x186)](_0x51075e(0x1b1))[_0x51075e(0x1a1)](_0x51075e(0x198),_0x51075e(0x194))[_0x51075e(0x187)](_0x51075e(0x1ae),_0x51075e(0x18b))[_0x51075e(0x196)](_0x51075e(0x199),_0x51075e(0x1a6))[_0x51075e(0x196)]('--preview-dir\x20<directory>',_0x51075e(0x188))[_0x51075e(0x196)](_0x51075e(0x197),_0x51075e(0x1a5))[_0x51075e(0x192)](async(_0x51eaec,_0x2dd6b0)=>{const _0x4c5c7f=_0x51075e;try{let _0x1863a3=_0x2dd6b0[_0x4c5c7f(0x1a9)]===void 0x0?{}:{'previewDir':_0x2dd6b0[_0x4c5c7f(0x1a9)]},_0x3c272f=await _0x37087c(_0x51eaec,_0x1863a3),_0x209932=_0x5d68f0(_0x2dd6b0[_0x4c5c7f(0x18f)]);await _0x160b53(_0x31fc29(_0x209932),{'recursive':!0x0}),await _0x4c499f(_0x209932,_0x3c272f[_0x4c5c7f(0x19c)],'utf8');let _0xdb9f80;_0x2dd6b0['diagnosticsOut']!==void 0x0&&(_0xdb9f80=_0x5d68f0(_0x2dd6b0[_0x4c5c7f(0x189)]),await _0x160b53(_0x31fc29(_0xdb9f80),{'recursive':!0x0}),await _0x4c499f(_0xdb9f80,JSON[_0x4c5c7f(0x18a)]({'schemaVersion':0x1,'diagnostics':_0x3c272f[_0x4c5c7f(0x18d)]},null,0x2)+'\x0a',_0x4c5c7f(0x19d)));let _0x260d6f={'targetUnitId':_0x3c272f[_0x4c5c7f(0x1a7)],'title':_0x3c272f[_0x4c5c7f(0x1a0)],'javascriptPath':_0x209932,..._0xdb9f80===void 0x0?{}:{'diagnosticsPath':_0xdb9f80},'diagnostics':_0x3c272f[_0x4c5c7f(0x18d)],'previews':_0x3c272f['previews']};_0x44f42f[_0x4c5c7f(0x191)]()[_0x4c5c7f(0x1ad)]?.(_0x2dd6b0[_0x4c5c7f(0x1aa)]===!0x0?JSON[_0x4c5c7f(0x18a)](_0x260d6f,null,0x2)+'\x0a':_0x4c5c7f(0x19e)+_0x3c272f[_0x4c5c7f(0x1a7)]+'\x20to\x20'+_0x209932+'\x20('+String(_0x3c272f['diagnostics'][_0x4c5c7f(0x19b)])+_0x4c5c7f(0x18e));}catch(_0x5e745e){throw(_0x595cf1(_0x5e745e)||c(_0x5e745e))&&_0x44f42f['error'](_0x5e745e[_0x4c5c7f(0x1a3)]+':\x20'+_0x5e745e[_0x4c5c7f(0x1ab)],{'code':'compile-typst.failed','exitCode':0x1}),_0x5e745e;}});return _0x44f42f;}function c(_0xc04356){const _0x325070=_0x5510;return _0xc04356 instanceof Error&&typeof _0xc04356['code']==_0x325070(0x1af);}export{s as createCompileTypstCommand};
1
+ (function(_0x2c10d7,_0x5ce730){const _0x5859d3=_0x4670,_0x2caf69=_0x2c10d7();while(!![]){try{const _0xc7df4d=parseInt(_0x5859d3(0x206))/0x1*(parseInt(_0x5859d3(0x1ff))/0x2)+-parseInt(_0x5859d3(0x1fe))/0x3+parseInt(_0x5859d3(0x1fa))/0x4*(-parseInt(_0x5859d3(0x1f6))/0x5)+-parseInt(_0x5859d3(0x1df))/0x6+-parseInt(_0x5859d3(0x1f8))/0x7+-parseInt(_0x5859d3(0x207))/0x8*(-parseInt(_0x5859d3(0x202))/0x9)+parseInt(_0x5859d3(0x208))/0xa*(parseInt(_0x5859d3(0x1e3))/0xb);if(_0xc7df4d===_0x5ce730)break;else _0x2caf69['push'](_0x2caf69['shift']());}catch(_0x30a2a0){_0x2caf69['push'](_0x2caf69['shift']());}}}(_0x43da,0xc033e));import{mkdir as _0x32a0bb,writeFile as _0x19608e}from'node:fs/promises';import{dirname as _0x37ff55,resolve as _0x3a99c0}from'node:path';import{compileDocTypstBundle as _0x131303,isDocTypstFacadeError as _0x3e2a67}from'@univer-cli/doc-typst-facade';import{Command as _0x5c6aa5}from'commander';function _0x43da(){const _0x3af9b0=['stringify','2229000sMAHWO','37602BpQtSD','--diagnostics-out\x20<file>','--json','12697362hUhSLZ','string','compile-typst','\x20to\x20','45yuacTy','8WAQDCQ','500rYyFXR','diagnostics','previews','diagnosticsOut','render\x20PNG\x20previews\x20into\x20this\x20directory','configureOutput','Compiled\x20','requiredOption','9014652dHuWIs','json','previewDir','message','488884lDabTV','write\x20the\x20structured\x20compile\x20result\x20as\x20JSON','\x20diagnostics)\x0a','--out\x20<file>','compile','Compile\x20a\x20Typst\x20bundle\x20to\x20a\x20target-neutral\x20Univer\x20Facade\x20program','error','option','code','utf8','length','writeOut','action','argument','compile-typst.failed','javascript','<bundle>','write\x20the\x20generated\x20JavaScript\x20program','bundle\x20directory\x20or\x20typst.json\x20path','8795EcFsZF','--preview-dir\x20<directory>','6344422wlvoup','title','1228QfHpYt','targetUnitId','out'];_0x43da=function(){return _0x3af9b0;};return _0x43da();}function s(_0x89fc6a={}){const _0x3c3a38=_0x4670;let _0x46cc2f=_0x89fc6a[_0x3c3a38(0x1e7)]??_0x131303,_0x201aa1=new _0x5c6aa5(_0x3c3a38(0x204))['description'](_0x3c3a38(0x1e8))[_0x3c3a38(0x1f0)](_0x3c3a38(0x1f3),_0x3c3a38(0x1f5))[_0x3c3a38(0x1de)](_0x3c3a38(0x1e6),_0x3c3a38(0x1f4))[_0x3c3a38(0x1ea)](_0x3c3a38(0x200),'write\x20structured\x20diagnostics\x20as\x20JSON')[_0x3c3a38(0x1ea)](_0x3c3a38(0x1f7),_0x3c3a38(0x20c))['option'](_0x3c3a38(0x201),_0x3c3a38(0x1e4))[_0x3c3a38(0x1ef)](async(_0x175c2b,_0x4a51a8)=>{const _0x12d73c=_0x3c3a38;try{let _0xce8f8d=_0x4a51a8[_0x12d73c(0x1e1)]===void 0x0?{}:{'previewDir':_0x4a51a8[_0x12d73c(0x1e1)]},_0x1e4215=await _0x46cc2f(_0x175c2b,_0xce8f8d),_0x1d119f=_0x3a99c0(_0x4a51a8[_0x12d73c(0x1fc)]);await _0x32a0bb(_0x37ff55(_0x1d119f),{'recursive':!0x0}),await _0x19608e(_0x1d119f,_0x1e4215[_0x12d73c(0x1f2)],_0x12d73c(0x1ec));let _0x21c963;_0x4a51a8[_0x12d73c(0x20b)]!==void 0x0&&(_0x21c963=_0x3a99c0(_0x4a51a8[_0x12d73c(0x20b)]),await _0x32a0bb(_0x37ff55(_0x21c963),{'recursive':!0x0}),await _0x19608e(_0x21c963,JSON[_0x12d73c(0x1fd)]({'schemaVersion':0x1,'diagnostics':_0x1e4215[_0x12d73c(0x209)]},null,0x2)+'\x0a',_0x12d73c(0x1ec)));let _0x2832f1={'targetUnitId':_0x1e4215[_0x12d73c(0x1fb)],'title':_0x1e4215[_0x12d73c(0x1f9)],'javascriptPath':_0x1d119f,..._0x21c963===void 0x0?{}:{'diagnosticsPath':_0x21c963},'diagnostics':_0x1e4215[_0x12d73c(0x209)],'previews':_0x1e4215[_0x12d73c(0x20a)]};_0x201aa1[_0x12d73c(0x20d)]()[_0x12d73c(0x1ee)]?.(_0x4a51a8[_0x12d73c(0x1e0)]===!0x0?JSON[_0x12d73c(0x1fd)](_0x2832f1,null,0x2)+'\x0a':_0x12d73c(0x1dd)+_0x1e4215[_0x12d73c(0x1fb)]+_0x12d73c(0x205)+_0x1d119f+'\x20('+String(_0x1e4215[_0x12d73c(0x209)][_0x12d73c(0x1ed)])+_0x12d73c(0x1e5));}catch(_0x5c0b5c){throw(_0x3e2a67(_0x5c0b5c)||c(_0x5c0b5c))&&_0x201aa1[_0x12d73c(0x1e9)](_0x5c0b5c[_0x12d73c(0x1eb)]+':\x20'+_0x5c0b5c[_0x12d73c(0x1e2)],{'code':_0x12d73c(0x1f1),'exitCode':0x1}),_0x5c0b5c;}});return _0x201aa1;}function c(_0x567ee4){const _0x56dbe3=_0x4670;return _0x567ee4 instanceof Error&&typeof _0x567ee4['code']==_0x56dbe3(0x203);}function _0x4670(_0x5680c5,_0x5db618){_0x5680c5=_0x5680c5-0x1dd;const _0x43dac3=_0x43da();let _0x46709a=_0x43dac3[_0x5680c5];return _0x46709a;}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.1.0",
4
+ "version": "1.2.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.1.0"
21
+ "@univer-cli/doc-typst-facade": "1.2.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"