@univer-cli/unit-pdf-printer 1.5.2 → 1.6.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
- const _0x2b9a6b=_0x54fe;(function(_0x16a256,_0xd5a21d){const _0x349803=_0x54fe,_0x3b3370=_0x16a256();while(!![]){try{const _0x5c3863=-parseInt(_0x349803(0x1d5))/0x1+parseInt(_0x349803(0x1d6))/0x2+parseInt(_0x349803(0x1cb))/0x3+-parseInt(_0x349803(0x1e7))/0x4+-parseInt(_0x349803(0x1cc))/0x5+parseInt(_0x349803(0x1e1))/0x6+-parseInt(_0x349803(0x1e6))/0x7*(-parseInt(_0x349803(0x1e3))/0x8);if(_0x5c3863===_0xd5a21d)break;else _0x3b3370['push'](_0x3b3370['shift']());}catch(_0x10db74){_0x3b3370['push'](_0x3b3370['shift']());}}}(_0x1424,0x59861));var e=class extends Error{[_0x2b9a6b(0x1e0)];constructor(_0x1fd0da,_0x5a4f98){const _0x408a5c=_0x2b9a6b;super(_0x5a4f98),this[_0x408a5c(0x1d2)]=_0x408a5c(0x1df),this[_0x408a5c(0x1e0)]=_0x1fd0da;}};function t(_0x44e2c5){return _0x44e2c5 instanceof e;}function _0x54fe(_0x4293b1,_0x341285){_0x4293b1=_0x4293b1-0x1c8;const _0x142434=_0x1424();let _0x54fe1f=_0x142434[_0x4293b1];return _0x54fe1f;}function _0x1424(){const _0x542170=['3646744MoWuGG','bytes','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes','7oyomyg','1319164fxEytY','isSafeInteger','length','operation\x20aborted','maxPages\x20must\x20be\x20a\x20positive\x20integer','maxPages','pageCount','fromCharCode','286998eLSWmk','333945IlVjiB','signal','\x20pages,\x20over\x20the\x20','INVALID_INPUT','.pdf','aborted','name','unit','unitData','504030ZLGkxc','100494fwLinZ','replaceAll','\x20page\x20limit','trim','unitData.id\x20is\x20required','string','reason','%PDF-','unitType','UnitPdfPrinterError','code','3993258fWOZSL','runtime'];_0x1424=function(){return _0x542170;};return _0x1424();}var n=0x3e8;function r(_0x186c08){const _0x388d11=_0x2b9a6b;let _0x29bea0=_0x186c08[_0x388d11(0x1c8)]??n;if(!Number[_0x388d11(0x1e8)](_0x29bea0)||_0x29bea0<0x1)throw new e('INVALID_INPUT',_0x388d11(0x1eb));return{async 'print'(_0x3be3d1){const _0x425227=_0x388d11;c(_0x3be3d1[_0x425227(0x1cd)]);let _0x1b5d79=i(_0x3be3d1[_0x425227(0x1d4)]),_0x19b318=await _0x186c08[_0x425227(0x1e2)]['printPdf'](_0x3be3d1);if(c(_0x3be3d1[_0x425227(0x1cd)]),_0x19b318[_0x425227(0x1c9)]>_0x29bea0)throw new e(_0x425227(0x1cf),'print\x20produced\x20'+_0x19b318[_0x425227(0x1c9)]+_0x425227(0x1ce)+_0x29bea0+_0x425227(0x1d8));if(!s(_0x19b318[_0x425227(0x1e4)]))throw new e(_0x425227(0x1cf),_0x425227(0x1e5));return{'bytes':_0x19b318['bytes'],'mediaType':'application/pdf','name':o(a(_0x3be3d1[_0x425227(0x1d4)])??_0x1b5d79)+_0x425227(0x1d0),'pageCount':_0x19b318[_0x425227(0x1c9)],'unitId':_0x1b5d79,'unitType':_0x3be3d1[_0x425227(0x1de)]};}};}function i(_0x277964){const _0x35db1f=_0x2b9a6b;if(typeof _0x277964['id']!='string'||_0x277964['id']['length']===0x0)throw new e(_0x35db1f(0x1cf),_0x35db1f(0x1da));return _0x277964['id'];}function a(_0x8c1026){const _0x120c20=_0x2b9a6b;let _0x314d9b=_0x8c1026[_0x120c20(0x1d2)];return typeof _0x314d9b==_0x120c20(0x1db)&&_0x314d9b[_0x120c20(0x1d9)]()['length']>0x0?_0x314d9b[_0x120c20(0x1d9)]():void 0x0;}function o(_0x4b6f8a){const _0x42b7fb=_0x2b9a6b;let _0x3cadab=_0x4b6f8a[_0x42b7fb(0x1d7)](/[\\/:*?"<>|]/gu,'-')[_0x42b7fb(0x1d9)]();return _0x3cadab[_0x42b7fb(0x1e9)]>0x0?_0x3cadab:_0x42b7fb(0x1d3);}function s(_0x356f73){const _0x2b85d8=_0x2b9a6b;return _0x356f73['length']>=0x5&&String[_0x2b85d8(0x1ca)](..._0x356f73['subarray'](0x0,0x5))===_0x2b85d8(0x1dd);}function c(_0x4566be){const _0x52e2df=_0x2b9a6b;if(_0x4566be?.[_0x52e2df(0x1d1)]===!0x0)throw _0x4566be[_0x52e2df(0x1dc)]instanceof Error?_0x4566be[_0x52e2df(0x1dc)]:Error(_0x52e2df(0x1ea));}export{e as UnitPdfPrinterError,r as createUnitPdfPrinter,t as isUnitPdfPrinterError};
1
+ const _0x16558d=_0x26ad;(function(_0x4c32ee,_0x288833){const _0x4f8941=_0x26ad,_0x34adc9=_0x4c32ee();while(!![]){try{const _0x3b7968=parseInt(_0x4f8941(0xe0))/0x1*(-parseInt(_0x4f8941(0xd8))/0x2)+parseInt(_0x4f8941(0xe6))/0x3+parseInt(_0x4f8941(0xc4))/0x4+parseInt(_0x4f8941(0xe7))/0x5*(parseInt(_0x4f8941(0xe3))/0x6)+-parseInt(_0x4f8941(0xc6))/0x7*(parseInt(_0x4f8941(0xca))/0x8)+-parseInt(_0x4f8941(0xe2))/0x9+-parseInt(_0x4f8941(0xe4))/0xa*(-parseInt(_0x4f8941(0xdf))/0xb);if(_0x3b7968===_0x288833)break;else _0x34adc9['push'](_0x34adc9['shift']());}catch(_0x45c223){_0x34adc9['push'](_0x34adc9['shift']());}}}(_0x475a,0x810c1));var e=class extends Error{[_0x16558d(0xe5)];constructor(_0x3498c0,_0x443c09){const _0x4386a5=_0x16558d;super(_0x443c09),this['name']=_0x4386a5(0xda),this['code']=_0x3498c0;}};function t(_0x4a508f){return _0x4a508f instanceof e;}function _0x26ad(_0x5351d8,_0x1baa5c){_0x5351d8=_0x5351d8-0xc3;const _0x475a10=_0x475a();let _0x26ad12=_0x475a10[_0x5351d8];return _0x26ad12;}function _0x475a(){const _0x2bc5f9=['unitData','704602CARUMU','printPdf','UnitPdfPrinterError','string','maxPages','length','.pdf','13047760PMWpoX','2EcnPuG','signal','6619032bAAupi','1063344YTLFGq','10LJzFyt','code','1783305ISNquO','15KCLPMv','\x20page\x20limit','321732hiaITI','maxPages\x20must\x20be\x20a\x20positive\x20integer','7xgUHxo','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes','application/pdf','reason','3392584odLEyQ','runtime','trim','unitType','bytes','INVALID_INPUT','operation\x20aborted','pageCount','%PDF-','fromCharCode','print\x20produced\x20','unitData.id\x20is\x20required','name'];_0x475a=function(){return _0x2bc5f9;};return _0x475a();}var n=0x3e8;function r(_0x47079c){const _0x1046b7=_0x16558d;let _0x124ac9=_0x47079c[_0x1046b7(0xdc)]??n;if(!Number['isSafeInteger'](_0x124ac9)||_0x124ac9<0x1)throw new e('INVALID_INPUT',_0x1046b7(0xc5));return{async 'print'(_0x2290ab){const _0xf7ced3=_0x1046b7;c(_0x2290ab[_0xf7ced3(0xe1)]);let _0x4ca5c1=i(_0x2290ab[_0xf7ced3(0xd7)]),_0x5e285d=await _0x47079c[_0xf7ced3(0xcb)][_0xf7ced3(0xd9)](_0x2290ab);if(c(_0x2290ab[_0xf7ced3(0xe1)]),_0x5e285d[_0xf7ced3(0xd1)]>_0x124ac9)throw new e('INVALID_INPUT',_0xf7ced3(0xd4)+_0x5e285d[_0xf7ced3(0xd1)]+'\x20pages,\x20over\x20the\x20'+_0x124ac9+_0xf7ced3(0xc3));if(!s(_0x5e285d[_0xf7ced3(0xce)]))throw new e(_0xf7ced3(0xcf),_0xf7ced3(0xc7));return{'bytes':_0x5e285d[_0xf7ced3(0xce)],'mediaType':_0xf7ced3(0xc8),'name':o(a(_0x2290ab[_0xf7ced3(0xd7)])??_0x4ca5c1)+_0xf7ced3(0xde),'pageCount':_0x5e285d[_0xf7ced3(0xd1)],'unitId':_0x4ca5c1,'unitType':_0x2290ab[_0xf7ced3(0xcd)]};}};}function i(_0x58e46f){const _0x16f644=_0x16558d;if(typeof _0x58e46f['id']!=_0x16f644(0xdb)||_0x58e46f['id']['length']===0x0)throw new e('INVALID_INPUT',_0x16f644(0xd5));return _0x58e46f['id'];}function a(_0x25a665){const _0x23f967=_0x16558d;let _0x21c5e7=_0x25a665[_0x23f967(0xd6)];return typeof _0x21c5e7==_0x23f967(0xdb)&&_0x21c5e7[_0x23f967(0xcc)]()[_0x23f967(0xdd)]>0x0?_0x21c5e7[_0x23f967(0xcc)]():void 0x0;}function o(_0x3a78b5){let _0x1ed784=_0x3a78b5['replaceAll'](/[\\/:*?"<>|]/gu,'-')['trim']();return _0x1ed784['length']>0x0?_0x1ed784:'unit';}function s(_0x5f3848){const _0x2091a0=_0x16558d;return _0x5f3848[_0x2091a0(0xdd)]>=0x5&&String[_0x2091a0(0xd3)](..._0x5f3848['subarray'](0x0,0x5))===_0x2091a0(0xd2);}function c(_0x2d7a18){const _0x1c29ee=_0x16558d;if(_0x2d7a18?.['aborted']===!0x0)throw _0x2d7a18[_0x1c29ee(0xc9)]instanceof Error?_0x2d7a18[_0x1c29ee(0xc9)]:Error(_0x1c29ee(0xd0));}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.5.2",
5
+ "version": "1.6.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.5.2"
22
+ "@univer-cli/univer-render-runtime": "1.6.1"
23
23
  }
24
24
  }