@univer-cli/unit-pdf-printer 1.0.1 → 1.0.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.
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
- const _0x47db5f=_0x150a;(function(_0x17339b,_0x2da11a){const _0x1ff986=_0x150a,_0x1d3d2d=_0x17339b();while(!![]){try{const _0x8a1eb9=-parseInt(_0x1ff986(0x142))/0x1+-parseInt(_0x1ff986(0x140))/0x2+-parseInt(_0x1ff986(0x149))/0x3*(-parseInt(_0x1ff986(0x152))/0x4)+-parseInt(_0x1ff986(0x13b))/0x5+parseInt(_0x1ff986(0x147))/0x6*(parseInt(_0x1ff986(0x14b))/0x7)+parseInt(_0x1ff986(0x141))/0x8+parseInt(_0x1ff986(0x143))/0x9;if(_0x8a1eb9===_0x2da11a)break;else _0x1d3d2d['push'](_0x1d3d2d['shift']());}catch(_0x31af3){_0x1d3d2d['push'](_0x1d3d2d['shift']());}}}(_0x398e,0xb60a1));function _0x398e(){const _0x232774=['.pdf','length','runtime','INVALID_INPUT','signal','fromCharCode','66932qGxCLb','unit','isSafeInteger','aborted','name','application/pdf','unitData','unitData.id\x20is\x20required','bytes','printPdf','\x20page\x20limit','string','3525960usLLjP','maxPages\x20must\x20be\x20a\x20positive\x20integer','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes','unitType','operation\x20aborted','627002BovELZ','5157232bQbwcV','900302plHAUv','6289479gNzAcN','trim','pageCount','code','12IEUCvl','replaceAll','195SrIFRU','reason','817243BeaAwX'];_0x398e=function(){return _0x232774;};return _0x398e();}var e=class extends Error{[_0x47db5f(0x146)];constructor(_0x5857c4,_0x144aa3){const _0x465e61=_0x47db5f;super(_0x144aa3),this[_0x465e61(0x156)]='UnitPdfPrinterError',this['code']=_0x5857c4;}};function t(_0xe259de){return _0xe259de instanceof e;}var n=0x3e8;function _0x150a(_0x3d253c,_0xa260cb){_0x3d253c=_0x3d253c-0x139;const _0x398edf=_0x398e();let _0x150a6f=_0x398edf[_0x3d253c];return _0x150a6f;}function r(_0x238119){const _0x32b449=_0x47db5f;let _0x1861ef=_0x238119['maxPages']??n;if(!Number[_0x32b449(0x154)](_0x1861ef)||_0x1861ef<0x1)throw new e('INVALID_INPUT',_0x32b449(0x13c));return{async 'print'(_0x385684){const _0x3fb091=_0x32b449;c(_0x385684[_0x3fb091(0x150)]);let _0x2e1a2b=i(_0x385684[_0x3fb091(0x158)]),_0x2b3c5b=await _0x238119[_0x3fb091(0x14e)][_0x3fb091(0x15b)](_0x385684);if(c(_0x385684['signal']),_0x2b3c5b['pageCount']>_0x1861ef)throw new e(_0x3fb091(0x14f),'print\x20produced\x20'+_0x2b3c5b[_0x3fb091(0x145)]+'\x20pages,\x20over\x20the\x20'+_0x1861ef+_0x3fb091(0x139));if(!s(_0x2b3c5b[_0x3fb091(0x15a)]))throw new e(_0x3fb091(0x14f),_0x3fb091(0x13d));return{'bytes':_0x2b3c5b['bytes'],'mediaType':_0x3fb091(0x157),'name':o(a(_0x385684[_0x3fb091(0x158)])??_0x2e1a2b)+_0x3fb091(0x14c),'pageCount':_0x2b3c5b[_0x3fb091(0x145)],'unitId':_0x2e1a2b,'unitType':_0x385684[_0x3fb091(0x13e)]};}};}function i(_0x3f3d63){const _0x51e237=_0x47db5f;if(typeof _0x3f3d63['id']!=_0x51e237(0x13a)||_0x3f3d63['id']['length']===0x0)throw new e(_0x51e237(0x14f),_0x51e237(0x159));return _0x3f3d63['id'];}function a(_0x28fcd5){const _0x478b96=_0x47db5f;let _0x16871e=_0x28fcd5[_0x478b96(0x156)];return typeof _0x16871e==_0x478b96(0x13a)&&_0x16871e['trim']()[_0x478b96(0x14d)]>0x0?_0x16871e[_0x478b96(0x144)]():void 0x0;}function o(_0x56fecc){const _0x1a8f3a=_0x47db5f;let _0x4efdea=_0x56fecc[_0x1a8f3a(0x148)](/[\\/:*?"<>|]/gu,'-')['trim']();return _0x4efdea[_0x1a8f3a(0x14d)]>0x0?_0x4efdea:_0x1a8f3a(0x153);}function s(_0x15decd){const _0xf06c43=_0x47db5f;return _0x15decd[_0xf06c43(0x14d)]>=0x5&&String[_0xf06c43(0x151)](..._0x15decd['subarray'](0x0,0x5))==='%PDF-';}function c(_0x3ac72f){const _0x5700fe=_0x47db5f;if(_0x3ac72f?.[_0x5700fe(0x155)]===!0x0)throw _0x3ac72f[_0x5700fe(0x14a)]instanceof Error?_0x3ac72f[_0x5700fe(0x14a)]:Error(_0x5700fe(0x13f));}export{e as UnitPdfPrinterError,r as createUnitPdfPrinter,t as isUnitPdfPrinterError};
1
+ const _0x36c8a1=_0x2254;(function(_0x16dac8,_0x11b9db){const _0x45a7a5=_0x2254,_0x27dd94=_0x16dac8();while(!![]){try{const _0x3ecbad=parseInt(_0x45a7a5(0x91))/0x1*(parseInt(_0x45a7a5(0x92))/0x2)+parseInt(_0x45a7a5(0x8e))/0x3+parseInt(_0x45a7a5(0x74))/0x4+parseInt(_0x45a7a5(0x8b))/0x5*(parseInt(_0x45a7a5(0x75))/0x6)+-parseInt(_0x45a7a5(0x73))/0x7*(-parseInt(_0x45a7a5(0x70))/0x8)+parseInt(_0x45a7a5(0x8a))/0x9*(parseInt(_0x45a7a5(0x93))/0xa)+-parseInt(_0x45a7a5(0x90))/0xb;if(_0x3ecbad===_0x11b9db)break;else _0x27dd94['push'](_0x27dd94['shift']());}catch(_0x4a9731){_0x27dd94['push'](_0x27dd94['shift']());}}}(_0x8eee,0xcd70b));var e=class extends Error{[_0x36c8a1(0x88)];constructor(_0x30b7be,_0x259c2f){const _0xf9b210=_0x36c8a1;super(_0x259c2f),this[_0xf9b210(0x89)]=_0xf9b210(0x78),this[_0xf9b210(0x88)]=_0x30b7be;}};function t(_0x485437){return _0x485437 instanceof e;}var n=0x3e8;function _0x8eee(){const _0x340fc9=['1270188bQDqHG','6ikCJhD','maxPages','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes','UnitPdfPrinterError','reason','unitData','print\x20produced\x20','isSafeInteger','%PDF-','bytes','application/pdf','.pdf','aborted','\x20pages,\x20over\x20the\x20','length','INVALID_INPUT','unitData.id\x20is\x20required','printPdf','maxPages\x20must\x20be\x20a\x20positive\x20integer','code','name','91323otWrwl','5124435ODWvNz','\x20page\x20limit','signal','1296597egWCto','replaceAll','36155229PzoYiX','2WYHtWd','505922ULPFOF','970QaDiui','fromCharCode','subarray','unit','string','pageCount','runtime','operation\x20aborted','15216MoQUmm','trim','unitType','3178CrwSiU'];_0x8eee=function(){return _0x340fc9;};return _0x8eee();}function _0x2254(_0x4fb6ed,_0x33414b){_0x4fb6ed=_0x4fb6ed-0x6d;const _0x8eee53=_0x8eee();let _0x22541f=_0x8eee53[_0x4fb6ed];return _0x22541f;}function r(_0x56e190){const _0x140c36=_0x36c8a1;let _0x2831c0=_0x56e190[_0x140c36(0x76)]??n;if(!Number[_0x140c36(0x7c)](_0x2831c0)||_0x2831c0<0x1)throw new e(_0x140c36(0x84),_0x140c36(0x87));return{async 'print'(_0x537a35){const _0x1f9b61=_0x140c36;c(_0x537a35[_0x1f9b61(0x8d)]);let _0x16673b=i(_0x537a35[_0x1f9b61(0x7a)]),_0x6e4d41=await _0x56e190[_0x1f9b61(0x6e)][_0x1f9b61(0x86)](_0x537a35);if(c(_0x537a35[_0x1f9b61(0x8d)]),_0x6e4d41['pageCount']>_0x2831c0)throw new e(_0x1f9b61(0x84),_0x1f9b61(0x7b)+_0x6e4d41['pageCount']+_0x1f9b61(0x82)+_0x2831c0+_0x1f9b61(0x8c));if(!s(_0x6e4d41[_0x1f9b61(0x7e)]))throw new e(_0x1f9b61(0x84),_0x1f9b61(0x77));return{'bytes':_0x6e4d41[_0x1f9b61(0x7e)],'mediaType':_0x1f9b61(0x7f),'name':o(a(_0x537a35[_0x1f9b61(0x7a)])??_0x16673b)+_0x1f9b61(0x80),'pageCount':_0x6e4d41[_0x1f9b61(0x6d)],'unitId':_0x16673b,'unitType':_0x537a35[_0x1f9b61(0x72)]};}};}function i(_0x468d17){const _0x250a1a=_0x36c8a1;if(typeof _0x468d17['id']!=_0x250a1a(0x97)||_0x468d17['id'][_0x250a1a(0x83)]===0x0)throw new e(_0x250a1a(0x84),_0x250a1a(0x85));return _0x468d17['id'];}function a(_0xc857be){const _0x43942b=_0x36c8a1;let _0x1d25f3=_0xc857be[_0x43942b(0x89)];return typeof _0x1d25f3=='string'&&_0x1d25f3[_0x43942b(0x71)]()[_0x43942b(0x83)]>0x0?_0x1d25f3[_0x43942b(0x71)]():void 0x0;}function o(_0x313612){const _0x16a530=_0x36c8a1;let _0x4447bb=_0x313612[_0x16a530(0x8f)](/[\\/:*?"<>|]/gu,'-')[_0x16a530(0x71)]();return _0x4447bb[_0x16a530(0x83)]>0x0?_0x4447bb:_0x16a530(0x96);}function s(_0x1fccbb){const _0x3f6d96=_0x36c8a1;return _0x1fccbb[_0x3f6d96(0x83)]>=0x5&&String[_0x3f6d96(0x94)](..._0x1fccbb[_0x3f6d96(0x95)](0x0,0x5))===_0x3f6d96(0x7d);}function c(_0x138307){const _0x29fe79=_0x36c8a1;if(_0x138307?.[_0x29fe79(0x81)]===!0x0)throw _0x138307[_0x29fe79(0x79)]instanceof Error?_0x138307[_0x29fe79(0x79)]:Error(_0x29fe79(0x6f));}export{e as UnitPdfPrinterError,r as createUnitPdfPrinter,t as isUnitPdfPrinterError};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@univer-cli/unit-pdf-printer",
3
3
  "description": "Print materialized Univer Units to PDF through the browser render runtime.",
4
4
  "type": "module",
5
- "version": "1.0.1",
5
+ "version": "1.0.3",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.mjs",
8
8
  "types": "./dist/index.d.ts",
@@ -19,6 +19,6 @@
19
19
  "README.zh-CN.md"
20
20
  ],
21
21
  "dependencies": {
22
- "@univer-cli/univer-render-runtime": "1.0.1"
22
+ "@univer-cli/univer-render-runtime": "1.0.3"
23
23
  }
24
24
  }