@univer-cli/unit-pdf-printer 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.
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 _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};
1
+ const _0x213682=_0x5e0f;function _0x5e0f(_0x57881e,_0x11e7e5){_0x57881e=_0x57881e-0x138;const _0xa88944=_0xa889();let _0x5e0f3d=_0xa88944[_0x57881e];return _0x5e0f3d;}(function(_0x4df416,_0x139d1c){const _0x16db2f=_0x5e0f,_0x566360=_0x4df416();while(!![]){try{const _0x5ec24f=-parseInt(_0x16db2f(0x14d))/0x1+parseInt(_0x16db2f(0x15b))/0x2+-parseInt(_0x16db2f(0x15a))/0x3*(-parseInt(_0x16db2f(0x146))/0x4)+parseInt(_0x16db2f(0x14a))/0x5*(parseInt(_0x16db2f(0x141))/0x6)+parseInt(_0x16db2f(0x13d))/0x7*(parseInt(_0x16db2f(0x144))/0x8)+parseInt(_0x16db2f(0x143))/0x9*(parseInt(_0x16db2f(0x14f))/0xa)+-parseInt(_0x16db2f(0x155))/0xb;if(_0x5ec24f===_0x139d1c)break;else _0x566360['push'](_0x566360['shift']());}catch(_0x17c87d){_0x566360['push'](_0x566360['shift']());}}}(_0xa889,0x2cc9c));var e=class extends Error{[_0x213682(0x14c)];constructor(_0x5c7cb9,_0x70198){const _0x362bb8=_0x213682;super(_0x70198),this[_0x362bb8(0x15e)]=_0x362bb8(0x152),this['code']=_0x5c7cb9;}};function t(_0x312527){return _0x312527 instanceof e;}var n=0x3e8;function r(_0x101122){const _0x42fdf5=_0x213682;let _0x2d8c1b=_0x101122[_0x42fdf5(0x139)]??n;if(!Number[_0x42fdf5(0x13c)](_0x2d8c1b)||_0x2d8c1b<0x1)throw new e(_0x42fdf5(0x153),'maxPages\x20must\x20be\x20a\x20positive\x20integer');return{async 'print'(_0x366539){const _0x5b13a8=_0x42fdf5;c(_0x366539['signal']);let _0x18dddb=i(_0x366539[_0x5b13a8(0x149)]),_0x3c8fde=await _0x101122['runtime'][_0x5b13a8(0x159)](_0x366539);if(c(_0x366539['signal']),_0x3c8fde['pageCount']>_0x2d8c1b)throw new e(_0x5b13a8(0x153),_0x5b13a8(0x15c)+_0x3c8fde[_0x5b13a8(0x13b)]+_0x5b13a8(0x138)+_0x2d8c1b+_0x5b13a8(0x157));if(!s(_0x3c8fde['bytes']))throw new e(_0x5b13a8(0x153),_0x5b13a8(0x13f));return{'bytes':_0x3c8fde[_0x5b13a8(0x15d)],'mediaType':_0x5b13a8(0x158),'name':o(a(_0x366539['unitData'])??_0x18dddb)+_0x5b13a8(0x145),'pageCount':_0x3c8fde[_0x5b13a8(0x13b)],'unitId':_0x18dddb,'unitType':_0x366539[_0x5b13a8(0x156)]};}};}function i(_0x2eb1ba){const _0x2fdd9a=_0x213682;if(typeof _0x2eb1ba['id']!=_0x2fdd9a(0x14b)||_0x2eb1ba['id'][_0x2fdd9a(0x13e)]===0x0)throw new e(_0x2fdd9a(0x153),_0x2fdd9a(0x151));return _0x2eb1ba['id'];}function a(_0x39d1de){const _0x3b5988=_0x213682;let _0x4c0ca4=_0x39d1de['name'];return typeof _0x4c0ca4=='string'&&_0x4c0ca4[_0x3b5988(0x13a)]()['length']>0x0?_0x4c0ca4[_0x3b5988(0x13a)]():void 0x0;}function o(_0xfd87ac){const _0xbe0896=_0x213682;let _0x2dbaaa=_0xfd87ac[_0xbe0896(0x14e)](/[\\/:*?"<>|]/gu,'-')[_0xbe0896(0x13a)]();return _0x2dbaaa[_0xbe0896(0x13e)]>0x0?_0x2dbaaa:_0xbe0896(0x154);}function _0xa889(){const _0x10ad7f=['replaceAll','20CyFcmu','reason','unitData.id\x20is\x20required','UnitPdfPrinterError','INVALID_INPUT','unit','2479961CUQenq','unitType','\x20page\x20limit','application/pdf','printPdf','1893nFEHmF','109320OxCvsZ','print\x20produced\x20','bytes','name','\x20pages,\x20over\x20the\x20','maxPages','trim','pageCount','isSafeInteger','26761cWKEyu','length','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes','operation\x20aborted','42jvPhgB','fromCharCode','232893IMPYQs','568raeacA','.pdf','1796gSOwrT','%PDF-','aborted','unitData','76265ZSiFnv','string','code','359034ueWkVp'];_0xa889=function(){return _0x10ad7f;};return _0xa889();}function s(_0x4fcb3a){const _0x49f0b9=_0x213682;return _0x4fcb3a[_0x49f0b9(0x13e)]>=0x5&&String[_0x49f0b9(0x142)](..._0x4fcb3a['subarray'](0x0,0x5))===_0x49f0b9(0x147);}function c(_0x538e44){const _0x5144be=_0x213682;if(_0x538e44?.[_0x5144be(0x148)]===!0x0)throw _0x538e44['reason']instanceof Error?_0x538e44[_0x5144be(0x150)]:Error(_0x5144be(0x140));}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.3.1",
5
+ "version": "1.4.0",
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.3.1"
22
+ "@univer-cli/univer-render-runtime": "1.4.0"
23
23
  }
24
24
  }