@univer-cli/unit-pdf-printer 1.2.0 → 1.3.1

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(_0x47ba8a,_0x49ec0e){const _0x417ab5=_0x65d1,_0x2c0e7e=_0x47ba8a();while(!![]){try{const _0x556004=-parseInt(_0x417ab5(0xc5))/0x1*(-parseInt(_0x417ab5(0xcc))/0x2)+parseInt(_0x417ab5(0xcd))/0x3+parseInt(_0x417ab5(0xc6))/0x4*(-parseInt(_0x417ab5(0xbf))/0x5)+-parseInt(_0x417ab5(0xca))/0x6+parseInt(_0x417ab5(0xb4))/0x7+parseInt(_0x417ab5(0xad))/0x8*(parseInt(_0x417ab5(0xb9))/0x9)+-parseInt(_0x417ab5(0xb3))/0xa;if(_0x556004===_0x49ec0e)break;else _0x2c0e7e['push'](_0x2c0e7e['shift']());}catch(_0x42e555){_0x2c0e7e['push'](_0x2c0e7e['shift']());}}}(_0x18a8,0x2e459));var e=class extends Error{['code'];constructor(_0x2d1e24,_0x163034){const _0x542588=_0x65d1;super(_0x163034),this[_0x542588(0xbd)]=_0x542588(0xc4),this[_0x542588(0xc3)]=_0x2d1e24;}};function t(_0x4b9a5a){return _0x4b9a5a instanceof e;}var n=0x3e8;function r(_0x1066d6){const _0x48e7c1=_0x65d1;let _0x1d69e3=_0x1066d6[_0x48e7c1(0xbc)]??n;if(!Number['isSafeInteger'](_0x1d69e3)||_0x1d69e3<0x1)throw new e(_0x48e7c1(0xcb),'maxPages\x20must\x20be\x20a\x20positive\x20integer');return{async 'print'(_0x2184e2){const _0x43d95f=_0x48e7c1;c(_0x2184e2[_0x43d95f(0xce)]);let _0x400690=i(_0x2184e2[_0x43d95f(0xaa)]),_0x3bd6dd=await _0x1066d6[_0x43d95f(0xc1)][_0x43d95f(0xb5)](_0x2184e2);if(c(_0x2184e2[_0x43d95f(0xce)]),_0x3bd6dd[_0x43d95f(0xc9)]>_0x1d69e3)throw new e(_0x43d95f(0xcb),_0x43d95f(0xac)+_0x3bd6dd[_0x43d95f(0xc9)]+_0x43d95f(0xa9)+_0x1d69e3+_0x43d95f(0xc2));if(!s(_0x3bd6dd['bytes']))throw new e('INVALID_INPUT',_0x43d95f(0xbb));return{'bytes':_0x3bd6dd['bytes'],'mediaType':'application/pdf','name':o(a(_0x2184e2['unitData'])??_0x400690)+_0x43d95f(0xc0),'pageCount':_0x3bd6dd[_0x43d95f(0xc9)],'unitId':_0x400690,'unitType':_0x2184e2[_0x43d95f(0xba)]};}};}function i(_0x327be1){const _0x5573ed=_0x65d1;if(typeof _0x327be1['id']!=_0x5573ed(0xb1)||_0x327be1['id'][_0x5573ed(0xb7)]===0x0)throw new e(_0x5573ed(0xcb),_0x5573ed(0xae));return _0x327be1['id'];}function a(_0x26bc0b){const _0x4abb9b=_0x65d1;let _0x56e44a=_0x26bc0b['name'];return typeof _0x56e44a==_0x4abb9b(0xb1)&&_0x56e44a['trim']()[_0x4abb9b(0xb7)]>0x0?_0x56e44a[_0x4abb9b(0xb2)]():void 0x0;}function o(_0x431833){const _0x7e8d52=_0x65d1;let _0x544234=_0x431833[_0x7e8d52(0xbe)](/[\\/:*?"<>|]/gu,'-')[_0x7e8d52(0xb2)]();return _0x544234[_0x7e8d52(0xb7)]>0x0?_0x544234:_0x7e8d52(0xab);}function _0x65d1(_0xa96a82,_0x343f07){_0xa96a82=_0xa96a82-0xa9;const _0x18a899=_0x18a8();let _0x65d1b5=_0x18a899[_0xa96a82];return _0x65d1b5;}function s(_0x52e0aa){const _0x2f62c4=_0x65d1;return _0x52e0aa[_0x2f62c4(0xb7)]>=0x5&&String[_0x2f62c4(0xaf)](..._0x52e0aa[_0x2f62c4(0xc8)](0x0,0x5))===_0x2f62c4(0xb8);}function _0x18a8(){const _0x3c0999=['string','trim','3411990glXFpg','1740312JKPvbM','printPdf','reason','length','%PDF-','553221rKmTTk','unitType','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes','maxPages','name','replaceAll','155355QNbtPT','.pdf','runtime','\x20page\x20limit','code','UnitPdfPrinterError','14RoInNy','28dtAJUY','operation\x20aborted','subarray','pageCount','648426GcNKFh','INVALID_INPUT','33314iloOXh','570225WNKAmS','signal','\x20pages,\x20over\x20the\x20','unitData','unit','print\x20produced\x20','24AZqXwI','unitData.id\x20is\x20required','fromCharCode','aborted'];_0x18a8=function(){return _0x3c0999;};return _0x18a8();}function c(_0x130afc){const _0x58f624=_0x65d1;if(_0x130afc?.[_0x58f624(0xb0)]===!0x0)throw _0x130afc[_0x58f624(0xb6)]instanceof Error?_0x130afc[_0x58f624(0xb6)]:Error(_0x58f624(0xc7));}export{e as UnitPdfPrinterError,r as createUnitPdfPrinter,t as isUnitPdfPrinterError};
1
+ const _0x42060c=_0xd453;(function(_0x532143,_0x41a86e){const _0x2fc0dd=_0xd453,_0x156567=_0x532143();while(!![]){try{const _0x22d3bf=parseInt(_0x2fc0dd(0x123))/0x1*(-parseInt(_0x2fc0dd(0x146))/0x2)+-parseInt(_0x2fc0dd(0x13d))/0x3*(-parseInt(_0x2fc0dd(0x13f))/0x4)+-parseInt(_0x2fc0dd(0x13a))/0x5*(parseInt(_0x2fc0dd(0x13e))/0x6)+parseInt(_0x2fc0dd(0x143))/0x7+parseInt(_0x2fc0dd(0x147))/0x8*(-parseInt(_0x2fc0dd(0x149))/0x9)+parseInt(_0x2fc0dd(0x134))/0xa+-parseInt(_0x2fc0dd(0x148))/0xb*(-parseInt(_0x2fc0dd(0x139))/0xc);if(_0x22d3bf===_0x41a86e)break;else _0x156567['push'](_0x156567['shift']());}catch(_0x163fa9){_0x156567['push'](_0x156567['shift']());}}}(_0x451f,0x30970));var e=class extends Error{[_0x42060c(0x12c)];constructor(_0x4afd4c,_0x3c70a6){const _0x2e0289=_0x42060c;super(_0x3c70a6),this[_0x2e0289(0x138)]='UnitPdfPrinterError',this['code']=_0x4afd4c;}};function t(_0x418ecb){return _0x418ecb instanceof e;}function _0xd453(_0x531e52,_0x13d419){_0x531e52=_0x531e52-0x123;const _0x451f17=_0x451f();let _0xd45389=_0x451f17[_0x531e52];return _0xd45389;}var n=0x3e8;function r(_0x47cd62){const _0x192ca3=_0x42060c;let _0x1c6bee=_0x47cd62[_0x192ca3(0x131)]??n;if(!Number[_0x192ca3(0x132)](_0x1c6bee)||_0x1c6bee<0x1)throw new e(_0x192ca3(0x12b),_0x192ca3(0x129));return{async 'print'(_0x50a217){const _0x27d85f=_0x192ca3;c(_0x50a217[_0x27d85f(0x12f)]);let _0x3cf9d5=i(_0x50a217[_0x27d85f(0x130)]),_0x2ba9fd=await _0x47cd62[_0x27d85f(0x137)][_0x27d85f(0x142)](_0x50a217);if(c(_0x50a217[_0x27d85f(0x12f)]),_0x2ba9fd[_0x27d85f(0x13b)]>_0x1c6bee)throw new e(_0x27d85f(0x12b),'print\x20produced\x20'+_0x2ba9fd[_0x27d85f(0x13b)]+_0x27d85f(0x13c)+_0x1c6bee+_0x27d85f(0x124));if(!s(_0x2ba9fd['bytes']))throw new e(_0x27d85f(0x12b),_0x27d85f(0x133));return{'bytes':_0x2ba9fd[_0x27d85f(0x136)],'mediaType':_0x27d85f(0x14b),'name':o(a(_0x50a217[_0x27d85f(0x130)])??_0x3cf9d5)+_0x27d85f(0x141),'pageCount':_0x2ba9fd[_0x27d85f(0x13b)],'unitId':_0x3cf9d5,'unitType':_0x50a217[_0x27d85f(0x126)]};}};}function i(_0xa9b754){const _0x52e622=_0x42060c;if(typeof _0xa9b754['id']!=_0x52e622(0x125)||_0xa9b754['id'][_0x52e622(0x140)]===0x0)throw new e(_0x52e622(0x12b),_0x52e622(0x14a));return _0xa9b754['id'];}function a(_0x1ef14d){const _0x24d215=_0x42060c;let _0x3a6783=_0x1ef14d[_0x24d215(0x138)];return typeof _0x3a6783=='string'&&_0x3a6783['trim']()[_0x24d215(0x140)]>0x0?_0x3a6783[_0x24d215(0x128)]():void 0x0;}function _0x451f(){const _0x323861=['unitType','reason','trim','maxPages\x20must\x20be\x20a\x20positive\x20integer','unit','INVALID_INPUT','code','aborted','subarray','signal','unitData','maxPages','isSafeInteger','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes','3354570AuOGIQ','operation\x20aborted','bytes','runtime','name','192tzspbh','9095aZkOio','pageCount','\x20pages,\x20over\x20the\x20','347271deRitQ','474ChFPrt','8sJiBWs','length','.pdf','printPdf','1759212uNqGuM','replaceAll','%PDF-','78102gftcZw','8ysaRPy','21714MkafsS','3509937GWIhKw','unitData.id\x20is\x20required','application/pdf','3wuNOpE','\x20page\x20limit','string'];_0x451f=function(){return _0x323861;};return _0x451f();}function o(_0x59d04e){const _0x4c0ce0=_0x42060c;let _0x4402bf=_0x59d04e[_0x4c0ce0(0x144)](/[\\/:*?"<>|]/gu,'-')[_0x4c0ce0(0x128)]();return _0x4402bf['length']>0x0?_0x4402bf:_0x4c0ce0(0x12a);}function s(_0x380804){const _0x37591d=_0x42060c;return _0x380804[_0x37591d(0x140)]>=0x5&&String['fromCharCode'](..._0x380804[_0x37591d(0x12e)](0x0,0x5))===_0x37591d(0x145);}function c(_0x100eb3){const _0x2ae034=_0x42060c;if(_0x100eb3?.[_0x2ae034(0x12d)]===!0x0)throw _0x100eb3[_0x2ae034(0x127)]instanceof Error?_0x100eb3[_0x2ae034(0x127)]:Error(_0x2ae034(0x135));}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.2.0",
5
+ "version": "1.3.1",
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.2.0"
22
+ "@univer-cli/univer-render-runtime": "1.3.1"
23
23
  }
24
24
  }